Skip to content
3D视觉工坊 · 微信公众号·· 17 days agoFeaturedAI score78

RoboScript proposes World In-Context Learning WICL: single demonstration drives robot policy self-evolution

AI summary

The ArcheOne-AI team proposes RoboScript, a World In-Context Learning (WICL) method that freezes the base model, rehearses with only one clean demonstration in a simulator, and writes world feedback into a readable Task Memory, all without changing weights.

Source: 3D视觉工坊 · 微信公众号 · mp.weixin.qq.com

Why it matters

RoboScript uses a frozen base model plus a single demonstration to rehearse in simulation, with success rates in randomized scenes showing almost no drop, offering an manipulation policy approach that does not rely on weight training.

Full text · AI translation

Click the card below

card

to follow

"3D Vision Workshop"

official account

and select

star

so that the latest content reaches you first

Source: 3D Visual Workshop

3D vision hardware includes

structured-light 3D cameras

(supporting indoor/outdoor, welding, robotic-arm grasping, etc.),

phase deflection, speckle, robotic-arm grasping and welding software

,

handheld scanners

(supporting positioning, re-localization, dense mapping),

quadruped robot and vehicle positioning and navigation, chassis

. Click -> for details:

3D vision hardware covers both research-grade and product-grade!

Training a robot manipulation policy usually means collecting demonstrations, training a model, then deploying.

RoboScript

took a different route: freeze the base model, give it a single demonstration, let it learn in a simulator, write the world's feedback into a readable task memory, and then continuously self-evolve through review. On

RoboTwin 2.0

all 50 bimanual tasks, it learns only in clean scenes and is evaluated directly on never-before-seen randomized

(randomized)

scenes: the average success rate across both scene types reaches 83.4%, with 83.2% still on randomized scenes — almost no drop. By contrast, mainstream vision-language-action (VLA) models and world-action models

(WAM)

even when trained on the full set of official clean expert demonstrations, drop sharply on randomized scenes; for example, π₀.₅ falls from 70.7% to 46.0%. The task memory learned in simulation transfers to the real robot without needing new demonstrations or relearning, and can also be reused across robot embodiments.

Paper:

World In-Context Learning for Agentic Robot Manipulation

Project homepage:

https://ArcheOne-AI.github.io/RoboScript

Code:

https://github.com/ArcheOne-AI/RoboScript

Can a robot learn a manipulation task in context the way it learns one in weights?

This is exactly the question RoboScript aims to answer.

Mainstream vision-language-action models (VLA) and world-action models (WAM) train manipulation skills into weights, so what they learn is tied to the training distribution. FastWAM achieves a success rate of 77.8% on clean scenes in RoboTwin 2.0, but only 1.9% after switching to randomized scenes. In-context learning (ICL) does not modify weights, yet has never caught up with trained policies: demonstrations recorded in another scene cannot tell the robot what will happen on the table in front of it.

Coding Agents provided the missing link. They run code in the terminal, read the output, and modify it again, thereby learning unfamiliar code repositories. RoboScript brings this mechanism to robots, replacing the terminal with the world. The team's key observation is that what an Agent learns in context is semantics — the role of objects, the steps of a task, where things went wrong last time — rather than the appearance of the image, so experience accumulated in one world can be carried into another.

Figure 1: (a) Three learning paradigms; (b) replacing the Coding Agent's terminal with the world; (c) success rates on RoboTwin 2.0.

One expert demonstration beats a model trained on the full clean dataset

The experiments cover all 50 bimanual tasks of RoboTwin 2.0, divided into a clean setting and a randomized setting (textures, lighting, table height, and distractors randomized). RoboScript uses only one clean demonstration per task and rehearses only in clean scenes; the frozen memory is evaluated under both settings following the official protocol. The compared VLA and WAM models are trained on the full set of official clean expert demonstrations.

Table 1: Average success rates (%) on all 50 tasks of RoboTwin 2.0. Retention = randomized success rate / clean success rate; † reports only the randomized setting.

One demonstration plus rehearsal is enough

— RoboScript (GPT-6.1-Sol) reaches an average of 83.4%, while the strongest trained policy 4D-WAM reaches 61.7%. The two are comparable on clean scenes (83.6% vs. 81.5%); the gap comes from the randomized setting: 4D-WAM drops to 41.8%, while RoboScript still has 83.2%.

Almost no drop across distributions

— the three base models retain 95.2% to 100.8% of their clean success rates under randomization, while trained policies retain at most 65.1%. RoboScript has never seen randomized scenes, yet still exceeds HarnessVLA fine-tuned on RoboTwin data (58.4%) by 24.8 points.

Not dependent on the strongest model

— with code, prompts, and protocol unchanged, DeepSeek-V4.1-Flash and GPT-5.6-Luna also reach 78.1% and 77.9% respectively, both higher than all trained policies.

World In-Context Learning: writing world feedback into context

The team calls this paradigm World In-Context Learning (WICL); its relationship to ICL is similar to that of reinforcement learning to imitation learning. The frozen model first reads a demonstration and writes an initial context; it then rehearses in the world, with the same model rewriting each trajectory and feedback into the context; once converged, it is frozen and executed on instances never rehearsed, receiving no further feedback (Figure 2a). Rehearsal and evaluation instances do not overlap, so the scores measure generalization rather than memorization.

Knowledge learned this way can transfer across worlds because the context only references task semantics: which objects there are, what role each plays, and their geometric relationships to one another. As long as another world is semantically consistent, the knowledge still applies even if appearance, lighting, or physical parameters differ; weights, on the other hand, absorb every regularity of the training world (Figure 2c). The context is also readable text, so the Agent can review its own evaluation records and write guidance, recursively self-improving without changing the weights (Figure 2b).

Figure 2: (a) The WICL pipeline; (b) self-improvement on non-overlapping evaluation blocks; (c) context knowledge depends only on shared semantics and can transfer across worlds.

RoboScript: four stages, weights never modified throughout

RoboScript brings WICL to robot manipulation, with a lifecycle divided into four stages (Figure 3):

Skill building

— shared entry points such as grasping, placing, and bimanual coordination are environment-independent; when a demonstration contains an action that existing entry points cannot explain, the Agent hands it to a Coding Agent to write a new skill. Every action returns a "receipt" stating the pose actually reached, the gripper opening, and whether the object was held, letting the Agent distinguish "the command was executed" from "the effect was achieved."

Learning from a single demonstration

— first imitate (S1), practicing on the demonstration scene until stable success; then rehearse (S2), counting only the first attempt on a new scene, and after a failure modify a cached copy of the memory, merging it only if the modification makes that scene succeed.

Deployment

— before acting, map the semantic blueprint of the demonstration onto the current scene, determining object roles and which arm to use; on action failure, do not reset — retreat to a safe pose, re-observe, and continue; only when the scene is confirmed to match the demonstration's final state is completion declared.

Review

— after evaluating a batch of scenes, the review Agent looks only at the records and outcomes available during deployment, diagnoses failure causes itself, and writes guidance for the next batch.

Figure 3: The four stages of RoboScript. Green boxes are data also available on the real robot; orange boxes are privileged data available only in the simulator.

Everything learned is written into Task Memory. It is a structured Markdown recording object roles, a staged workflow, relative grasp and placement specifications, parameters, and lessons. Specifications are referenced against object parts, for example "approach the handle from the left side and grasp at its midpoint"; the memory Linter rejects any coordinates and simulator-specific information.

Infrastructure: building-block assembly, strictly isolated data

RoboScript runs on a modular infrastructure (Figure 4): the method, benchmark, robot embodiment, and base model are all independent services that can be swapped out individually like building blocks. All model calls go through a single gateway, so changing the base model only requires a configuration change; the simulator, world model, and real robot can all be connected as a "world."

Learn in simulation, using only inputs obtainable on the real robot.

The Agent executing actions can only see data also available on the real robot, such as RGB-D images and proprioceptive state; privileged data such as ground-truth object poses and success determination is accessible only to the control plane, used solely for supervised learning, and always rejected during evaluation. Therefore, memory learned in simulation can be deployed directly to the real robot.

Figure 4: The infrastructure of RoboScript. The Agent plane interacts with the world only through the deployable interface (D), and only the control plane can access privileged data (P).

Why almost no drop after randomization

Task by task, π₀.₅ declines systematically on most tasks after randomization, while RoboScript's three models mostly stay within ±10 points, with no task dropping more than 20 points (Figure 5a). Among GPT-6.1-Sol's 166 failures, knowledge-type failures are 37 and 38 in the clean and randomized settings respectively, nearly unchanged; perception-type slightly decreases (22 → 17), and execution-type slightly increases (23 → 29), consistent with randomized table heights making actions harder to perform (Figure 5b). The failures brought by randomization are physical, not "not knowing what to do."

Figure 5: (a) Clean and randomized success rates per task; (b) distribution of failure root causes.

Ablation: demonstration anchors, recovery safeguards

The team ran ablations on 10 tasks covering five task categories, with each variant paired against the full method under the same seeds (Table 2).

Table 2: Ablation experiments. The first group deploys the frozen memory, the second builds the memory directly without interacting with the world, and the third relearns from scratch.

Neither the demonstration nor the world can be omitted

:writing down memory from demonstrations alone, without learning in the world, drops performance from 78.5% to 69.0%, barely different from instructions alone (68.0%); conversely, learning in the world with instructions but no demonstrations drops performance from 86.0% to 56.5%, the largest drop in the entire table.

Rehearsal fills in the details that demonstrations miss

:on 11 harder-to-learn tasks, removing rehearsal drops performance from 54.5% to 46.1%, with the gap widening to 13.3 points under randomized scenes.

Failure recovery matters most

:ending the episode on the first failure drops performance from 78.5% to 69.0%, the largest drop among deployment variants; removing the arm-selection check and the completion check drops it to 75.0% and 77.0% respectively (Figure 6).

Privileged supervision is not the source of performance

:removing all privileged inputs from the learning phase yields 86.5%, on par with the full method's 86.0%.

Figure 6: The deployment process with frozen Task Memory. (a) Executing the demonstration with the other arm; (b) checking against the demonstration and filling in skipped steps; (c) re-grasping after an object slips. Blue boxes are demonstrations, red boxes are errors, green boxes are successes.

Figure 7: Execution clips of 20 tasks on RoboTwin 2.0, including clean and randomized scenes; the randomized scenes were never rehearsed.

Recursive self-improvement: every round of review brings a net gain

The Review Agent summarizes failures during evaluation into readable guidance for the next round, without changing any weights. The team ran three consecutive rounds, each with a new set of scenarios, and compared with and without guidance on the same scenarios: on the weaker tasks, the failures recovered by guidance in each round outnumbered the newly introduced failures; the improvement narrowed round by round but remained positive. Taking handover_block as an example, the two guidance entries first corrected the Agent's misreading of the instructions, then reminded it to check the placement position against the edge of the mat, and the same set of scenarios went from fewer than half succeeding to all succeeding.

Figure 8: Three rounds of recursive self-improvement.

Learned in simulation, deployed on real robots, and transferable across robot embodiments

The team directly transferred the Task Memory learned on the simulated ALOHA to the real dual-arm PiPER. The two have different kinematic structures, but the memory only describes task semantics, so it can be used after simple adaptation, without re-demonstration and re-learning. The same memory crossed both the gap from simulation to real robot and the gap between different robot embodiments, executing successfully on four real-robot tasks (Figure 9).

Figure 9: Performance of four tasks on the real PiPER. The memory was learned on the simulated ALOHA and used directly after simple adaptation, without re-learning.

What does this work show?

RoboScript's results support a judgment: manipulation skills do not have to live in the weights. As long as the model can repeatedly try and get feedback in a world like a simulator, a frozen foundation model can start from a single demonstration and write the skill into readable context through learning. The knowledge learned this way is semantic, so it is stable across distributions; it is decoupled from the model, so switching models requires no code changes; it is readable and editable, so it can keep self-evolving through review without changing the weights; it is not bound to a specific robot, so it can transfer from simulation to real robots and be reused across embodiments.

It also has clear boundaries:

It relies on closed-source API models, so service stability and inference speed are both constrained by the external interface, and every action must wait for the model's response;

Complex manipulation requiring fine contact or tight dual-arm coordination remains a challenge.

Even so, RoboScript's modular design makes it easy to extend to new tasks, embodiments, and foundation models, and its performance will improve along with the foundation models. Enabling robots to keep learning through interaction with the world, in-context learning in the world may point toward the future of embodied intelligence.

As the paper concludes: with the world in the loop, a robot learning a manipulation task in context can be as good as learning it in the weights.

This article is for academic sharing only. If it infringes on your rights, please contact us to have it removed.

3D vision paper tutoring is here! We can tutor SCI journals, CCF conferences, bachelor's/master's/doctoral theses, core journals, etc.

。

Scan the code to add WeChat, note: name + direction + affiliation, to be invited to the group.