通过同策略上下文蒸馏将智能体经验内化到扩散模型权重中
研究论文 · 2026/10/08
将图像生成模型置于智能体框架中可有效提升文本到图像任务的表现:该框架能利用记忆、技能、工作流编排、结果验证和迭代优化来不断构建和修改提示,从而生成更好的图像。然而,这些收益仍外在于扩散模型,仅在完整框架运行时才能实现。我们提出扩散策略内上下文蒸馏(D-OPCD),将智能体改进的提示视为特权上下文,并将智能体框架中编码的知识蒸馏到扩散模型的权重中,使模型仅以原始查询为条件时也能保留部分框架带来的收益。使用配备我们提出的自动技能进化器(ASE)的文本到图像智能体,我们证明 D-OPCD 能将框架能力内化到生成器的权重中,在四个基准上将平均直接生成分数从 60.52 提升至 65.09。随着知识被吸收到权重中,框架可以舍弃已饱和的技能并继续进化:在更新后的生成器上进行第二轮 ASE,相比无技能框架额外提升 1.83 分,指向文本到图像系统中框架与模型通过持续共同进化相互提升的方向。
该工作提出了一种将智能体框架能力内化到扩散模型权重的方法,显著提升了直接生成性能,并展示了框架与模型共同进化的潜力,对文本到图像系统的持续改进具有重要参考价值。
Wrapping an image generation model in an agentic harness can effectively boost Text-to-Image task performance: the harness can leverage memory, skills, workflow orchestration, result verification, and iterative refinement to continually construct and revise prompts, thereby eliciting better images. These gains, however, remain external to the diffusion model and are realized only while the full harness runs. We propose Diffusion On-Policy Context Distillation (D-OPCD), which treats the agent-improved prompt as privileged context and distills the knowledge encoded in the agent harness into the weights of the diffusion model, so that the model retains part of the harness's benefit when conditioned on the original query alone. Using a Text-to-Image agent equipped with our proposed Auto Skill Evolver (ASE), we show that D-OPCD can internalize harness capabilities into the generator's weights, raising the average direct-generation score from 60.52 to 65.09 across four benchmarks. With this knowledge absorbed into the weights, the harness can shed its saturated skills and resume evolving: a second ASE round on the updated generator improves on a skill-free harness by additional 1.83 points, pointing toward text-to-image systems in which harness and model keep improving each other through continual co-evolution.