NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Diffusion of Thought: Chain-of-Thought Reasoning in Diffusion Language Models

Jiacheng Ye, Shansan Gong, Liheng Chen, Lin Zheng, Jiahui Gao, Han Shi, Chuan Wu, Xin Jiang, Zhenguo Li, Wei Bi, Lingpeng Kong

TL;DR

Diffusion-of-Thought (DoT) is a new framework that brings Chain-of-Thought reasoning to diffusion language models, allowing reasoning steps to emerge globally and in parallel rather than through traditional left-to-right token generation. This approach enables small diffusion models to outperform much larger autoregressive models on complex math tasks while offering a unique "compute-for-performance" tradeoff and inherent self-correction abilities.

What Problem Does This Paper Address?

Most Large Language Models (LLMs) today are autoregressive (AR), meaning they predict the next word in a sequence based on all previous words. While techniques like Chain-of-Thought (CoT) prompting have drastically improved their reasoning, AR models suffer from a fundamental flaw: error accumulation. If the model makes a mistake in the first step of a math problem, that error cascades through every subsequent token, often leading to a "hallucinated" or incorrect final answer.

Furthermore, AR models are computationally rigid. To "think" more, they must generate more tokens, which takes more time. There is no easy way to tell an AR model to "spend more time refining this specific thought" without changing the output length.

The authors of this paper ask: Can we leverage the global planning and self-correction strengths of diffusion models—which have revolutionized AI art—to solve complex logical and mathematical problems in text?

Comparison of reasoning paradigms: Answer-only, Chain-of-thought, Implicit CoT, and the proposed Diffusion-of-thought (DoT).

Methods

The researchers propose Diffusion-of-Thought (DoT), which integrates reasoning rationales directly into the diffusion process.

  1. Parallel Reasoning (DoT): Unlike AR models that generate thoughts token-by-token, DoT allows an entire sequence of reasoning steps to "diffuse" from noise simultaneously. The model refines the whole reasoning path over several timesteps ($t=T$ down to $t=0$).
  2. Multi-Pass Variant (DoTMP): To handle cases where one thought must strictly follow another (causal bias), they introduced a version that generates one "thought" at a time, using previous thoughts as fixed anchors.
  3. Scheduled & Coupled Sampling: To boost the model's ability to fix its own mistakes, they designed training algorithms that intentionally expose the model to its own errors during the learning phase, teaching it how to recover.
  4. Inference Flexibility: Because diffusion is iterative, users can choose how many steps ($T$) to run. More steps generally lead to better reasoning, allowing a direct tradeoff between computation time and accuracy.
  5. Classifier-Free Guidance: They adapted techniques from image generation to ensure the model stays "anchored" to the original question while it's dreaming up the solution.

Datasets

The authors evaluated DoT on three distinct types of reasoning challenges:

  • Multi-digit Multiplication: 4x4 and 5x5 problems from the BIG-bench benchmark.
  • Boolean Logic: Complex logical reasoning tasks.
  • GSM8K-Aug: A widely used dataset of grade school math word problems, augmented to provide more training signal.

Key Insights and Ideas

  • The "Global" Advantage: In an AR model, the first word of a sentence cannot "know" what the last word will be. In DoT, because the entire sequence is refined at once, "future" reasoning steps can actually influence "past" steps during the denoising process.
  • Self-Correction is Built-In: Diffusion models have an inherent "undo" button. If a reasoning step looks mathematically inconsistent at an early stage of denoising, the model can refine and fix that specific part of the sequence in later stages.
  • Small but Mighty: One of the most surprising findings was that a relatively small diffusion model (e.g., 170M or 424M parameters) could outperform much larger AR models (like GPT-2 Large at 774M parameters) on math tasks.
  • The Compute Knob: DoT provides a literal dial for "thinking time." By increasing the number of diffusion timesteps during inference, the model’s accuracy improves, mirroring how humans might spend more time double-checking a difficult problem.

Key Results

  • Efficiency: On multiplication and logic tasks, DoT achieved 100% accuracy while being up to 27x faster than GPT-2 with CoT.
  • Math Performance: On the GSM8K math dataset, the SEDD-medium (424M) diffusion model using DoTMP reached 53.3% accuracy, significantly beating GPT2-medium (355M) which scored 43.9%.
  • Self-Consistency: When combined with "self-consistency" (generating multiple paths and taking a majority vote), DoT performance jumped even higher (e.g., from 53.5% to 59.4% on GSM8K).
  • Speedup: By using a specialized ODE Solver, the researchers showed they could reduce the number of steps needed for high-quality reasoning to as few as 8-16 steps, making diffusion competitive with AR generation speeds.
Performance comparison of DoT against autoregressive baselines across various reasoning tasks.

Limitations and Future Work

  • Base Model Maturity: Currently, pre-trained diffusion language models (like Plaid or SEDD) are not as mature or as large as the massive AR models (like Llama-3 or GPT-4). The authors note that DoT's full potential will likely only be realized as base diffusion LMs scale up.
  • Specialized Training: Unlike simple prompting, DoT currently requires fine-tuning on reasoning datasets to work effectively.
  • Scaling Laws: Future research is needed to see if the benefits of DoT hold as models scale to the 7B, 70B, or 100B+ parameter range.

In summary, Diffusion-of-Thought suggests that the future of AI reasoning might not just be about predicting the next word, but about iteratively refining a "cloud" of ideas until the logic crystallizes.

Summary updated

BibTeX
@inproceedings{ye2024diffusion,
  author = {Jiacheng Ye and Shansan Gong and Liheng Chen and Lin Zheng and Jiahui Gao and Han Shi and Chuan Wu and Xin Jiang and Zhenguo Li and Wei Bi and Lingpeng Kong},
  title = {{Diffusion of Thought: Chain-of-Thought Reasoning in Diffusion Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=G0v0TxX01N},
}
Figure