Skip to content
AI.info

Papers

PyRUA-Dex: Learning Programmatic Policies for Dexterous Bimanual Manipulation with Coding Agents

Dexterous manipulation is difficult to learn from demonstrations because collecting accurate, force-aware examples for multi-fingered hands is challenging.

The paper’s first page · arXiv:2611.33144
arXiv
2611.33144 · Preprint · not peer-reviewed
Published
2026-11-24
Authors
Feixiang Ruan, Guodong Lv, Kewei Zhang, Wenbo Huang, Yintianrun Zhang, Qiang Wang, Ruiyang Si, Shunyu Yang, Shulong Jiang, Weicheng Duan, Rui Ni, Jianxin Bi, Lekai Wang, Yuze Fan, Haobo Li, Zeliang Fu, Jiankun Zhang, Duomin Wang, Enze Xie, Daquan Zhou

In plain words

Dexterous manipulation is difficult to learn from demonstrations because collecting accurate, force-aware examples for multi-fingered hands is challenging. PyRUA-Dex instead has coding agents explore how to perform a task, then improve the resulting program across varied simulated scenes so it works more reliably.

AI summary

Overview

  • Research area: Dexterous bimanual robot manipulation and coding-agent-based robot learning.
  • Technical level: Intermediate.
  • Scope: The paper presents PyRUA-Dex, a framework in which coding agents develop Python programs for dexterous robot tasks in simulation, then refine and deploy those programs without an agent running during each task execution.

What This Paper Is About

Dexterous manipulation is difficult to learn from demonstrations because collecting accurate, force-aware examples for multi-fingered hands is challenging. PyRUA-Dex instead has coding agents explore how to perform a task, then improve the resulting program across varied simulated scenes so it works more reliably. The goal is a reusable-at-test-time program that acts from camera, joint-position, and fingertip-touch inputs without calling a language model while controlling the robot.

Key Contributions

  1. A demonstration-free approach to developing robot policies: Coding agents write and test programs for dexterous tasks rather than training a policy on demonstration episodes.
  2. A two-stage development process: Agents first explore possible ways to complete a task and combine successful behaviors; a later refinement stage identifies and improves the least reliable task stage across randomized layouts.
  3. A shared control interface for different hands: The codebox provides perception, arm, hand, and tactile-sensing operations generated from robot descriptions, letting agents use a common style of program across different embodiments.
  4. Evaluation in simulation and on a real bimanual platform: The paper tests the approach on Bench2Dex and DexJoCo and demonstrates frozen programs on a platform with two 22-DoF hands, including piano playing and calligraphy.

Main Findings

  • Bench2Dex performance: PyRUA-Dex scores 72.9, with a 60.6% mean success rate and 82.3% latched stage completion. It exceeds every reported trained policy on the benchmark overall, though not on every individual task.
  • Robustness to changed scenes: Its success rate varies by only 4.1 percentage points across Bench2Dex’s four evaluation channels. The paper attributes this partly to programs measuring the scene during each episode and calculating actions from those measurements.
  • Refinement improves reliability: On Bench2Dex, refinement raises success from 44.6% to 60.6% and improves the score from 59.1 to 72.9, with gains on 20 of the 26 tasks. The paper reports that many failed runs after exploration stopped at a task stage even though a substantial part of the step budget remained.
  • Frozen programs outperform online control in the reported comparison: At the Bench2Dex step budget, PyRUA-Dex completes 61.5% of Full-channel episodes, compared with 25.6% for the online GPT-6 Astra agent on the episodes run at each budget. The online agent reaches 61.5% with ten times the step budget.
  • Performance on DexJoCo: PyRUA-Dex reaches 88.5% success with object randomization and 81.0% with full randomization, exceeding the strongest trained policy reported for those settings. The paper says it leads the best trained policy on each of the 11 tasks in both settings.
  • Real-robot demonstrations: The programs perform tasks including putting cubes in a basket, stacking cubes, opening a box by its fabric loop, writing “Dex,” and playing piano pieces. In simulation, validation completions across the six real-robot tasks increase from 119 of 192 after exploration to 168 of 192 after refinement.
  • Task-family reuse: The researchers report that, after developing a piano-playing skill, new pieces typically take 30 minutes to an hour of iteration. The paper does not report repeated real-robot trial success rates; it measures task reliability primarily in the calibrated simulation.

Methodology in Plain English

The researchers give coding agents a task description, a simulated robot, and a shared set of operations for seeing the scene and moving the arms and hands. Programs use camera images, calibrated camera information, joint positions, and fingertip touch information. They do not receive simulator state or task-stage counts during execution, and they do not call a language model.

Development has two stages:

  1. Exploration: Eight agents work in parallel, each trying the task in its own training layout. They can reset the simulator to retry a stage and share records of attempts and code. A distilling agent reviews the results and selects or combines successful stage functions into a task program.
  2. Refinement: An agent tests the program across randomized layouts, identifies the stage where it most often fails, and edits that part. Candidate versions are evaluated without the agent controlling the robot, and the version with the best held-out record is selected, subject to the paper’s validation rule.

For real-robot tasks, the researchers first build and calibrate a simulation of the robot and its surroundings. They transfer the resulting frozen program to the robot, use observed discrepancies to update the simulation, and continue refinement there. The final program runs without a language model in the control loop.

Why This Matters

Research impact: The work explores an alternative to learning dexterous manipulation from demonstrations. Instead of storing behavior in trained network weights, it develops readable programs that can inspect the scene, check whether actions worked, and retry task stages. Its results also suggest that improving the weakest stage in a multi-stage task can be an effective way to increase overall reliability.

Potential applications demonstrated or suggested by the paper:

  • Piano playing: Programs play melodies with one or both hands, and the paper describes adapting a learned piano skill to new pieces.
  • Calligraphy and writing: A program takes a brush and writes “Dex” on cloth.
  • Sorting and object handling: The system is evaluated on tasks such as sorting and packing, and on the real robot it puts cubes into a basket and stacks cubes.
  • Opening and handling everyday objects: The real-robot demonstration includes opening a box by its fabric loop and holding it open.

Industry relevance: Frozen programs need no language-model calls during execution and run at the robot’s control rate, which can reduce per-episode inference costs compared with an online agent. The approach is relevant to teams working on multi-fingered robots, simulation-based development, and robot systems that need behavior that can be inspected and tested. The paper also identifies an important limitation for practical use: its programs are less effective at tasks requiring sustained force control or managing slip.

Future Directions

  1. Combine programs with learned contact controllers: The paper proposes delegating difficult contact phases to learned controllers while retaining programmatic planning for other parts of a task.
  2. Improve tactile simulation: More faithful simulated fingertip sensing could help programs reason about contact, force, and slip more reliably.
  3. Reuse skills across task families: The task library could seed exploration of related tasks, extending reuse beyond the piano-piece family described in the paper.
  4. Evaluate reliability through repeated hardware trials: The paper calls for systematic real-robot evaluation with success rates measured over repeated trials.

Target Audience

This paper is most useful to robotics researchers and engineers working on dexterous manipulation, robot learning, tactile sensing, or sim-to-real transfer. It will also interest researchers developing coding agents and programmatic policies, as well as readers comparing demonstration-trained policies with systems that develop behavior through simulation and code.

Authors’ 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,…

The full abstract on arXiv
Read the original paper

Related papers