arXiv

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

Title: d2: Enhancing Reasoning Capabilities in Diffusion Language Models Through Trajectory Likelihood Estimation

Diffusion language models (DLMs) have demonstrated strong results in text generation; however, leveraging reinforcement learning to boost their reasoning performance remains a vibrant field of inquiry. To address this, we present d2, a specialized reasoning framework designed for masked DLMs. The core innovation of our approach is a novel policy gradient algorithm that depends on precise calculations of sampling trajectory likelihoods.

Calculating these likelihoods directly is typically computationally prohibitive for masked DLMs. To overcome this, we have developed a suite of estimators customized for different model architectures. For DLMs compatible with "any-order decoding," we introduce d2-AnyOrder. This method delivers exact trajectory likelihood estimates in a single model pass. However, our empirical analysis of commonly used DLMs reveals that any-order decoding is not universally available in current implementations.

For standard masked diffusion models lacking this capability, we propose d2-StepMerge. This approach approximates trajectory likelihoods, offering a controllable trade-off between computational cost and approximation accuracy through an analytically tractable method. Our experiments demonstrate that d2 surpasses established reinforcement learning baselines when applied to popular DLMs. Furthermore, it establishes new state-of-the-art performance on logical reasoning benchmarks (Sudoku and Countdown) and mathematics reasoning datasets (GSM8K and MATH500).

The source code and a detailed blog post are available at: https://guanghanwang.com/d2


Source: arXiv Generated at: 2026-06-02 00:00:00 UTC

Related Articles

Law’s Billable Hour Is Being Shredded by AI
Bloomberg

Law’s Billable Hour Is Being Shredded by AI

AI is dismantling the billable hour by automating routine legal tasks. This technological shift threatens the traditiona...

Iran War: Trump Tries to Stop Israel’s Lebanon Push | The Opening Trade 6/2/2026
Bloomberg

Iran War: Trump Tries to Stop Israel’s Lebanon Push | The Opening Trade 6/2/2026

SoftBank in Early Talks to Back $800 Million Agile Robots Round
Bloomberg

SoftBank in Early Talks to Back $800 Million Agile Robots Round

SoftBank is in early talks to back Agile Robots’ $800 million funding round. The Japanese tech giant is currently in pre...

Amundi Is Diversifying Risk Via Commodity Currencies, Gold
Bloomberg

Amundi Is Diversifying Risk Via Commodity Currencies, Gold

Amundi diversifies risk by investing in commodity-linked currencies and gold. This strategy hedges against market volati...

Reuters

Marvell Technology surges after Nvidia's Huang calls it 'next trillion-dollar company'

Marvell Technology shares surged after Nvidia CEO Jensen Huang labeled the firm the “next trillion-dollar company.”

Russia Says It Found Foreign Spyware on Top Officials’ Phones
Bloomberg

Russia Says It Found Foreign Spyware on Top Officials’ Phones

Russia’s FSB claims to have discovered foreign spyware on senior officials’ phones. Moscow attributes the intrusion to h...