Self-Decomposing Diffusion for Code Generation

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.

Link
https://www.semanticscholar.org/paper/38b120e4126d44d0e554a503aad2f98b26e8fd9b
Found by
Semantic Scholar
Authors
Li-Ze Shao, Zi-Chen Xie, Zhi-Zhen Chen, Zhe Zeng, Wen-Xi Wang
Categories
benchmark
Published
2026-10-20
Last seen by the radar
2026-10-22
Citations
0
Influential citations
0
Radar score
26.75 / 100 (how it is scored)
Why it scored so
Matched: benchmark; Primary record: Semantic Scholar
Related links
https://arxiv.org/abs/2610.27600
Is this record right? If you made this work and something here is wrong or missing, tell us what to fix.

More records found by Semantic Scholar