Dancing Diffusion: Learning Continuous Programs for Image Generation and Editing
Cui Enhe, Jinyue Yang, Bojian Yin, Guoqi Li
Key points
From the paper's conclusion- Dancing Diffusion was introduced to address the limitation of diffusion models by assigning each span of timesteps a dedicated continuous condition block, converting the conditioning process into a latent program.
- On SANA, reusing an executed prefix preserved markedly more of the scene than regenerating from noise at a similar strength of edit, and the learned program improved generation quality over native SANA.
- By converting a single-instruction trajectory into a program of addressable operations, Dancing Diffusion lays a foundation for structured intermediate computation in diffusion models.
Abstract
Diffusion models generate samples through a multi-step denoising trajectory, yet condition every step on the same instruction, so the trajectory cannot be addressed at the level of individual operations. We introduce Dancing Diffusion, which assigns each span of timesteps a dedicated continuous condition block and thereby turns conditioning into a latent program. A compiler maps text features into this program, and a fixed pretrained generator executes its blocks over successive sampling intervals. The trajectory can then dance, keeping its executed history while its continuation is redirected. A shared prefix is executed once and reused, and a later operation is rewritten while content fixed by earlier operations is preserved. The compiler is trained through the images it produces, with visual feedback on both the requested change and the retained content. On SANA, reusing an executed prefix preserves markedly more of the scene than regenerating from noise at a similar strength of edit, learned conditions preserve more background than native prompt switching from the same saved state, and the learned program improves generation quality over native SANA. Later branches weaken the edit, which leaves semantic control over individual operations limited. By converting a single-instruction trajectory into a program of addressable operations, Dancing Diffusion lays a foundation for structured intermediate computation in diffusion models.
Read the paper
Discussion · 1
Science Skim's AI key points, plus readers' public thoughts
- Dancing Diffusion was introduced to address the limitation of diffusion models by assigning each span of timesteps a dedicated continuous condition block, converting the conditioning process into a latent program.
- On SANA, reusing an executed prefix preserved markedly more of the scene than regenerating from noise at a similar strength of edit, and the learned program improved generation quality over native SANA.
- By converting a single-instruction trajectory into a program of addressable operations, Dancing Diffusion lays a foundation for structured intermediate computation in diffusion models.
Readers' thoughts
No reader thoughts yet.
Related papers
- ACEdit: Stable Multi-Turn Image Editing via Asymmetric ConditioningarXiv · 2026
- When Text-to-Image Helps Editing: The Effects of Conditioning During DenoisingarXiv · 2026
- ProgressNet: Sketching and Prompting with a Frozen Text-to-Image ModelarXiv · 2026
- MT Forcing: Towards Stable and Consistent Multi-Turn Image Editing with Autoregressive DiffusionarXiv · 2026
- CrossPair: Unlocking Generalist Visual Transformation Learning in Image EditorsarXiv · 2026
- MusicFlux: Flexible Conditioning for Text-Guided Music Generation and EditingarXiv · 2026