VIMC
Menu

Visual In-Context Monte Carlo

VIMCVisual In-Context Reinforcement Learning with General-Purpose Pretrained Regressors

  • Heng-Zhuang Li
  • Zhen Xu
  • Hao-Run Cai
  • Si-Yang Liu
  • Jun-Peng Jiang
  • Han-Jia Ye

Nanjing University

Donkey / WarrenSimulator · Held-out episode 15
Step 069 / 191

How VIMC updates its context.

A visual observation produces one query per possible action. Follow a recorded Maze decision through the frozen regressor, then see how a completed episode changes the table it reads next.

VIMC Visual In-Context Monte Carlo
VIMC-Pro Prioritized context curation
0:00

Encode the observation

The observations, actions, returns and action scores come from Maze episode 874. The VIMC-Pro walkthrough applies the paper’s selector to eleven of these decisions with a five-slot illustrative budget.
See the original method diagram
The paper’s main diagram. Frozen DINOv3 and TabPFN score candidate actions. Monte Carlo experience feeds either a FIFO context or the Group, Allocate and Balance stages of VIMC-Pro.
Inspect all 23 Maze decisions
Agent observation
Maze observation before the selected action. The green square is the agent and the red square is the goal.
Maze · interaction episode 874

Inside a decision

Each bar shows the predicted return for one move. The marker identifies the action VIMC took.

Observed Monte Carlo return

Action values are reproduced using the frozen context from this episode. The Monte Carlo target uses the rewards that followed the chosen action, discounted by 0.99 per step.

How can a frozen regressor act from pixels?

A camera frame shows the bend ahead. Which steering action will pay off? VIMC treats each candidate action as a row in a table and asks a frozen regressor to predict its return.

On the discrete tasks, VIMC starts with an empty table and acts randomly in the first episode. Later episodes use ε-greedy action selection. Donkey starts with five expert trajectories. The encoder and regressor keep their weights while completed episodes supply new context rows.

Warren track progress
87.12%
Mean maximum progress per test episode with VIMC.
MiniGrid success
73.05%
Held-out success with VIMC-Pro, up from 48.44% with VIMC.
Faster context updates
164×
VIMC vs. ICR-RL at full capacity, as a geometric mean over seven environments.

How do the policies compare?

VIMC-Pro leads on the held-out task metrics for MiniGrid, Cleaner, Maze, and Tetris. Base VIMC leads on Minesweeper and PacMan. The driving results depend on both the track and the metric.

MiniGrid FourRooms

Success rate (%)

Mean ± sample SD
MiniGrid FourRooms success rates across eight independent seeds
MethodMean on a zero-based scaleMean and sample standard deviation

Each discrete task has 64 instances for online interaction and 32 held-out test instances.

Means are computed within each independent run and then summarized across eight seeds. Higher values are better for each displayed measure. Full experimental results

Cite VIMC.

arXiv:2612.01153 · December 2026

BibTeX
@misc{li2026visualincontextreinforcementlearning,
  title = {Visual In-Context Reinforcement Learning with General-Purpose Pretrained Regressors},
  author = {Heng-Zhuang Li and Zhen Xu and Hao-Run Cai and Si-Yang Liu and Jun-Peng Jiang and Han-Jia Ye},
  year = {2026},
  eprint = {2612.01153},
  archivePrefix = {arXiv},
  primaryClass = {cs.CV},
  url = {https://arxiv.org/abs/2612.01153}
}