Structuring Robotic Harnesses Through Adversarial and Collaborative Play
TL;DR RALLY adds a second agent that reads an LLM-written robot code policy and proposes scenes or related tasks meant to expose its weaknesses, so it is refined before being frozen. Policies refined only in simulation succeed in 92.5% of real-robot trials on four new tasks, against 0% without the second agent.
What they do
Robotic harnesses let a foundation model write a code policy, refine it, then run it frozen. Refining only on the given scenes leaves failures hidden until deployment. RALLY adds a coach, Alice, to an existing harness, Bob: Alice reads Bob’s code, finds weaknesses and proposes what to refine on next.
How it works
- Reading the code. Alice inspects the policy and its execution traces, links a suspected weakness to specific lines, and tests candidate proposals on the current policy before choosing one.
- Adversarial role. Alice varies the scene (camera, lighting, object positions, changes during execution) while the success condition stays the same.
- Cooperative role. Alice proposes related tasks that the same policy should grow to cover, preferring failing tasks that need the smallest code change.
- Acceptance. A revision is kept only if it improves on the proposal without lowering success on original or earlier proposed scenes. A companion harness, RALLY-Bob, writes explicit if-else decisions for Alice to target.
Results
- Adversarial, on held-out LIBERO-Pro, Plus and MAX: overall success rises from 60.7% to 80.6% (ASPIRE), 47.6% to 62.6% (RHO), 47.0% to 60.7% (GaP) and 65.5% to 83.2% (RALLY-Bob).
- Cooperative: averaged over four harnesses and four suites, success on the nine unseen tasks rises from 11.7% to 62.8%.
- Alice without access to the code gains 2.5 points over Bob alone, against 14.8 with it.
- Real Franka, refined only in simulation, 20 trials each: can-in-box goes from 8/20 to 20/20, occluded from 0/20 to 14/20, moving target from 0/20 to 20/20. Four new tasks average 92.5%, against 0% for Bob alone.
Limitations
Alice needs guidelines to propose variations and tasks. The simulator’s objects and dynamics limit what can be proposed. Policy and Alice both depend on the harness’s perception and control tools, which refinement does not change, and undetected tool errors can mislead Alice.
Videos
Figures



Abstract
Robotic harnesses let foundation models solve physical tasks through generated code policies. However, these policies still struggle to remain robust to variations in objects and their locations, camera views, or backgrounds, and to generalize across tasks. In this paper, we argue that refining a code policy only on the given task and scenes leaves failures in new scenes or tasks undetected until deployment. Inspired by how coaches rally with players to expose weaknesses and teach new skills, we introduce RALLY, a harness-agnostic framework that structures policy refinement as a two-player game. Alice is an additional agent that reads the policy of an existing harness (Bob) and proposes environment variations or related tasks on which Bob refines it. We consider two settings. To improve policy robustness, Alice acts as an adversary and proposes task-preserving variations (e.g., camera views or object positions) meant to break the current policy. To help the policy generalize across tasks, Alice acts as a collaborator and proposes related tasks (e.g., manipulating a different object), and Bob extends the same policy to solve each new task. We refine all policies on LIBERO. With Alice as an adversary, RALLY raises zero-shot success for ASPIRE (+19.9%), RHO (+15.0%), and GaP (+13.7%) on LIBERO-Pro, LIBERO-Plus, and LIBERO-MAX. With Alice as a collaborator, policies refined on one task of a suite reach 62.8% average success on the suite's other tasks, compared with 11.7% without Alice. Notably, RALLY enables Sonnet 5.5 to outperform Fable 5.2 at a third of its cost, and our simulation-refined policies succeed in 92.5% of real-robot trials on new tasks.
Summaries are written automatically from each paper's text. Figures and videos come from the paper and its project page; all credit goes to the authors.
