SPG: Sandwiched Policy Gradient for Masked Diffusion Language Models
Chenyu Wang, Paria Rashidinejad, DiJia Su, Song Jiang, Sid Wang, Siyan Zhao, Cai Zhou, Shannon Zejiang Shen, Feiyu Chen, Tommi Jaakkola, Yuandong Tian, Bo Liu
TL;DR
This paper tackles the core difficulty of aligning diffusion-based language models with rewards due to intractable log-likelihoods. It introduces Sandwiched Policy Gradient (SPG), which maximizes a lower bound on positive-reward sequences (via ELBO) while minimizing an upper bound on negative-reward sequences (via a tractable EUBO derived from Rényi bounds), augmented by a block-wise masking strategy and a mixture of bounds to reduce gradient variance. The authors provide theoretical justifications for the mixture’s variance reduction and demonstrate through extensive experiments on GSM8K, MATH500, Countdown, and Sudoku that SPG outperforms ELBO-based RL baselines and achieves state-of-the-art results among RL methods for diffusion LMs. Practical validations include ablations on components, hyperparameters, and inference strategies, indicating robust performance across settings and highlighting the approach’s potential for scalable, reward-driven training of dLLMs. Overall, SPG offers a principled, bias-reduced framework for RL in diffusion-based language models with demonstrated improvements on multiple reasoning benchmarks and strong resilience to inference strategies."
Abstract
Diffusion large language models (dLLMs) are emerging as an efficient alternative to autoregressive models due to their ability to decode multiple tokens in parallel. However, aligning dLLMs with human preferences or task-specific rewards via reinforcement learning (RL) is challenging because their intractable log-likelihood precludes the direct application of standard policy gradient methods. While prior work uses surrogates like the evidence lower bound (ELBO), these one-sided approximations can introduce significant policy gradient bias. To address this, we propose the Sandwiched Policy Gradient (SPG) that leverages both an upper and a lower bound of the true log-likelihood. Experiments show that SPG significantly outperforms baselines based on ELBO or one-step estimation. Specifically, SPG improves the accuracy over state-of-the-art RL methods for dLLMs by 3.6% in GSM8K, 2.6% in MATH500, 18.4% in Countdown and 27.0% in Sudoku.
