← Latest papers
🤖 machine learning

d2: Improving Reasoning in Diffusion Language Models via Trajectory Likelihood Estimation

The paper introduces d2, a novel reinforcement learning framework for masked diffusion language models that employs specialized trajectory likelihood estimators (d2-AnyOrder and d2-StepMerge) to significantly enhance reasoning capabilities on logical and mathematical benchmarks, achieving new state-of-the-art performance.

Original authors: Guanghan Wang, Gilad Turok, Yair Schiff, Marianne Arriola, Volodymyr Kuleshov

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

Original authors: Guanghan Wang, Gilad Turok, Yair Schiff, Marianne Arriola, Volodymyr Kuleshov

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 by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a very talented artist who can paint a masterpiece by starting with a blank canvas and gradually adding details until the image is complete. This is how Diffusion Language Models (DLMs) work. Unlike traditional AI writers that build sentences one word at a time (like stacking bricks), these models start with a jumbled mess of "noise" (like static on an old TV) and slowly "denoise" it, revealing a coherent story or solution step-by-step.

The paper introduces a new training method called d2 to teach these artists how to solve hard puzzles (like math problems or logic games) much better. Here is the breakdown of how it works, using simple analogies.

The Problem: The "Blind" Critic

To teach an AI to reason, researchers use Reinforcement Learning (RL). Think of this as a game where the AI tries to solve a puzzle, and a "Critic" (a reward system) gives it a score. If the AI gets a good score, it learns to do that again.

However, there's a catch with Diffusion models. To learn effectively, the AI needs to know exactly how likely it was to generate that specific sequence of words.

  • For traditional AI (Autoregressive): It's like writing a letter. You know exactly what you wrote first, second, and third. Calculating the "likelihood" is easy and fast.
  • For Diffusion AI: It's like watching a sculpture emerge from a block of stone. The AI makes thousands of tiny adjustments. To know the exact probability of the final statue, you'd theoretically have to rewind the video and replay every single frame of the sculpting process. Doing this for every training step is computationally impossible (too slow and expensive).

Because they couldn't calculate this "score" accurately, previous methods were guessing, leading to poor reasoning skills.

The Solution: d2 (The Smart Scorekeeper)

The authors created d2, a framework that acts like a super-efficient scorekeeper. It figures out the "likelihood" of the AI's journey without having to replay the whole movie every time. They built two different tools for two different types of artists:

Tool 1: d2-AnyOrder (The "Magic Mirror")

Some diffusion models are special; they can reveal the final image in any order. You could paint the eyes first, then the nose, then the background, or vice versa, and it still works.

  • The Analogy: Imagine you have a magic mirror. Instead of watching the painting happen step-by-step, you can look at the finished painting and instantly see exactly what the artist would have said at every single step, all at once.
  • The Result: This tool, called d2-AnyOrder, calculates the perfect score in a single glance (one computer pass). It's incredibly accurate and makes the AI learn very fast.

Tool 2: d2-StepMerge (The "Chunking Strategy")

Most popular diffusion models (like the famous LLaDA) can't paint in any order; they have to follow a specific sequence. They don't have the "magic mirror."

  • The Analogy: Since we can't see the whole movie at once, we break the movie into chunks. Instead of watching every single frame, we watch the movie in 10-second segments. We estimate the score for each segment and add them up.
  • The Result: This tool, called d2-StepMerge, is an approximation. It's not perfect, but the authors proved mathematically that the error is small and controllable. It trades a tiny bit of accuracy for a massive gain in speed, making it practical for standard models.

The Results: From Novice to Grandmaster

The researchers tested these tools on some of the hardest puzzles for AI:

  1. Logic Games: Sudoku and Countdown (a math game).
  2. Math Problems: GSM8K and MATH500 (standard benchmarks for math reasoning).

The Outcome:

  • Without any extra "cheat sheets" (Supervised Fine-Tuning): The d2 framework taught the models to reason better than any previous method.
  • Beating the Competition: On the Sudoku and Countdown tests, the d2-trained models achieved scores near 92% and 56% respectively, crushing the previous best methods which were stuck around 22% and 42%.
  • Math Mastery: On complex math benchmarks, d2 set a new "State-of-the-Art" record, proving that diffusion models can be just as good at reasoning as traditional text-generating models, but with the added benefits of being faster and more controllable.

Summary

The paper says: "We found a way to teach Diffusion AI models how to think clearly."

  • They realized the old way of grading the AI's work was too slow and inaccurate.
  • They invented d2, a new grading system that is either perfectly accurate (for special models) or smartly efficient (for standard models).
  • Using this new system, the AI models learned to solve logic and math puzzles significantly better than before, without needing to be pre-taught the answers.

In short, d2 gives diffusion models the ability to "look back" at their own thinking process accurately, allowing them to learn from their mistakes and become true reasoning experts.

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 →