← Latest papers
💬 NLP

Mask-Aware Policy Gradients for Diffusion Language Models

This paper introduces Mask-Aware Policy Gradients, a reinforcement learning framework that formalizes Masked Diffusion Language Model generation as a two-stage decision process to jointly optimize token selection and position masking, thereby overcoming log-likelihood intractability and achieving state-of-the-art performance on mathematical reasoning and coding benchmarks.

Original authors: Haran Raajesh, Kulin Shah, Adam Klivans, Philipp Krähenbühl

Published 2026-07-17
📖 3 min read☕ Coffee break read

Original authors: Haran Raajesh, Kulin Shah, Adam Klivans, Philipp Krähenbühl

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 teach a robot how to write a story or solve a math problem. For a long time, the best way to do this was to make the robot write one word at a time, like a human typing on a keyboard. This is called "autoregressive" generation. It's reliable, but it's also slow, like a snail crossing a highway. Recently, scientists discovered a faster way called "Diffusion." Instead of writing from scratch, the robot starts with a page full of blank masks (like [MASK]) and gradually fills them in, revealing words one by one until the sentence is complete. It's like a puzzle where you start with a covered picture and slowly lift the covers to see the image.

However, teaching these fast "diffusion" robots to get smarter using rewards (a technique called Reinforcement Learning) has been a nightmare. In the old "word-by-word" method, it's easy to calculate exactly how likely the robot was to make a specific choice. But in the "diffusion" method, the robot makes two choices at every single step: it decides what word to put in a blank space, and it also decides which blank space to reveal next. Previous methods tried to teach the robot by only looking at the first choice (the word) and ignoring the second choice (the order of revealing). It's like trying to teach a chef to cook a perfect meal by only critiquing the ingredients they picked, while completely ignoring the order in which they chopped and stirred them.

This paper, presented at the COLM 2026 conference, suggests that we've been missing a huge part of the puzzle. The authors, Haran Raajesh, Kulin Shah, and their team at the University of Texas at Austin, argue that to truly master the art of diffusion, you have to reward the robot for both picking the right words and picking the right order to reveal them. They developed a new method called "Mask-Aware Policy Gradients." Instead of just guessing the next word, their system treats the decision of "which mask to lift next" as a crucial part of the robot's strategy. By mathematically breaking down the learning process into these two distinct parts, they found that the robot learns much faster and makes fewer mistakes.

The results are quite impressive. When they tested their new method on difficult math problems and coding challenges, the robot got significantly better at solving them. On a famous math test called GSM8K, their method reached an accuracy of 87.1%, and on a coding test called MBPP, it hit 53.4%. These numbers are higher than any previous method that tried to teach diffusion models using rewards. The paper shows that by paying attention to the "masking" decisions—the order in which the robot reveals its thoughts—we can unlock a new level of intelligence in these fast, flexible AI models, making them not just faster, but smarter too.

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 →