Match the Canvas, Not Just the Answer: Predictability-Aware SFT for Diffusion Language Models

Miao Li, Hanyang Jiang, Hengyu Fu, Baihe Huang, Yating Liu, Yuhang Cai, Changkun Guan, Zhongzhu Chen, Jiecheng Lu, Michael A. Boateng, Pascal Van HentenryckarXiv 2026

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:

  1. 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).
  2. 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.
The training canvas changes reference supervision. A: Random masking can leak answers or hide necessary context. B: Canvas length affects whether the model wants to continue or terminate.

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.
Figure 2: Longer canvases induce longer responses. Realized response length increases with allocated generation length.
  • 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

Abstract

Diffusion language models (DLMs) enable flexible parallel generation by resolving tokens according to the model's evolving predictability rather than a fixed left-to-right order. This flexibility, however, introduces training choices absent from standard autoregressive teacher forcing: which reference tokens are visible when a target is supervised and how much generation space is allocated. Standard supervised fine-tuning (SFT) typically makes these choices through random masking, independently of inference. Our analysis shows how this training-inference mismatch can misdirect supervision. Random masking can conceal prediction errors or penalize uncertainty that decoding would otherwise resolve, while the attention-visible input length can change which response formulations the model favors, even when the underlying solution is unchanged. Motivated by these findings, we propose Predictability-Aware Canvas Selection and Supervision (PACS), an SFT method. PACS uses the model's own predictability to select each example's attention-visible input length and supervises reference tokens immediately before their confidence-guided revelation. Across reasoning and code-generation benchmarks, PACS consistently achieves the highest mean accuracy among the compared SFT methods, with gains of up to 12.84 percentage points over vanilla SFT on individual benchmarks. Code will be released upon publication.
BibTeX
@misc{li2026match,
  author = {Miao Li and Hanyang Jiang and Hengyu Fu and Baihe Huang and Yating Liu and Yuhang Cai and Changkun Guan and Zhongzhu Chen and Jiecheng Lu and Michael A. Boateng and Pascal Van Hentenryck},
  title = {{Match the Canvas, Not Just the Answer: Predictability-Aware SFT for Diffusion Language Models}},
  year = {2026},
  eprint = {2610.18001},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.18001},
}
Figure