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.
Figures & tables
Figure 1: PyRUA-Dex at a glance. Center: our real-world platform playing the piano (a video frame, cut out), with tactile sensing at the fingertips. (a) Coding agents learn a task’s program in simulation in two stages, exploration and refinement; the frozen program is deployed in the real world (sim-to-real), and real-world feedback updates the simulation (real-to-sim; Section 3 ). (b) DexJoCo success rate with the objects randomized (rand-obj) and with cameras, lighting and textures randomized as well (rand-full; Section 4.5 ). (c) Tasks learned for the real-world platform: validation layouts completed in simulation, of 32 (Section 5 ). (d) The nine best of the thirteen four-channel entries on the Bench2Dex leaderboard, where PyRUA-Dex holds the SOTA (Section 4.2 ). (e) The hands the programs drive, rendered from their models, with the joints driven per hand (DoF) and whether a program receives tactile sensing. (f) The tasks of the three settings in five classes, with the number of tasks per setting and one picture each from simulation and from the real world.
Figure 2: 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.
Success rate per channel (%)
Four-channel mean
Method
Type
Demos
LLM
None
Equi.
Inv.
Full
SR (%)
LSCR (%)
Eff
Score
ACT [ 51 ]
IL
✓
✗
29.3
15.5
14.8
12.8
18.1
34.9
0.967
33.5
Diffusion Policy [ 10 ]
IL
✓
✗
8.9
3.0
3.2
3.4
4.6
18.3
0.865
19.0
π0.5 [ 4 ]
VLA
✓
✗
35.2
21.2
26.8
26.2
27.4
44.7
0.960
42.0
GR00T N1.5 [ 25 ]
VLA
✓
✗
38.0
16.3
24.3
20.8
24.9
45.2
0.930
40.8
GR00T N1.5 + tactile
VLA
✓
✗
38.5
17.2
23.3
22.8
25.5
46.5
0.946
41.9
Table 1: Bench2Dex results (26 tasks; success rate per channel and four-channel means). Demos: trained on the benchmark’s teleoperated demonstrations (ICL: read in context). LLM: a language model acts during evaluation. † Full channel only: the online agent’s leaderboard entries, 260 episodes at 1 × the step budget and 78 at 10 × ; the 78 episodes that its report runs at every budget give 25.6% at 1 × , which Section 4.4 uses.
Figure 3: 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.
Figure 4: Why refinement works. (a) How the 341 failed validation runs of the programs after exploration ended, on the 22 tasks that exploration completed at least once (a run can count in two classes). (b) Held-out completions (of 32) of the versions evaluated during refinement; version 0 is the program after exploration, and the large dot is the version that was selected. (c) Task 12: held-out layouts that reached each stage, after exploration and after refinement.
Method
Type
Demos
LLM
rand-obj
rand-full
ACT [ 51 ]
IL
✓
✗
35.5
22.7
DP-T [ 10 ]
IL
✓
✗
50.4
20.0
DP-C [ 10 ]
IL
✓
✗
47.6
28.4
π0.5 [ 4 ]
VLA
✓
✗
54.1
40.3
GR00T N1.5 [ 25 ]
VLA
✓
✗
40.2
30.5
GPT-6 Astra agent, 1 × [ 31 ]
Agent
ICL
✓
–
78.2
Table 2: DexJoCo results (success rate, %; three seeds of 50 episodes per task and setting). Trained policies from the benchmark [ 42 ] .
Figure 5: 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.
Task
Goal
Steps
Exploration
Refinement
Rounds
Cube to basket
each hand puts its cube in the basket
1200
29
32
1
Stack cubes
a tower of three cubes
1000
6
30
4
Write Dex
take the brush and write “Dex” on the cloth
1500
3
14
1
Ode to Joy
piano, the right hand, eight phrases
4500
29
32
5
Twinkle, Twinkle
piano, two hands, six phrases
4500
29
31
4
Little Jumping Frog
piano, two hands, eight phrases
6000
23
29
1
Table 3: Tasks learned for the real robot. Validation layouts completed in simulation (of 32) after exploration and after the last round of refinement. Steps at 30 Hz.
Figure 6: Frozen programs on the real robot , head camera unless marked: cube to basket, stacking three cubes, Night Cruise played with both hands, opening the box by its fabric loop, and writing “Dex” with a brush.
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
List of algorithms 1 PyRUA-Dex for one task. π∗ : the current program; Val(π^)⪰Val(π∗) : no fewer completions on the 32 validation layouts, then no lower mean stage rate.
After exploration
After refinement
Agents per task
8 in parallel
1
Validation layouts completed (26 tasks × 32)
363/832 (43.6%)
513/832 (61.7%)
Test success rate (%)
44.6
60.6
Test latched stage completion (%)
67.0
82.3
Efficiency (tasks with a success)
0.889 (22)
0.859 (24)
Bench2Dex score
59.1
72.9
Appendix
Table 4: Exploration versus refinement on the same 26 Bench2Dex tasks. Agent cost of refinement over the 23 tasks run on our B200 cluster.
Figure 8: Per-task results on Bench2Dex. (a) Success rate and (b) latched stage completion on each task: the program after exploration (light bar) above the program after refinement (dark bar), and the best trained policy on the task (tick). Hollow bar: refinement kept the program from exploration. Triangles: PyRUA-Dex above the best trained policy (15 of 26 tasks in success rate, 14 in stage completion).
SR
LSCR
Val. (of 32)
Refinement
ID
Task
Embodiment
Expl.
Ref.
Expl.
Ref.
Expl.
Ref.
Layouts
Evaluations
Tokens
03
Wine Glass Plate Balance
xArm7 + Ability
77.0
77.0
92.5
93.7
22
26
372
4
175
06
Fruit Bowl Loading
UR5 + RH56DFX
51.0
75.0
81.4
94.2
17
21
358
2
115
07
Citrus Plate Loading
UR5 + RH5DG2
77.5
93.0
86.1
97.8
20
30
412
3
125
08
Frypan Stand & Pour
UR5 + Schunk
0.0
2.5
46.2
60.2
0
0
1500
12
823
09
Cleaner Box Loading
xArm7 + LEAP
72.5
92.0
83.0
95.8
16
27
245
1
58
Appendix
Table 5: Per-task results on Bench2Dex. SR and LSCR: four-channel means (%). Val.: completions on the 32 validation layouts. Layouts, evaluations and tokens (M): the refinement of the task (“–”: counts not kept). ∗ Refinement kept the program from exploration.
Figure 9: 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 .
rand-obj
rand-full
Task
Arms
Expl.
Ref.
Trained
Expl.
Ref.
Trained
Hammer nail
1
70.7 ± 3.1
98.0 ± 3.5
84.7 ( π0.5 )
49.3 ± 6.4
88.0 ± 6.9
38.7 (GR00T)
Click mouse †
1
97.3 ± 1.2
98.7 ± 2.3
85.3 (GR00T)
93.3 ± 1.2
98.0 ± 2.0
74.0 (GR00T)
Pick bucket
1
42.7 ± 9.2
99.3 ± 1.2
84.0 ( π0.5 )
73.3 ± 5.0
91.3 ± 1.2
78.7 ( π0.5 )
Pinch tongs
1
0.0 ± 0.0
100.0 ± 0.0
57.3 (DP-C)
46.0 ± 3.5
91.3 ± 3.1
28.7 (DP-C)
Fold glasses
1
56.0 ± 8.0
88.0 ± 10.6
72.0 ( π0.5 )
46.7 ± 5.8
83.3 ± 11.7
39.3 ( π0.5 )
Appendix
Table 6: DexJoCo per task (success rate, %, mean ± std over three seeds). Expl., Ref.: PyRUA-Dex after exploration and after refinement. Trained: the best of the benchmark’s five trained policies [ 42 ] . Bold: above it. ∗ Not refined. † With a fallback to the fixed camera when the randomized one is absent; without it, 0.0 under rand-obj (rand-obj averages 49.8 and 79.5).
Manufacturer’s model
Identified model
Real hand
Motion
Joints
L
R
L
R
L
R
One joint at 2 ∘ /s
6
0.80
0.81
0.14
0.12
0.13
0.11
Five-finger grasp, slow
16
1.02
1.05
0.13
0.13
0.13
0.13
Five-finger grasp, medium
16
1.53
1.58
0.15
0.14
0.15
0.15
Five-finger grasp, fast
16
3.07
3.09
0.17
0.18
0.22
0.21
Finger wave
8
2.34
2.37
0.13
0.13
0.15
0.14
Appendix
Table 7: System identification of the hands , on motions not used in the fit: root-mean-square difference of joint angles in degrees, median over the joints that move, for the left (L) and right (R) hand. Manufacturer’s and identified: simulation against the real hand. Real hand: the real hand against its own reference.
School of Computer Science and 2Australian Centre for Robotics, The University of Sydney, Australia · College of Connected Computing, Vanderbilt University, TN, USA