Distilling Visual Agents from Limited Interaction Experience
Siyu Zhou, Jing Jiang, Chengqi Zhang, Guodong Long
cs.AI
2026-11-21
Four coverage-picked trajectories and on-policy distillation lift a 4B agent from 49.17% to 82.08% on navigation and 60.16% to 85.55% on Sokoban, closing over 90% of the 27B gap.
Visual agents read images and feedback, then act for many steps. One changed action rewrites every later frame, so distillation from a large teacher onto a small student is usually run as fresh interaction across a large task catalogue. This paper measures whether a few recorded histories, or even one online task, can still move a 4B student toward a 27B teacher on tasks outside that pool.
The pool is rolled out by an unadapted Qwen3.5-4B: 120 navigation trajectories, 128 Sokoban, and 32 SpatialGym. The teacher is a frozen Qwen3.5-27B.
Selection and the weight update are separate. The annotator, gpt-5.6-terra, is not the distillation teacher, and its text never enters a prompt. It freezes a skill-context inventory. A skill is a capability. A context is the visible condition that calls for it, such as correcting a route from action feedback that can already be judged. Each step is tagged with the pairs it hits. Coverage counts pair types, not repetitions. Success and failure are not used to rank trajectories.
A second pass writes a decision description from the screenshot and earlier actions, encodes it as a TF-IDF vector, and scores ordered similarity with a sequence-alignment dynamic program. Two trajectories can share the same skills and still differ in order. Images are not embedded. Only the descriptions are.
Greedy selection puts coverage first and will not pick a second trajectory from the same task. When coverage gains tie, it keeps the trajectory that better represents the pool under a facility-location objective: every eligible trajectory should sit close to something already chosen, with equal weight. Success and length are ignored. The student still sees the original causal prefix, including past thinking, and not the current response or any future frame.
Three uses share 100 updates, batch size 64, and 6,400 responses. Fixed-history on-policy distillation (OPD) resamples the student on stored prefixes. The 27B teacher scores each token by the gap in log probabilities, and the update is PPO-clipped at 0.2. There is no environment reward and no extra reference-policy KL. New actions are not executed. Online OPD executes them on the same tasks, with teacher scores lagging by at most one update. Matched supervised fine-tuning (SFT) trains on teacher responses at the same prefixes. Response counts match. Token counts do not. In replay, K counts trajectories. Online, K counts tasks. A smaller K does not shrink the update budget.
Each task is evaluated four times: 60 navigation tasks plus long-horizon variants with the initial heading reversed, 64 one-box Sokoban maps, and SpatialGym on 4 held-out rooms plus 20 two-room scenes. Navigation and Sokoban report success. SpatialGym reports cogmapscore, a continuous map-quality score.
| Method | Nav. standard | Nav. long | Sokoban | Held-out room | Two rooms |
| 27B teacher | 85.00% | 25.00% | 88.28% | 0.4566 | 0.3777 |
| 4B original | 49.17% | 13.33% | 60.16% | 0.2553 | 0.1157 |
| Full-task online OPD | 78.75% | 21.25% | 85.94% | 0.4763 | 0.3051 |
| K4 offline SFT | 74.17% | 20.42% | 76.17% | 0.3996 | 0.2413 |
| K4 offline OPD | 82.08% | 22.08% | 85.55% | 0.4112 | 0.2700 |
Four trajectories are 3.3%, 3.1%, and 12.5% of the three pools. K4 offline OPD gains 32.92 points on standard navigation, to 82.08%, and 25.39 points on Sokoban, to 85.55%, recovering 91.86% and 90.28% of the measured gap to the 27B teacher. The navigation endpoint beats full-task online OPD at 78.75%, equal to 111.27% of that online gain. The Sokoban figure is 98.48%. The ratio passes 100% because the selected subset finishes higher. On held-out rooms the same four histories recover 77.4% of the teacher gap. Full-task online scores 0.4763 there, above the teacher's 0.4566.
Online OPD on those same four tasks scores 82.50%, 22.50%, and 84.38%. Replay is within about one, one, and three successful episodes, and the optimizer never re-enters the environment. On an independent navigation panel, replay moves success from 45.83% to 76.67%, against 79.58% for same-task online training. That keeps 91.36% of the online gain and 77.89% of the teacher gap.
One online task already reaches 80.42% and 80.47% on standard navigation and Sokoban, and 0.4057 / 0.2878 on held-out and two-room mapping. Offline K1 scores 73.75% and 80.47%. K4 beats full-pool offline OPD at 77.50% and 83.59%. K16 is where long-horizon navigation (23.75%) and mapping (about 0.46 / 0.31) move further. At both K1 and K16, OPD beats matched-budget SFT on all five panels. The paper marks offline K1 and K16 as collaborator-reported, and does not verify that they share tasks with the online curves.
The same four histories on a 9B student add 7.08 points of navigation, from 67.08% to 74.17%, and 23.44 points of Sokoban, from 64.06% to 87.50%, tying full-task online Sokoban. Full-task online navigation on 9B reaches 86.25%, above the teacher and well above replay. On long-horizon navigation the 9B student starts at 25.83%, already a bit above the teacher's 25.00%, and full-task online falls to 20.00%.
The gains are broad and uneven. K4 OPD improves 45 of 60 standard navigation tasks and regresses 3, improves 31 of 64 Sokoban maps and regresses 1, and on the long-horizon split improves 20 while regressing 8. All 4 held-out rooms and all 20 two-room scenes improve. Those evaluation ids are outside the pools. Format compliance does not explain the objective gap. Navigation format rates are 97.99% for OPD and 98.00% for SFT, while success is 82.08% and 74.17%. Sokoban format is 93.05% and 93.44%, success 85.55% and 76.17%. Two-room exploration coverage rises from 0.413 to 0.806, facing from 0.032 to 0.156, and position from 0.042 to 0.233.
Against the mean of three random four-trajectory subsets, the selected set leads by 6.25, 2.50, and 5.34 points on standard navigation, long-horizon navigation, and Sokoban. Across four additional runs, full selection averages 81.98% / 23.75% on those two navigation panels, representativeness-only averages 80.73% / 23.54%, and a fixed random K4 averages 76.88% / 21.67%. A single ablation that drops coverage falls to 77.92%, 17.92%, and 80.47%, but the rank against representativeness-only moves across runs. In the recorded navigation pick, the first trajectory covers all 11 observed skill-context pairs, and four histories keep 66 prefixes. K4 keeps 66, 10, and 21 prefixes in the three pools, against 1,840, 402, and 236 in the full pools. The same 6,400 draws therefore land on the selected decisions again and again.
Interaction is the expensive part. One online task already transfers, and four stored histories recover more than 90% of the 4B teacher gap on standard navigation and Sokoban without entering the environment during the update. With a 27B teacher in hand, a practical path is to roll out a student pool, keep a coverage-and-order subset, and run OPD on the original prefixes.
The architecture is unchanged. Matched SFT also gains, and K4 OPD is still ahead on all five 4B panels. The 9B navigation result is the boundary: replay adds 7.08 points, while full-task online reaches 86.25%. Compact histories pay off when the student is far behind and the test tasks look like the training interactions.
Long-horizon navigation and two-room mapping are not solved by four trajectories. Two-room scores are 0.2700 for replay, 0.2998 for four-task online, and 0.3051 for full-task online. When the agent has to keep exploring, a frozen history is the weaker option.
The main table is a single training endpoint. The original panels were inspected during development, including four monitored held-out rooms. Offline K1, K16, and some random controls are collaborator-reported, and the paper does not verify that they share tasks with the online curves. The independent navigation panel widens the evidence for one environment only.
Annotation depends on a separate strong API model. That cost sits outside the student update, and a weaker annotator is not tested. Keeping annotations out of the prompt is a clean split. A biased inventory would still bend both coverage and similarity.
The recovery above 90% sits on panels where the teacher is already strong. On long-horizon navigation the teacher succeeds only 25% of the time, so the gap is small; the 4B K4 run reaches 22.08%. Further distillation can also hurt: 9B full-task online falls to 20.00% on that panel. Gap-recovery ratios do not travel to tasks the teacher itself handles poorly.
OPD versus SFT is not an equal-compute comparison, because token counts differ. Training ignores environment reward, so a teacher that mis-scores a class of scenes will drag the student with it. Reading the small-data win as repeated supervision of a few decisions matches the prefix counts. A separate causal test of that story is not in the paper.