Mask-Aware Policy Gradients for Diffusion Language Models

Haran Raajesh, Kulin Shah, Adam Klivans, Philipp Krähenbühl
7/16/2026
cs.CLcs.AIcs.LG

No official code found. Best implementation: Haran71/mask-aware-policy-gradients (0 stars, last commit 2026-07-13).

Abstract

Reinforcement learning has proven effective for improving reasoning in large language models, but extending it to Masked Diffusion Language Models (MDLMs) remains challenging due to the intractability of the log-likelihood estimation. Existing approaches approximate this log-likelihood by modeling only the token predictions, ignoring the order in which positions are unmasked during generation. We observe that MDLM generation involves two decisions at each step: what tokens to place at each masked position and which positions to remask. We formalize this as a two-stage action MDP, showing that the policy gradient naturally decomposes into a token term and a masking term. Combining optimization of both terms leads to state-of-the-art outcomes on mathematical reasoning and coding benchmarks, with scores of 87.1% on GSM8K and 53.4% on MBPP.

View on arXivView PDF

Code Implementations(1)

Official implementation of Mask-Aware Policy Gradients for Diffusion Language Models (COLM 2026). Code coming soon.

00Jul 13, 20263 months ago

Similar Papers

Cite this paper

@article{raajesh2026maskaware,
  title  = {Mask-Aware Policy Gradients for Diffusion Language Models},
  author = {Haran Raajesh and Kulin Shah and Adam Klivans and Philipp Krähenbühl},
  year   = {2026},
  eprint = {2607.15200},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.15200v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.15200.svg)](https://codeofpaper.com/paper/2607.15200)

Discussion