potentialpaper

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

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 20:46 UTC · 365a065329e4 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,26 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "oIxNRF9huQ"
- }
- ],
- "title": "Safety Reconstructed: Generative Modeling via Masked Diffusion Builds Strong Safety Guardrails",
- "authors": [
- "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.\nExisting 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.\nWe propose a different framing. Rather than predicting a label from text, our $\\textbf{LLaDA-Guard}$ 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.\nLLaDA-Guard leads on average rank against discriminative baselines trained on stronger backbones across seven held-out safety benchmarks,\nwhile exhibiting substantially better confidence calibration (ECE 0.0875 vs. 0.1384 for Qwen3Guard), less over-defense on benign prompts with $\\texttt{unsafe}$-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 $\\texttt{unsafe}$ prompts into $\\texttt{safe}$ equivalents without additional training and achieving a $60.7\\%$ average conversion-to-$\\texttt{safe}$ rate. Code and the trained checkpoint are available at https://github.com/Gertlek/LLaDA-Guard2026.",
- "year": 2026,
- "venue": "NeurIPS 2026",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "8c324843-75d9-4397-a5d3-3e1640e64043"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,16 @@
+{
+ "title": "Safety Reconstructed: Generative Modeling via Masked Diffusion Builds Strong Safety Guardrails",
+ "authors": [
+ "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.\nExisting 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.\nWe propose a different framing. Rather than predicting a label from text, our $\\textbf{LLaDA-Guard}$ 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.\nLLaDA-Guard leads on average rank against discriminative baselines trained on stronger backbones across seven held-out safety benchmarks,\nwhile exhibiting substantially better confidence calibration (ECE 0.0875 vs. 0.1384 for Qwen3Guard), less over-defense on benign prompts with $\\texttt{unsafe}$-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 $\\texttt{unsafe}$ prompts into $\\texttt{safe}$ equivalents without additional training and achieving a $60.7\\%$ average conversion-to-$\\texttt{safe}$ rate. Code and the trained checkpoint are available at https://github.com/Gertlek/LLaDA-Guard2026.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}