GoldiMask Method for Fine-Tuning Diffusion Language Models: Context Selection and Target Weighting

30 October 202612 views

This paper presents GoldiMask, a supervised fine-tuning approach for discrete diffusion language models that selects visible tokens via approximate maximization of a submodular function and assigns weights to remaining targets based on their training utility. Experiments across several models and datasets demonstrate improved average accuracy, gains on reasoning and coding tasks, and fewer parallel decoding iterations on GSM8K and MATH-500 at comparable quality.

GoldiMask Method for Fine-Tuning Diffusion Language Models: Context Selection and Target Weighting

Masking makes two decisions at once

Fine-tuning discrete diffusion language models relies on recovering masked tokens. Some answer tokens are hidden behind masks, and the model predicts their original values from the visible context.

The masking scheme determines two things at once. It determines which context is available to the model. It also determines which tokens become prediction targets.

These decisions are linked: a revealed token is no longer a target. Uniform random masking does not account for this link. As a result, some tokens are revealed where doing so offers little help for prediction.

The GoldiMask method is described in the paper Fine-Tuning Diffusion Language Models with Context Selection and Target Weighting (arXiv:2609.38385, September 29, 2026). It is designed for supervised fine-tuning of discrete diffusion language models.

DecisionUniform random maskingGoldiMask
Which tokens to reveal as contextrandom selectionselection based on a submodular objective
Weight of the remaining target tokensindependent of the selected contextdepends on how helpful the context is and on learning potential
Relationship between the two decisionsnot accounted foraccounted for through model signals

Criterion: the masking scheme should be evaluated as a single decision about context and targets. This makes it clear where revealing tokens is justified and where it is not.

Selecting context based on model signals

GoldiMask selects tokens to reveal as context. The selection approximately maximizes a submodular objective.

The method uses model signals and balances two factors:

  • the benefit of revealing a particular token;
  • the value of that token as a prediction target.

A token that helps predict its surroundings is worth revealing. A token that the model predicts poorly is better left as a target.

Practical criterion: random context selection does not use model signals. If this is the scheme being used, the potential of context selection remains untapped.

Weighting target tokens

After context selection, some tokens remain as prediction targets. GoldiMask weights them based on two factors:

  • how much the selected context helps predict a particular token;
  • how much learning potential remains for that token.

This way, the weights tie the targets to the context decision already made. Weighting does not determine what to reveal. It determines how much the tokens that remain hidden contribute to training.

Criterion: when analyzing a masking scheme, it is useful to separate two questions — what to reveal and how much weight to give the remaining tokens during training.

Results on models and datasets

GoldiMask was tested on three base models and three training datasets. The method achieved the highest average accuracy in most of the evaluated settings.

Improvements affected reasoning and code generation tasks. Ablations of the components showed that both mechanisms contributed to the improvements: context selection and target-token weighting.

Practical criterion: the highest accuracy in most settings does not mean an improvement in every configuration. The method should be tested on the specific base model + training dataset pair.

Effect on parallel decoding

A separate result concerns parallel decoding with a confidence threshold. On GSM8K and MATH-500, GoldiMask reduces the number of decoding iterations.

Accuracy remains comparable at higher confidence thresholds.

Practical criterion: if the pipeline uses parallel decoding with a confidence threshold, the method affects both the number of decoding steps and accuracy. Evaluating accuracy alone is incomplete here.

Frequently asked questions

Related materials

All materials
MathAdv: What the Final Accuracy of Machine-Generated Proofs Conceals
News

MathAdv: What the Final Accuracy of Machine-Generated Proofs Conceals

A diagnostic suite of tasks spanning 13 undergraduate and graduate mathematics topics evaluates machine-proving systems in Lean 4 not only by their final results, but also by their subject-matter mastery, the quality of their informal reasoning, and their robustness to rephrased conditions. A component-by-component analysis shows that translating a problem into formal form remains the main obstacle, and that success depends heavily on the area of mathematics and how the problem is framed.

9 November 2026
AffordanceWAM: Affordances as an intermediary between scene prediction and manipulator control
Research

AffordanceWAM: Affordances as an intermediary between scene prediction and manipulator control

The work describes a generative model that jointly predicts future RGB observations, scalar fields, affordance heatmaps, and continuous robot commands, using human videos to broaden interaction diversity without action annotations or retargeting. On RoboCasa, CALVIN ABC→D, and real-world tasks, the approach delivers consistent gains over RGB-only and robot-data-only baselines.

9 November 2026
Presentation Editing as Controlled Operations: The EditPPT Framework and DeckEdit-Bench Benchmark
News

Presentation Editing as Controlled Operations: The EditPPT Framework and DeckEdit-Bench Benchmark

The authors break down slide editing into specific objects, permitted actions, and checks to ensure unrelated content remains untouched, rather than relying on free-form code generation. To measure quality, they created DeckEdit-Bench (183 tasks across 28 human-made presentations), and the multi-agent EditPPT framework achieves a 66.7–74.9% task success rate across five base models while preserving over 97% of the content.

8 November 2026
GoldiMask Method for Fine-Tuning Diffusion Language Models: Context Selection and Target Weighting