mlsanityData to 14 Oct 2026

A Lightweight Explainable Guardrail for Prompt Safety

arXiv 2602.15853 ↗First posted 24 Jan 2026cs.CL cs.AIcited by 1

On the map: LLM safety and security → Safety alignment, refusal and guardrails

Abstract (arXiv)

We propose a lightweight explainable guardrail (LEG) method to detect unsafe prompts. LEG uses a multi-task learning architecture to jointly learn a prompt classifier and an explanation classifier, where the latter labels prompt words that explain the safe/unsafe overall decision. LEG is trained on synthetic explanation data, which is generated using a novel strategy that counteracts the confirmation biases of LLMs. Lastly, LEG's training process uses a novel loss that captures global explanation signals as a weak supervision and combines cross-entropy and focal losses with uncertainty-based weighting. LEG obtains equivalent or better performance than the state-of-the-art for both prompt classification and explainability, both in-domain and out-of-domain on three datasets, despite the fact that its model size is considerably smaller than current approaches.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Safety alignment, refusal and guardrails, one of 12 directions in LLM safety and security. Builds on 21 of its 38 references that are in the map. First posted on arXiv 24 Jan 2026.

Builds on

21 of 38 references.

Closest ancestors · 7

Same direction, newest first

  1. 2025OneShield -- the Next Generation of LLM Guardrails25 Jul
  2. 2025Enhancing LLM Safety Through a Theoretical Minimax Game Lens7 Feb
  3. 2025GuardReasoner: Towards Reasoning-based LLM Safeguards30 Jan
  4. 2025Aegis2.0: A Diverse AI Safety Dataset and Risks Taxonomy for Alignment of LLM Guardrails15 Jan
  5. 2024R2-Guard: Robust Reasoning Enabled LLM Guardrail via Knowledge-Enhanced Logical Reasoning8 Jul
  6. 2024WildGuard: Open One-Stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMs26 Jun
  7. 2024A Causal Explainable Guardrails for Large Language Models7 May

Other references · 14

  1. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
  2. 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
  3. 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,070
  4. 2017Deep reinforcement learning from human preferencescited by 3,912
  5. 2017Multi-Task Learning Using Uncertainty to Weigh Losses for Scene Geometry and Semanticscited by 1,358
  6. 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,207
  7. 2023BeaverTails: Towards Improved Safety Alignment of LLM via a Human-Preference Datasetcited by 860
  8. 2023NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Railscited by 365
  9. 2023ToxicChat: Unveiling Hidden Challenges of Toxicity Detection in Real-World User-AI Conversationcited by 231
  10. 2024AEGIS: Online Adaptive AI Content Safety Moderation with Ensemble of LLM Expertscited by 136
  11. 2024Safety Layers in Aligned Large Language Models: The Key to LLM Securitycited by 134
  12. 2024Bootstrapping Language Models with DPO Implicit Rewardscited by 53
2 more
  1. 2025Constitution or Collapse? Exploring Constitutional AI with Llama 3-8Bcited by 4
  2. 2025How Effective Is Constitutional AI in Small LLMs? A Study on DeepSeek-R1 and Its Peerscited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026Reflex-Guard: A Low-Latency Guardrail for LLM Prompt Safety Using Dense Semantic Embeddings
  2. 2026LongGuard: Mechanistic Analysis and Training-Free Mitigation of Long-Context Failure in Safety Guardrails
  3. 2026Do Safety Guardrails Need to Reason? LeanGuard: A Fast and Light Approach for Robust Moderation
  4. 2024A Flexible Large Language Models Guardrail Development Methodology Applied to Off-Topic Prompt Detection
  5. 2026A Dual-Hypothesis Reasoning Framework for LLM Guardrails
  6. 2026kNNGuard: Turning LLM Hidden Activations into a Training-Free Configurable Guardrail
  7. 2025Guard Vector: Beyond English LLM Guardrails with Task-Vector Composition and Streaming-Aware Prefix SFT
  8. 2025SHIELD: Classifier-Guided Prompting for Robust and Safer LVLMs