C-SafeGen: Certified Safe LLM Generation with Claim-Based Streaming Guardrails
On the map: LLM safety and security → Safety alignment, refusal and guardrails
Abstract (arXiv)
Despite the remarkable capabilities of large language models (LLMs) across diverse applications, they remain vulnerable to generating content that violates safety regulations and policies. To mitigate these risks, LLMs undergo safety alignment; however, they can still be effectively jailbroken. Off-the-shelf guardrail models are commonly deployed to monitor generations, but these models primarily focus on detection rather than ensuring safe decoding of LLM outputs. Moreover, existing efforts lack rigorous safety guarantees, which are crucial for the universal deployment of LLMs and certifiable compliance with regulatory standards. In this paper, we propose a Claim-based Stream Decoding (CSD) algorithm coupled with a statistical risk guarantee framework using conformal analysis. Specifically, our CSD algorithm integrates a stream guardrail model to safeguard sequential claims generated by LLMs and incorporates a backtracking mechanism to revise claims flagged with high safety risks. We provide theoretical guarantees demonstrating that the CSD algorithm achieves the desired generation distribution subject to safety constraints. Furthermore, we introduce a generation risk certification framework and derive a high-probability upper bound on the safety risk of the proposed CSD algorithm. We prove that our method can asymptotically control safety risk to any desired level. Empirical evaluations demonstrate the effectiveness and efficiency of the CSD algorithm compared to state-of-the-art safety decoding approaches. Additionally, we validate the soundness and tightness of the derived safety risk upper bound using realistic data.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Safety alignment, refusal and guardrails, one of 12 directions in LLM safety and security. Builds on 33 of its 50 references that are in the map. Submitted 26 Oct 2026.
Builds on
33 of 50 references.
References · 33
- 2022Training language models to follow instructions with human feedbackcited by 16,493
- 2024The Llama 3 Herd of Modelscited by 16,113
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,771
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,963
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,494
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,374
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,526
- 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,337
- 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Modelscited by 839
- 2023Tree of Attacks: Jailbreaking Black-Box LLMs Automaticallycited by 724
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 693
- 2024JailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Modelscited by 597
21 more
- 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attackscited by 496
- 2023Jailbreak and Guard Aligned Language Models with Only Few In-Context Demonstrationscited by 458
- 2023NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Railscited by 397
- 2022A Holistic Approach to Undesired Content Detection in the Real Worldcited by 376
- 2021Learn then Test: Calibrating Predictive Algorithms to Achieve Risk Controlcited by 345
- 2021Distribution-Free, Risk-Controlling Prediction Setscited by 329
- 2024SafeDecoding: Defending against Jailbreak Attacks via Safety-Aware Decodingcited by 264
- 2023ToxicChat: Unveiling Hidden Challenges of Toxicity Detection in Real-World User-AI Conversationcited by 254
- 2022A New Generation of Perspective API: Efficient Multilingual Character-level Transformerscited by 191
- 2023Conformal Language Modelingcited by 189
- 2023RAIN: Your Language Models Can Align Themselves without Finetuningcited by 165
- 2024Watch Out for Your Agents! Investigating Backdoor Threats to LLM-Based Agentscited by 153
- 2024AEGIS: Online Adaptive AI Content Safety Moderation with Ensemble of LLM Expertscited by 147
- 2024Language Models with Conformal Factuality Guaranteescited by 145
- 2024Fast Best-of-N Decoding via Speculative Rejectioncited by 119
- 2021Challenges in Automated Debiasing for Toxic Language Detectioncited by 97
- 2024RigorLLM: Resilient Guardrails for Large Language Models against Undesired Contentcited by 73
- 2024AdvWave: Stealthy Adversarial Jailbreak Attack against Large Audio-Language Modelscited by 41
- 2023Adapting Large Language Models for Content Moderation: Pitfalls in Data Engineering and Supervised Fine-tuningcited by 34
- 2024AFaCTA: Assisting the Annotation of Factual Claim Detection with Reliable LLM Annotatorscited by 30
- 2021BERT-Beta: A Proactive Probabilistic Approach to Text Moderationcited by 8
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026ProbGuard: Calibrated Safety Risk Estimation from LLM Output Distributions
- 2025OpenGuardrails: A Configurable, Unified, and Scalable Guardrails Platform for Large Language Models
- 2024HiddenGuard: Fine-Grained Safe Generation with Specialized Representation Router
- 2026Predict, Don't React: Value-Based Safety Forecasting for LLM Streaming
- 2024Current state of LLM Risks and AI Guardrails
- 2026CS-Guard: Benchmarking LLM Guardrails for Code Generation Security
- 2024Root Defence Strategies: Ensuring Safety of LLM at the Decoding Level
- 2024Uncovering Logit Suppression Vulnerabilities in LLM Safety Alignment