No Free Lunch with Guardrails
On the map: LLM safety and security → Safety alignment, refusal and guardrails
Abstract (arXiv)
As large language models (LLMs) and generative AI become widely adopted, guardrails have emerged as a key tool to ensure their safe use. However, adding guardrails isn't without tradeoffs; stronger security measures can reduce usability, while more flexible systems may leave gaps for adversarial attacks. In this work, we explore whether current guardrails effectively prevent misuse while maintaining practical utility. We introduce a framework to evaluate these tradeoffs, measuring how different guardrails balance risk, security, and usability, and build an efficient guardrail. Our findings confirm that there is no free lunch with guardrails; strengthening security often comes at the cost of usability. To address this, we propose a blueprint for designing better guardrails that minimize risk while maintaining usability. We evaluate various industry guardrails, including Azure Content Safety, Bedrock Guardrails, OpenAI's Moderation API, Guardrails AI, Nemo Guardrails, and Enkrypt AI guardrails. Additionally, we assess how LLMs like GPT-4o, Gemini 2.0-Flash, Claude 3.5-Sonnet, and Mistral Large-Latest respond under different system prompts, including simple prompts, detailed prompts, and detailed prompts with chain-of-thought (CoT) reasoning. Our study provides a clear comparison of how different guardrails perform, highlighting the challenges in balancing security and usability.
Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Placed in Safety alignment, refusal and guardrails, one of 12 directions in LLM safety and security. Builds on 10 of its 12 references that are in the map. First posted on arXiv 1 Apr 2025.
Builds on
10 of 12 references.
Closest ancestors · 5
Same direction, newest first
- 2025SafeRoute: Adaptive Model Selection for Efficient and Accurate Safety Guardrails in Large Language Models18 Feb
- 2025Refining Input Guardrails: Enhancing LLM-as-a-Judge Efficiency Through Chain-of-Thought Fine-Tuning and Alignment22 Jan
- 2024Automatic Pseudo-Harmful Prompt Generation for Evaluating False Refusals in Large Language Models1 Sep
- 2024LoRA-Guard: Parameter-Efficient Guardrail Adaptation for Content Moderation of Large Language Models3 Jul
- 2024Current state of LLM Risks and AI Guardrails16 Jun
Other references · 5
- 2024WildTeaming at Scale: From In-the-Wild Jailbreaks to (Adversarially) Safer Language Modelscited by 206
- 2025AGrail: A Lifelong Agent Guardrail with Effective and Adaptive Safety Detectioncited by 82
- 2024RigorLLM: Resilient Guardrails for Large Language Models against Undesired Contentcited by 65
- 2024UniGuard: Towards Universal Safety Guardrails for Jailbreak Attacks on Multimodal Large Language Modelscited by 18
- 2024SAGE-RT: Synthetic Alignment data Generation for Safety Evaluation and Red Teamingcited by 10
Built on by
Citing papers per year: 2025: 4; 2026: 6.
10 papers.
- 2026AgentGuardian: Learning Access Control Policies to Govern AI Agent Behaviorcited by 9
- 2025A2AS: Agentic AI Runtime Security and Self-Defensecited by 5
- 2025Access Controls Will Solve the Dual-Use Dilemmacited by 3
- 2025Do You Really Need a GPU to Guard Your LLM? CPU-Class Classifiers and Multi-Stage Pipelines for Safety Enforcement at Scalecited by 2
- 2026Prompt Attack Detection with LLM-as-a-Judge and Mixture-of-Modelscited by 1
- 2026Safeguards Based on Copyable Context Cannot Provide Reliable Safety for LLMscited by 1
- 2025Validity Is What You Needcited by 0
- 2026Do Encoders Suffice? A Systematic Comparison of Encoder and Decoder Safety Judges for LLM Adversarial Evaluationcited by 0
- 2026Distributing Security Controls Through Harness Engineeringcited by 0
- 2026Truth Lies Deep: Countering Semantic Camouflage via Latent Intent Verificationcited by 0
- 2026Safeguards Based on Copyable Context Cannot Provide Reliable Safety for LLMs30 Jul 2026
- 2026Distributing Security Controls Through Harness Engineering28 Jul 2026
- 2026Truth Lies Deep: Countering Semantic Camouflage via Latent Intent Verification27 Jun 2026
- 2026Do Encoders Suffice? A Systematic Comparison of Encoder and Decoder Safety Judges for LLM Adversarial Evaluation24 Jun 2026
- 2026Prompt Attack Detection with LLM-as-a-Judge and Mixture-of-Models26 Mar 2026
- 2026AgentGuardian: Learning Access Control Policies to Govern AI Agent Behavior15 Jan 2026
- 2025Do You Really Need a GPU to Guard Your LLM? CPU-Class Classifiers and Multi-Stage Pipelines for Safety Enforcement at Scale22 Dec 2025
- 2025Validity Is What You Need31 Oct 2025
- 2025A2AS: Agentic AI Runtime Security and Self-Defense8 Oct 2025
- 2025Access Controls Will Solve the Dual-Use Dilemma14 May 2025
Similar, not cited
Close in wording, no citation either way
- 2026Behind the Refusal: Determining Guardrail Activation via Behavioral Monitoring
- 2025LlamaFirewall: An open source guardrail system for building secure AI agents
- 2025SoK: Evaluating Jailbreak Guardrails for Large Language Models
- 2026BRANCH: Bypassing Multi-Scanner AI Guardrails
- 2026TraceSafe: A Systematic Assessment of LLM Guardrails on Multi-Step Tool-Calling Trajectories
- 2025OmniGuard: Unified Omni-Modal Guardrails with Deliberate Reasoning
- 2024SafeWatch: An Efficient Safety-Policy Following Video Guardrail Model with Transparent Explanations
- 2026Beyond Unsafe Detection: Counterfactually Anchored Evidence Attribution for Multi-Turn LLM Safety Failures