Visual In-Context Monte Carlo
VIMCVisual In-Context Reinforcement Learning with General-Purpose Pretrained Regressors
Nanjing University
Method
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.
Encode the observation
Inspect all 23 Maze decisions

Inside a decision
Each bar shows the predicted return for one move. The marker identifies the action VIMC took.
Overview
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.
Test episodes
Watch the policy act.
One recorded episode from each of the seven main environments. Each policy acts greedily with its context fixed throughout the test.
Maze
Reach the red goal by moving through the open corridors.
Experiments
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.
Success rate (%)
| Method | Mean on a zero-based scale | Mean 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
@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}
}
