acceptodds
Published as a conference paper at NeurIPS 2026

Safety Reconstructed: Generative Modeling via Masked Diffusion Builds Strong Safety Guardrails

Gert Lek, Abele Mălan, Chaoyi Zhu, Pin-Yu Chen, Robert Birke, Lydia Chen

Abstract

Guard models are the last line of defense between a language model and a harmful output, yet their training objective is surprisingly narrow. Existing guards learn to predict a single verdict token from a conversational context, concentrating supervision on a single target. The consequences are structural: models latch onto shortcut features, are overconfident, and remain sensitive to where safety evidence appears in the sequence rather than its role in the full context. We propose a different framing. Rather than predicting a label from text, our asks which label better explains the text: scoring the prompt or response under each label hypothesis and classifying based on their difference. This shifts supervision to every token in the moderated region, forcing the model to account for full content rather than its most discriminative fragments. We instantiate this idea with a masked diffusion language model, fine-tuning LLaDA-8B-Instruct with a class-conditional reconstruction objective using LoRA and requiring no architectural changes beyond the base model. LLaDA Guard leads on average rank against discriminative baselines trained on stronger backbones across seven held-out safety benchmarks, while exhibiting substantially better confidence calibration (ECE 0.0875 vs. 0.1384 for Qwen3Guard), less over-defense on benign prompts with -looking cues, and less prompt leakage when moderating responses. Its generative nature further enables token-level risk localization as a natural byproduct, yielding a pipeline for rewriting prompts into equivalents without additional training and achieving a 60.7% average conversion-to- rate. The weights and code for reproduction are available at the following [anonymized repository](https://anonymous.4open.science/r/LLaDA-Guard2026-B056/).

Keywords:
Sydney, Main Track

Reviews

Among:
Shape:
123456this paper, Top 8%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 5.00 over 3 reviews, above 92% of the others.
Reviewer_9ymiOpenReview ↗
Rating
5
Clarity
4
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

This paper proposes LLaDA-Guard, a masked diffusion language guard model, a fine-tuned LLaDA-8B-Instruct model using LoRA. The proposed model leads on average rank against discriminative baselines.

Strengths and weaknesses

The paper is generally well-motivated. I find the idea of using a diffusion-based approach as a safety discriminator quite interesting. The experiments and analyses are well-organized and well developed, with a few particular concerns (see Clarity and Q2).

However, I do have some concerns about this paper, which I detail below (and complement in the Questions section):

  • Quality: No particular concerns; the paper is generally clear and easy to follow, the execution of the experiments seems consistent, well executed and is easy to understand.
  • Clarity: There are some important missing details that would be interest to report and analyze. Specifically, understanding how the fine-tuned model performs over varying number of denoising steps would add value to the analysis.
  • Significance: With exception to calibration metrics, the discrimination-based evaluation shows a mild improvement (or lower) performance of the proposed model relative to the baseline, over models with similar sizes. This is a bit disappointing, and may hint towards the solution being potentially underexplored. Unfortunately, and due to the nature of the contribution (a contribution that aims to push the state-of-the-art in pretrained, text safety discriminators), I wouldn't consider these results to be sufficiently compelling for acceptance at a venue like NeurIPS.
  • Originality: I'm also not convinced that the technical contribution is particularly significant; the model is trained based on an existing pretrained model, using a popular finetuning approach (LoRA), over already existing public datasets.

In summary, I find the core concept (from a technical perspective) interesting, the experiments' analysis are well executed (with a few concerns), but I'm not convinced the technical (training approach, model trained, etc.) and practical (model performance and its utility) contributions are sufficiently strong for acceptance at NeurIPS.

Questions
  • Q1: Are the base model weights going to be made available upon publication as well? I.e., should the reviewers expect that the provided GitHub repository will also allow a user to easily use the fine-tuned model into follow-up research?
  • Q2: Since a diffusion-based approach was used, would you be able to add information regarding the runtime of the proposed method, relative to the remaining baselines? In addition, how does the runtime vary, relative to the number of denoising steps and performance?
  • Q3: One thing that remains unclear to me: It seems that LLaDA-Guard's output is merely binary (safe/unsafe). Isn't this a major limitation, when compared to several other safety discriminators, which usually also identify the hazard category?
  • Q4: How would your model perform when compared to a frontier, pretrained LLM prompted to identify whether a prompt/answer is unsafe? Even if it outperforms your approach, it does not necessarily invalidate your contribution (in my opinion); your proposed solution would function as a much cheaper and (hopefully) faster method. But I believe it would still be interesting to compare with what the most "expensive" approach would be.
Limitations

See Q3. Other than that, the authors adequately addressed the limitations and implications of their work.

Paper formatting concerns

No concerns.

Final justification

I thank the authors for their time in writing the rebuttals, which have addressed my concerns. I updated the significance, originality and overall score accordingly.

1 comment

Thank you for finding the core idea interesting and the experiments well executed. We agree that runtime and category prediction require more clarity. We first clarify the paper’s significance and originality before turning to the specific technical questions.

Significance and Originality

While the average discrimination margin over strong guards is indeed modest, we wish to highlight two strengths.

First, LLaDA-Guard is trained on a weaker backbone with fewer samples than its discriminative counterparts, such as Qwen3Guard (1.19 million samples). As stronger models are released (see answer to Q1), we expect the classification performance to improve. Second, the technical contribution is not LoRA or the public training mixture. It is the class-conditional region-reconstruction objective and likelihood-ratio score, which move supervision from one verdict token to the moderated text and use the choice of reconstructed region to support prompt and response moderation. LLaDA-Guard ranks among the best models in terms of classification performance, showing this objective to be effective. The clearer advantage is in reliability: LLaDA-Guard combines top-tier classification with substantially better calibrated confidence estimates, addressing a known limitation of LLM-based guards [1].

Q1: Availability and reuse

Yes, the anonymized repository already contains the trained LoRA adapters, plus inference code, which can be combined with the public LLaDA-8B-Instruct checkpoint. Upon publication, we will release LLaDA-Guard on Hugging Face for convenience. Separately, we also plan to release an extension based on the newer iLLaDA backbone [2]; all results and claims in the submission refer to the LLaDA-8B-Instruct-based model.

Q2: Runtime and performance over denoising steps

Moderation does not run an iterative denoising trajectory. The diffusion time tt at training is equal to the fraction of moderated tokens masked in one evaluation, i.e., the masking rate. Sampled masks are scored in one forward pass, and KK is the number of independent masks per label.

Binary moderation, therefore, uses 2K2K evaluations, corresponding to the two safe/unsafe hypotheses under KK masks. These can be batched, but the extra compute is a trade-off. We measure it against a separately trained LLaDA direct-verdict model and Qwen3Guard:

MethodEffective inference workMedian ms/ex ↓Relative latency ↓Ex/s ↑Peak GiB ↓Avg. AUPRC ↑Avg. F1 ↑Avg. ECE ↓
LLaDA direct verdict1 verdict forward64.91.00×15.418.50.90360.81340.0971
Qwen3Guard-Gen 8B†8 serial decode steps105.41.62×9.516.30.94060.82750.1223
WildGuard 7B†24 serial decode steps185.32.86×5.414.50.92730.84830.0876
LLaDA-Guard, K=1K=12 sequence evaluations, paired127.41.96×7.917.70.91520.83840.0826
LLaDA-Guard, K=3K=36 sequence evaluations, paired by mask384.05.92×2.621.90.92660.84910.0770

† Qwen3Guard and WildGuard latencies measure their complete official structured outputs, requiring 8 and 24 serial decode steps, respectively. Latency and peak allocated memory were measured on one NVIDIA GH200 over 30 timed batches (120 example-executions) after 5 warm-up iterations, using 1024-token inputs, t=0.15t=0.15, and batch size 4.

Each of the KK sampled masks is reused under both hypotheses. Once the masks are sampled, the resulting 2K2K forward evaluations can be executed independently and batched when memory permits. At K=1K=1, median latency is 1.96x that of the matched LLaDA direct-verdict model and 1.21x that of Qwen3Guard. On the same six held-out datasets, K=1K=1 obtains AUPRC/F1/ECE 0.9152/0.8384/0.0826, compared with 0.9406/0.8275/0.1223 for Qwen3Guard. Thus, K=1K=1 gains 1.09 F1 percentage points and reduces ECE by 3.97 percentage points, while giving up 2.54 AUPRC percentage points. At the submitted K=3K=3 setting, AUPRC/F1/ECE are 0.9266/0.8491/0.0770, at 3.64× Qwen3Guard’s measured median latency.

We therefore view K=1K=1 as the practical throughput-oriented setting, and K=3K=3 as a calibration-oriented setting. Parameter memory remains constant across KK. Peak activation memory depends on how many of the 2K2K evaluations are batched concurrently, so reducing serial latency trades off against peak memory. The masking rate tt changes how much context is hidden but not the processed sequence length, so it has little effect on the evaluation cost.

Appendix Figure 11 shows the KK,tt trend on Aegis 2.0 validation. Our new six-dataset held-out sweep shows the same qualitative result: F1 and AUPRC change modestly with KK, while ECE improves most consistently.

Q3: Binary output versus categories

The submitted checkpoint is binary, which is a genuine limitation for deployments that require a hazard taxonomy. The baselines support this in various ways. LLama Guard, Qwen3Guard and NemoGuard can emit category labels, while WildGuard cannot. ShieldGemma and Granite Guardian make binary decisions against categories supplied in the input.

To tackle this, we propose and train an extension to our method. We trained an extension that predicts the 12 Aegis 2.0 categories through an additional reconstruction loss, providing category outputs analogous to those of Llama Guard, Qwen3Guard, and NemoGuard. When the binary decision is unsafe, all twelve categories are predicted in parallel in one additional evaluation. This is achieved with the parallel decoding capability of MDMs. The category prediction carries one additional evaluation, while the baselines need multiple sequential decoding steps. For example, if Llama Guard outputs unsafe, H1, H5, it generates the category tokens sequentially. LLaDA-Guard instead predicts all 12 category tokens in parallel in one additional evaluation, with H1 and H5 decoded simultaneously.

We fine-tuned LLaDA-Guard with the category reconstruction loss:

ModelCategory macro-F1 ↑Exact set match ↑Mean serial category-decoding steps ↓
LLaDA-Guard0.5590.4491.00
Llama Guard 3-8B0.3500.2243.04
NemoGuard V20.6080.47418.34
NemoGuard V30.6330.43719.37

Averaged over the unsafe examples in the six held-out datasets. Per-dataset precision, recall, refusal rates, and valid-response-only results will be included in the final version.

Adding category supervision reduces binary F1 from 0.8491 to 0.8381 and AUPRC from 0.9266 to 0.9250. Macro-F1 over the mapped H1–H12 taxonomy is 0.559, against 0.350 for LLama Guard 3-8B, 0.608 for NemoGuard V2, and 0.633 for NemoGuard V3; exact category match is 0.449, against 0.224, 0.474, and 0.437, respectively. For LLaDA-Guard with this extension, category prediction requires exactly one additional evaluation per unsafe example.

Thus, the MDM's parallel decoding capability can be used to more efficiently decode hazard categories, with competitive performance.

Q4: Prompted frontier LLM reference

A frontier LLM provides a useful high-capability and cost reference, although we cannot extract comparable confidence metrics, and the model scale and architecture are not matched. We evaluate Gemini 3.6 Flash with medium reasoning and 1024 max output tokens using the LLama Guard Prompt Template. Gemini achieves an F1 of 83.04 averaged over the datasets, compared to 84.91 for LLaDA-Guard, while outperforming on XSTest (+7.06) and OpenAI Mod (+9.58) and underperforming on ToxicChat (-10.99) and BeaverTails (-10.81).

DatasetLLaDA-Guard F1Gemini F1
XSTest0.88770.9583
OpenAI Mod0.75130.8471
ToxicChat0.77550.6656
BeaverTails0.82190.7138
SafeRLHF0.93010.8703
XSTest-Response0.92810.9272
Macro average0.84910.8304

Note that Gemini refused to reply with a safety-block in 6.5% of cases, which we count as unsafe since the Gemini API Guardrail was triggered. Re-scoring both models on only the valid rows changes the macro-F1 gap by less than 0.1 points. Gemini also costs \24.42forthefullheld−outevaluation,withamedianlatencyof2.18spersample.Atthethroughputsaboveandanillustrativemarketcostof24.42 for the full held-out evaluation, with a median latency of 2.18 s per sample. At the throughputs above and an illustrative market cost of \\2 per GH200-hour, LLaDA-Guard costs roughly \0.07per1,000examplesat0.07 per 1,000 examples at K{=}1and and \\0.21 at K=3K{=}3. Extended per-dataset results will be in the final version.

Summary of new experiments

For Reviewer 9ymi, we: (i) ran an inference-cost evaluation against direct-verdict inference, Qwen3Guard, and WildGuard (ii) trained and evaluated a 12-category reconstruction extension against Llama Guard and NemoGuard (iii) ran a full Gemini 3.6 Flash comparison.

References:

[1] Liu, Hongfu, et al. "On calibration of LLM-based guard models for reliable content moderation." ICLR 2025

[2] Nie, Shen, et al. "Improved Large Language Diffusion Models." arXiv preprint (2026)

Reviewer_DkGfOpenReview ↗
Rating
5
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

This paper proposes LLaDA-Guard, a safety moderation model based on a masked diffusion language model. Instead of directly predicting a safe/unsafe verdict token, the paper reformulates safety moderation as class-conditional generative scoring: given a safe or unsafe label hypothesis, the model compares the reconstruction likelihood of the moderated region under the two hypotheses and makes a safety decision based on their likelihood difference.

Strengths and weaknesses

Strengths:

  1. The paper reformulates safety moderation from direct safe/unsafe verdict prediction into class-conditional reconstruction scoring, shifting supervision from a single verdict token to the moderated text itself.
  2. The experiments go beyond AUPRC and F1 by systematically analyzing calibration, over-defense, positional bias, and prompt leakage, showing that the method improves not only classification performance but also guard-model reliability.

Weaknesses:

  1. By default, LLaDA-Guard needs to perform multiple masked reconstruction scoring passes under both the safe and unsafe label hypotheses, which introduces a noticeable inference-time cost.
  2. The current ablation uses the same LLaDA-Guard weights, so it does not fully demonstrate the advantage of the class-conditional reconstruction training objective over standard discriminative training.
Questions
  1. Could the authors provide a more direct analysis of inference-time cost, such as latency, throughput, memory usage, and the trade-off between K, masking rate, and performance?
  2. Have the authors considered training a standard verdict-token classifier based on LLaDA-8B + LoRA, using the same training set? This would help isolate the effect of the training objective and clarify whether the gains come from the masked diffusion backbone, the generative scoring procedure, or the proposed class-conditional reconstruction objective itself.
Limitations

yes

Paper formatting concerns

No Concerns

Final justification

The rebuttal sufficiently addresses my main concerns, particularly through the matched direct-verdict baseline, which provides stronger evidence that the gains are not solely due to the LLaDA backbone. While inference overhead and the coupling between the training objective and reconstruction-based inference remain limitations, I therefore raise my rating from 4 to 5.

1 comment

Thank you for recognizing the reformulation and reliability evaluation. The two central questions are whether the gains persist under a matched direct-verdict control and what inference cost is required to obtain them.

Q1: Inference cost and the (K,t)(K,t) trade-off

We agree that inference cost is a trade-off of class-conditional reconstruction, and we have now measured it directly against the separately trained direct-verdict control, Qwen3Guard-8B and Wildguard. For binary moderation, LLaDA-Guard samples KK masks and evaluates each mask under both label hypotheses, giving 2K2K logical full-sequence evaluations. All evaluations are independent across KK, so they can be batched.

MethodEffective inference workMedian ms/ex ↓Relative latency ↓Ex/s ↑Peak GiB ↓Avg. AUPRC ↑Avg. F1 ↑Avg. ECE ↓
LLaDA direct verdict1 verdict forward64.91.00×15.418.50.90360.81340.0971
Qwen3Guard-Gen 8B†8 serial decode steps105.41.62×9.516.30.94060.82750.1223
WildGuard 7B†24 serial decode steps185.32.86×5.414.50.92730.84830.0876
LLaDA-Guard, K=1K=12 sequence evaluations, paired127.41.96×7.917.70.91520.83840.0826
LLaDA-Guard, K=2K=24 sequence evaluations, paired by mask253.53.91×3.919.80.92330.84540.0792
LLaDA-Guard, K=3K=36 sequence evaluations, paired by mask384.05.92×2.621.90.92660.84910.0770
LLaDA-Guard, K=4K=48 sequence evaluations, paired by mask508.47.83×2.024.00.9250.8480.0754

† Qwen3Guard and WildGuard latencies measure their complete official structured outputs, requiring 8 and 24 serial decode steps, respectively. Latency and peak allocated memory were measured on one NVIDIA GH200 over 30 timed batches (120 example-executions) after 5 warm-up iterations, using 1024-token inputs, t=0.15t=0.15, and batch size 4.

All AUPRC, F1, and ECE values are averages over the same six mixed-label held-out benchmarks.

Parameter memory remains fixed at one checkpoint, while peak activation memory depends on KK, batch size, and how many evaluations are batched concurrently, so lower serial latency trades off against higher memory usage. KK and tt play distinct roles: KK is a test-time compute knob that reduces variance in the likelihood estimate, whereas tt controls the fraction of the moderated region that is hidden/masked. Appendix Figure 11 evaluates both parameters on the Aegis 2.0 validation set, and we additionally repeat the KK-sweep on the six held-out datasets shown above. At fixed t=0.15t=0.15, increasing KK from 1 to 4 raises median latency from 127.4 to 508.4 ms/example while reducing ECE from 0.0826 to 0.0754; F1 increases from 0.8384 to 0.8480 and AUPRC from 0.9152 to 0.9250.

Q2: Separately trained LLaDA direct-verdict

We first correct a description error in Appendix B.1 that understandably led to the reviewer's interpretation. The phrase “uses the same LLaDA-Guard weights” should have said that Direct uses the same LLaDA-8B-Instruct backbone. The reported Direct results were produced by a separately fine-tuned LLaDA-8B-Instruct + LoRA checkpoint, not by applying a different readout to the class-conditionally trained LLaDA-Guard checkpoint. It was trained with standard verdict-token supervision, in which only the masked safe/unsafe label token is supervised on the same data and optimization budget. We provide the AUPRC/F1/ECE metrics for an ablation where we compare the base LLaDA-8B-Instruct for both inference methods and their fine-tuned versions.

InferenceAvg AUPRC ↑Avg F1 ↑Avg ECE ↓
LLaDA-8B-InstructDirect0.83530.68940.2131
LLaDA-8B-InstructReconstruction0.34730.39540.1703
LLaDA-Guard Direct 8BDirect0.90360.81340.0971
LLaDA-Guard 8BReconstruction0.92660.84910.0770

Results are macro-averaged over the six held-out datasets; PHTest excluded. The poor performance of the base checkpoint under reconstruction scoring shows that the inference rule alone, without task-specific class-conditional training, does not explain LLaDA-Guard’s performance. Relative to the matched direct-verdict model, the method improves AUPRC by 2.30 percentage points, F1 by 3.57 points, and ECE by 2.01 points. Section B.1 will be adjusted in the final version, and the full six held-out datasets will be included with the base LLaDA-8B-Instruct metrics.

Summary of new experiments

For Reviewer DkGf, we: (i) evaluated the base under both direct and reconstruction inference (ii) measured the effects of K on inference cost against LLaDA-Guard Direct, Qwen3Guard, and WildGuard on the six held-out datasets.

Reviewer_CVNTOpenReview ↗
Rating
5
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

The paper introduces a new setup for content moderation of LLMs, to be used for detecting both unsafe prompts and unsafe responses. Their main claimed improvements are fewer overconfident false positives, better positional bias handling, and reduced calibration error w.r.t ground truth labels.

Their setup casts the problem of predicting y∈{safe,unsafe}y \in \\\{safe, unsafe\\\} label as a generative classification problem instead of discriminative. Instead of forecasting p(y∣xP,xR)p(y|x_P, x_R) where P,RP, R respectively denote prompt and response, using an auto-regressive decoder, they use a masked diffusion LM to score (masked tokens of) prompts and responses, namely p(xP,y),p(xR∣xP,y)p(x_P, y), p(x_R|x_P, y), conditional on the 22 possible values of y∈{safe,unsafe}y \in \\\{safe, unsafe\\\}. The log ratio of these 22 class conditional probabilities is treated as a logit which gives them their forecast for inference, and also feeds into a binary cross entropy loss for training with ground truths as labels. The claimed advantage of generative classification is that it forces the model to avoid shortcuts in forecasting class probabilities, which can cause false positives with high confidence. They have an additional training loss term that specifically maximizes the conditional log-likelihood of reconstruction, namely p(xP∣y),p(xR∣xP,y)p(x_P|y), p(x_R|x_P, y) where yy is the ground truth.

The use of masked diffusion LM is a natural choice for generative classification, since they are compute the prompt and response conditional probabilities---they point out that this is difficult to do with AR models due to use causal attention (although, see Questions section below). Also, AR models suffer from positional bias, which is less pronounced in diffusion LMs due to use of bidirectional attention.

Strengths and weaknesses

Strengths:

  • [Quality] The paper does a thorough job of comparing their setup with previous work on standard benchmarks.
  • [Originality] The idea of using generative classification with an additional reconstruction loss in this context is novel. The paper does a reasonable job of covering earlier work as far as I can tell (although I have not done a thorough check here).
  • [Significance] Content moderation for LLM is an important problem. The experimental results are significant. But see weaknesses below.

Weaknesses:

  • [Quality] The paper could have done a better job of discussing some possible drawbacks of using diffusion LMs (e.g. cost), and of the masked reconstruction approach. See e.g. questions Q3, Q4.
  • [Quality] However addressing question Q1 would help. In particular some discussion on how much the weight on the reconstruction loss matters to the quality of the guard model.
Questions

Addressing the following would improve this reviewer's rating of this paper:

  • Q1: How important is the additional training loss (that maximizes the conditional log-likelihood of reconstruction) for avoiding overconfident misclassifications? The main loss is ultimately based on ratio of conditional reconstruction probabilities, so is it possible that this additional loss plays a far more important than is emphasized? This should be elaborated a bit more in the paper.
  • Q2: Although bidirectional (diffusion) LMs do sound like a natural choice here, is it possible to re-order the input by putting the label yy at the beginning (before xP,xRx_P, x_R) and still use causal AR models for computing the conditional probabilities? Has this been considered here or earlier?
  • Q3: The weighted reconstruction of masked token formulation adopted from LLaDA is only an approximation of the exact log-likelihood. How does this affect the quality of the guard model? Does this focus the guard model more towards individual tokens as reasons rather than longer patterns?
  • Q4: Some discussion about the computational cost of using diffusion models versus AR could also benefit the paper.
Limitations

Yes.

Paper formatting concerns

None.

Final justification

Please refer to my response to the authors rebuttal---they have addressed almost all of my questions and concerns. I think the paper's rating can be upgraded to a 5 based on that discussion.

1 comment

Thank you for your constructive review. We agree that the reconstruction term, likelihood approximation and inference cost deserve more analysis. We also implemented the reviewer’s suggested causal autoregressive class-conditional baseline.

Q1: How important is the ground-truth reconstruction loss?

The two losses serve different roles, where LmodL_{mod} trains the relative unsafe-versus-safe log-likelihood ratio and, by itself, only requires the correct hypothesis to rank above the incorrect one. LgenL_{gen} provides the absolute signal to prevent a solution in which both hypotheses are poor explanations of the text but are ordered correctly. We agree that calling it “additional” can understate this role and therefore trained models with the same base checkpoint while varying λ\lambda for LgenL_{gen}.

λ\lambdaMacro F1AUPRCECEScore gapOverconf. error (conf. >.9>.9) ↓
00.84310.92450.07757.600.0439
0.0250.85020.92980.07728.200.0500
0.10.84910.92660.07707.380.0418
0.40.84890.92430.07687.970.0448
1.60.82110.91210.08425.470.0347
6.40.80350.89480.09134.890.0268

Score gap is E[s(x)∣y=unsafe]−E[s(x)∣y=safe]\mathbb{E}[s(x)\mid y=\mathrm{unsafe}] - \mathbb{E}[s(x)\mid y=\mathrm{safe}]. All metrics are macro-averaged over the six mixed-label held-out datasets; PHTest is excluded.

The submitted value is λ=0.1\lambda=0.1, selected from the validation set. The sweep shows a plateau from λ=0\lambda=0 through 0.40.4. Thus, the reconstruction loss is not the primary driver of either classification or ECE, although moderate weights provide a small improvement. Consistently, the overconfident-error rate changes only from 0.0439 at λ=0\lambda=0 to 0.0418 at λ=0.1\lambda=0.1 and is non-monotonic through λ=0.4\lambda=0.4, indicating that LgenL_{gen} is not the main mechanism preventing confidently wrong predictions. The degradation in F1, AUPRC, and ECE at λ≥1.6\lambda\geq1.6 is consistent with over-weighting absolute reconstruction at the expense of class separation. We interpret the small differences within 0≤λ≤0.40 \leq \lambda \leq 0.4 as a stable region rather than evidence that one value is optimal.

Q2: Can a causal AR model put the label first and compute the class-conditional scores?

It is feasible to reorder the prompt so that a causal model can score p(x∣y)p(x\mid y), then teacher-force the moderated text:

log⁡pAR(xP∣y)=∑ilog⁡p(xiP∣y,x<iP).\log p_{\mathrm{AR}}(x^P\mid y)=\sum_i \log p\big(x_i^P\mid y, x_{<i}^P\big).

or, for response moderation,

log⁡pAR(xR∣xP,y)=∑ilog⁡p(xiR∣xP,y,x<iR).\log p_{\mathrm{AR}}(x^R \mid x^P, y)=\sum_i \log p\big(x_i^R \mid x^P, y, x_{<i}^R\big).

This is tied to the left-to-right factorization: the likelihood contribution of a token can use only its prefix, and arbitrary masked subsets cannot be scored bidirectionally. An MDM naturally conditions each reconstructed token on visible evidence on both sides.

We trained Qwen-2.5-7B-Instruct (as it is the main comparison to LLaDA) with this factorization, on the same 40K examples, with a matched LoRA configuration, optimizer schedule, and number of updates.

Qwen2.5-7B methodsF1AUPRCECE
Base Qwen2.5-7b0.44760.51870.2106
+ Class-conditional SFT0.81230.88130.0944
LLaDA-Guard 8B (reference)0.84910.92660.0770

Analyzing the above table, we notice that the training greatly improves classification capability, and the calibration is better than Qwen3Guard (ECE of 0.1223). This demonstrates that the class-conditional formulation transfers meaningfully to a causal AR model. LLaDA-Guard remains stronger by 3.68 F1 percentage points and 4.53 AUPRC points, with ECE lower by 1.74 points. We will include the per-dataset breakdown in the final version.

Q3: Effect of the likelihood approximation and whether it favors isolated tokens

The masked-reconstruction score is a Monte Carlo estimate of the MDM variational reconstruction objective. KK primarily controls sampling variance, whereas the masking rate tt controls a trade-off: small tt scores few heavily weighted tokens and large tt lowers sampling variance but hides too much context.

Appendix Figure 11 shows this trend on the Aegis 2.0 validation set. We additionally repeat the sweep on the six held-out datasets. At t=0.15t=0.15, increasing KK from 11 to 44 reduces the mean logit variance from 1.041.04 to 0.270.27 and raises the repeated mask agreement from 0.9600.960 to 0.9810.981. ECE improves from 0.08260.0826 to 0.07540.0754, while F1 changes from 0.8384 to 0.8480, and AUPRC from 0.9152 to 0.9250.

Although the objective is a sum of token reconstruction terms, each term is conditioned on the visible bidirectional context, therefore the token-level supervision does not mean that it isolates words. When a majority of the important tokens are masked simultaneously, this can weaken the verdict estimation. Averaging over KK masks partially mitigates this because each mask exposes a different subset of the context. We vary how much is hidden:

ttF1 (K=1)F1 (K=4)Score var (K=1)Score var (K=4)
0.050.8390.8512.240.55
0.150.8380.8481.040.27
0.300.8270.8410.690.17
0.500.7990.8180.650.16

The table shows the variance behavior. At t=0.05t=0.05, the estimator has higher variance because a small number of tokens receive large weights. At t=0.5t=0.5 variance is lower but F1 drops from 0.851 to 0.818 at K=4K=4, showing that hiding too much context decreases performance. The independent masks partially mitigate this by creating different context subsets, but cannot fully recover the evidence that is hidden at high tt.

Additionally, for K=1K=1, we define the contribution of token ii as its unsafe-minus-safe reconstruction margin and define top-k concentration as the sum of the k largest absolute contributions divided by the total absolute contribution. Across the six held-out datasets, the median top-1 and top-5 concentration are 4.28% and 17.67%. When we forcibly mask the top-1 token, 2.37% of verdicts flip. These results argue against domination by an isolated token.

Q4: Computational cost

Computational cost is a genuine trade-off of class-conditional reconstruction. For binary moderation, the method evaluates each of KK sampled masks under both hypotheses, requiring 2K2K evaluations. These evaluations are independent and can be batched when memory permits, reducing serial latency, although computation still depends linearly on KK. Recent likelihood-based continuous-dLLM [1] work may motivate alternative likelihood-estimation or variance-reduction approaches, although adapting these to class-conditional moderation remains future work.

Appendix Figure 11 displays this trade-off on the Aegis 2.0 validation set across masking rate tt and number of masks KK. AUPRC and F1 remain relatively stable, whereas increasing KK most consistently improves calibration by reducing variance in the likelihood estimate. Thus, KK acts as a test-time compute knob, where smaller values favor efficiency and larger values are useful when calibration is required.

We provide further experiments on the computational cost:

MethodEffective inference workMedian ms/ex ↓Relative latency ↓Ex/s ↑Peak GiB ↓Avg. AUPRC ↑Avg. F1 ↑Avg. ECE ↓
LLaDA direct verdict1 verdict forward64.91.00×15.418.50.90360.81340.0971
Qwen3Guard-Gen 8B†8 serial decode steps105.41.62×9.516.30.94060.82750.1223
WildGuard 7B†24 serial decode steps185.32.86×5.414.50.92730.84830.0876
LLaDA-Guard, K=1K=12 sequence evaluations, paired127.41.96×7.917.70.91520.83840.0826
LLaDA-Guard, K=3K=36 sequence evaluations, paired by mask384.05.92×2.621.90.92660.84910.0770

† Qwen3Guard and WildGuard latencies measure their complete official structured outputs, requiring 8 and 24 serial decode steps, respectively. Latency and peak allocated memory were measured on one NVIDIA GH200 over 30 timed batches (120 example-executions) after 5 warm-up iterations, using 1,024-token inputs, t=0.15t=0.15, and batch size 4.

All AUPRC, F1, and ECE values are averages over the same six mixed-label held-out benchmarks.

At K=1K=1, LLaDA-Guard is 1.21x slower in median latency than Qwen3Guard and obtains +1.09 F1 points and -3.97 ECE points, while giving up 2.54 AUPRC points. At K=3K=3, latency is 3.64x Qwen3Guard's, with +2.16 F1 points, −4.53 ECE points, and −1.40 AUPRC points. We therefore view K=1 as the practical efficiency setting and K=3 as an optional calibration-oriented setting.

Summary of new experiments

For Reviewer CVNT, we: (i) added a reconstruction-loss ablation (ii) trained the Qwen2.5 causal class-conditional control (iii) evaluated the held-out datasets over t,Kt, K (iv) evaluated token-level evidence and prediction flips (v) benchmarked inference cost against LLaDA-Guard Direct, Qwen3Guard, and WildGuard.

References:

[1] Yang, Zhihan, et al. "Continuous diffusion scales competitively with discrete diffusion for language." arXiv preprint (2026)

Comments on the paper

1 comment
Meta-review

(a) Summary This paper introduces LLaDA-Guard, a safety moderation model built on a masked diffusion language model. Instead of predicting a single verdict token like standard autoregressive guardrails, the proposed method evaluates the text using class-conditional generative scoring. The model compares the reconstruction likelihood of the moderated region under competing safe and unsafe label hypotheses. This approach shifts the supervisory signal from a single token to the entire text sequence. The authors evaluate the model across seven held-out safety benchmarks, comparing it to multiple discriminative baselines. Results indicate that the generative formulation improves confidence calibration and reduces positional bias while maintaining competitive classification performance.

(b) Strengths Reviewers liked the conceptual reframing of content moderation as a generative classification problem rather than a standard discriminative task. The use of a masked diffusion language model offers a natural and elegant architecture for estimating class-conditional reconstruction probabilities. The empirical evaluations provide a detailed analysis of model calibration, over-defense, and positional bias, moving beyond simple accuracy metrics. The results show that the proposed approach effectively reduces overconfident false positives and prompt leakage when moderating responses. The generative nature of the model naturally enables token-level risk localization, which can be used to rewrite unsafe prompts into safe equivalents. Reviewers also appreciated the comparison against multiple existing guard models on a comprehensive set of benchmarks.

(c) Weaknesses Reviewers expressed doubts about the computational efficiency of the method, as requiring multiple masked reconstruction scoring passes under both hypotheses introduces noticeable inference latency. The manuscript lacks a detailed breakdown of this inference-time cost, leaving questions about throughput and memory usage unanswered. The ablation studies rely on the same fine-tuned model weights, which makes it difficult to fully isolate the benefits of the class-conditional training objective from the masked diffusion backbone itself. Reviewers noted that the binary output of the current model limits its utility compared to existing discriminative guardrails that also classify the specific hazard category. The classification performance improvements over similarly sized models are relatively modest, raising questions about whether the gains justify the added complexity. There is also a lack of comparison against frontier, closed-source models to establish a broader baseline for moderation capability and cost trade-offs.

(d) [Initial meta-review] Reviewers reached a consensus that this submission is well-positioned for acceptance due to its well-motivated methodology and solid empirical analysis. The reframing of safety moderation into a generative scoring task is an interesting contribution that yields measurable benefits in model calibration. To further strengthen the paper, the authors should provide minor clarifications regarding the inference-time cost and its practical implications for real-time deployment. Adding a discussion or baseline comparison involving a standard verdict-token classifier trained on the same backbone would help isolate the exact source of the performance gains. Clarifying the feasibility of extending the framework to identify specific hazard categories would also address concerns about its binary limitation. If the authors can provide these minor clarifications regarding computational overhead and architectural ablations during the rebuttal, it will strengthen the paper for acceptance.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.