Manuscript Offprint

arXiv:2610.23128

SCOPE: Selective Certification of Program Edits for Embodied Heuristic Learning

Junyang Shu, Bingqing Wei, Jishuo Li, Zheqi He, Yongtao Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Embodied heuristic learning must balance strategic adaptation with the preservation of previously successful behavior. Local repairs may leave structural failures unresolved, whereas broader revisions can introduce regressions that are costly to detect through repeated environment interaction. We introduce SCOPE (Selective Certification Of Program Edits), which uses failed and successful executions as complementary evidence for program revision. Frontier-guided program search annotates a shared diagnostic graph with execution evidence to distinguish supported progress from unresolved checks. Selective behavioral certification uses stateful API replay to restore recorded responses and mutations, checking whether edits preserve selected historical successes. Diagnosis and certification feedback, supplemented by sparse environment diagnostics, guide consecutive repairs across configurations. SCOPE outperforms the strongest baseline in both simulation and real-world tasks. On LIBERO-PRO and Robosuite, it achieves mean success rates of 80.66% and 84.48%, with respective gains of 6.51 and 3.48 percentage points. Our code is available at https://github.com/VDIGPKU/SCOPE.

1 INTRODUCTION

Robot control programs provide an explicit representation of how perception, decisions, and actions compose into task behavior. Language models can generate these programs from natural-language instructions, using control flow and API calls to express policies and situated task plans (Liang et al., 2023; Singh et al., 2023). Environment feedback then provides a basis for adapting behavior when execution departs from the plan (Huang et al., 2023b). This supports embodied heuristic learning, in which interaction improves task-specific decision rules while language-model parameters remain fixed. The resulting program must work across configurations, so learning requires more than solving the latest observed failure.

Execution-driven systems build on this approach through iterative program search. CaP-X studies coding agents that compose robot APIs and revise programs through interactive execution, while RHO optimizes policy repositories using execution feedback and validation-based candidate selection (Fu et al., 2026; Elmaaroufi et al., 2026). Reusable knowledge provides another source of improvement. Playful Agentic Robot Learning acquires code skills through self-directed exploration, and ASPIRE combines multimodal execution traces, validated repair knowledge, and evolutionary program search (Zhang et al., 2026; Lu et al., 2026). These approaches establish execution as both a source of learning evidence and a means of evaluating candidate programs. As revisions accumulate, the effects of each edit on previously successful behavior become an additional concern.

The difficulty is that a failure reveals where execution broke down, but the required change may extend beyond that point. A failed lift, for example, may originate in an unstable grasp, requiring the grasping stage to be redesigned rather than the lifting height to be adjusted. Local repairs can leave such structural failures unresolved, whereas broader revisions can alter decisions that supported success in other configurations. Success on the current configuration provides no direct evidence about those earlier behaviors. Repeating environment execution across historical successes can assess the change, but spends interaction budget on checking old behavior as well as discovering new behavior. Effective search therefore needs evidence to guide the extent of a repair and assess its consequences for prior successes.

Our central insight is that failed and successful executions provide complementary evidence for program revision. Failed traces guide diagnosis and revision planning, while successful traces can be replayed to assess whether earlier behavior is preserved after an edit. By executing a revised program against the exchanges recorded in a successful trace, we can check whether it makes the same API requests and consumes the full trace with normal termination. Under faithful recording and deterministic execution, with all relevant external interactions captured at the API boundary, a complete match certifies success on the recorded instance. A divergence instead identifies where behavior changes and provides a target for further environment diagnosis. This turns historical interaction into feedback for subsequent program edits.

We introduce SCOPE (Selective Certification Of Program Edits), which couples frontier-guided program search with this selective certification feedback. SCOPE first constructs a shared diagnostic graph whose checks describe observable task progress and whose edges encode prerequisites. Execution evidence annotates the graph to identify a failure frontier consisting of unresolved checks with supported prerequisites. This frontier and its dependencies guide repair planning, allowing the model to select among local repair, stage redesign, and strategy regeneration. Revisions accumulate in a shared working program across development configurations.

SCOPE accepts the working program whenever it succeeds on a configuration. If this changes the accepted source, SCOPE samples historical successes for stateful full-trace API replay. Replay preserves recorded responses and public-state mutations, allowing later program decisions to depend on the same effects as in the original execution. For selected configurations that remain uncertified, sparse environment diagnostics provide fresh outcomes and failure evidence. These observations feed back into the same repair loop. Certification thus informs subsequent search through evidence of preserved behavior and changed interactions.

We evaluate the frozen programs on held-out configurations in LIBERO-PRO (Zhou et al., 2025) and Robosuite (Zhu et al., 2020). SCOPE achieves mean success rates of 80.66% and 84.48%, exceeding the strongest baseline on each benchmark by 6.51 and 3.48 percentage points, respectively. Component ablations support the roles of failure-frontier guidance, certification feedback, and explicit revision-level planning. Across the reported settings, full-trace replay takes 4.62–6.59% of the corresponding original environment execution time, demonstrating the low cost of obtaining behavioral evidence from recorded interactions.

Our contributions are:

• A program-search framework that uses execution evidence to localize failure frontiers and plan repairs at different revision levels, integrating historical-success feedback into consecutive repair.

• A selective certification mechanism based on stateful full-trace API replay, with an instance-specific success guarantee under the stated execution assumptions and sparse diagnostics for further repair.

• An evaluation on LIBERO-PRO and Robosuite showing improved mean held-out success over the strongest baseline on each benchmark, together with real-world experiments demonstrating strong performance on tasks requiring base–arm coordination, bimanual coordination, and fine manipulation.

References (56)

  • SAM 3: Segment anything with concepts
  • CodeT: Code generation with generated tests
  • Teaching large language models to self-debug
  • ConRFT: A reinforced fine-tuning method for VLA models via consistency policy
  • Molmo2: Open weights and data for vision-language models with video understanding and grounding
  • PaLM-E: An embodied multimodal language model
  • RHO: Your coding agent is secretly a roboticist (opens arXiv in a new tab)
  • GraspNet-1Billion: A large-scale benchmark for general object grasping
  • CaP-X: A framework for benchmarking and improving coding agents for robot manipulation (opens arXiv in a new tab)
  • FLaRe: Achieving masterful and adaptive robot policies with large-scale reinforcement learning fine-tuning
  • VoxPoser: Composable 3D value maps for robotic manipulation with language models
  • Inner monologue: Embodied reasoning through planning with language models
  • ReKep: Spatio-temporal reasoning of relational keypoint constraints for robotic manipulation
  • Do as i can, not as i say: Grounding language in robotic affordances
  • SUREFlow: State-space uncertainty-aware REsidual flow matching for robust robot manipulation
  • Scalable deep reinforcement learning for vision-based robotic manipulation
  • MolmoAct: Action reasoning models that can reason in space
  • SimpleVLA-RL: Scaling VLA training via reinforcement learning
  • Code as policies: Language model programs for embodied control
  • LIBERO: Benchmarking Knowledge Transfer for Lifelong Robot Learning
  • What can RL bring to VLA generalization? an empirical study
  • ASPIRE: Agentic /Skills discovery for robotics (opens arXiv in a new tab)
  • Precise and dexterous robotic manipulation via human-in-the-loop reinforcement learning
  • LIV: Language-image representations and rewards for robotic control
  • Eureka: Human-level reward design via coding large language models
  • Self-Refine: Iterative refinement with self-feedback
  • LEVER: Learning to verify language-to-code generation with execution
  • Diffusion policy policy optimization
  • Mathematical discoveries from program search with large language models
  • Reflexion: Language agents with verbal reinforcement learning
  • RFTF: Reinforcement fine-tuning for vision-language-action models with temporal feedback
  • Feat2Go: Visual feature-grounded value estimation for embodied reinforcement learning (opens arXiv in a new tab)
  • ProgPrompt: Generating situated robot task plans using large language models
  • Voyager: An open-ended embodied agent with large language models
  • ReAct: Synergizing reasoning and acting in language models
  • Statler: State-maintaining language models for embodied reasoning
  • Playful agentic robot learning (opens arXiv in a new tab)
  • X-VLA: Soft-prompted transformer as scalable cross-embodiment vision-language-action model
  • Language agent tree search unifies reasoning, acting, and planning in language models
  • LIBERO-PRO: Towards robust and fair evaluation of vision-language-action models beyond memorization (opens arXiv in a new tab)
  • robosuite: A modular simulation framework and benchmark for robot learning (opens arXiv in a new tab)
  • Language models connect task instructions to embodied action through grounded planning, multimodal representations, and structured control interfaces (Ichter et al., 2023; Driess et al., 2023; Huang et al., 2025)
  • We use LIBERO-PRO (Zhou et al., 2025), an extension of LIBERO (Liu et al., 2023), and Robosuite (Zhu et al., 2020)
  • We deploy GLM-5.3-Flash locally on eight NVIDIA PRO 6000 GPUs, using the max reasoning setting and an agent sampling temperature of 1.0
  • Each development configuration permits at most three main-search repairs and one additional follow-up repair
  • For our GLM-5.3-Flash simulation experiments, we repeat the complete heuristic-learning and held-out evaluation pipeline three times
  • Task macro-averages (%) with GLM-5.3-Flash over 60 LIBERO-PRO task-setting pairs and seven Robosuite tasks
  • The platform has a 2-DoF mobile base, stands 1.64 m tall, and provides a nominal arm reach of 765 mm (X Square Robot, n.d.a)
  • ASPIRE (Lu et al., 2026) uses five search rounds with eight candidate programs per round
  • Compare their executions on the same instance $\xi = (x_0, \omega, \kappa)$, sharing initial conditions, randomness, and execution semantics
  • The certificate $C_t(P, w) = 1$ requires a complete match against the stateful tape $T_w$ and normal termination, as defined in Section 3.3
  • Suppose the correspondence holds before event j
  • The $T$ search trials include follow-up executions
  • Their aggregate cost is
  • Total learning cost additionally includes search executions, model queries, record processing, and orchestration
  • The authors take full responsibility for its content