Internalizing Agent Experience into Diffusion Model Weights via On-Policy Context Distillation

Wenxuan Wang, Zekai Liu, Weinan Zhang, Yu Cheng, Yang Yang
10/5/2026
cs.AI

No official code found. Best implementation: Yummytanmo/D-OPCD-CoEvolution (7 stars, last commit 2026-10-05).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

The official code repository for Internalizing Agent Experience into Diffusion Model Weights via On-Policy Context Distillation.

70Oct 5, 20262 weeks ago

Similar Papers

Cite this paper

@article{wang2026internalizing,
  title  = {Internalizing Agent Experience into Diffusion Model Weights via On-Policy Context Distillation},
  author = {Wenxuan Wang and Zekai Liu and Weinan Zhang and Yu Cheng and Yang Yang},
  year   = {2026},
  eprint = {2610.07250},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.07250v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.07250.svg)](https://codeofpaper.com/paper/2610.07250)

Discussion