MARGIN: A Risk-Aware Agent for Robot Program Refinement

Hongbo Duan, Fan Du, Haipeng Luo, Bin Qian, Zichao Nie +7 more
11/24/2026
cs.ROcs.AI

No confident code implementation found for this paper.

Abstract

Robot-programming agents improve executable control policies through repeated testing and repair, yet binary success saturates while execution risk persists across unseen scenes. We introduce MARGIN, a risk-aware agent that converts successful robot rollouts into actionable evidence for program refinement.

Show full abstract

Its near-miss margin measures the fraction of the execution budget remaining in the slowest successful development rollout. The agent uses this signal to prioritize fragile programs, guide targeted repairs, and select revisions that preserve development success while increasing execution headroom. An exact safe-racing rule accelerates success-based candidate evaluation. We evaluate MARGIN across LIBERO-Pro, LIBERO-90, and Robosuite. In our 80-task LIBERO-Pro reproduction, 78 programs attain perfect development success while accounting for substantial failures on unseen seeds. The near-miss margin predicts held-out failures with an AUC of 0.774, and low-margin programs exhibit 2.97 times higher failure risk. Across two independent evaluation rounds spanning 37 unique LIBERO-Pro tasks, MARGIN reduces executed control steps by 10.7% and 15.0%, with reductions of 18.0-20.0% on LIBERO-90 and Robosuite. Safe racing reduces fixed-sequence candidate-evaluation episodes by 53.5% while retaining identical selections, and paired execution probes improve acceptance decisions by identifying hidden regressions. Together, these results establish near-miss evidence as an effective basis for risk-aware, budget-efficient robot program refinement.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{duan2026margin,
  title  = {MARGIN: A Risk-Aware Agent for Robot Program Refinement},
  author = {Hongbo Duan and Fan Du and Haipeng Luo and Bin Qian and Zichao Nie and Yilin Mi and Yaopeng Tian and Jiake Tian and Siyuan Liu and Yan Gao and Fangming Liu and Xueqian Wang},
  year   = {2026},
  eprint = {2611.32093},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.32093v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.32093.svg)](https://codeofpaper.com/paper/2611.32093)

Discussion