Source-linked AI summary
Encore: Few-Shot Agentic Discovery of Manipulation Strategies
Yifan Kang, Zihan Wang, Zhiwen Fan, Bangya Liu
TL;DR
Robot-task instructions often omit the manipulation strategy, while existing ways of presenting demonstrations to coding agents can either overwhelm them or discard important cues. ENCORE distills demonstrations into evidence for an agent that develops and freezes a policy program; on LIBERO-PRO, its frozen programs succeed on 96.3% of perturbation episodes versus 89.3% for ASPIRE rerun on the same model.
Problem
Robot-task sentences leave out grasping, contact order, and the intended result, while raw demonstrations are dense and existing compressed forms may discard important cues.
Source: §1 · p. 2Method
ENCORE distills demonstrations into queryable evidence that a coding agent inspects and uses to iteratively develop a policy against a fixed API before freezing it for sealed evaluation.
Source: §1 · p. 2, §3.1 · pp. 3–4Results
96.3% of LIBERO-PRO perturbation episodes succeed with ENCORE programs, versus 89.3% for ASPIRE rerun on the same model.
Source: §4.4 · p. 6Takeaways & Limitations
The reported results support demonstrations as a search prior for transferring manipulation strategies to new layouts and composing them under new instructions.
Source: §1 · p. 2Six contact-precise RoboDojo tasks score zero in every evaluated arm, marking a current limit of these programs.
Source: §4.5 · p. 7
Abstract
from arXiv · showhide
Coding agents can now write, run, and debug programs with little human help. Robot tasks, however, are usually specified by a sentence that leaves out how to grasp, in what order to make contact, and what the result should look like, and an agent given only the sentence must find these details by trial and error. We introduce ENCORE, which gives the agent a few demonstrations as evidence to read rather than as training data. A deterministic builder distills each demonstration into a pack of multi-view keyframes, gripper events, frame strips, and the full trajectory. A coding agent studies the pack, writes a policy program against a fixed perception and action API, refines it iteratively over a few development rollouts, and freezes it before a sealed evaluation that never reveals the success signal. On LIBERO-PRO, the agent's first program already succeeds in half of the perturbed tasks with demonstrations and in one task without them, and the frozen programs outperform the strongest prior agentic system run with the same language model (96.3% against 89.3%). On RoboDojo tasks whose instructions leave the goal unstated, no program succeeds without demonstrations. ENCORE also runs on a real bimanual robot, learning cube handover and cup inversion from five demonstrations each.
1 Introduction
Robot-task sentences often omit the grasp, contact sequence, and goal details needed to program a manipulation policy, while demonstrations are difficult to use effectively in existing forms. ENCORE turns demonstrations into queryable evidence for an iterative coding agent, whose frozen programs transfer strategies across perturbed tasks.
1 Introduction
- Demonstration packs give the agent keyframes at gripper actions, contact-event frame strips, and the complete trajectory to inspect for grasp, orientation, and path strategies.This exposes intended outcomes and the strategies used to reach them without making the demonstrations training data.Source: §1 · p. 2
- Raw trajectories overwhelm coding agents with incidental details, while summaries or token compression may discard unexpected cues such as grasp changes or a wobble before regrasp.Giving the strongest prior agentic pipeline raw trajectory files produced no measurable gain in the reported experiments.Source: §1 · p. 2
- ENCORE’s deterministic builder creates demonstration evidence, then a coding agent writes and iteratively refines a policy against a fixed API before freezing it for evaluation without model calls.The sealed evaluation does not reveal the success signal.Source: §1 · p. 2
- 96.3% of sealed LIBERO-PRO perturbation episodes succeed with ENCORE programs, versus 89.3% for ASPIRE rerun on the same model.The introduction also reports that on RoboDojo, no program succeeds without demonstrations when instructions leave the goal or contact strategy unstated.Source: §1 · pp. 2–3
- The authors frame demonstrations as a search prior that can help agents transfer strategies to new layouts, compose them under new instructions, and turn them into executable programs.Their comparison spans LIBERO-PRO, 22 RoboDojo tasks, and a real bimanual robot.Source: §1 · pp. 2–3
2 Related work
Prior work uses code to express robot policies and lets agents revise programs from rollout outcomes. Work using a few demonstrations either compresses trajectories before code generation or produces networks through imitation or augmentation, whereas ENCORE exposes distilled, uninterpreted evidence to an iterative coding agent.
2.1 Code as policies and agentic robotics
- Code-as-policies systems express robot policies as programs over perception and control APIs [5] [6], while agentic systems debug rollouts and accumulate reusable skills [7, 8, 9].Related approaches also structure interfaces with spatial value maps [13] or relational keypoint constraints [14].Source: §2.1 · p. 3
2.2 Learning from few demonstrations
- Demonstration-conditioned code generation compresses trajectories into prompts [10] [11], while few-shot imitation and augmentation produce networks whose behavior cannot be read, audited, or edited [1] [17] [18] [3] [19] [4].Unlike these methods, ENCORE gives an iterative coding agent distilled but uninterpreted demonstration data and evaluates its frozen program on held-out states.Source: §2.2 · p. 3
3 Method
ENCORE defines manipulation as a policy program acting through a fixed API, developed on disjoint states and evaluated without exposing the success predicate. Its distiller builds a structured record from demonstrator-produced signals, and the agent uses that evidence to develop and freeze a policy.
3 Method
- A task pairs one intent sentence with K demonstrations, and the output is a policy program using a fixed API; development uses disjoint initial states, while evaluation withholds the success predicate.The program runs without a simulator or robot handle and cannot access asset files or object poses.Source: §3 · p. 3
3.1 Demonstration distiller
- The distiller selects keyframes from gripper transitions and sharp heading breaks, then packages intent, full-state multi-view keyframes, gripper events, hardware frame strips, a stride-five state path, and the complete action stream.The whitelist excludes simulator state, object poses, and file paths; event labels describe width signals, leaving the agent to identify releases.Source: §3.1 · pp. 3–4
3.2 Perception-and-action API
- The fixed perception-and-action API supplies sensing and motion in both simulation and hardware, while task-specific choices such as grasp, destination, and success checks must come from evidence or development measurements.Perception and motion calls have per-episode budgets.Source: §3.2 · p. 4, Table 1 · p. 4
3.3 Development loop
- A fresh agent inspects the pack, writes and revises a program on development episodes, implements its own grasp and placement checks, then selects and freezes one version.Evaluation statically rejects programs that read the episode termination flag.Source: §3.3 · p. 4
4 Experiments
Experiments compare ENCORE with and without demonstrations across perturbed and unperturbed LIBERO-PRO tasks, RoboDojo, and two real-robot tasks. Each LIBERO-PRO cell uses a fresh agent, development states, and one frozen program evaluated on sealed states.
4.2 Transferring a demonstrated strategy to a new layout
- On POS, K=3’s first program succeeds in 11/30 cells and averages 29% of development episodes, while K=0’s first program succeeds nowhere; final sealed totals are 1,454/1,500 and 1,437/1,500.Median first success arrives at version 2 with demonstrations versus version 4 without them.Source: §4.2 · p. 5, Figure 2 · p. 5
4.3 Composing demonstrated skills under a new instruction
- On TASK, K=3’s first program succeeds in 18/30 cells and averages 53% of development episodes, versus 1/30 cells and 2% for K=0; frozen programs score 1,435/1,500 versus 1,409/1,500.K=3 wins 10 paired cells, loses 2, and ties 18; the two-pack recombination example scores 50/50 in both cells.Source: §4.3 · p. 5, Figure 3 · p. 5
4.4 Comparison with prior systems
- Across 60 perturbed LIBERO-PRO cells, K=3 succeeds on 2,889/3,000 sealed episodes (96.3%) versus 2,846/3,000 (94.9%) for K=0 and 89.3% for the ASPIRE opus-5 rerun.ASPIRE’s published result is 71.7%; most of ENCORE’s margin lies in the spatial suite.Source: Figure 4 · p. 6, §4.4 · p. 6
4.3 Composing demonstrated skills under a new instruction
- For the bottom-drawer TASK, K=3 opens the drawer in 50/50 episodes while K=0 scores 0/50; the demonstrated downward-and-outward tilted pull supplies the grasp strategy missed during search.The K=0 agent tried 33 program versions without engaging the bottom handle.Source: §4.3 · p. 6
- On the plate-placement TASK, K=3 freezes at 0/50 after 11 versions, while K=0 finds an arcing lift and scores 50/50 after 23 versions.The demonstrations shorten search but do not guarantee the correct outcome.Source: §4.3 · p. 6
4.5 Underspecified tasks: RoboDojo
- On the first 10 RoboDojo tasks, K=3 succeeds in 95/450 sealed episodes and K=0 in none; the successful demonstrations help agents infer goals left unstated by the instructions.With one demonstration, those 10 tasks reach 40/450.Source: §4.5 · p. 7, Figure 5 · p. 7
- Images alone underperform the full pack on delicate-contact tasks, and six contact-precise tasks score zero in every arm, marking a current limit of these programs.The six tasks are plugging a charger, inserting a key, fastening screws, making toast, storing a laptop, and hanging mugs.Source: §4.5 · p. 7, Table 2 · p. 7
4.6 Real-robot experiments
- On sealed, human-judged real-robot trials, both cube handover and cup inversion score 9/10 after five demonstrations per task.The handover uses a quarter-turn receiving-gripper roll and closes that grip before the giving grip opens; cup inversion uses four gripper events.Source: §4.6 · p. 8, Figure 6 · p. 8
A Main result tables
The tables summarize LIBERO-PRO success under perturbations and per-task outcomes, with ENCORE evaluations based on one frozen program per cell and sealed episodes.
Evaluation protocol
- ENCORE table values come from 50-seed sealed evaluations of one frozen program per cell; baselines are published results except for the pinned-commit ASPIRE opus-5 rerun.The reported K=3 and K=0 columns use the clean acquisition.Source: A Main result tables · p. 10
Table 3
- Table 3 reports LIBERO-PRO success under position and instruction perturbations, macroaveraged over 10 tasks per suite.Its values are visualized in Figure 4.Source: Table 3 · p. 10, A Main result tables · p. 10
Table 4
- Table 4 gives per-task LIBERO-PRO success across 50 sealed episodes per cell, distinguishing stock tasks from K=3, K=1, and K=0 conditions.It provides the per-task breakdown behind the aggregate results.Source: A Main result tables · p. 10, Table 4 · p. 11
B Development cost
The development-cost comparison reports per-cell median effort for K=3 and K=0, alongside total agent hours and an ASPIRE reference.
Development cost
- Per cell, K=3 uses 4 program versions, 46.5 development episodes, 0.51 hours, and 66k output tokens; K=0 uses 6 versions, 53 episodes, 0.55 hours, and 69k tokens.The medians are over 60 perturbation cells.Source: B Development cost · p. 11
- Across 60 cells, total agent time is 37 hours for K=3 and 44 hours for K=0.Source: B Development cost · p. 11
- ASPIRE’s released loop on the same model spends a median 0.99 hours and 91k output tokens per cell, compared with ENCORE’s 0.51 hours and 66k tokens for K=3.A frozen program requires no model call at evaluation time.Source: B Development cost · p. 11
C Additional ablations
The ablations show that demonstrations are most useful when the agent can verify its interpretations, and that action-channel evidence matters when a failed grasp provides no observable signal.
C Additional ablations
- Adding three demonstrations as raw trajectory files to ASPIRE’s loop gained 6 episodes in 500, within single-run variance.The reported comparison uses ASPIRE’s released loop on the goal-swap axis.Source: C Additional ablations · pp. 11–12, Table 5 · p. 12
- 50/50 on open_bottom_drawer for the full pack versus 0/50 for both no-action arms, where the pinch failed silently.The seven other articulated-fixture tasks scored 50/50 in every arm but one, which scored 42/50; on the microwave, the pinch failed loudly and the K=0 agent found a hook.Source: C Additional ablations · p. 12
- 440 to 117 of 450: removing the verification loop while keeping demonstrations sharply reduced the goal-suite result.Table 5 covers nine goal-suite tasks with 50 sealed episodes each.Source: C Additional ablations · p. 11, Table 5 · p. 12
D Evaluation protocol
The evaluation uses isolated development runs followed by one sealed evaluation of frozen programs. ENCORE receives demonstrations but not the tools and diagnostic hints available to ASPIRE.
D Evaluation protocol
- Each program was developed by a fresh agent on 15 disjoint initial states, frozen, then evaluated once on 50 sealed states without per-episode feedback.A static check barred branching on the termination flag, and arm comparisons were paired across 60 matched perturbation cells.Source: D Evaluation protocol · p. 12
- The development agent used opus-5, and each cell ran headless with an agent that had not seen another task.The ASPIRE rerun wrapper restarted sessions that returned a program before the development sweep finished; it reached 89.3% versus 71.7% reported in the original paper.Source: D Evaluation protocol · p. 12
E Inputs available to each system
- ASPIRE received grasp-planning and geometry tools, reusable code, and diagnostic thresholds; ENCORE received demonstrations but none of those tools or hints.ENCORE’s program thresholds were set by the agent that wrote each program.Source: E Inputs available to each system · p. 12
F Case studies
On the drawer case, K=0 search failed to engage the bottom handle, while the K=3 agent extracted and reproduced the demonstrated pull.
F Case studies
- The K=0 agent scored 0/50 after 20 probe versions and four wrist families failed to engage the bottom-drawer bar.Its pinches, hook, and top-press attempts did not move the drawer; it froze a program opening two reachable drawers.Source: F Case studies · p. 13
- The K=3 agent read a pull with the wrist 15 to 36° below horizontal and saturated outward-and-downward actions from the demonstration pack.A near-maximum commanded height change did not change measured height during the pull.Source: F Case studies · p. 13
- 19 cm: seating open fingertips on the bar and commanding a far-out, low target reproduced the demonstrated pull on development seeds.The K=0 agent’s claim that the handle could not be engaged was contradicted by the demonstrations.Source: F Case studies · p. 13
G Frozen program listings
The listing section presents the two frozen drawer-cell programs in their evaluated form and reports their scores.
G Frozen program listings
- The listed K=0 program scored 0/50 and the K=3 program scored 50/50; their recorded hashes are 011b5af6 and c2fcb7de.The listings omit the PROVENANCE dictionary used by the audit but not by the policy.Source: G Frozen program listings · p. 13
G.1 Without demonstrations
The K=0 program perceives cabinet geometry from depth data, selects reachable handle bars, and attempts to open them with a side pinch and pull.
G.1 Without demonstrations
- It selects handle bands 1 and 2, aborts when fewer than three bands are detected, and skips targets below the wrist-height floor.The code defines bands 1 and 2 as reachable.Source: §G.1 · pp. 13, 15
- The program builds a point cloud from depth data, estimates the cabinet face, and groups protruding points into handle-height bands.It uses a histogram to estimate the face position and height bins to identify bands.Source: §G.1 · pp. 13–14
- For each selected bar, the program tests for a grip using gripper width and effort, then pulls outward in short increments while rechecking the hold.It tries two contact offsets and stops the pull if the grip is lost.Source: §G.1 · pp. 14–15
G.2 With demonstrations
The K=3 program adapts the demonstrated drawer-opening motion to the lowest handle bar, then measures drawer travel and retries if needed.
G.2 With demonstrations
- The program seats an open gripper on top of the lowest bar with a 20-degree downward wrist tilt, then drags outward and down.The described motion follows the demonstrations’ loaded drag strategy.Source: §G.2 · pp. 15–16
- After the first drag, the program measures drawer travel and repeats the drag from the current front if travel is below 12 cm.It re-perceives the drawer front between attempts.Source: §G.2 · pp. 15, 17
- It estimates the cabinet face and handle bands from a depth-derived point cloud before selecting the lowest band for the drag.If too few scene points are available, the code uses a fallback face position and band.Source: §G.2 · pp. 16–17
Related papers
This paper cites
- Voyager: An Open-Ended Embodied Agent with Large Language Models2023
- ProgPrompt: Generating Situated Robot Task Plans using Large Language Models2022
- MimicGen: A Data Generation System for Scalable Robot Learning using Human Demonstrations2023
- RoboDojo: A Unified Sim-and-Real Benchmark for Comprehensive Evaluation of Generalist Robot Manipulation Policies2026
- ASPIRE: Agentic /Skills Discovery for Robotics2026
Cited by
- When the World Is the Test Suite: Agentic Intelligence for the Physical World2026
- ACE-CaP-0: Real-World Code-as-Policies in the Era of Experience2026
- Flex-RSI: Benchmarking Recursive Self-Improvement of Frontier Agents2026
- DiMuRe: Diagnosis-Guided Multilevel Recovery for Robotic Task Execution2026
- CaPtain: A Pipeline for Post-Training Code-as-Policy Robot Agents2026