TL;DR
RATS (Robotics Agent Teams) introduces a proactive paradigm called "Playful Agentic Robot Learning," where embodied coding agents use self-directed, curiosity-driven play to autonomously build a reusable code skill library before downstream tasks are specified. By practicing tasks at the boundary of their competence and distilling successful executions into modular Python code, RATS achieves massive performance gains across manipulation benchmarks and transfers seamlessly to new environments and real hardware without any model fine-tuning.
What Problem Does This Paper Address?
Current agentic robot systems utilizing Code-as-Policy (CaP) frameworks are highly reactive and task-driven: they only generate or refine code after receiving explicit external instructions. While they can successfully write executable programs and iterate based on environmental feedback, they lack the ability to proactively explore their environments and accumulate reusable skills in an open-ended manner.
To bridge this gap, the authors take inspiration from developmental psychology—specifically how children discover robust physical capabilities through unstructured, self-directed play. The challenge lies in designing an autonomous system that can independently propose meaningful exploratory goals, execute them safely, diagnose intermediate failures, and cleanly package successful behaviors into a persistent, structured library for future use.
Methods
The authors introduce RATS (Robotics Agent Teams), a multi-agent framework structured to manage the play-time skill acquisition loop through three specialized teams:
- Task Proposer Team: Generates a candidate pool of diverse, scene-grounded tasks. It selects which task to practice using a "Goldilocks" principle, maximizing an analytical score that balances Object-Skill Novelty (favoring rarely tried combinations) and a Competence Frontier filter (targeting semi-familiar tasks that are neither too easy nor physically impossible).
- Execution Team: Orchestrates a structured Write-Execute-Verify-Diagnose loop. A Planner outlines steps, a Policy Writer translates them into Python code, and an array of verification agents (Quality Checker, Per-Step Verifier, Goal Verifier, and Failure Diagnoser) provide dense, step-level feedback. If a persistent physical bottleneck is identified, the system can even spawn a SubAgent to practice a specific sub-action in isolation.
- Memory-Management Team: Curates two persistent stores: a Skill Library ($\mathcal{L}$) containing self-contained, parameterized code functions extracted from successful runs, and a Failure Memory ($\mathcal{M}$) that distills compact lessons from failed attempts. A Memory Curator periodically runs maintenance to merge near-duplicate skills and remove redundant lessons.
At test time, the play-time exploration mechanisms are frozen, and the accumulated skill library is either utilized by the full RATS execution system or plugged directly into the context window of a standard baseline agent.
Datasets
RATS was evaluated across multiple distinct simulation suites and real-world setups:
- LIBERO-PRO: Used as both a play environment and an in-domain evaluation benchmark, testing Object, Goal, and Spatial generalization splits across initial position swaps and task perturbations.
- MolmoSpaces: A scene-grounded manipulation suite testing Open, Close, Pick, and Pick-and-Place tasks using natural-language criteria and grounded scene states.
- RoboSuite: A separate simulator environment completely held out during the play phase, used exclusively to evaluate cross-environment zero-shot skill transfer.
- Real-World Hardware: Physical robot manipulation tasks (e.g., cube picking/placing, drawer opening/closing) evaluated to validate sim-to-real transfer capabilities.
Key Insights and Ideas
- Code as a Medium for Intrinsic Motivation: Unlike classical developmental robotics that explore fixed sensorimotor or feature spaces, LLM-based coding agents can express exploratory goals directly in natural language and save successful behaviors as modular, executable code.
- Dense Feedback Over Sparse Rewards: A simple binary success/failure signal is too sparse for effective continual learning. RATS succeeds because its multi-agent verification loop breaks down execution into step-level verdicts, allowing the system to localize missing capabilities and preserve working components of a policy.
- Decoupled, Plug-and-Play Knowledge: Because the learned skills are stored as explicit Python code rather than neural network weights, they are entirely modular. They can be injected directly into the context window of completely different inference-time agents, boosting their performance without any fine-tuning.
Key Results
- In-Domain Performance: On LIBERO-PRO, RATS achieved a 43.8% average success rate, outperforming the standard CaP-Agent0 baseline by 20.6 percentage points. On MolmoSpaces, it boosted average success from 21.0% to 38.0% (+17.0 pp).
- Cross-Environment & Sim-to-Real Transfer: When play-learned skills from LIBERO-PRO were plugged into a baseline agent facing the unseen RoboSuite simulator, success rates jumped by 8.9 percentage points—notably demonstrating cross-embodiment transfer to a two-arm collaborative task. Real-world physical robot evaluations demonstrated a 8.8 percentage point gain.
- Curiosity vs. Random Play: Ablation studies confirmed that curiosity-driven play via the Goldilocks objective is vital; under identical token budgets, random play provided negligible improvements over a no-play baseline.
Limitations and Future Work
While RATS marks a significant step forward, the authors note several limitations:
- Simulation Constraints: The play phase remains heavily simulation-based, meaning skill acquisition is bounded by the diversity, dynamics, and affordances available in the simulated environments.
- Retrieval and Context Scaling: As the skill library grows large, improper skill retrieval or context-window saturation can occasionally degrade downstream task performance, highlighting the need for more context-aware selection mechanisms.
- Inference Cost and Control Bounds: The extensive multi-agent verification loop increases token consumption and inference latency. Additionally, the system is currently bounded by primitive-level control APIs, motivating future integration with richer low-level controllers for dexterous manipulation.
Summary updated