TL;DR
RoboScript introduces World In-Context Learning (WICL), a paradigm that allows robots to learn complex manipulation tasks by rehearsing in a simulator and storing semantic feedback in a frozen foundation model's context. By decoupling skills from network weights, RoboScript achieves an 83.4% success rate on 50 diverse tasks with just a single demonstration and zero gradient updates, outperforming the best trained policies by over 20 points.
What Problem Does This Paper Address?
Traditional robot manipulation typically follows one of two paths:
- Trained Action Policies: These models (like VLAs or World Action Models) "bake" skills into their network weights. While powerful, they are brittle; a change in lighting or background (domain randomization) often causes performance to crater because the skill is tied to the specific training distribution.
- Standard In-Context Learning (ICL): This uses a frozen model that follows a demonstration provided in its prompt. However, ICL lacks a feedback loop. A demonstration recorded in one environment can't tell the robot how to handle the specific physical feedback or failures it encounters in a new, slightly different scene.
The authors identify a critical gap: robots need a way to learn from experience without the heavy cost of retraining, while maintaining the ability to generalize across different visual environments.
Methods
The core innovation is World In-Context Learning (WICL). Instead of updating weights, the system updates a Task Memory—a structured Markdown document that acts as the robot's "internal manual" for a specific task.
The RoboScript infrastructure implements this through a four-stage lifecycle:
- Imitation (S1): A "Reader" agent studies a single expert demonstration and writes an initial Task Memory.
- Rehearsal (S2): The robot practices the task in a simulator (the "World"). If it fails, a "Reviewer" agent uses privileged simulator data to diagnose the error and update the Task Memory with "lessons learned."
- Deployment: The robot uses the frozen Task Memory to perform the task in new, unseen environments (including randomized or real-world scenes).
- Reflection: After a block of attempts, a "Reflection" agent reviews execution logs to identify persistent failure patterns and writes high-level guidance to further refine the memory.
Crucially, the system enforces strict data isolation. During deployment, the agent only sees what a real robot would: RGB-D images and proprioception. Privileged simulator information is only used for supervision during the learning phase.
Datasets
The researchers evaluated RoboScript on RoboTwin 2.0, a benchmark featuring 50 dual-arm manipulation tasks.
- Clean Setting: Fixed backgrounds and predictable conditions.
- Randomized Setting: Variations in textures, lighting, table height, and the presence of distractor objects.
- Real-World Transfer: The system was also tested on a physical dual-arm PiPER robot to verify cross-embodiment transfer.
Key Insights and Ideas
- Semantics over Pixels: The authors observe that what an agent learns in context is semantic (e.g., "grasp the handle from the left," "verify containment before finishing"). Because these semantic rules are invariant to visual appearance, a memory learned in a "clean" simulator transfers almost perfectly to a "messy" randomized world.
- The World as a Terminal: The paper draws an analogy to coding agents. Just as a software agent uses a terminal to test code and read errors, a manipulation agent uses a simulator to test actions and read physical feedback.
- Recursive Self-Improvement (RSI): Because the Task Memory is readable text, the model can perform "meta-learning" by reflecting on its own failure logs and rewriting its instructions to be more robust, all without a single gradient update.
Key Results
RoboScript sets a new state-of-the-art for few-shot robot manipulation:
- Superior Performance: Reached an 83.4% mean success rate across all 50 tasks. For comparison, the strongest trained policy (4D-WAM), which required 50 demonstrations per task, achieved only 61.7%.
- Unprecedented Robustness: While trained policies saw their success rates drop to near zero under domain randomization, RoboScript maintained 99.5% retention of its performance.
- Foundation Model Agnostic: The method scales with model capability. While GPT-4 class models performed best, even lightweight models like DeepSeek-V4.1-Flash outperformed the best trained VLA policies.
- Real-World Success: Task Memories learned on a simulated ALOHA robot were successfully deployed on a physical PiPER robot (a different kinematic structure) using a simple parameter adapter, succeeding on tasks like stacking bowls and clicking a bell.
Limitations and Future Work
- Cost and Latency: Running high-end foundation models via API for every step is currently expensive and slower than local, weight-based policies.
- Object Scope: The current implementation focuses on rigid and articulated objects. Handling deformable objects (like cloth or cables) remains a challenge for future work.
- Simulator Dependency: WICL requires a "faithful" world for rehearsal. Future research could explore using learned "imagination" models or latent world models when a high-quality simulator isn't available.
Summary updated