Self-Decomposing Diffusion for Code Generation
Lize Shao, Zichen Xie, Zhizhen Chen, Zhe Zeng, Wenxi Wang
Key points
From the paper's conclusion- The authors propose Self-Decomposing Diffusion for Code (SDDC), a framework that decomposes complex programs and implements their units in parallel through diffusion, entirely without retraining.
- SDDC generates a contract specifying the program's decomposition and inter-unit dependencies, then uses it to guide coordinated parallel implementation, improving the accuracy--latency trade-off across five benchmarks and two 7B diffusion backbones.
- SDDC raises pass@1 by up to 31.1 percentage points while decoding 7.5--13.7$ imes$ faster than the base models, and outperforms a fine-tuning baseline by up to 23.5 points with lower latency.
Abstract
Diffusion language models (DLMs) are emerging as a promising paradigm for code generation, offering the potential for fast, parallel decoding. However, generating complex programs remains challenging, as their interdependent components must maintain consistent interfaces, data flows, and shared assumptions. Aggressive parallel decoding can compromise these dependencies and undermine program correctness, while conservative decoding sacrifices efficiency. To address this trade-off, we propose planning program decomposition before implementation to coordinate interdependent units during parallel generation. We introduce Self-Decomposing Diffusion for Code (SDDC), a novel framework that decomposes complex programs and implements their units in parallel, entirely through diffusion. SDDC first generates a contract specifying the program's decomposition and inter-unit dependencies, then uses it to guide coordinated parallel implementation. Across five benchmarks and two 7B diffusion backbones, SDDC substantially improves the accuracy--latency trade-off, raising pass@1 by up to 31.1 percentage points while decoding 7.5--13.7$\times$ faster than the base models, and outperforming a fine-tuning baseline by up to 23.5 points with lower latency.
Read the paper
Discussion · 1
Science Skim's AI key points, plus readers' public thoughts
- The authors propose Self-Decomposing Diffusion for Code (SDDC), a framework that decomposes complex programs and implements their units in parallel through diffusion, entirely without retraining.
- SDDC generates a contract specifying the program's decomposition and inter-unit dependencies, then uses it to guide coordinated parallel implementation, improving the accuracy--latency trade-off across five benchmarks and two 7B diffusion backbones.
- SDDC raises pass@1 by up to 31.1 percentage points while decoding 7.5--13.7$ imes$ faster than the base models, and outperforms a fine-tuning baseline by up to 23.5 points with lower latency.
Readers' thoughts
No reader thoughts yet.
Related papers
- DConstrain: Compiling Context-Parameterized Transitions for Diffusion Language Model Constrained DecodingarXiv · 2026
- PV-Decoding: Progressive Verification Decoding with Decode Gating for Diffusion Language ModelsarXiv · 2026
- Lookahead-Then-Verify: Reliable Constrained Decoding for Diffusion LLMs under Context-Free GrammarsProceedings of the ACM on Software Engineering · 2026
- Learning When to Commit: Schedule Distillation for Fast Diffusion Language ModelsarXiv · 2026
- dLoop: Looped Diffusion Language Models via Recurrent Latent RefinementarXiv · 2026
- From Position Risks to Block Survival: Faster Generation for Diffusion Language ModelsarXiv · 2026