Papers › Visual Imitation Learning with Patch Rewards

Visual Imitation Learning with Patch Rewards

2 Feb 2023arXiv:2302.00965archive 2025-07-28

Minghuan Liu, Tairan He, Weinan Zhang, Shuicheng Yan, Zhongwen Xu

Visual imitation learning enables reinforcement learning agents to learn to behave from expert visual demonstrations such as videos or image sequences, without explicit, well-defined rewards. Previous research either adopted supervised learning techniques or induce simple and coarse scalar rewards from pixels, neglecting the dense information contained in the image demonstrations. In this work, we propose to measure the expertise of various local regions of image samples, or called \textit{patches}, and recover multi-dimensional \textit{patch rewards} accordingly. Patch reward is a more precise rewarding characterization that serves as a fine-grained expertise measurement and visual explainability tool. Specifically, we present Adversarial Imitation Learning with Patch Rewards (PatchAIL), which employs a patch-based discriminator to measure the expertise of different local parts from given images and provide patch rewards. The patch-based knowledge is also used to regularize the aggregated reward and stabilize the training. We evaluate our method on DeepMind Control Suite and Atari tasks. The experiment results have demonstrated that PatchAIL outperforms baseline methods and provides valuable interpretations for visual demonstrations.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2302.00965")

Code

Syntology Ran 6 of 11 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 2 ran · honoured contract; 1 ran · violated contract; 1 ran · our draft was wrong; 2 ran with no contract checked.

By repository: official repository: 11 samples from 1 repository, 6 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

sail-sg/patchail officialmentioned in paperpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 6 ran; 2 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
1ran · violated contract
1ran · our draft was wrong
2ran
5unverified

Licence: 0 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from sail-sg/PatchAIL. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

cosine_distance sail-sg/PatchAIL/PatchAIL/rewarder.py official repository ran · violated contract fingerprinted Apache-2.0 (permissive) · 3201fb6cb44890b3 · report
episode_len sail-sg/PatchAIL/PatchAIL/replay_buffer.py official repository ran Apache-2.0 (permissive) · 9f840a22d31a89bc · report
euclidean_distance sail-sg/PatchAIL/PatchAIL/rewarder.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · 5ddff5153e2b8494 · report
load_episode sail-sg/PatchAIL/PatchAIL/replay_buffer.py official repository ran Apache-2.0 (permissive) · 184876e5f4ab6562 · report
schedule sail-sg/PatchAIL/PatchAIL/utils.py official repository ran · honoured contract Apache-2.0 (permissive) · ae234269debed3f4 · report
to_torch sail-sg/PatchAIL/PatchAIL/utils.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 6244e9922f4e0610 · report
compute_gradient_penalty sail-sg/PatchAIL/PatchAIL/agent/adv_irl.py official repository unverified Apache-2.0 (permissive) · d7749f49287c02d5 · report
make_agent sail-sg/PatchAIL/PatchAIL/generate.py official repository unverified Apache-2.0 (permissive) · 08c2a94185babfce · report
make_replay_loader sail-sg/PatchAIL/PatchAIL/replay_buffer.py official repository unverified Apache-2.0 (permissive) · 69d19134097dd51c · report
optimal_transport_plan sail-sg/PatchAIL/PatchAIL/rewarder.py official repository unverified Apache-2.0 (permissive) · d1fbf3515dde771e · report
update_mean_var_count_from_moments sail-sg/PatchAIL/PatchAIL/utils.py official repository unverified Apache-2.0 (permissive) · 19a25f21c8bbd6b7 · report

Tasks

Imitation Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections