Rethinking Self-Repair in Code-as-Policy Agents: What Drives Retry Success?
Siddharth Aphale, Ayushman Singh
Abstract
Code-as-policy agents often use execution feedback to retry failed programs. Additional sampling and task guidance can also improve success, leaving the contribution of failure-specific feedback unclear. We study this question in simulated robot manipulation. A fixed lookup selects feedback templates using failure labels and the API variant. A frozen code model generates a fresh program after each scene reset. On the same 252 initial failures, Qwen2.5-Coder-7B recovers 85.3% within five retries, compared with 68.3% for resampling with the same retry cap. The advantage persists under fixed total-token budgets. Feedback from other episodes and fixed task guidance yield similar recovery point estimates, with no detected benefit from matching the coarse failure label. In a separate study, a fixed guided prompt used from the first attempt achieves an observed overall success rate similar to that of template-based feedback. Template-based feedback also lowers recovery on a nut-insertion task requiring a rim grasp, consistent with an incompatible center-grasp instruction. Evaluations of robot self-repair should include resampling, mismatched feedback, and concise, task-compatible static guidance as baselines.
Create a lesson
Related papers
cuRoboV2-Fast: Fast Torque-Limited Collision-Free Motion Planning
Balakumar Sundaralingam, Adithyavairavan Murali, Stan Birchfield
Perceptive Humanoid Motion from Simulation
Siyuan Hu, Abulikemu Abuduweili, Yue Meng et al.
VABAR: A Variational Automation Benchmark for Agentic Robotics
Shuangyu Xie, Kaiyuan Chen, Uksang Yoo et al.
ConDR: Conservative Reachability through Neural Hamilton-Jacobi Subsolutions
Kendra Givens, Taylor T. Johnson, Bryan C. Ward et al.
PyRUA-REAL: Robot Exploration and Adaptive Learning through RSI in the Real World
Qiang Wang, Jianxin Bi, Shulong Jiang et al.
Dexterous Robotic Hands in the Foundation-Model Era: A Full-Stack Survey of Hardware, Data, Cross-Embodiment Transfer, Learning, and Evaluation
Ji Pei