arXiv:2608.31167cs.ROAug 2026

Manuscript Offprint

arXiv:2608.31167

SUN: Persistent Programs For Language-Grounded Control-to-Learning-to-Real Policies

Weiqi Wang, Zhi Li, Yudong Lei, David Martinez, Xiaofeng Gao, Yuxin Jiang, Chenfanfu Jiang, Yingnian Wu, Demetri Terzopoulos, Ran Gong

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

Weiqi Wang1,∗^{1,*}, Zhi Li1,∗^{1,*}, Yudong Lei2^{2}, David Martinez1^{1}, Xiaofeng Gao3,†^{3,\dagger}, Yuxin Jiang1^{1}, Chenfanfu Jiang1^{1}, Yingnian Wu1,†^{1,\dagger}, Demetri Terzopoulos1,†^{1,\dagger}, Ran Gong4,†^{4,\dagger}

1^{1}University of California, Los Angeles 2^{2}University of California, Santa Barbara 3^{3}Amazon 4^{4}Robotics and AI Institute

Abstract—Bridging model-based control and learned policies in long-horizon manipulation has harbored a silent disagreement: control executes specified objectives, learning amortizes that behavior into a reactive policy, yet existing protocols discard task semantics, leaving rewards hand-crafted and behavior drifting from what control verified. We introduce Semantically UNified (SUN) Programs, typed executables where geometric and contact relations are defined once and compiled into aligned Model Predictive Control (MPC) costs, satisfaction predicates, RL rewards, transition guards, and diagnostics. Our system, Kuafu, driven by large vision language systems, automatically synthesizes SUN Programs from language and scene semantics, screens feasibility via MPC, and retains semantics while training stage-conditioned policies. Across nine tasks, Kuafu achieves 82.03% macro-success, outperforming sparse-reward (35.67%) and Stage-BC (24.75%) baselines. At 8192-way scale, it generates 10.57× the successful trajectory time per hour of human teleoperation. With 500 trajectories per task, Kuafu data trains DP3 policies to 46.0% simulation success (vs. 22.4% for alternatives) and 34.7% on physical Franka and Kinova robots. These results establish that simulation-screened task semantics can effectively amortize control into robust policies, without demonstrations or manual dense rewards, unifying symbolic planning and data-driven execution.

Index Terms—Integrated Planning and Learning, Manipulation Planning, Optimization and Optimal Control, Imitation Learning, Datasets for Robot Learning

I. INTRODUCTION

Reinforcement learning (RL) is an attractive method for multi-stage manipulation because it can learn high-dimensional, contact-rich behaviors directly from interaction without requiring an accurate model of the underlying dynamics [1]. However, RL requires dense, structured rewards to expose intermediate progress, yet manually crafting these signals is laborious and brittle. Minor adjustments to reward terms or transition thresholds often yield drastically different behaviors, demanding extensive trial-and-error tuning. While recent methods automate reward generation [2], they suffer from a critical latency: the impact of a candidate reward can only be evaluated after full policy training and rollout. Consequently, each iterative revision incurs the full cost of a training cycle, rendering the search over reward structures inefficient.

Model-based planning and control explicitly encode task structures, defining geometric objectives and transition logic

Figure

Fig. 1. Kuafu preserves the SUN Program across language grounding, MPC feasibility screening, policy learning, and monitored data generation. Downstream visual-policy training and zero-shot deployment rely exclusively on the generated observations and actions, unaware of the original program.

to enable testing and revision under closed-loop dynamics [3, 4]. However, this approach is highly sensitive to model fidelity; successful execution relies on accurate state reconstruction, precise interaction models, and strict adherence to task definitions. In practice, even minor discrepancies, such as model mismatch, observation noise, or specification errors, can cause controller failure. Furthermore, constructing these robust formulations demands substantial manual engineering for every new task [5].

These complementary properties have motivated efforts to bridge model-based control and learning. Most prominently, model-based controllers are used to generate successful trajectories for policy training [5, 6]. While this transfers physically grounded behavior, it discards the objectives, constraints, stage transitions, or satisfaction boundaries that defined why those actions were correct. Although recent methods expose richer task structure to control and learning [7, 8], the representations are often recast as distinct learning signals, forcing stage or completion logic to be reimplemented. As a result, the rewards guiding the policy may drift from the specification validated by control, allowing inconsistencies to surface only after deployment.

We argue that a persistent task program that survives closed-loop screening in simulated physics can significantly enhance multi-stage robot learning. To this end, we introduce the Semantically UNified (SUN) Program, a language-grounded, typed executable artifact. Given a language in-

∗^{*}Equal contribution.

†^{\dagger}Corresponding author.

1^{1}This work does not relate to the author’s position at Amazon.

Figure

Fig. 2. Kuafu grounds language instruction into a typed SUN Program over scene frames, screens feasibility with simulated physics via MPC, and retains it across policy learning and data production. Validated MPC rollouts and program annotations supervise behavioral cloning, while the retained program provides transitions, residual rewards, calibration, and diagnostics to the controller, which then generates sensor-action data for visual policies.

struction, an LLM agent constructs each SUN Program from system-provided scene frames and typed operators, binding their arguments and organizing the geometric relations into ordered stages. Each declared relation is coupled with a satisfaction boundary, and compiled into transition guards, diagnostic view, and aligned objectives for both Model Predictive Control (MPC) and Residual RL. Its end-to-end implementation, Kuafu 1{}^{1} (Figure 1), retains the accepted artifact alongside a stage-conditioned whole-task policy.

Optimization thus serves not merely as a trajectory generator, but as an efficient screener of task knowledge, rejecting faulty objectives and transitions before they incur repeated policy-training cycles. Kuafu then uses the screened SUN supervision to learn contact-rich execution through Residual RL, retaining control's ability to validate task structure while replacing model-dependent online optimization with a deployable policy.

Across nine manipulation tasks, we demonstrate that the value of the persistent program scales with task horizon and cannot be reduced to mere behavior transfer. Compared with reward-learning and online-planning baselines, Kuafu achieves higher success rates with fewer language-model interactions and at a fraction of the computational cost. Furthermore, the persistent program guides the efficient collection of simulation data for sim-to-real learning, yielding significantly higher downstream policy success than comparable data-generation methods. Finally, we validate these results through sim-to-real transfer on physical Franka and Kinova robots, confirming the robustness of our approach in real-world settings.

Our contributions are threefold:

1^{1}Kuafu is a figure in Chinese mythology who chased the sun; our system likewise pursues a persistent SUN Program across control, learning, and deployment.

• We introduce Semantically UNified (SUN) Programs, a typed executable artifact that preserves task semantics across control, learning, and deployment, eliminating the semantic drift common in current handoffs.

• We present Kuafu, a system that synthesizes SUN Programs from natural language, screens them via MPC, and trains stage-conditioned policies without manual reward engineering or seed demonstrations.

• We demonstrate that Kuafu achieves higher success rates with fewer language-model interactions and at a fraction of the computational cost of competing methods, while enabling robust zero-shot sim-to-real transfer on physical robots.

References (32)