PyRUA-Dex Code
Peking University emblemPeking University · DAGroup

PyRUA-Dex

Learning Programmatic Policies

for Dexterous Bimanual Manipulation with Coding Agents

SOTA on Bench2Dex

Feixiang Ruan1,4*, Guodong Lv1*, Kewei Zhang1*, Wenbo Huang1*, Yintianrun Zhang1, Qiang Wang1, Ruiyang Si1, Shunyu Yang1, Shulong Jiang1, Weicheng Duan4, Rui Ni1, Jianxin Bi1,2, Lekai Wang1, Yuze Fan4, Haobo Li4, Zeliang Fu4, Jiankun Zhang5, Duomin Wang3, Enze Xie3, Daquan Zhou1†

1Peking University2National University of Singapore3NVIDIA
4Tongji University5University of Chicago
*Equal contribution†Corresponding author

Peking University National University of Singapore NVIDIA Tongji University University of Chicago

Coding agents explore a task in simulation, refine the resulting program stage by stage, and hand over a frozen programmatic policy that runs with no language model at test time.

Real robottwo FR3 arms, two Sharpa Wave hands · third-person cameras
Piano: Little Jumping Frog1×
Cube to basket6×
Writing “Dex” with a brush16×
Piano: Night Cruise1×
Stacking cubes10×
Opening a box5×
Bench2Dexsimulation · one task for each of the 12 arm–hand embodiments · head camera4×
Bimanual piano melodyxArm7 + Ability
Trash disposalUR5 + RH56DFX
Citrus plate loadingUR5 + RH5DG2
Microwave bowl loadingUR5 + Schunk
Toilet lid cleaner pourxArm7 + LEAP
Condiment box loadingUR5 + Wuji
Tool box loadingPanda + Orca
Faucet cup water fillRM65 + Revo2
Canned food trayIIWA7 + Sharpa
Soup servingUR5 + Shadow
Sports ball cup sortPanda + Allegro
Gaming desk setupJAKA ZU7 + DexHand021
DexJoCosimulation · full randomization · third-person camera4×
Tower of Hanoibimanual · rand-full 95.3%
Microwave cookbimanual · rand-full 98.0%
Unlock iPadbimanual · rand-full 99.3%
Click mouseone arm · rand-full 98.0%
Hammer nailone arm · rand-full 88.0%
Water plantone arm · rand-full 79.3%
Frozen programs at work: on our real robot, in Bench2Dex test episodes and in DexJoCo test episodes under full randomization.
SOTA
72.9
Bench2Dex score, a new SOTA
26 tasks × 4 channels × 50 episodes
44.6% → 60.6%
Success rate, exploration → refinement
latched stage completion 67.0% → 82.3%
2.4×
the success rate of the same model acting online
at the benchmark's step budget, with no tokens at test time
81.0%
DexJoCo success under full randomization
11 tasks; the best trained policy 40.3%
Overview

A programmatic policy for every task, learned from the agents' own trials

Abstract

Learning for dexterous manipulation is limited by the scarcity of high-quality demonstrations: retargeting from human video is imprecise, teleoperation gives no force feedback to the operator, and exoskeleton-based collection is hard to scale up. We present PyRUA-Dex, a framework that enables coding agents to develop dexterous manipulation through programmatic policy, without the need of demonstrations. The programmatic policy is developed in two stages: during exploration, multiple agents explore in parallel for task skills and ways to compose them, and a distilling agent condenses the successful attempts into a task library and one program. During refinement, this program is improved through randomized layouts for enhanced robustness and execution efficiency. In simulated environments, PyRUA-Dex achieves SOTA on Bench2Dex with a score of 72.9 and reaches 81.0% success on DexJoCo under full randomization, ahead of every trained policy on both benchmarks. In real world experiments on a bimanual platform with two 22-DoF hands, PyRUA-Dex learns to play piano, write calligraphy, and other tasks efficiently: learning a new piece from sheet music takes as little as 30 minutes. These results suggest that PyRUA-Dex is an effective framework for developing dexterous manipulation policies with coding agents in the absence of high quality dexterous manipulation demonstrations.

Learned from the agents' own trialsAgents learn from their own trials in simulation, with state resets and the simulator's stage count.
A programmatic policy, not weightsEach task's policy is a Python program over a shared library of perception and control primitives; the final program of task 12 is 2,241 lines in 22 files.
No language model at test timeThe program runs frozen at the control rate, under the benchmark's own protocol and inputs.
Two benchmarks and a real robotBench2Dex's 12 arm–hand pairs, with 6 to 22 driven joints per hand; DexJoCo's Franka arms with Allegro hands; our FR3 platform with two Sharpa hands.
Method

Exploration, then refinement

PyRUA-Dex learns one programmatic policy per task in simulation and deploys it as a frozen program. Both stages are carried out by general coding agents, Codex CLI sessions of GPT-6 Astra, each with a shell, its own simulator instance and a library of perception and control primitives shared by all robots (the codebox). Exploration (Stage 1) searches for a program that completes the task at all; refinement (Stage 2) improves how reliably that program completes the task on unseen layouts.

Overview of PyRUA-Dex: the inputs, with object poses and simulator state marked as not given; learning in simulation, with Stage 1, exploration (one agent's loop of exploration with state resets drawn once and marked times eight, shared memory, program evaluation and distillation into one program) and Stage 2, refinement (stage-wise failure analysis, bottleneck refinement, program selection); the frozen program, tested on Bench2Dex and DexJoCo, shown in simulation and, by sim-to-real transfer, in the real world, whose feedback updates the simulation (real-to-sim)
Overview of PyRUA-Dex. All learning takes place in simulation. Stage 1 (exploration): eight agents (one is drawn) explore the task, each on a training layout of its own with state resets, and share a memory; their programs are evaluated without the agents and distilled into a task library and one program. Stage 2 (refinement): one agent finds the program's bottleneck stage by a stage-wise failure analysis, refines it on randomized layouts and selects the version with the best held-out record. The resulting program runs frozen, without a language model. For the real world, the simulation is built from the real scene (real-to-sim), the frozen program is transferred (sim-to-real), and real-world feedback updates the simulation for the next round of refinement.

Two stages, both in simulation

1

Exploration

find a program that completes the task at all

  • Eight agents in parallel. Each receives the task library, a training layout of its own and one of the stages not yet solved.
  • Exploration with state resets. An agent checkpoints the simulator's state during an episode and resets to a checkpoint, eight times per layout: it retries one stage many times without repeating the stages before it, and queries the stage count after each attempt.
  • Shared memory. One memory per task in three parts: an event log written automatically, notes kept by a dedicated curating agent (for each stage: the method that reached it, what failed and what is still untried) and a code folder with each function that reached a stage. Every agent receives what is new in its next tool reply.
  • Program evaluation. Each agent writes a program that reproduces what it achieved; it is evaluated without the agent on eight fresh training layouts.
  • Distillation. A distilling agent writes the task library from the evaluation records and selects the task's program.
2

Refinement

make the program reliable on unseen layouts

  • Stage-wise failure analysis. The program runs on 32 fresh training layouts and the result is broken down by stage, which shows the bottleneck before any change is made.
  • Bottleneck refinement. The agent repairs the stage function with the help of state resets, then measures it with partial rollouts: the program runs only up to that stage on tens of fresh layouts, with twice the benchmark's step budget.
  • Retries. With AGAIN = True, a stage function that did not end ok is called again while steps remain.
  • Program selection. After every 160 training layouts the current version is evaluated without the agent on 32 fresh and 32 held-out layouts, at the benchmark's step budget; of at most 1,500 layouts, the version with the best held-out record is selected.
Kept only if no worse on validation layoutsAfter each stage, the selected program replaces the current one only if it completes no fewer of the task's 32 validation layouts, and then reaches stages no less often. Validation layouts are never shown to an agent; the final program is evaluated frozen under the benchmark's protocol. Training, validation and test layouts are disjoint: agents work only on training layouts, and the benchmark's test layouts are run once, after the program is fixed, so no test result feeds back into development.

A task is a chain of stages

Learning a task is a search over programs π: maximize the success rate SR(π) on the benchmark's test layouts, subject to a budget of simulated layouts for development.

Success factorizes along the chain
SR(π) = s(π) ∏Kk=1rk(π)

rk, the stage success rate: the fraction of layouts that reach stage k among those that reached the stage before

Five stages that each hold on 80% of the layouts complete only 33% of them, so a program that worked once fails on most layouts.

Because ∂ log SR / ∂rk = 1 / rk, the largest gain comes from the least reliable stage, the bottleneck: refinement finds it and raises it.

Why two stages
  • Exploration makes every stage success rate positive, rk > 0: a search over grasps, hand orders and motions on a few layouts.
  • Refinement needs stage success rates estimated over many layouts: once every rate is positive, the product dominates.
  • Retries raise a stage's success rate directly. In 68% of the failed validation runs of the programs after exploration, on the 22 tasks they completed at least once, the program had returned with at least 30% of the step budget unused.
  • The staged form lets every measurement be reported per stage, lets functions written by different agents be combined, and lets a single stage be executed in isolation.

The form of every program

program.py · written by the agents for one task
STAGES = ["grasp", "place"]  # the task's stages, in order
AGAIN = True     # call stages that did not end ok again

def setup(codebox, context):
    # measure once what the stages need
    context["table"] = codebox.table()
    context["box"] = codebox.locate("box")

def grasp(codebox, context):
    tool = codebox.locate("screwdriver")       # measure
    codebox.move_to("right", grasp_point(tool))   # act
    codebox.close("right")
    if not codebox.holding("right"):           # check
        return Outcome(False, "not held")
    return Outcome(True, "held")

def place(codebox, context):
    if not codebox.holding("right"):    # check on entry
        return Outcome(False, "nothing held")
    codebox.move_to("right", above(context["box"]))
    codebox.release("right")
    seen = codebox.relocate("screwdriver")   # measure again
    return Outcome(inside(seen, context["box"]), "in box")
The template every program fills in, here with two stages: setup measures once what the stages need, and each stage function measures, acts and checks, and returns an outcome. The agents' programs fill each stage with many more calls. codebox: the hand, arm and perception calls below; context: what the functions measured.

Task 12 · Screwdriver box and hammer

UR5 + RH56DFX · test episode of its final program, 2,241 lines in 22 files · 4×

0% → 37.0%success rate, exploration → refinement
0 → 12 / 32validation layouts completed
runner.py · the same for every task
def run_episode(program, robot):
    codebox, context = Codebox(robot), {}
    program.setup(codebox, context)
    todo, last = program.STAGES, {}
    while todo and codebox.steps_left() > 0:
        used = codebox.steps_used
        for name in todo:                  # in order
            stage = getattr(program, name)
            last[name] = stage(codebox, context)
            # a failed stage does not stop the ones after it
        # one pass, unless AGAIN and the pass used steps
        if not program.AGAIN or codebox.steps_used == used:
            break
        todo = [n for n in program.STAGES if not last[n].ok]
        context["again"] = last    # how each last ended
Condensed from its code. It calls setup, then the stage functions in order. A failed stage does not stop the ones after it, because each checks on entry what it needs. With AGAIN = True, the stage functions that did not end ok are called again while steps remain and a pass still uses steps.
episode.log · an example
[stage] setup begins at step 0
[stage] grasp: not held (not ok)
[stage] place: nothing held (not ok)
[stage] pass 2: again for grasp, place
[stage] grasp: held (ok)
[stage] place: in box (ok)
The first call of grasp fails, place returns at once, and the second pass completes both.

Driving dexterous hands: perception and control primitives

Hands are what makes these tasks hard to program: the twelve hands of Bench2Dex have 6 to 22 driven joints, named and arranged differently on each robot, and whether a grasp holds is revealed only by touch. Agents and programs therefore control every robot through one library of primitives, the codebox, which is generated from the robot's description file. It models each hand as fingers and a thumb whose joints are grouped by function, derives which object widths each set of fingers can hold, and exposes hand primitives at that level: shape the hand, grasp an object of a measured size, close until it is held, check that it is still held. Every primitive returns an outcome with its reason, so a program can check each step and retry.

Grasps instead of joint angles

A model of each hand, built once from the robot's public description without reading any link or joint name: fingers and thumb, and joints grouped by what they do (bend, curl, spread). From it the codebox knows which widths each set of fingers holds; a program asks to grasp an object it has measured, and the codebox picks the fingers and how far to open them. The same calls drive the hands of all 12 Bench2Dex robots, with 6 to 22 driven joints, and the Sharpa hands of our real platform.

shapeclosegrasprelease

Arms: plan whole, then move

Arm calls put a frame of the hand at a point, with an approach direction and via points, and solve every pose before anything moves; a call says why a motion cannot run: unreachable, below the measured table, or in need of an arm reconfiguration. All motions run at the joints' speed limits.

move_toarctogether

Perception

SAM 3 masks for a ladder of prompts, combined across the calibrated fixed cameras into position, footprint, height and yaw; wrist cameras measure again from close by.

segmentlocaterelocatelookprobe

Touch

A program does not assume that a grasp held; it checks. Touch comes from the fingertip maps and from joint lag, the gap between a joint's command and its measured position, read against each robot's measured drive response. Every call returns an outcome with its reason, data and steps, so a program checks each step and retries, adjusts or moves on.

holdingfeelOutcome(ok, reason, data, steps)

Tactile feedback, in the program and in its development

Touch tells a program what vision cannot: whether a finger has met an object and whether a grasp holds. In the program, contact ends motions and verifies their result: a closing finger stops where it meets the object, a hand approaches a surface until it is felt, and after a grasp or a lift the program asks whether the object is held, has slipped or was never grasped. During exploration, an agent reads after any motion what each fingertip pad feels, so it learns why an attempt failed; during refinement, the outcomes that stage functions return on failed layouts show whether to repair the approach, the grasp or the transport.

touchclose

From an episode to a program

When an explored layout that reached a stage is closed, the harness compiles the path the agent kept into a recipe, the palm's waypoints relative to the located objects split at every grasp and release, and a draft program in the staged form. The agent turns the draft into a program by closing the loop: measuring again before contact, checking that a hand holds, and stating how each stage function fails.

playtake
Real robot

From simulation to the real robot

All learning takes place in a simulation of our platform, and only frozen programs are executed on the robot, with no language-model call. Exploration runs once, as on the benchmarks; refinement is repeated in rounds, and what the robot reveals is written back into the simulation for the next round.

2 × Franka FR3 arms 2 × Sharpa Wave SE hands, 22 joints each ZED-M stereo camera above the table RealSense D405 on each wrist MuJoCo simulation from the platform's calibration

Frozen programs on the real robot

On the real robot, the frozen programs play the piano, put cubes in a basket, stack cubes, write calligraphy with a brush and open hinged objects. They perceive the scene only through the platform's cameras and the hands' sensors.

Both hands play a piece from its score. One skill shared by the piano family arranges a score for the two hands and plays it; with it a new piece typically takes under an hour of iteration.

Before each piece the robot calibrates on the keyboard, one key at a time; the films start with the piece.

Little Jumping Frog 小跳蛙A children's song, tune and bass with two hands.1:06
Night Cruise 夜间巡航Tune and bass with two hands.1:52
Jasmine Flower 茉莉花The Chinese folk song with two hands.2:53
What's the Rush 慌啥子嘛A recent hit song, tune and broken chords with two hands.3:10
Canon 卡农Pachelbel's Canon with two hands.3:13
Anohana 未闻花名The longest piece, with two hands.8:13

Real-to-sim: a calibrated simulation of the platform

The simulation is a MuJoCo model built from the platform's calibration: the cameras' intrinsics and poses, the hand-eye transforms of the wrist cameras, the table, the transform between the arms and each hand's mount. Objects are reconstructed from photographs or a phone video and a few measured sizes. The hands start from the manufacturer's model of the Sharpa Wave SE and are identified on the real hands, under the controller the robot uses: each joint takes the controller's stiffness and damping, its friction and armature are fitted to single-joint motions at 10, 50 and 150°/s, and its range and limits are the ones the hand reports. The controller's dither is not simulated, and contact stiffness is not identified. What the calibration leaves uncertain, from the hands' gains and friction to camera poses, lighting, distractor objects and object masses, is randomized in every layout.

0.12–0.18°the simulated joints against the real ones, on motions held out from the fit (median, both hands)
0.80–3.1°the manufacturer's model on the same motions
0.11–0.22°the real hand following its own commands

Real-to-sim-to-real on our platform

Real-to-sim-to-real on our platform: real-to-sim, what the calibrated simulation shares with the real robot (head and wrist cameras with the simulation's outlines, the identification of the hands' drives, fingertip touch, objects, an instruction of the user); learning in simulation; sim-to-real, the frozen programs on the real robot; and the validation layouts completed after each round of refinement
Real-to-sim-to-real on our platform. (a) Real-to-sim: what the calibrated simulation shares with the real robot (cameras, the hands' drives, fingertip touch, objects and the user's instructions). (b) Learning in simulation: exploration once, refinement in rounds. (c) Sim-to-real: the frozen programs on the real robot, behind a safety guard; one pass from (b) to (c) and back is one round. (d) Validation layouts completed in simulation (of 32) after exploration and after each round of refinement, one chart per task; ×: the program measured again after the simulation was recalibrated.

Sim-to-real: refinement with real-robot feedback

Validation layouts completed in simulation (of 32) by the program after exploration and after the last round of refinement. After each round the program is executed on the robot, where a safety guard rejects any motion that comes within a few millimeters of a joint limit, the table or the other arm, and what the robot reveals is written back into the simulation: the measured table height, the thumb's coupled swing, softer contacts, a wrist camera kept clear of the table, and the instructions the user gives at the robot. When such an update breaks a program, the next round restores it: Ode to Joy 32 → 0 → 31, Twinkle, Twinkle 32 → 0 → 31, Little Jumping Frog 23 → 0 → 29.

after explorationafter the last round of refinement
All 6 tasks: 119 → 168 of 192 validation layouts (62% → 88%)
Cube to basketeach hand puts its cube in the basket · 1 round
29 → 32
Stack cubesa tower of three cubes · 4 rounds
6 → 30
Write “Dex”take the brush and write “Dex” on the cloth · 1 round
3 → 14
Piano
Ode to Joythe right hand, eight phrases · 5 rounds
29 → 32
Twinkle, Twinkletwo hands, tune and bass, six phrases · 4 rounds
29 → 31
Little Jumping Frogtwo hands, tune and bass, eight phrases · 1 round
23 → 29
Piano · one skill for the familyA skill learned once transfers within a task family: with the player distilled from the learned programs, a new piece typically takes 30 minutes to an hour of iteration. Jasmine, Night Cruise, Secret Base, the whole Little Jumping Frog and Canon were produced this way.
Show as a table
TaskGoalSteps (30 Hz)ExplorationRefinementRounds
Cube to basketeach hand puts its cube in the basket120029321
Stack cubesa tower of three cubes10006304
Write “Dex”take the brush and write “Dex” on the cloth15003141
Piano
Ode to Joythe right hand, eight phrases450029325
Twinkle, Twinkletwo hands, tune and bass, six phrases450029314
Little Jumping Frogtwo hands, tune and bass, eight phrases600023291
Total119 / 192168 / 192
Piano, with the family's skill (30 min to 1 h of iteration)
Jasmine, Night Cruise, Secret Base, the whole Little Jumping Frog, Canon
Results · Bench2Dex

PyRUA-Dex sets a new SOTA on Bench2Dex

26 bimanual tasks, 12 arm–hand embodiments and 4 perturbation channels, 5,200 test episodes under the benchmark's own protocol. Score = 0.45 SR + 0.45 LSCR + 10 Eff.

MethodTypeDemosSR (%)LSCR (%)EffScore
PyRUA-DexAgentnone60.682.30.859
72.9
ME-Dex 1.5VTA58.676.30.979
70.5
GigaWorld-Policy-0.6WAM51.470.90.962
64.6
Phoenix-MWAWAM45.665.60.903
59.1
MXIVLA36.954.80.970
50.9
Mora V0VLA33.252.30.974
48.2
GR00T N1.7 + tactileVLA29.748.40.950
44.6
GR00T N1.7VLA27.245.50.940
42.1
π0.5VLA27.444.70.960
42.0
GR00T N1.5 + tactileVLA25.546.50.946
41.9
GR00T N1.5VLA24.945.20.930
40.8
ACTIL18.134.90.967
33.5
Diffusion PolicyIL4.618.30.865
19.0
Four-channel means (None, Equi., Inv., Full) of every Bench2Dex leaderboard entry that reports all four channels; ME-Dex 1.5 from its leaderboard submission. Demos: trained on the benchmark's teleoperated demonstrations. IL: imitation learning; VLA: vision-language-action model; WAM: world-action model; VTA: visuo-tactile action model.
Ahead of every trained policy60.6% success and 82.3% stage completion, against 58.6% and 76.3% for ME-Dex 1.5, which fine-tunes a checkpoint per task.
Robust to perturbationsSuccess varies by only 4.1 points across the four channels, and equivariance is the programs' best: a program measures the scene in every episode and computes its motions from that measurement.
Above the best trained policy on 15 of 26 tasksThe margin is widest where precision and order decide the task: piano melody 99.5% vs 32.0%, ball sorting 81.5% vs 37.5%.
Bench2Dex results: scores of all four-channel entries, success rate against stage completion, and success rate against execution budget
Bench2Dex results. (a) Score of every four-channel entry; the dashed line marks the best trained policy. (b) Success rate against latched stage completion of the same entries. (c) Full-channel success rate against the execution budget; the frozen programs spend no tokens at test time; arrow: the benchmark's own budget; dotted line: where the online agent matches them.
Per-task success rate and stage completion of PyRUA-Dex with the best trained policy on each task
Per-task results. (a) Success rate and (b) latched stage completion of PyRUA-Dex on each task, with the best trained policy on the task (tick). Triangles: PyRUA-Dex above the best trained policy (15 of 26 tasks in success rate, 14 in stage completion).

Refinement makes explored programs reliable

+13.8score points from refinement, 59.1 → 72.9
20 / 26tasks raise their success rate; stage completion 67.0% → 82.3%
68%of the failed validation runs after exploration had returned with at least 30% of the step budget unused (341 runs, on the 22 tasks exploration completed at least once)
43.6% → 61.7%validation layouts completed, against test success 44.6% → 60.6%: the gain carries over to layouts no agent has seen
Refinement improves the success rate by repairing the stage at which an explored program fails: how the programs after exploration failed, held-out completions of the versions evaluated during refinement, and task 12 stage by stage
Refinement improves the success rate by repairing the stage at which an explored program fails. (a) Explored programs fail in a way that can be repaired: most failed validation runs return with step budget unused, most stop at a single stage, and few run out of steps (341 runs on the 22 tasks that exploration completed at least once; a run can count in two classes). (b) The repairs hold on unseen layouts, and selection guards against regressions: held-out completions (of 32) mostly rise over the versions evaluated during refinement, and the version with the best held-out record is kept (large dot; version 0 and dotted line: after exploration). (c) The gain comes from the bottleneck: on task 12 the first two stages were reliable after exploration, and repairing the hammer strike opens the last stage.

Frozen programs outperform the same model acting online

Full channel, at the benchmark's step budget
61.5%
PyRUA-Dex, frozen programs
0 tokens per episode
vs
25.6%
GPT-6 Astra agent, online
11.2M tokens per episode
  • The online agent reaches 61.5% only at ten times the budget (32.1% at 2×, 50.0% at 5×), with 33.7M tokens per episode.
  • Developing all 26 tasks took less than a third of the online agent's 58B tokens for the benchmark's 5,200 episodes at 1×: 11.7B in exploration, and 6.6B in refinement on the 23 tasks with recorded counts.
  • Every further episode of a frozen program costs no tokens and runs at the control rate.
  • The online agent's numbers are the 78 episodes that its report runs at every budget; its separate leaderboard entry of 260 episodes at 1× has 26.2%.
Development is paid once
ExplorationRefinement
Tasks with recorded counts2623
Agents208 sessionsone per task
Tokens11.7B6.6B
Agent hours615362
Median per task427M · 21.6 h214M · 14.8 h

Tasks that were nearly solved were submitted after one evaluation (about four agent hours); the hardest used all or nearly all 1,500 layouts and 21–38 agent hours. Refinement for all 26 tasks ran in about three days of wall-clock time on shared GPU clusters.

Results · DexJoCo

The method generalizes to a second benchmark

The same two stages on DexJoCo's 11 tasks for Franka arms with 16-DoF Allegro hands, in MuJoCo, under the official protocol: three seeds of 50 episodes per task and setting. DexJoCo defines no stages, so during development an agent learns only whether an episode succeeded, and its programs see the cameras without calibration; both stages run in rand-full. One frozen program per task serves both settings: rand-obj randomizes object placement and table height, rand-full also camera poses, lighting and tabletop texture. PyRUA-Dex exceeds the best of the benchmark's trained policies on all 11 tasks in both settings, and refinement lifts its success rate from 58.7% to 88.5% under rand-obj and from 64.1% to 81.0% under rand-full.

Tower of Hanoibimanual · rand-full 95.3%
Microwave cookbimanual · rand-full 98.0%
Unlock iPadbimanual · rand-full 99.3%
Click mouseone arm · rand-full 98.0%
Hammer nailone arm · rand-full 88.0%
Pick bucketone arm · rand-full 91.3%
Water plantone arm · rand-full 79.3%
Pinch tongsone arm · rand-full 91.3%
4×Frozen programs in DexJoCo test episodes under full randomization; each seed draws its own camera pose, lighting and table texture (third-person camera).
MethodTypeDemosLLM at testrand-obj (%)rand-full (%)
PyRUA-DexAgentnonenone88.5
81.0
GPT-6 Astra agent, 1× budgetAgentICL–
78.2
PyRUA-Dex, exploration onlyAgentnonenone58.7
64.1
π0.5VLAnone54.1
40.3
GR00T N1.5VLAnone40.2
30.5
DP-CILnone47.6
28.4
ACTILnone35.5
22.7
DP-TILnone50.4
20.0
GPT-6 Astra agent, 10× budgetAgentICL–
87.3
Success rate, official protocol. Trained policies from the DexJoCo paper; GPT-6 Astra agent from SenseNova's report. ICL: in-context preparation.
Above the best trained policy on all 11 tasksIn both settings. Widest on the bimanual tasks under full randomization: unlocking the iPad 99.3% vs 32.7%, the Tower of Hanoi 95.3% vs 33.3%.
One program for both settingsFull randomization costs the programs 7.5 points and the trained policies 9.7–30.4, each trained on demonstrations of its own setting.
The same model, onlineAt the benchmark's step budget the online agent succeeds in 78.2% with 7.5M tokens per episode, the frozen programs in 81.0% with none; the agent needs twice the budget to match them.
DexJoCo results per task: success rate of the programs after exploration and after refinement, two bars per task, under rand-obj and rand-full, and rand-full success rate against the execution budget
DexJoCo results per task. (a) rand-obj and (b) rand-full success rate: the program after exploration (light bar) above the program after refinement (dark bar), with the averages in the panel titles, and the best trained policy on the task (tick). Triangles: PyRUA-Dex above it, on all ten tasks that were refined; the photograph task was not refined and has one bar. (c) rand-full success rate against the execution budget; the frozen programs spend no tokens at test time, the dotted line marks where the online agent matches them, and the diamond is the best trained policy, π0.5.
Per-task results
TaskArmsrand-objrand-full
ExplorationRefinementTrainedExplorationRefinementTrained
Hammer nail170.798.084.7 (π0.5)49.388.038.7 (GR00T)
Click mouse†197.398.785.3 (GR00T)93.398.074.0 (GR00T)
Pick bucket142.799.384.0 (π0.5)73.391.378.7 (π0.5)
Pinch tongs10.0100.057.3 (DP-C)46.091.328.7 (DP-C)
Fold glasses156.088.072.0 (π0.5)46.783.339.3 (π0.5)
Water plant190.792.088.7 (π0.5)53.379.375.3 (π0.5)
Unlock iPad2100.0100.052.0 (DP-C)100.099.332.7 (π0.5)
Tower of Hanoi299.399.324.7 (DP-T)76.095.333.3 (π0.5)
Assembly20.034.04.7 (DP-T)26.019.31.3 (GR00T)
Microwave cook222.097.373.3 (DP-T)94.098.069.3 (π0.5)
Photograph*266.766.756.7 (DP-T)47.347.323.3 (π0.5)
Average58.788.554.1 (π0.5)64.181.040.3 (π0.5)

Mean over three seeds of 50 episodes. Trained: the best of the benchmark's five trained policies on the task. *Not refined. †With a fallback to the fixed camera when the randomized one is absent; without it, 0.0 under rand-obj, and the rand-obj averages would be 49.8 and 79.5 instead of 58.7 and 88.5.

Citation

BibTeX

@article{ruan2026pyruadex,
  title   = {{PyRUA-Dex}: Learning Programmatic Policies for Dexterous Bimanual
             Manipulation with Coding Agents},
  author  = {Ruan, Feixiang and Lv, Guodong and Zhang, Kewei and Huang, Wenbo and
             Zhang, Yintianrun and Wang, Qiang and Si, Ruiyang and Yang, Shunyu and
             Jiang, Shulong and Duan, Weicheng and Ni, Rui and Bi, Jianxin and
             Wang, Lekai and Fan, Yuze and Li, Haobo and Fu, Zeliang and
             Zhang, Jiankun and Wang, Duomin and Xie, Enze and Zhou, Daquan},
  journal = {arXiv preprint arXiv:2611.33144},
  year    = {2026}
}