← Latest papers
💬 NLP

Improving Diffusion Language Model Decoding through Joint Search in Generation Order and Token Space

This paper introduces Order-Token Search, a novel decoding method for Diffusion Language Models that jointly explores generation order and token space to outperform existing baselines on mathematical reasoning and coding benchmarks.

Original authors: Yangyi Shen, Tianjian Feng, Jiaqi Han, Wen Wang, Tianlang Chen, Chunhua Shen, Jure Leskovec, Stefano Ermon

Published 2026-02-06
📖 5 min read🧠 Deep dive

Original authors: Yangyi Shen, Tianjian Feng, Jiaqi Han, Wen Wang, Tianlang Chen, Chunhua Shen, Jure Leskovec, Stefano Ermon

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to solve a complex puzzle, like a math problem or a coding challenge, but you have a magical assistant (the Diffusion Language Model) that doesn't just write the answer from left to right like a human typing a letter. Instead, this assistant starts with a blank page full of "MASK" placeholders and tries to fill them in all at once, guessing what words belong where.

The problem is, the assistant is a bit chaotic. It can fill in the blanks in any order it wants. Sometimes it guesses the right word for the first blank, but then gets stuck because it guessed the wrong word for the second blank. Other times, it guesses the right words but in the wrong order, leading to a dead end.

The Old Way: Guessing and Pruning

Previously, people tried to fix this in two main ways, both of which had flaws:

  1. The "Confident" Approach: The assistant looks at the blanks it feels most sure about and fills them in first. It's like a hiker who only walks on the path that looks the most solid.
    • The Good: It usually gets a good answer quickly.
    • The Bad: If the "solid path" leads to a cliff (a wrong answer), the hiker is stuck there. It never explores other paths that might have been better.
  2. The "Random" Approach: The assistant picks blanks to fill in completely at random.
    • The Good: It explores a huge variety of paths, so it's very likely to stumble upon the correct solution eventually.
    • The Bad: It's so scattered that it rarely picks the best path on the first try. It's like a hiker wandering in circles; they might find the treasure, but they'll also dig up a lot of empty holes first.

The New Solution: Order-Token Search

The authors of this paper introduced a new method called Order-Token Search. Think of this as a Team of Explorers working together.

Instead of sending out one hiker or a chaotic crowd, the method sends out a small team (a "beam") of explorers. Here is how they work:

  1. Diverging Paths (The Search): At regular intervals, the team splits up. Each explorer tries a different strategy:

    • Explorer A decides to fill in the first missing word.
    • Explorer B decides to fill in the last missing word.
    • Explorer C tries a different word for the middle spot.
    • Analogy: They are exploring both where to write next (the order) and what to write (the token).
  2. The Scorecard (The Likelihood Estimator): This is the magic part. The team has a special judge (the likelihood estimator) who doesn't just look at the final answer. Instead, the judge looks at every step the explorers took.

    • Did the explorer make a logical move?
    • Does this partial sentence make sense given what was written before?
    • Analogy: Imagine a coach watching a relay race. If a runner trips early on, the coach doesn't wait for them to finish the race to cut them off; they stop them immediately because the step they took was wrong.
  3. Cutting the Dead Ends (Pruning): The judge scores every explorer's progress. If an explorer is taking a path that looks unlikely to succeed (even if they haven't finished yet), the team cuts that path and focuses resources on the explorers who are on the best tracks.

Why This Matters

The paper tested this on hard math problems (like the GSM8K and MATH500 datasets) and coding tasks (HumanEval).

  • The Result: The "Team of Explorers" (Order-Token Search) consistently found the correct answers more often than the old "Confident" or "Random" methods.
  • The Comparison: It performed so well that it matched or even beat methods that required the AI to undergo expensive, months-long retraining (like diffu-GRPO). This means you can get a much smarter AI just by changing how it thinks during the test, without needing to retrain the brain itself.

A Special Note on Sudoku

The paper also tried this on Sudoku puzzles. Interestingly, it didn't work well there. The authors explain that Sudoku requires strict, global rules (like "no repeating numbers in a row") that the AI's internal "scorecard" just can't seem to understand. It's like giving a team of hikers a map that doesn't show the cliffs; no matter how well they explore, they can't avoid falling off the edge if the map is wrong. This suggests that for some tasks, the AI itself needs to be trained differently, not just the search method.

In a Nutshell

The paper shows that by letting an AI explore multiple different ways of writing (order) and multiple different words (tokens) simultaneously, and then using a smart scoring system to cut off the bad ideas early, we can get much better results from Diffusion Language Models without needing to retrain them. It turns a chaotic guessing game into a structured, efficient search for the truth.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →