# Recursive Video In-Context Learning for Agentic Robot

Robotics.world

> LLM agents that drive frozen VLA policies improve across episodes through text memory, but text memory can only record what the agent did and whether it worked — not how a successful execution…

**arXiv**: 2610.06843 · Preprint · not peer-reviewed

**Published**: 2026-10-05

**Authors**: Wenrui Bao, Xinxin Liu, Bingxin Xu, Yuzhang Shang

## In plain words

LLM agents that drive frozen VLA policies improve across episodes through text memory, but text memory can only record what the agent did and whether it worked — not how a successful execution physically looks: which part of an object to grasp, from which side, how high to lift.

## AI summary

## Overview

**Research area:** Robotics and embodied AI — specifically LLM-based agents that orchestrate frozen vision-language-action (VLA) policies for manipulation, combined with in-context learning from demonstration videos and hierarchical retrieval.

**Technical level:** Intermediate. Readers should be comfortable with the idea of an LLM acting as a coding agent that calls tools, with VLA policies as robot primitives, and with the notion of retrieval from an index. No training or math background is required to follow the argument.

**Scope:** The paper introduces a training-free method, RV-ICL, that converts a single demonstration video into a four-level hierarchy the agent queries on demand, and evaluates it on the LIBERO-PRO and LIBERO-Plus benchmarks.

## What This Paper Is About

LLM agents that drive frozen VLA policies improve across episodes through text memory, but text memory can only record what the agent did and whether it worked — not how a successful execution physically looks: which part of an object to grasp, from which side, how high to lift. A demonstration video captures exactly this spatial and temporal detail, yet it fits badly into an agent's context because it is long, because fixed keyframes lose the frames around each contact, and because what the agent needs changes over the episode.

The goal is to let the agent consult a demonstration only at the level of detail and at the moment its own progress calls for, without any training, without changing the VLA, and with just one demonstration per base task.

## Key Contributions

1. **Video in-context learning for tool-using robot agents.** The authors identify that an agent's text memory records its own calls and outcomes rather than the task itself, and they add a demonstration video as a complementary visual record of how the task is performed (Section 3.1).
2. **Recursive Video In-Context Learning (RV-ICL).** A training-free method that builds a four-level hierarchy from a demonstration's sub-events — task keyframes (L0), phases between gripper events (L1), moments around each sub-event (L2), and 20-frame clips (L3) — and exposes it through read-only tools so the agent descends only where its current sub-goal needs detail (Section 3).
3. **A re-entry protocol with a viewing budget.** The agent reads the coarse levels once before planning, then re-enters the hierarchy during execution at the node of its current sub-goal — before a contact, at a new sub-goal, or after a step goes wrong — with a budget B per phase or moment that sends it back to acting once exhausted.
4. **Benchmark evidence that recursion beats showing the demonstration.** On LIBERO-PRO, RV-ICL raises HarnessVLA from 92.6% to 96.5%, and on LIBERO-Plus from 86.7% to 95.8% across seven perturbation types, while keyframes or the whole video of the same demonstration gain at most 2 points on the long LIBERO-10 tasks.

## Main Findings

- **Gain on LIBERO-PRO:** RV-ICL raises HarnessVLA (Codex, GPT-6 Astra, low reasoning effort) from 92.6% to 96.5% overall, a 3.9-point improvement that a two-proportion z-test on the pooled eight cells reports as significant (z = 2.97, two-sided p = 0.003).
- **Gains concentrate where the baseline is weakest:** Goal-T rises from 88.0 to 100.0, L10-T from 85.0 to 90.0, and L10-S from 72.0 to 84.0, while the other five cells stay at or near the ceiling. The only drop is Goal-S, from 99.0 to 98.0, which the authors attribute to a single failed episode (with five seeds per task, one episode moves a cell by two points).
- **Showing the video is not enough on its own (ablation, two LIBERO-10 cells):** Text memory alone scores 85.0 / 72.0 (L10-T / L10-S); keyframes alone score 86.0 / 74.0; the full video scores 84.0 / 66.0 — below text memory on both cells; RV-ICL scores 90.0 / 84.0, 10.0 points above keyframes and 18.0 points above the full video on L10-S.
- **Re-entry is frequent and targeted:** Across the 400 LIBERO-PRO episodes, 97% contain at least one re-entry. Clip views per episode are 2.8 (Spatial), 2.3 (Object), 3.9 (Goal) and 10.4 (LIBERO-10), averaging 4.8. In every episode the agent reads the keyframes and phase map before its first robot action.
- **The agent asks for moments, not whole phases:** Of the clip views, 40% are grasp moments, 30% release moments, 15% fixture or end-of-task moments and 16% whole phases (rounded). 78% of re-entries fall in the second half of an episode, when the agent is executing contacts rather than planning.
- **Re-entries are mostly triggered by failure:** Of 100 randomly sampled re-entries, 68 follow a step that went wrong (a grasp that did not close, a descent that stopped short, an object that slipped) and 32 prepare the next contact. The sample covers the 77% of re-entries the agent introduces with a message.
- **Failed episodes over-consult:** Failures are almost all on LIBERO-10 and contain 21.2 clip views on average versus 4.3 in solved episodes — the agent keeps re-entering at the same kind of step without resolving it.
- **Robustness on LIBERO-Plus:** Overall success rises from 86.7% to 95.8% and RV-ICL is at least as good as HarnessVLA on every dimension. The largest gain is under changed lighting (76.5 to 94.1), followed by background (88.2 to 100.0), robot initial state (82.4 to 94.1) and camera viewpoint (83.3 to 94.4); both methods solve every language variant. By suite, the gain concentrates in LIBERO-10 (29 of 30 variants solved against 22) and Goal (27 against 23); RV-ICL is below the baseline only on Spatial, by one variant. Each dimension has only 17 or 18 variants, so the authors read this table as evidence that no perturbation breaks RV-ICL rather than as a ranking.
- **It carries over to a second planner:** With Claude Opus 5.5 in Claude Code, RV-ICL reaches 94.8% overall on LIBERO-PRO, 1.7 points below GPT-6 Astra and still above every baseline in the main table.
- **Cost:** On the 120 LIBERO-Plus variants, RV-ICL takes a median 14.6 minutes versus 8.3, 20 versus 18 model calls, and 1.71M versus 1.19M input tokens — 1.8 times the wall-clock time and 1.4 times the input tokens. About 88.6% of input tokens are cache hits, and demonstration views make up about 21% of the final context.

## Methodology in Plain English

The starting point is HarnessVLA (released as the RPent framework): a frozen VLA plus analytic primitives (a grasp primitive that calls π0.5, plus move, release, SAM 3 segmentation, back-projection and finish) exposed to a coding agent, which improves across episodes by writing text memory of recipes and failure rules. RV-ICL leaves that harness untouched and adds one thing: a second, read-only set of tools that return views of a demonstration.

The demonstration is recorded in a different scene and segmented at its sub-events — the instants where one sub-task ends and the next begins. For manipulation, these are readable directly from the recorded state: the gripper closing or opening, and a drawer or door joint moving. From those instants the authors build a four-level tree:

- **L0 — task keyframes:** K = 16 captioned frames spanning the whole task, placed around every grasp and release with uniform samples filling the rest, showing third-person and wrist views.
- **L1 — phases:** text descriptions of the intervals between gripper events, recording duration, gripper state, end-effector travel and lift, and what the phase achieved.
- **L2 — moments:** a text index of short windows around each sub-event and at the end of the episode, named by kind and order (grasp 1, release 1, close microwave).
- **L3 — clips:** up to 20 frames sampled evenly from any phase or moment, from the third-person view, the wrist view, or both stacked.

Three tools expose this tree: view_task_video(page) pages through L0, view_task_map() returns L1 and L2 as text, and view_demo_clip(n, cam) returns the L3 clip of a named phase or moment. Tool descriptions instruct the agent not to read positions from the demonstration, since it was recorded elsewhere, but to re-localize every object in its own cameras.

The protocol has two phases. Before planning, the agent reads L0 through L2 and writes its sub-goals from the phase map; it deliberately loads no clips yet. During execution it re-enters the tree whenever a sub-goal needs detail — before closing or opening the gripper, when a stretch of motion is unclear, or after a step goes wrong — maps the sub-goal to its phase, and loads one clip to compare against its current camera views. It does not reread the coarse levels. A viewing budget B per phase or moment stops it from rewatching a step that a clip cannot fix.

Evaluation uses LIBERO-PRO, which perturbs the four LIBERO suites by instruction redirection (T) and position swap (S) across eight cells of ten tasks each, and LIBERO-Plus, which perturbs along seven dimensions. For LIBERO-Plus the authors evaluate a stratified subset of 120 variants drawn from the 10,030 available, three per base task with the seven dimensions rotated across them. One hierarchy per base task is built from the first human teleoperation demonstration, and that single hierarchy serves every perturbed variant. Baselines on LIBERO-PRO come from prior reported runs (100 episodes per cell, 10 tasks × 10 seeds), while the authors' cells use 50 episodes (10 tasks × 5 seeds); on LIBERO-Plus they ran HarnessVLA themselves with the same agent, so those numbers compare the two methods to each other rather than to a leaderboard.

## Why This Matters

**Impact on research.** The paper reframes the demonstration from a prefix prepended to a prompt into an environment the agent queries. It gives a concrete, training-free way to inject spatial and temporal knowledge — how a grasp is carried out — into an agentic harness that was previously limited to what text can record, and it does so without touching the VLA. The ablation is the sharpest result: the full video actually performs worse than text memory on both LIBERO-10 cells, which suggests that for multi-turn embodied agents the question is not whether to show a demonstration but which part, and when.

**Real-world applications (implied by the method, not evaluated in the paper):**

- **Industrial assembly and bin picking**, where a single teleoperated demonstration of a new part could be handed to an agent fleet without collecting hundreds of labeled episodes.
- **Household and service robots**, where a homeowner records one video of a task such as loading a dishwasher and the robot re-localizes objects in its own kitchen.
- **Laboratory automation and delicate handling**, where grasp approach and lift height decide success and are hard to specify in words.
- **Field or warehouse operations under changing conditions**, since the LIBERO-Plus results show the approach survives shifts in lighting, background, camera viewpoint and start pose.

**Industry relevance.** The method requires no model training, no VLA modification, and one demonstration per base task, so it can be layered onto an existing agent harness as read-only tools plus a prompt section. The costs are real but bounded: 1.8 times wall-clock time and 1.4 times input tokens per episode, with roughly 21% of the final context made up of demonstration views. The planner swap to Claude Opus 5.5 shows the approach is not tied to one model vendor.

## Future Directions

- **Sub-event detection beyond gripper and fixture traces.** The current hierarchy is built from gripper events and articulated-joint motion. Pushing, wiping and pouring leave no such trace in the recorded state and would need another detector — for example one that reads the end-effector trajectory or queries a vision-language model. The authors name this as a limitation.
- **Multiple demonstrations and invalidated segments.** RV-ICL assumes one demonstration per base task, and when a benchmark rewrites a task's goal, parts of the demonstration become invalid and must be flagged to the agent. Selecting among several demonstrations, or automatically detecting which segments no longer apply, is left open.
- **Containing context growth.** Every demonstration view stays in context for the rest of the episode, so cost scales with re-entries, and failed episodes show the pathological case at 21.2 clip views versus 4.3 in solved ones. Eviction, summarization of previously viewed clips, or better use of the viewing budget are natural extensions.
- **Learned skills that diverge from the demonstrator.** When a contact is executed by a learned skill whose motion differs from the human demonstrator's, the finer levels carry little the agent can act on. Closing that gap — for instance by conditioning the VLA on the clip, rather than only informing the LLM planner — is a plausible next step, as is testing on other embodiments and non-teleoperation demonstration sources, neither of which the paper evaluates.

## Target Audience

Researchers and engineers working on LLM-based robot agents, agentic harnesses over frozen VLA policies, and imitation learning from human videos. It is also useful for practitioners building tool-using agents more broadly, since the recursive-access pattern for long inputs transfers beyond robotics. Readers evaluating deployment trade-offs will find the cost table and the honest limitations section as valuable as the headline numbers.

## Authors’ abstract

LLM agents that orchestrate frozen vision-language-action (VLA) policies improve across episodes through text memory, which records what the agent did but not how the task is done. A demonstration video shows it, but fits poorly into an agent's context. The full video slows every turn, fixed keyframes lose the contact detail that decides whether a grasp holds, and what the agent needs shifts from the task's structure while planning to the frames around each contact. We…

[The full abstract on arXiv](https://arxiv.org/abs/2610.06843)

[Read the original paper](https://arxiv.org/abs/2610.06843)

## Related papers

- [ChunkAct: Action Chunking for Agentic Robotics](https://robotics.world/paper/chunkact-action-chunking-for-agentic-robotics-2610.18874) 2026-10-13 · cs.RO · Also by Bingxin Xu, Wenrui Bao +2
- [DeltaWAM: Change-Centric Visual Foresight via Delta Tokens for an Efficient World-Action Model](https://robotics.world/paper/deltawam-change-centric-visual-foresight-via-delta-tokens-for-an-2609.33177) 2026-09-27 · cs.RO · Also by Bingxin Xu, Wenrui Bao +1
- [Coding Agents with Harness for Safe Robot Control](https://robotics.world/paper/coding-agents-with-harness-for-safe-robot-control-2609.20822) 2026-09-17 · cs.RO · Also by Bingxin Xu, Yuzhang Shang
- [Don't Drop the BATON: Long-Horizon Robot Manipulation via Agentic Subtask Exploration and Transition-aware Memory](https://robotics.world/paper/don-t-drop-the-baton-long-horizon-robot-manipulation-via-agentic-2608.16889) 2026-08-17 · cs.RO · Also by Bingxin Xu, Yuzhang Shang
- [Surgical WAM: A World-Action Model for Data-Efficient Surgical Robot Learning](https://robotics.world/paper/surgical-wam-a-world-action-model-for-data-efficient-surgical-robot-2608.11204) 2026-08-11 · cs.RO · Also by Wenrui Bao, Yuzhang Shang

---

Canonical: https://robotics.world/paper/recursive-video-in-context-learning-for-agentic-robot-2610.06843
