TL;DR
Diffusion Language Models (DLMs) generate text by iteratively filling in masks based on confidence, yet they are typically trained using random masking. This paper introduces PACS (Predictability-Aware Canvas Selection and Supervision), a fine-tuning method that aligns training with the model's actual decoding behavior, leading to massive gains of up to 12.8 percentage points on reasoning and coding benchmarks.
What Problem Does This Paper Address?
Standard autoregressive models (like GPT-4) generate text strictly from left to right. In contrast, Diffusion Language Models (DLMs) are more flexible: they start with a "canvas" of [MASK] tokens and fill them in parallel, prioritizing the tokens they are most confident about.
However, there is a major training-inference mismatch. During inference, the model chooses its own path based on confidence. During standard Supervised Fine-Tuning (SFT), we usually just mask tokens at random. This creates two issues:
- Misdirected Supervision: Random masking might hide a token the model needs to see to be correct (insufficient context) or reveal a "future" token too early, making a difficult prediction trivial (context leakage).
- The "Canvas" Effect: The total length of the workspace (the canvas) acts as a hidden signal. If the training canvas is much longer than the actual answer, the model learns to "fill space" rather than stop, leading to poor performance during real-world generation.
Methods
The authors propose PACS, which consists of two main components:
- Commitment-Based Canvas Selection: Instead of using a fixed or random canvas length, PACS evaluates several candidate lengths for each training example. It selects the "canvas" where the reference answer is most predictable (lowest cross-entropy) according to the model's own confidence-guided trajectory.
- Commitment-Level SFT: Rather than random masking, PACS follows the model's actual decoding path. It identifies which tokens the model would "commit" to at each step and applies supervision only at those specific points. This ensures the model is trained on the exact states it will encounter during inference.
Datasets
The researchers evaluated PACS across several demanding benchmarks:
- Mathematical Reasoning: GSM8K and MATH500.
- Code Generation: MBPP and HumanEval.
- Training Sources: Training splits from GSM8K, MATH, and OpenCoder, as well as alternative corpora like Math14k and KodCode for robustness testing.
Key Insights and Ideas
- Context is King: The paper demonstrates that "leaking" just one future token early can make 51.2% of initially wrong predictions suddenly "correct," while hiding a previously revealed token can turn 37.3% of correct predictions into errors. Standard SFT does both of these things randomly, confusing the model.
- Length Induces Length: There is a direct correlation between the allocated canvas size and the length of the generated response. If you give a DLM a big canvas, it will try to use it. PACS fixes this by finding the "matched" canvas size that supports the reference answer naturally.
- Predictability as a Guide: By using the model's own confidence to shape its training data, PACS effectively implements "confidence-guided teacher forcing."
Key Results
PACS consistently outperformed vanilla SFT and other specialized methods (like LIFT and TRIMS) across two different model backbones: LLaDA-8B and Dream-7B.
- HumanEval (Coding): On LLaDA-8B, PACS improved accuracy from 38.41% (vanilla SFT) to 47.56%.
- MATH500 (Reasoning): On Dream-7B, it boosted performance from 44.20% to 49.20%.
- Peak Gains: In some specific configurations, PACS achieved gains of up to 12.84 percentage points over standard methods.
- Compute Efficiency: While PACS requires more computation during the training setup phase (to find the best trajectories), it makes much more effective use of that computation than simply training for more epochs.
Limitations and Future Work
The primary drawback of PACS is its computational overhead. Because the model must "re-decode" training examples to find the optimal canvas and trajectory, the preprocessing stage is significantly slower than random masking (e.g., ~15 hours vs ~1 hour for certain workloads).
The authors suggest that future work could explore applying these predictability-aware principles to other architectures, such as block-based diffusion models or hybrid models that combine diffusion with autoregressive generation.
Summary updated