Source-linked AI summary
PyRUA-REAL: Robot Exploration and Adaptive Learning through RSI in the Real World
Qiang Wang, Jianxin Bi, Shulong Jiang, Ruiyang Si, Wenbo Huang, Kaiqi Chen, Jiaxin Li, Liyun Li, Xuanyi Li, Daquan Zhou
TL;DR
Coding agents can translate instructions into executable robot behavior, but how physical interaction can produce lasting improvements remains an open question. PyRUA-REAL retains experience as memory and reusable skills while developing programs through real-world exploration and code refinement. It reports 91.1% average development success across eight tasks and 84.82% on 42 RoboDojo tasks.
Problem
The paper asks how coding agents can turn physical interaction into persistent robot capabilities, amid challenges in experiment choice, ambiguous execution feedback, robustness, transfer, and agent-free reuse.
Source: §1 · pp. 1–2Method
PyRUA-REAL uses researcher–engineer collaboration to explore and refine robot programs, retaining environmental facts, outcomes, and reusable implementations for later experiments and deployment.
Source: §1 · p. 2Results
91.1% average development success across eight manipulation tasks; on 42 RoboDojo tasks, PyRUA-REAL achieves 84.82%, versus 50.35% for PyRUA-Lean and 22.48% for GPT-6-Astra.
Source: §1 · p. 3Takeaways & Limitations
Real-world exploration can produce progressively improved robot programs that retain acquired capabilities and execute without repeated agent decisions.
Source: §6 · p. 16Fixed programs may still require online agent decisions when encountered situations exceed their implemented perception, control, and recovery routines.
Source: §5 · p. 16
Abstract
from arXiv · showhide
Coding agents powered by models such as GPT-6-Astra connect spatial reasoning with executable robot behavior, raising the question of how such agents can produce lasting improvements in robot capabilities from physical interaction. In this work, we study embodied recursive self-improvement (RSI) through real-world exploration, code refinement, and deployment using PyRUA-REAL, a framework in which coding agents retain interaction experience as persistent memory and reusable executable skills that inform subsequent exploration and improvement. Our empirical study places physical manipulation at the center of the improvement process, examining how agents collaborate, what kinds of execution feedback support effective code refinement, and how task specifications and previously acquired skills influence robustness and task transfer. We further investigate the efficiency and capability of the resulting programs when deployed without involving an online agent for decision-making. Across eight real-world tasks, PyRUA-REAL achieves an average success rate of 91.1%. In complementary evaluation on 42 tasks from the RoboDojo benchmark, it achieves an average success rate of 84.4%. This study provides empirical guidance for turning physical exploration into reusable robot skills that support continued improvement and robust, efficient deployment.
1 Introduction
The introduction frames embodied RSI as turning physical interaction into persistent robot capabilities, then presents PyRUA-REAL as a framework for exploring, refining, and deploying reusable programs. Its study examines how capabilities improve across real-world tasks and compares development results with RoboDojo performance.
1 Introduction
- Coding agents can execute code, inspect observations, and adapt later actions through feedback, but the introduction asks how interaction experience can persist across attempts.Prior work has explored experience-based adaptation and iterative code modification with model parameters fixed, alongside simulation- and interaction-based robotics approaches.Source: §1 · p. 1
- The study examines how real-world interaction produces skills, refines them beyond first success, and converts them into programs for deployment.It investigates coordination, execution feedback, task requirements, and prior skills as factors shaping revision efficiency, robustness, and transfer.Source: §1 · pp. 2–3
- Physical exploration raises questions about experiment choice, code revision, and when to reconsider an approach, while execution failures can have ambiguous causes.Success under one configuration does not establish robustness to changed object positions, orientations, or task requirements, nor does it establish reuse or agent-free execution.Source: §1 · p. 2
- PyRUA-REAL pairs a researcher agent that selects objectives and technical approaches with an engineer agent that implements programs, runs trials, and diagnoses failures.A persistent repository retains environmental facts, attempted approaches, outcomes, and reusable implementations; deployed code can run without runtime language-model calls while responding to live observations.Source: §1 · p. 2
- 91.1% average development success across eight manipulation tasks; on 42 RoboDojo tasks, PyRUA-REAL reaches 84.82%, versus 50.35% for PyRUA-Lean and 22.48% for GPT-6-Astra.Development success aggregates attempts across code revisions; frozen-program performance is evaluated separately.Source: §1 · p. 3
2 Related Work
Related work connects executable robot control with experience-driven agent improvement and embodied policy refinement. PyRUA-REAL emphasizes carrying exploration, improvement, and deployment through the real world.
LLM for Robotic Control
- Executable robot programs support efficient closed-loop control without continuous language-model intervention, while coding agents can progressively refine reusable primitives and task-specific policies.Prior work spans programmatic control, agent-driven control, code-based approaches, and integrations of skills with learned world and action models.Source: §2 · p. 3
Agentic RSI
- Agentic RSI methods retain experience or iteratively modify agent scaffolds, execution logic, and search procedures without necessarily updating model parameters.PyRUA-REAL extends this direction to physical interaction by accumulating execution-grounded knowledge and reusable control capabilities.Source: §2 · p. 3
Embodied Recursive Self-Improvement
- Embodied RSI includes simulation-based skill evolution, direct physical experimentation, and reusable program libraries; PyRUA-REAL emphasizes real-world exploration through deployment.The paper distinguishes this emphasis from treating physical robots only as a final validation platform.Source: §2 · p. 3
- Figure 2 depicts researcher–engineer collaboration, retained facts, memories, and code, and live feedback during execution.These elements accompany the related-work discussion of executable programs and reusable robot capabilities.Source: Figure 2 · p. 4
3 Methodology
PyRUA-REAL frames embodied improvement as iterative program revision from robot-execution evidence, with experience retained for later use. Its researcher–engineer workflow connects task-level decisions, implementation and testing, and reusable skill development.
3.1 Problem Formulation
- The system updates policies, skills, or experience from execution evidence while keeping foundation-model parameters fixed, and evaluates revisions in subsequent tests.It considers policy performance and interaction and computational costs when seeking effective policies within development budgets.Source: §3.1 · p. 4
3.2 System Overview
- PyRUA-REAL develops task programs from a goal and task specification, then runs the resulting program independently of the development agents.The execution component uses live observations, while execution frames, states, and logs support later revisions.Source: §3.2 · p. 5
3.3 Coding Agents Collaboration
- The researcher chooses approaches and experiment stopping criteria, while the engineer implements and tests changes, diagnoses problems, and reports outcomes for reassessment.An experiment may include multiple code revisions and focused tests without repeating the complete task each time.Source: §3.3 · p. 5
3.4 Persistent Experience and Skill Evolution
- Persistent experience links environmental facts and problem-solving records to reusable code, which agents retrieve, adapt, test, and selectively retain as skills.The repository preserves findings from successful and unsuccessful attempts, with retained implementations linked to observed applicability and limitations.Source: §3.4 · pp. 5–6, Table 1 · p. 6
4 Experiments and Empirical Findings
The experiments ask how coding agents can turn physical interaction into progressively more capable robot programs. They examine real-world development and deployment alongside complementary RoboDojo evaluations and studies of coordination, feedback, robustness, and transfer.
4.1 Research Question and Hypotheses
- The study asks how coding agents should turn physical interaction experience into progressively more capable robot programs.Its hypotheses address sustained improvement, coordination, feedback, robustness, skill transfer, and deployment efficiency.Source: §4.1 · p. 6
4.2 Robotic Platforms and Task Settings
- Eight physical manipulation tasks on a dual-arm Franka platform span varied task requirements, while RoboDojo contributes 42 tasks across five capability groups.The physical tasks include tic-tac-toe, stacking, Hanoi, Ethernet insertion, towel folding, Push T, block sorting, and block storage.Source: §4.2 · pp. 6–8
4.3.1 Real-world capability acquisition with agent
- Agent-free programs were developed for seven of eight physical tasks; Ethernet insertion remained unsuccessful without online assistance, while acquisition time ranged from 1.5 to 45 hours.Across the seven tasks with agent-free solutions, development success ranged from 91.67% to 100%, aggregating attempts across revisions rather than measuring a frozen program.Source: §4.3.1 · p. 8
4.3.2 RSI beyond the first successful rollout
- Stacking revisions reduced median cycle time from 285.3 to 156.0 s and estimated lateral error from 2.69 to 0.44 mm; tic-tac-toe and Hanoi also changed across revisions.Tic-tac-toe timing fell from 577 to 535 s after a motion-strategy revision; Hanoi’s final version combined 793 s cycle time with 100% full-cycle success, though intermediate revisions did not improve both together.Source: §4.3.2 · pp. 9–10
4.3.3 Additional Evaluation on RoboDojo
- 84.42% capability-averaged success across 42 RoboDojo tasks, versus 50.35% for PyRUA-Lean and 22.48% for GPT-6-Astra, with gains concentrated in precision and long-horizon tasks.Generalization is slightly lower than PyRUA-Lean; evaluations used different or unspecified seeds.Source: §4.3.3 · p. 10
4.4 Agent Coordination for Exploration
- A reviewer increased the median result-to-next-trial interval to 16.9 minutes from 3.4 minutes; task-level reassessment was followed by success in all three physical histories.Those histories recorded 3/3 successes for stacking, 1/1 for towel folding, and 3/3 for Hanoi; the sequential phases do not isolate reassessment’s effect.Source: §4.4 · pp. 11–12, Figure 10 · p. 12
4.5 RSI Based on Execution Feedback
- Richer feedback raised mean success from 15.3% with basic reports to 54.2% with video and joint trajectories, alongside lower mean optimizer time than basic reports.The video-and-trajectory condition used 25.4 minutes versus 31.8 minutes; numeric-state feedback additionally provided privileged object-state diagnostics, and each task–condition had one development session.Source: §4.5 · pp. 12–13, Figure 11 · p. 13
4.6 Towards More Robust Robot Programs
- Explicit workspace boundaries and target ranges accompanied success gains of 11.4–36.6 percentage points across all five RoboDojo categories.Open tasks rose from 14.4% to 51.0%, while Swap blocks declined from 68.2% to 59.1%; the comparison also includes additional exploration.Source: §4.6 · p. 13, Figure 12 · p. 14
5 Discussion
The discussion identifies method choice, human assistance, and online decision-making as boundaries on embodied self-improvement and independent deployment.
5 Discussion
- Repeatedly refining an unsuitable method can limit progress, as localization deadlocks and improvement after a human suggested SigLIP illustrate.The authors recommend explicitly comparing alternative perception and control strategies when the current approach repeatedly fails.Source: §5 · p. 16
- Human guidance can expand the methods considered and resolve false-contact deadlocks, while unaided exploration produced a Hanoi recovery strategy later reused in tic-tac-toe.The cases show that intervention shapes both immediate progress and retained recovery skills, but do not establish an optimal assistance level.Source: §5 · p. 16
- Successful exploration and program conversion do not ensure offline programs can handle situations beyond their implemented perception, control, and recovery routines.Ethernet insertion still required online decisions between programmed motion stages; when to invoke an agent and incorporate its decisions into reusable code remains open.Source: §5 · p. 16
6 Conclusion
The conclusion presents PyRUA-REAL as a real-world embodied RSI framework that retains physical experience in memory and executable skills. Its experiments connect exploration-driven program improvement with independent execution and efficient deployment.
6 Conclusion
- PyRUA-REAL investigates embodied RSI through real-world robot experiments in which coding agents accumulate physical experience as memory and executable skills.The framework's experience is retained to inform subsequent exploration and improvement.Source: §6 · p. 16
- Physical exploration produces progressively improved robot programs that retain acquired capabilities and execute without repeated agent decisions.Source: §6 · p. 16
- The study connects recursive self-improvement through physical interaction to efficient deployment, assessing the resulting programs' robustness and independence.The authors describe the findings as an empirical basis for developing embodied RSI systems that turn physical experience into reliable robot capabilities.Source: §6 · p. 16
A Execution Feedback: Protocol, Costs, and Diagnostic Traces
The diagnostic study compares feedback conditions across four tasks using persistent exploration sessions, specified development and test layouts, and repeated program revisions. Its protocol distinguishes ordinary feedback from privileged object-state diagnostics and tracks success across revisions.
A Execution Feedback: Protocol, Costs, and Diagnostic Traces
- Each task-condition session uses GPT-6-Astra with medium reasoning effort, isolated workspaces, one retained session through revision 5, and feedback only from development layouts 5 and 6.Test layouts are 32–37, except Deposit coin layout 35 is replaced by 44 after a zero-action initialization failure; test outcomes are not supplied to the optimizer.Source: A Execution Feedback: Protocol, Costs,… · p. 19
- The study defines eight feedback conditions across four tasks, with all conditions including B and video comprising three synchronized camera recordings at 25 Hz.The main-text comparison focuses on B, BS, and BVJ; BS supplies privileged ground-truth object states to the revising agent.Source: Table 2 · p. 19, A Execution Feedback: Protocol, Costs,… · p. 19
- Programs share RGB-D, calibration, and robot-state inputs, while object-state feedback is additionally supplied in three marked privileged conditions.Source: A Execution Feedback: Protocol, Costs,… · p. 19
- The 32 task-condition sessions each include an initial generation and five revisions, with final programs tested on six layouts at three executions per layout.This protocol totals 576 executions; Figure 11 uses revision 5, while Figure 15 shows full revision trajectories.Source: A Execution Feedback: Protocol, Costs,… · p. 19, Figure 15 · p. 19
A.1 Observed Development Cost
The selected-version analysis relates higher success to lower cumulative optimizer time, while its retrospective test-based selection limits online interpretation. The section distinguishes selected-version costs from full exploration costs.
A.1 Observed Development Cost
- Selected versions are chosen retrospectively using test scores, selecting the highest score when any revision reaches at least 4/6 successes and otherwise retaining revision 5.All sessions continue through revision 5, so selected-version costs measure work through the selected revision, whereas full exploration costs include all five revisions.Source: §A.1 · p. 20
- R2 = 0.691 describes the association between selected-version success and lower cumulative optimizer time across the eight condition means.Costs sum recorded optimizer turns, including retries, from initial generation through the selected revision.Source: §A.1 · p. 20
- 58.3% selected-version success with video and joint trajectories compares with 12.5% for basic outcomes; cumulative optimizer time is 19.1 versus 31.8 minutes and tokens are 2.43 versus 3.54 million.Figure 16 plots selected-version success against development cost; its points average four tasks under each feedback condition.Source: §A.1 · p. 20, Figure 16 · p. 20
- Full exploration costs include initial generation and all five revisions, with optimizer time summing agent-turn durations and tokens including cached input.Simulator wall time covers development evaluations and excludes queueing; test evaluation costs are excluded.Source: §A.1 · p. 20
A.2 Evidence Actually Inspected in Physical Tasks
The physical-task traces show how the agent used execution records and images to diagnose perception and depth errors, then checked revisions through reprocessing, regression tests, and a subsequent physical run.
Evidence actually inspected in physical tasks
- The evidence distinguishes direct image inspection from diagnoses recorded in experiment logs, and the 178 static frames are not manipulation trials.The same-image comparison is a verifier repair, not a new physical placement.Source: §A.2 · pp. 21–22
- The failed placement was rejected at 80.6 mm against a 25 mm threshold because two touching rings shared one detected contour, directing the revision to segmentation.The helper splits an outer contour only when it contains exactly two holes larger than 60 pixels, using their centers’ bisector.Source: §A.2 · p. 21
- Reprocessing the tic-tac-toe image yields five detections and a nearest-ring error of 5.7 mm; the agent also runs 50 regression checks and examines 178 fresh static perception frames.The physical restart then confirms the initial stock transfer and first blue and red placements.Source: §A.2 · p. 21
- The towel trace links six failed re-grasps to a stored table plane 25–35 mm above the local depth fit, potentially leaving the gripper pads above the cloth.The next recorded unfold attempt captures the towel on its first descent; the figure’s code comparison is reconstructed pseudocode, not a recovered source diff.Source: §A.2 · p. 22, Figure 18 · p. 22
- The towel revision uses the local wrist plane only when its fit has RMS error below 3 mm and at least 3,000 points, while retaining the force probe and plane-relative descent targets.The recorded recovery is one unfold-stage event, not a repeated full-task success rate; the following cycle stops on a connection error.Source: §A.2 · p. 22
B Generalization under Explicit Task Requirements: Per-Task Results
Table 4 reports per-task hidden-layout success rates before and after survey-assisted improvement, with evaluation conditions specified in the accompanying text.
Generalization under Explicit Task Requirements: Per-Task Results
- Both policies are evaluated on identical hidden layouts, excluding layouts used to select the baseline policy.Programs receive RGB-D observations, including simulator-rendered depth.Source: B Generalization under Explicit Task… · p. 23
- Table 4 reports per-task hidden-layout success rates before and after survey-assisted improvement on 32 tasks.Its delta is the absolute change in percentage points.Source: Table 4 · p. 23
C Physical Task Configurations and Completion Criteria
The physical task suite spans alternating bimanual play, ordered stacking and disk manipulation, insertion, deformable-object folding, pushing, sorting, and collection, with completion criteria defined per task.
Physical Task Configurations and Completion Criteria
- Tic-tac-toe requires alternating legal moves by two arms on a 3 × 3 board and ends in a win or draw; complete-cycle measurements include clearing and resetting the pieces.Source: C Physical Task Configurations and… · p. 24
- Five-block stacking forms a freestanding tower, with complete-cycle measurements also including dismantling it and returning the four upper blocks.Source: C Physical Task Configurations and… · p. 24
- Tower of Hanoi sorts eight disks onto the middle peg by size, testing repeated hole–peg alignment rather than the conventional three-peg transfer puzzle.Complete-cycle measurements include removing the disks and returning them to the table.Source: C Physical Task Configurations and… · p. 24
- Ethernet insertion succeeds when the connector remains seated after release and retreat; electrical connectivity is not evaluated.Source: C Physical Task Configurations and… · p. 24
- Towel folding covers a two-arm fold of a flat deformable towel, while Push T aligns a T-shaped object by pushing without grasping or lifting.Source: C Physical Task Configurations and… · p. 24
- Block sorting places identified orange and dark-blue blocks into matching bins, while block storage requires collecting all scattered blocks into a bowl; recovered missed grasps remain in the same trial.Source: C Physical Task Configurations and… · p. 24
D Full RoboDojo Results
The full RoboDojo comparison is presented as a leaderboard snapshot, with the reported PyRUA-REAL values taken from its official evaluation and seed differences limiting direct comparison.
Full RoboDojo Results
- The official PyRUA-REAL values are documented in its evaluation summary; seeds for the other baseline rows are unspecified in the leaderboard snapshot.The paper’s separately reported self-run is not used here.Source: D Full RoboDojo Results · p. 25
- The table’s final two columns weight the five capability groups equally, and its capability columns report success rates.Best values in each column are bold.Source: Table 5 · p. 25
- The comparison is not matched by evaluation seed: the reported PyRUA-REAL evaluation uses seed 0, while its official evaluation uses seed 3.Source: Table 5 · p. 25