CaPtain:用于后训练代码即策略机器人代理的流水线
研究论文 · 2026/11/02
CaPtain 是一个开放的后训练流程,旨在将小型开源视觉语言模型(VLM)训练为具备代码即策略(CaP)能力的机器人智能体,无需预训练的视觉语言动作模型(VLA)、前沿模型或测试时的特权状态。该流程在 CaPtain-Harness 中训练和部署策略,该框架提供跨仿真和真实硬件的低级感知、几何和受保护运动原语。首先使用 GPT-6 Astra 生成的合成轨迹进行监督微调(SFT)以对齐基础模型,然后应用多轮强化学习(RL)。针对多轮 RL 中信用分配难题,引入物理评论家(physical critic),其读取策略从未见过的特权模拟器状态,并根据每个请求对预测成功概率的改变程度进行信用分配。从 Qwen3.5-4B(零样本成功率 0%)开始,CaPtain-4B 在 SFT 后达到 55.4% 的 LIBERO 留出集成功率,RL 后达到 73.8%。在 LIBERO-PRO 上达到 78.5%,超越多个前沿模型智能体,且 RL 增益在三个扰动套件中持续存在(+17.6 至 +21.2 点)。无需目标域训练,在 SimplerEnv WidowX 上达到 83.3%,在 CaP-Bench 上超越前沿模型,并在仅仿真适配后运行于真实机器人。所有代码、数据和模型权重均已发布。
该工作首次展示了如何通过后训练将小型开源 VLM 转化为高性能代码即策略机器人智能体,解决了多轮 RL 中的信用分配难题,并在多个基准上超越前沿模型,且成功部署于真实机器人,对机器人学习和智能体训练领域具有重要推动意义。
Across coding, web, and tool-use tasks, language-model agents are now routinely trained with the same recipe: supervised fine-tuning (SFT) to learn the interface, then multi-turn reinforcement learning (RL) to master it. Code-as-policy (CaP) casts robot manipulation in the same form, as the policy writes code against robot APIs and reads back the results, so the same recipe should apply. Yet existing CaP agents sidestep training: they either prompt closed frontier models or delegate manipulation to pre-trained vision-language-action models (VLAs) and high-level skills, while small open vision-language models (VLMs) fail outright. We present CaPtain, an open post-training pipeline that turns a small open VLM into a capable CaP agent, with no VLA, frontier model, or privileged state at test time. CaPtain trains and deploys the policy inside CaPtain-Harness, which exposes low-level perception, geometry, and guarded-motion primitives across simulation and real hardware. We first align the base model via SFT on synthetic trajectories generated with GPT-6 Astra, then apply multi-turn RL. Multi-turn RL must credit tens of agent requests, whose physical effects often surface turns later, from a single end-of-episode outcome. We therefore introduce a physical critic that reads privileged simulator state, never seen by the policy, and credits each request by how much it changes the predicted chance of success. Starting from Qwen3.5-4B (0% zero-shot), CaPtain-4B reaches 55.4% held-out LIBERO success after SFT and 73.8% after RL. On LIBERO-PRO, it reaches 78.5%, surpassing several frontier-model agents, and its RL gains persist across three perturbation suites (+17.6 to +21.2 points). Without target-domain training, it attains 83.3% on SimplerEnv WidowX, exceeds frontier models on CaP-Bench, and runs on a real robot after simulation-only adaptation. We release all code, data, and model weights.