Reproduce “Block Diffusion: Interpolating Between Autoregressive and Diffusion Language Models” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Marianne Arriola, Aaron Gokaslan, Justin T. Chiu, Zhihan Yang, Zhixuan Qi, Jiaqi Han, Subham Sekhar Sahoo, Volodymyr Kuleshov
BD3-LMs generate variable-length text by producing sequential blocks, using discrete diffusion to generate tokens within each block and cached earlier blocks as context. On OpenWebText, a sample reached 9,982 tokens despite a 1,024-token training context, under an end-of-sequence or low-entropy stopping rule. At 2,048 tokens, generative perplexity was 23.6 versus MDLM’s 41.3, but AR scored 13.2.
Key insights
- High gradient variance during training, rather than the objective's expectation, is a primary reason for the perplexity gap between discrete diffusion and autoregressive language models, especially evident in single-token generation.
- Data-driven 'clipped' noise schedules, which restrict masking rates to avoid extreme values, significantly reduce gradient variance and improve perplexity, with optimal ranges varying by block size.
- A hybrid approach that combines autoregressive generation over blocks with discrete diffusion within each block can overcome limitations of fixed-length generation and enable KV caching for improved inference efficiency.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.