Training-free classification SDM 2026

Discrete Diffusion Language Models Are Training-Free Multi-Label Classifiers

Ask a fill-in-the-blank language model one yes/no question per label, and it becomes a multi-label classifier with no fine-tuning, provided every label is asked in the same position.

Diffusion ModelsLanguage Models
Watch its chapter of the film

One document, several labels, no training budget

Picture a moderation feed, a legal archive or a newswire desk. A document arrives, and it does not belong to one category; it belongs to several at once. A news story can be about crude oil and about a currency. A court case can concern two different articles of the European Convention on Human Rights. A short comment can carry gratitude and joy in the same sentence. This is multi-label classification: the answer is not one label but a set of labels.

The standard recipe is supervised. You collect thousands of labelled examples, fine-tune an encoder such as BERT or RoBERTa, and attach a yes/no output to each label. That works when you have the data and the compute. Often you have neither. You have a label list, a couple of hundred labelled examples at most, and no budget to fine-tune. This paper asks whether a large pretrained model can do the job with no task-specific training at all.

A model that fills in blanks

Most large language models write left to right, one token after another. A masked-diffusion language model is trained differently. During training, a random fraction of the words in a passage is replaced by a special [MASK] symbol, and the model learns to recover them from everything around them. At inference time the same model can answer a narrow question: at this masked position, how likely is the word "yes", and how likely is "no"? The paper uses two families of such models: LLaDA-8B, trained from scratch with this objective, and Dream-7B, which starts from the autoregressive Qwen2.5-7B and is then trained to denoise.

That suggests a classifier. Show the document, ask whether a label applies, leave the answer masked, and read off the model's preference between "yes" and "no". None of these models was trained on natural-language inference data, the supervision that standard zero-shot classifiers such as BART-MNLI rely on. Any classification ability has to come from the fill-in-the-blank pretraining and, for the Instruct versions, from general instruction tuning.

The obvious design, and why it collapses

A multi-label answer is a set, so the natural first attempt is to ask for the whole set in one prompt: list every label, then append one masked answer slot per label, [MASK]; [MASK]; ...; [MASK], and read a yes or a no from each slot.

This fails in a specific and measurable way. The paper finds a slot-position asymmetry: the first answer slot behaves differently from the rest. On GoEmotions, where the alphabetically first label is "admiration", slot 1 was predicted positive on 99.4% of inputs, against a gold rate of about 5%. On Reuters, slot 1 is "earn", and it was predicted positive on 100% of test inputs. Reordering the labels moves the collapse to whichever label lands in slot 1, so the fault lies with the position, not the label.

The paper's explanation is that a long run of masked answer slots looks nothing like what the model saw in training: the first masked position carries the full context of the prompt and the rest do not. The two standard scores then tell different stories. Micro-F1 pools every (document, label) decision, so frequent labels dominate it. Macro-F1 averages a separate score for each label, so a rare label that is never predicted counts as a zero. On Reuters, always saying "earn" keeps micro-F1 at 41.6, because earn is common, while macro-F1 falls to 10.9.

Reuters: from collapse to competitiveStep-by-step pipeline ablation on Reuters-21578 (prompt-tuning row is a 3-seed mean; the ensemble includes SetFit and is not training-free). Higher is better.
micro-F1macro-F1025507510041.610.9All-maskedprompt(Base)40.638.2Per-labelquestion(Base)60.667.2Per-label(Instruct)78.166.0+ prompttuning(3-seedmean)82.479.3Hybridensemble(nottraining-free)77.065.4BART-MNLItemplate-tuned89.477.6SupervisedRoBERTaF1 (%)

Source: Table 5.5, page 8 of the paper.

Show the numbers
micro-F1macro-F1
All-masked prompt (Base)41.610.9
Per-label question (Base)40.638.2
Per-label (Instruct)60.667.2
+ prompt tuning (3-seed mean)78.166.0
Hybrid ensemble (not training-free)82.479.3
BART-MNLI template-tuned77.065.4
Supervised RoBERTa89.477.6

The idea: ask every label the same question

The method, dLLM-SetScore, replaces the one long prompt with one short prompt per label: Document: ... Question: Does this document express (label)? Answer: [MASK]. For each label the model looks at a single masked position, and the score is the log-probability of "yes" minus that of "no". A temperature and a threshold turn each score into a decision. They are tuned on a 200-example labelled validation slice, which is the only labelled data the method touches; it is used only to pick the threshold strategy, the temperature and the question wording. The model's weights are never updated.

The point of the design is symmetry. Every label is asked in the same position, so shuffling the label list cannot change the predicted set. The paper proves this as a theorem and is careful about its reach: it removes the slot-position artefact, not every bias. The wording of the question and the words in the label names still matter.

On Reuters this one change lifts macro-F1 from 10.9 to 38.2 while micro-F1 barely moves (41.6 to 40.6). Swapping the LLaDA Base model for its Instruct sibling, with nothing else changed, raises the pair to 60.6 micro and 67.2 macro. Tuning the question wording on the validation slice (for instance, asking whether the label is the main topic of the article) reaches 80.5 micro and 68.8 macro with one seed, and 78.1 ± 2.7 micro and 66.0 ± 2.9 macro averaged over three seeds. Most of that last gain is in micro-F1.

Instruction tuning helps, in two model families

The Base to Instruct swap was the largest single gain in the Reuters ablation, so the paper checks whether it is a quirk of LLaDA. It runs the same recipe on Dream-7B, which has a different parent model, tokenizer and research group. Across the five datasets in this comparison, the Instruct model beats the Base model on macro-F1 in 9 of 10 (dataset, model family) cells and on micro-F1 in 8 of 10. The one macro regression is Dream on EURLEX57K (-1.5 points), a dataset where, as described below, the candidate list itself caps performance. On a sixth dataset, AAPD, the differences are within noise and the paper makes no claim.

Instruct beats Base in most cellsMacro-F1 change from swapping a Base checkpoint for its Instruct sibling (positive = Instruct helps); 9 of 10 cells positive. Higher is better.
LLaDA-8BDream-7B-1001020307.35.9GoEmotions29.06.7Reuters0.1-1.5EURLEX57K14.11.3ECtHR10.78.2Jigsawmacro-F1 points

Source: Table 5.3, page 7 of the paper.

Show the numbers
LLaDA-8BDream-7B
GoEmotions7.35.9
Reuters29.06.7
EURLEX57K0.1-1.5
ECtHR14.11.3
Jigsaw10.78.2

The paper does not claim to know why this happens. Instruct models received general instruction-following supervision on top of denoising, so the gain cannot be credited to masked denoising alone. Two hypotheses are offered and left for future work: instruction tuning may sharpen the yes/no distribution at the answer slot, or it may reduce positional collapse by training on prompts whose final position is a genuine answer.

How it compares

The evaluation covers six datasets: GoEmotions (28 emotions), Reuters-21578 (20 news topics), EURLEX57K (100 EU legal concepts), ECtHR Task A (10 convention articles), Jigsaw Toxic (6 toxicity classes) and AAPD (54 arXiv subject codes). The training-free baselines are BART-MNLI (default and template-tuned), DeBERTa-NLI, and Qwen2.5-7B-Instruct, an ordinary left-to-right model asked to list the labels. SetFit is a few-shot supervised baseline, and fine-tuned BERT, RoBERTa and T5 are shown as upper bounds. All methods share the same test slices and the same calibration procedure.

The result is a split decision, and the paper reports it as one. With its default question, LLaDA-Instruct is the best training-free entry on Reuters macro-F1 (67.2 against 65.4 for template-tuned BART-MNLI) and on both ECtHR scores (48.8 micro and 43.3 macro, against 40.3 and 38.3 for Qwen2.5-7B-Instruct). Dream-Instruct leads Jigsaw micro-F1 (39.5). Qwen2.5-7B-Instruct is stronger on GoEmotions (27.3 micro, 25.6 macro), template-tuned BART-MNLI on Reuters micro (77.0), and default BART-MNLI on Jigsaw macro (27.2).

Tuning the question moves some of these. On Jigsaw, the "contains" wording reaches 45.1 micro (with 28.5 macro), and the "classified as" wording reaches 30.2 macro (with 43.5 micro); these are two different operating points, not one. On GoEmotions the wording chosen on the validation slice gives 29.5 micro and 24.8 macro, ahead of Qwen on micro but not on macro.

A split decision across six datasetsMacro-F1 of training-free methods, default LLaDA-Instruct question, single seed. Higher is better.
BART-MNLI defaultBART-MNLI template-tunedQwen2.5-7B-InstructLLaDA-8B-Instruct per-label02040608013.222.225.622.4GoEmotions61.065.460.967.2Reuters6.36.28.99.2EURLEX57K22.721.038.343.3ECtHR27.214.610.420.5Jigsaw5.84.63.78.4AAPDmacro-F1 (%)

Source: Table 5.2, page 7 of the paper.

Show the numbers
BART-MNLI defaultBART-MNLI template-tunedQwen2.5-7B-InstructLLaDA-8B-Instruct per-label
GoEmotions13.222.225.622.4
Reuters61.065.460.967.2
EURLEX57K6.36.28.99.2
ECtHR22.721.038.343.3
Jigsaw27.214.610.420.5
AAPD5.84.63.78.4

Two datasets are clear losses for every prompt-based method, for different reasons. EURLEX57K has 100 labels, so a sentence-embedding retriever first shortlists 32 candidates per document. That shortlist contains only 31.2% of the true labels on average, which caps any method that scores only the shortlist at a micro-F1 of about 47. The best training-free micro-F1 there is 11.9, while SetFit, trained on all 100 labels, reaches 39.7. On AAPD the full 54-label list is used, so there is no cap, and SetFit (32.8 micro, 27.7 macro) wins because of its supervised training on fine-grained subject codes.

The highest Reuters number comes from a hybrid. A weighted blend of template-tuned BART-MNLI, SetFit and LLaDA-Instruct reaches 82.4 micro and 79.3 macro, against 89.4 and 77.6 for supervised RoBERTa. Because SetFit learns from labelled examples, this blend is not training-free, and the paper's extended results table describes the blend rows as an oracle analysis on the evaluation slice rather than a deployable setting.

A refinement that made things worse

Labels in a set are not independent; some tend to appear together. The paper tried to exploit that with Joint Set Refinement, which re-scores each label given the current guesses for all the others. It hurt in every configuration tried. Starting from the per-label scores of LLaDA-Instruct, two refinement sweeps dropped GoEmotions micro-F1 from 26.79 to 19.78 and Reuters micro-F1 from 60.70 to 47.52. The paper gives a two-label counterexample showing that this local update need not improve its own objective, and notes that a prompt listing other labels' answers is again far from the model's training data. It keeps the method only as a documented negative result.

What it means, and what it does not

The practical message is modest and specific. With a masked-diffusion model, a label list and a couple of hundred labelled examples for calibration, asking one short yes/no question per label gives a usable classifier, and the Instruct checkpoint is the better choice in most cells tested. Asking for the whole set in one prompt does not work, because of the slot-1 collapse.

For a masked-diffusion model, the shape of the question decides the result: ask each label on its own, in the same position, and use the Instruct checkpoint.

The paper states its limits plainly.

The question the paper leaves open is the interesting one: why does general instruction tuning make a fill-in-the-blank model a better judge of which labels apply? The effect replicates across two independently built model families. The mechanism is still unexplained.

More stories from the lab

Want to be part of the lab? Write to us.