Fine-Tuning Diffusion Language Models with Context Selection and Target Weighting

Loay Mualem, Lluís Pastor-Pérez, Vinh Tong, Andrei Manolache, Tanja Bien +2 more
9/29/2026
cs.AIcs.CL
diffusion-flow

No confident code implementation found for this paper.

Abstract

Supervised fine-tuning of discrete diffusion language models masks some response tokens and trains the model to recover their original values from the visible context. The masking pattern therefore determines both the context available to the model and the tokens it learns to predict.

Show full abstract

Uniform random masking does not explicitly account for the interaction between these choices. We introduce GoldiMask, which selects tokens to reveal as context by approximately maximizing a submodular objective. This objective uses model signals to balance the benefit of revealing tokens against their value as prediction targets. GoldiMask then weights the remaining targets according to how they benefit from the selected context and their remaining learning potential. Across three backbones and three training datasets, GoldiMask achieves the highest average accuracy in most evaluated settings, demonstrating gains on both reasoning and code generation. Component ablations show that both context selection and target weighting contribute to the gains. GoldiMask also reduces decoding iterations on GSM8K and MATH-500 under confidence-threshold parallel decoding, while maintaining comparable accuracy at higher confidence thresholds.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{mualem2026finetuning,
  title  = {Fine-Tuning Diffusion Language Models with Context Selection and Target Weighting},
  author = {Loay Mualem and Lluís Pastor-Pérez and Vinh Tong and Andrei Manolache and Tanja Bien and Steffen Staab and Mathias Niepert},
  year   = {2026},
  eprint = {2609.38385},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.38385v1}
}

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/2609.38385.svg)](https://codeofpaper.com/paper/2609.38385)

Discussion