RALLY

Structuring Robotic Harnesses Through Adversarial and Collaborative Play

Hanjun Yoo1* Kelvin Li1* Kian Hosseinkhani2* Kaito Suzuki1 Youngwoon Lee3 Ke Li2 Trevor Darrell1 Roei Herzig1
1University of California, Berkeley 2Simon Fraser University 3Seoul National University

* Equal contribution

Each chapter shows the policy of Bob alone (left) and the policy after RALLY (right). Scores are successes out of 20 trials, Bob alone → after RALLY. Every policy is refined only in simulation.

Alice reads a robot's code policy and proposes scenes that break it or related tasks that extend it; Bob refines the policy on each one.

+19.9 pts

overall success of ASPIRE on LIBERO-Pro, Plus and MAX, scenes never seen during refinement

11.7 → 62.8%

average success on the other tasks of a suite, from a policy refined on one task

⅓ the cost

Sonnet 5.5 with RALLY outperforms Fable 5.2 alone on every robustness benchmark

0 → 92.5%

success on four new tasks on a real robot, with a policy refined only in simulation

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.

Method

Alice challenges Bob during refinement

Bob is an existing robotic harness, such as ASPIRE, RHO or GaP, used as-is: it writes a code policy, runs it, and repairs it from the execution traces. Alice is a second agent that reads Bob's code and traces, finds where the policy is likely to fail, and builds a new scene or task in simulation with generic scene functions. Bob then refines the same policy on it, one proposal per cycle.

Overview of RALLY: (a) existing harnesses, (b) Alice reads Bob's code and traces and proposes scenes as an adversary or tasks as a cooperator, (c) results of the final policy.
(a) Existing harnesses call an LLM in every episode, or refine a policy only on its given scenes, failing under real-world perturbations. (b) In RALLY, Alice reads Bob's code and traces to find weaknesses, then proposes task-preserving scene variations as an adversary or related tasks as a cooperator. Bob refines the same policy. (c) The final policy is more robust on LIBERO-Pro, LIBERO-Plus and LIBERO-MAX, generalizes to new LIBERO tasks, and transfers zero-shot to a real Franka arm.

Adversarial Alice · robustness

Find the scene that breaks the policy

Alice proposes
Variations of the same task meant to make the current policy fail, such as a new camera view, moved objects, or a change during execution.
Bob
Repairs the same policy on each scene Alice proposes.
Tested on
LIBERO-Pro, LIBERO-Plus and LIBERO-MAX, zero-shot.

Cooperative Alice · generalization

Propose the next task to practice

Alice proposes
Related tasks one step beyond what the policy solves: a different object, a different target, or a new combination of sub-tasks. When a long task fails, the trace shows which sub-tasks already succeed, so Alice can isolate the failing one.
Bob
Starts from the policy of one task of a LIBERO suite and extends that same policy to each task Alice proposes.
Tested on
The other nine tasks of the suite.

RALLY-Bob · a harness built for Alice

Write every decision as an explicit rule

The policy
A sequence of actions, such as acquiring and placing an object. Each action holds if-else decisions that choose what the robot does next from observations of the scene. For example, after a lift, the policy checks whether the bottle rose; if not, it opens the gripper, retreats, and retries with a different grasp depth.
Why it helps Alice
Alice can read code from any harness, but explicit rules show which physical situation selects which action. Each rule links a possible weakness to a scene that tests it: if a recovery retries a failed grasp from the same direction, adversarial Alice can propose a placement that blocks that approach. Cooperative Alice can propose related tasks that reuse existing actions and need few code changes.

Results

One game, four harnesses

We apply RALLY to ASPIRE, RHO, GaP and RALLY-Bob, with Sonnet 5.5 as both Alice and Bob unless noted. All numbers are success rates (%) of the final policies on held-out test cases.

Robustness to unseen scenes

Refined on the 40 tasks of LIBERO and evaluated on LIBERO-Pro, LIBERO-Plus and LIBERO-MAX. Overall averages Pro, Plus and MAX, where MAX averages Base and Dynamic (scenes that change during execution).

Bob only+ Alice (RALLY)

Generalization to new tasks

One policy per suite, refined on task 0 and then extended with cooperative Alice, evaluated on the other nine tasks of the suite. Without Alice, the policy of task 0 solves none of the other Goal or LIBERO-10 tasks.

Task 0 policy+ Alice (RALLY)

A cheaper model with RALLY beats a frontier model alone

ASPIRE as Bob on the 30 tasks of Spatial, Object and Goal. Fable 5.2 runs Bob alone, with the same robustness guidelines Alice receives added to its prompt. Overall success (%), and API cost per task.

ModelPROPLUSMAX BaseMAX Dyn.OverallCost ($)
Fable 5.2, Bob only62.578.576.967.971.122.82
Sonnet 5.5, Bob only55.073.167.650.162.3
Sonnet 5.5 + Alice74.792.385.676.282.67.62

Reading the code is what matters

Alice is compared with proposers that choose scenes or tasks from execution outcomes alone. Every row starts from the same policies of Bob (ASPIRE, Sonnet 5.5).

Adversarial · 12 tasks

Scenes proposed byPROPLUSMAX BaseMAX Dyn.
None (Bob only)55.078.077.259.3
Uniform random55.777.872.561.2
SFL53.777.274.858.0
Eurekaverse55.874.777.961.0
Trajectory-only Alice56.778.979.366.8
Alice (RALLY)72.891.186.676.4

Cooperative · other nine tasks

Tasks proposed bySpatialObjectGoalLIBERO-10
None (task 0 policy)40.010.40.00.0
Random53.337.814.15.9
TSCL65.948.98.10.0
OMNI-EPIC60.037.827.422.2
Trajectory-only Alice56.341.524.48.1
Alice (RALLY)91.968.960.757.0

RoboTwin 2.0

14 dual-arm tasks of RoboTwin 2.0 with ASPIRE and Sonnet 5.5. Bob refines on clean scenes only, then plays two cycles with adversarial Alice. Tested on 100 domain-randomized scenes per task, with textures and instructions held out from refinement. The two cycles cost $1.16 of API calls per task on average.

Bob only+ Alice (RALLY)

With other models

The same games with ASPIRE as the harness and another model as both Alice and Bob.

Adversarial · GPT-6.1 Sol

Overall success on LIBERO-Pro, Plus and MAX, for Spatial, Object and Goal.

Cooperative · Fable 5.2

Success on the other nine tasks of each suite, from the policy of task 0.

Real robot

From simulation to a Franka arm

Bob refines every policy only in simulation, starting from task 0 of LIBERO-Object, and the policy then runs on a Franka arm with a scene camera and a wrist camera, 20 trials per experiment. The adversarial tests occlude the object from the scene camera or move the target during execution; the cooperative tests change the object, the target, or both.

Short-horizon task

Simulation scene and seven real-world test conditions for the can-in-box task.
Red frames: adversarial Alice. Teal frames: cooperative Alice. The red dot marks the object and the dashed arrow its target; the blue arrow shows the box moving during execution.

Long-horizon task

The robot removes the object in a container and places a second object there. Bob refines on a replace task built for this experiment, outside LIBERO, and each Alice plays 16 cycles. The last test starts instead from task 9 of LIBERO-10, putting a mug in the microwave and closing it.

Simulation scene and real-world test conditions for the long-horizon replace task.

BibTeX

@article{yoo2026rally,
  title   = {Structuring Robotic Harnesses Through Adversarial and Collaborative Play},
  author  = {Yoo, Hanjun and Li, Kelvin and Hosseinkhani, Kian and Suzuki, Kaito and
             Lee, Youngwoon and Li, Ke and Darrell, Trevor and Herzig, Roei},
  journal = {arXiv preprint},
  year    = {2026}
}