Command Palette
Search for a command to run...
PyRUA-Dex: 코딩 에이전트를 활용한 양손 정교 조작을 위한 프로그램적 정책 학습
PyRUA-Dex: 코딩 에이전트를 활용한 양손 정교 조작을 위한 프로그램적 정책 학습
초록
정교한 조작 학습은 고품질 시연의 부족으로 인해 제한된다. 인간 비디오로부터의 리타게팅은 부정확하고, 원격 조작은 조작자에게 힘 피드백을 제공하지 않으며, 외골격 기반 수집은 확장하기 어렵다. 본 논문에서는 시연 없이도 코딩 에이전트가 프로그램적 정책을 통해 정교한 조작을 개발할 수 있게 하는 프레임워크인 PyRUA-Dex를 제시한다. 프로그램적 정책은 두 단계로 개발된다. 탐색 단계에서는 여러 에이전트가 작업 기술과 이를 조합하는 방법을 병렬로 탐색하고, 증류 에이전트가 성공적인 시도들을 작업 라이브러리와 하나의 프로그램으로 압축한다. 개선 단계에서는 무작위화된 배치를 통해 이 프로그램을 개선하여 강건성과 실행 효율성을 향상시킨다. 시뮬레이션 환경에서 PyRUA-Dex는 Bench2Dex에서 72.9점으로 최고 성능을 달성하고, 완전 무작위화 조건의 DexJoCo에서 81.0%의 성공률을 기록하여 두 벤치마크 모두에서 모든 학습된 정책을 능가한다. 22자유도 양손을 갖춘 양팔 플랫폼에서 수행한 실제 실험에서 PyRUA-Dex는 피아노 연주, 서예 등 다양한 작업을 효율적으로 학습하며, 악보로부터 새로운 곡을 학습하는 데 최소 30분이 소요된다. 이러한 결과는 고품질 정교 조작 시연이 없는 상황에서 코딩 에이전트를 활용한 정교한 조작 정책 개발에 PyRUA-Dex가 효과적인 프레임워크임을 시사한다.
One-sentence Summary
Researchers from Peking University, National University of Singapore, NVIDIA, and other institutions propose PyRUA-Dex, a demonstration-free framework in which coding agents explore and distill programmatic policies in two stages and then refine them under randomized layouts, achieving state-of-the-art simulated manipulation scores of 72.9 on Bench2Dex and 81.0% success on DexJoCo while efficiently learning real-world bimanual tasks such as piano and calligraphy.
Key Contributions
- PyRUA-Dex is a demonstration-free framework in which coding agents develop dexterous manipulation policies as general Python programs for multi-fingered hands. A two-stage process uses parallel exploration and a distilling agent to build a task library and a single program, then refines that program over randomized layouts for robustness and execution efficiency.
- On Bench2Dex, PyRUA-Dex achieves a state-of-the-art score of 72.9, and on DexJoCo it reaches 81.0% success 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 tasks such as piano playing and calligraphy, learning a new piano piece from sheet music in as little as 30 minutes.
Introduction
Dexterous manipulation is currently dominated by imitation learning, vision-language-action models, and world-action models trained on teleoperated episodes. However, high-quality multi-fingered demonstrations are scarce: retargeting is imprecise, teleoperation lacks force feedback, exoskeleton collection is hard to scale, and policies trained on such data remain fragile across new hands and perturbed layouts. Prior coding-agent approaches can produce interpretable programmatic policies, but they usually write a program once or search in a small domain-specific language, and online agents incur large per-episode token and step costs. The authors introduce PyRUA-Dex, an agent-driven framework that develops dexterous manipulation programs without demonstrations, using parallel exploration in simulation followed by stage-wise robustness refinement over randomized layouts. The resulting frozen Python code runs at control rate with no trained model or online language model, achieving state-of-the-art scores on Bench2Dex and DexJoCo and transferring to a real bimanual platform.
Method
The authors introduce PyRUA-Dex, a framework that learns one programmatic policy per task in simulation and deploys it as a frozen program. The learning process is divided into two distinct stages, both executed by general coding agents equipped with a shell, a dedicated simulator instance, and a shared library of perception and control primitives known as the codebox.
As shown in the figure below:
The overall pipeline takes sensor inputs such as RGB cameras, joint positions, and fingertip touch, along with task instructions and the primitive library, to produce a frozen program capable of operating in both simulation and the real world.
In terms of policy representation, every program follows a staged structure consisting of a setup function for scene measurement and a sequence of stage functions fk. Each function fk operates sequentially within the episode step budget, starting from the state left by the previous function. If a function fails, it does not abort the episode. Instead, subsequent functions check their prerequisites, and the runner retries the failed functions as long as steps remain. To handle the complexity of dexterous hands, the codebox models each hand as fingers and a thumb with joints grouped by function. It exposes high-level hand primitives for shaping, grasping, and checking contact, while arm primitives manage frame movements and collision checks. Every primitive returns an outcome with a reason, enabling the program to verify each step.
The problem formulation defines the policy πτ as a mapping from observation history to joint-position targets. A task is evaluated over layouts ξ∼Dτ and measured by K ordered stages. The stage success rate rk(πτ) represents the fraction of layouts reaching stage k among those that reached stage k−1:
rk(πτ)=Eξ[ρk−1(ξ)]Eξ[ρk(ξ)],k=1,…,KThe overall success rate factorizes along the chain of stages:
SR(πτ)=s(πτ)k=1∏Krk(πτ)This factorization motivates the two-stage learning process. Exploration is required to ensure every stage success rate is positive, while refinement focuses on the least reliable stage, as the largest gain in success rate comes from improving the bottleneck.
Stage 1 focuses on exploration to discover a program that completes the task. The authors deploy eight agents in parallel, each assigned to a specific unsolved stage on a dedicated training layout. Agents utilize state resets to retry a stage multiple times without repeating preceding stages. All attempts are written to a shared memory, allowing a dedicated agent to curate progress so that a stage solved by one agent becomes the starting point for others. At the end of exploration, each agent writes a program reproducing its achievements. These programs are evaluated on fresh layouts, and a distilling agent reads the evaluation records to construct a task library. It selects the best program or composes a new one by taking the most reliable stage function from each agent, replacing the current program only if it performs no worse on validation layouts.
Stage 2 shifts to refinement, where a single agent improves the reliability of the program on unseen layouts. Before editing, the program undergoes a stage-wise failure analysis on 32 fresh training layouts to identify the bottleneck stage. The agent then focuses on this bottleneck, opening failing layouts interactively and repairing the stage function with state resets. To maintain efficiency, partial rollouts execute the program only up to the stage under refinement. After every 160 training layouts, the current version is evaluated at the benchmark step budget on fresh and held-out layouts. The agent stops when the task completes on most held-out layouts or the stage success rates plateau. A distilling agent selects the version with the best held-out record, which replaces the exploration program if it meets the validation criteria.
For sim-to-real transfer, the authors build a simulation from the real platform calibration and reconstructed objects. Both learning stages run in this simulation, and the robot executes only the frozen programs. Refinement alternates with real-world execution. Discrepancies revealed by the robot are written back into the simulation as updated physical parameters or task rules, allowing the next refinement round to adapt to the real environment.
Experiment
The evaluation covers two simulated benchmarks, Bench2Dex and DexJoCo, and a real bimanual platform; coding agents first explore programs and then refine them with environment feedback. The simulation experiments show refined programs are more reliable than trained policies and online agents, with refinement repairing bottleneck stages rather than requiring full re-exploration, and the method generalizing across benchmarks with different hands and simulators. Real-world experiments use a calibrated simulation and real-robot feedback to transfer the same pipeline, successfully completing multiple bimanual tasks and enabling a shared piano skill to adapt quickly to new pieces.
PyRUA-Dex sets the best overall result on the 26-task benchmark, exceeding every trained policy in success and stage completion while remaining far more consistent across perturbation channels. Trained policies such as π0.5 and GR00T N1.7 lead among demonstration-based methods in four-channel mean success, but all trained policies lose substantial performance on perturbed channels, especially equivariance. The program-based approach wins on 15 of 26 tasks, with the largest margins on tasks requiring precision and order, though trained policies remain stronger on 11 tasks. PyRUA-Dex achieves the highest score, success rate, and stage completion, and its success varies by only 4.1 points across the four channels, with equivariance as its best channel. Every trained policy loses most on perturbed channels; GR00T N1.7 drops from 39.4 percent with no perturbation to 13.2 percent on equivariance. PyRUA-Dex exceeds the best trained policy on 15 of 26 tasks, with the widest margins on bimanual piano melody, ball sorting, and baking-tray preparation. Among trained policies, π0.5 and GR00T N1.7 have the highest four-channel mean success, while Diffusion Policy has the lowest.
PyRUA-Dex outperforms all trained policies on DexJoCo in both the object-randomized and fully randomized settings, and its frozen programs also exceed the online agent at the benchmark step budget while needing no tokens per episode. It loses less success than trained policies under full randomization, and refinement provides larger gains for object randomization than for full randomization. The results indicate the approach generalizes to a different simulator and hand using only success feedback. PyRUA-Dex exceeds the strongest trained policy in both randomization settings and leads on every DexJoCo task. A single PyRUA-Dex program serves both settings with a smaller drop under full randomization than trained policies, which were trained separately per setting. At the standard step budget, the frozen program outperforms the online agent while using no tokens per episode, and the agent needs twice the budget to match it.
Iterative refinement with real-robot feedback improved validation success across six real-robot tasks from about three-fifths to nearly seven-eighths of possible layouts. Gains were largest for manipulation tasks that started with low exploration success, while piano tasks reached near-ceiling performance after several rounds. The learned piano skill also transferred across new pieces, reducing iteration time to under an hour. Total validation success rose from 119 to 168 of 192 possible layouts across all tasks. Difficult tasks showed the strongest relative gains, with stacking three cubes improving from 6 to 30 layouts and writing from 3 to 14. A shared piano skill allowed new pieces to be produced after 30 minutes to an hour of iteration.
The experiments evaluate PyRUA-Dex in three settings: a 26-task benchmark with perturbation channels, DexJoCo transfer to a different simulator and hand, and iterative real-robot refinement. The program-based method consistently outperforms trained policies, particularly under perturbations and on tasks requiring precision and order, while also generalizing across simulation environments and improving substantially with real-robot feedback. Overall, the results demonstrate strong robustness, cross-platform generalization, and practical task acquisition through refinement.