Beyond Autoregression: Discrete Diffusion for Complex Reasoning and Planning

Jiacheng Ye, Jiahui Gao, Shansan Gong, Lin Zheng, Xin Jiang, Zhenguo Li, Lingpeng Kong

Autoregressive (AR) language models, such as GPT-4 and LLaMA, have demonstrated impressive capabilities but inherently struggle with complex reasoning and long-term planning tasks. Because they predict text one token at a time from left to right, this "next-token prediction" paradigm lacks the lookahead capabilities required for global coherence. This paper introduces discrete diffusion models as a novel solution to these challenges, demonstrating that they significantly outperform AR models by overcoming a phenomenon known as "subgoal imbalance."

Introduction & The Subgoal Imbalance Problem

In a complex reasoning chain, some steps (subgoals) are significantly harder to predict than others. The authors identify this as subgoal imbalance. AR models often fail at these "bottleneck" steps because they cannot look ahead during training. To successfully solve a hard subgoal, an AR model might require exponentially more data or massive parameter scaling, whereas easier steps are learned almost instantly.

The synthetic planning task used to demonstrate subgoal imbalance.

Methodology: Discrete Diffusion & MGDM

To move beyond autoregression, the authors propose using discrete diffusion models. Unlike AR models, diffusion models start with a completely masked or noisy sequence and iteratively refine it. This bidirectional approach allows the model to consider the entire reasoning chain simultaneously.

Key technical contributions include:

  • Multi-Granularity Diffusion Modeling (MGDM): A novel training objective that introduces a token-level reweighting mechanism. It uses an adaptive term to down-weight "easy" tokens and emphasize "hard" tokens (those with higher loss) during training. This focuses the model's capacity on the most challenging parts of the reasoning process.
  • Multi-View Learning Perspective: The authors argue that the diffusion process treats different noise levels as different "views" of the data. Denoising a partially masked sequence is easier than predicting from scratch, providing a natural curriculum for learning hard subgoals.
  • Easy-First TopK Decoding: During inference, the model iteratively predicts the most confident tokens first, effectively performing an "internal search" to maintain global consistency.

Experimental Setup

The models were evaluated on four primary benchmarks designed to test planning and logic:

  1. Synthetic Planning Task: A custom graph-based pathfinding task where "Planning Distance" (the number of steps required to see the correct next move) can be precisely controlled.
  2. Countdown: A mathematical reasoning task (similar to the Game of 24) requiring multi-step arithmetic to reach a target number.
  3. Sudoku: The classic 9x9 logic puzzle, treated as a sequence generation task.
  4. Boolean Satisfiability (SAT): An NP-complete constraint satisfaction problem, testing the model's ability to handle complex logical dependencies.

Key Findings & Results

The performance gains of MGDM over autoregressive baselines are substantial, particularly on tasks where standard LLMs fail:

  • Sudoku: MGDM (with only 6M parameters) achieved 100% accuracy, whereas a fine-tuned 13B LLaMA model only reached 32.9%.
  • Countdown: MGDM achieved 91.5% accuracy on the 4-digit task, compared to 45.8% for its AR counterpart.
  • Game of 24: MGDM reached 76.0% accuracy, outperforming GPT-4 with Tree-of-Thought prompting (74.0%) while using 186x fewer tokens at inference.
Accuracy and data requirements vs. Planning Distance.

Beyond raw accuracy, the study highlights several critical insights:

  • Internal Search vs. External Search: While many current approaches try to fix AR models by adding external search (like Tree-of-Thoughts), MGDM achieves superior results without any search techniques at inference. The iterative refinement of diffusion acts as a powerful form of "internal search."
  • The "Regretful Compromise": Error analysis on the Countdown task revealed that AR models often make early mistakes and then "force" the final calculation to match the target answer, leading to high error rates in the final steps. Diffusion models avoid this by refining the entire equation globally.
  • Data Efficiency: Diffusion models are remarkably more data-efficient for hard tasks. For subgoals with a high planning distance, AR models often achieve near-zero accuracy even with 50k training examples, while diffusion models reach 100% accuracy.
  • Speed-Accuracy Trade-off: MGDM can achieve a 10x speedup over AR models by reducing diffusion steps while still maintaining significantly higher accuracy (e.g., 75% vs 45.8% on Countdown 4).

Limitations and Future Directions

While discrete diffusion shows immense promise for complex reasoning, the authors note a few limitations. First, the current evaluation focuses heavily on structured, symbolic reasoning tasks (math, logic, puzzles); scaling this approach to general-purpose natural language reasoning is a critical next step. Second, although the paper shows flexible speed-accuracy trade-offs, diffusion models still require multiple iterations, which can be more computationally expensive than a single AR pass for simple tasks. Finally, more research is needed to see if these advantages hold as diffusion models are scaled to the multi-billion parameter range.

Summary updated

BibTeX
@inproceedings{ye2025beyond,
  author = {Jiacheng Ye and Jiahui Gao and Shansan Gong and Lin Zheng and Xin Jiang and Zhenguo Li and Lingpeng Kong},
  title = {{Beyond Autoregression: Discrete Diffusion for Complex Reasoning and Planning}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=NRYgUzSPZz},
}
Figure