CoT-Proxy: Cross-Format Transfer for Distilling Long-Horizon Policies

AK's Picks LLM SFT CoT Agent Agent Planning Agent Eval Benchmarks AI Systems and Hardware MCPKD
推理模型可通过强化学习,或更经济地——在更强教师模型所生成的轨迹(包含其思维链及对应动作)上进行微调——转变为具备长程规划能力的智能体。标准微调方法同时模仿教师的思维链与动作;然而,当前最强大的教师模型多为闭源模型,其思维链被封装在 API 之后,无法直接获取。我们发现,思维链完全可以被完全省略,仅利用教师的动作轨迹即可完成对长程策略的有效蒸馏。具体而言,学生模型在这些动作轨迹上进行训练时,其推理模块保持空白;与此同时,通过在学生自身生成结果构成的回放缓冲区(replay buffer)上施加 KL 散度损失,可有效约束其策略偏离初始模型的程度。出人意料的是,仅凭空白推理模块训练所得的策略,在推理阶段启用思维链后仍能稳健迁移:此时学生以自身风格进行推理,却能精准复现教师的行为模式,我们将这一现象称为“跨格式迁移”(cross-format transfer)。 仅蒸馏 Qwen3.6-27B 的动作输出,便使 Qwen3-4B 在 AppWorld 上的任务成功率从 7% 提升至 18%,Qwen3-32B 则从 12% 提升至 25%。为进一步提升效果,我们引入“思维链代理”(CoT-proxies)——即置于空白推理模块之后、对教师思维过程的简明摘要。该技术使 Qwen3-4B 在 AppWorld 上的表现进一步跃升至 35%。由于动作轨迹与 CoT-proxies 均无需访问教师模型隐藏的原始思维链,该方法可无缝适配各类闭源教师模型。例如,仅利用 GPT-5.6 Luna 公开可见的输出结果及其 API 返回的推理摘要进行蒸馏,Qwen3-4B 在 AppWorld 上的任务成功率即从 7% 大幅提升至 48%,在 SWE-bench Verified 上也从 3% 显著提升至 28%。
Reasoning models become long-horizon agents through reinforcement learning or, more cheaply, through fine-tuning on a stronger teacher's trajectories, which contain the teacher's chain-of-thought as well as its actions. The standard fine-tuning approach imitates both, yet the strongest teachers are closed models whose chain-of-thought is hidden behind an API. We show that the chain-of-thought can be left out altogether and that the long-horizon policy can be distilled from the teacher's actions alone. The student is trained on these trajectories with its reasoning block left empty, while a KL loss on a replay buffer of its own generations limits drift from its initial model. Surprisingly, the policy learned from these trajectories with an empty reasoning block carries over to inference with thinking enabled, where the student reasons in its own style while acting like the teacher, an effect we call cross-format transfer. Distilling the actions of Qwen3.6-27B raises the task success of Qwen3-4B on AppWorld from 7% to 18% and that of Qwen3-32B from 12% to 25%. We further introduce CoT-proxies, short summaries of the teacher's reasoning placed after the empty reasoning block, which raise Qwen3-4B further, to 35%. Since neither actions nor CoT-proxies need the hidden chain-of-thought, the recipe applies unchanged to closed teachers. Distilling GPT-5.6 Luna from its visible outputs and the reasoning summaries its API returns raises Qwen3-4B from 7% to 48% on AppWorld and from 3% to 28% on SWE-bench Verified.
许愿