Research map / Large language models / Language, safety and interpretability
C-SafeGen: Certified Safe LLM Generation with Claim-Based Streaming Guardrails
Mintong Kang, Zhaorun Chen, Bo Li
University of Illinois, Urbana Champaign · University of Chicago
Read the paperPlace an idea next to itCheck your own paper ↗
Proposes C-SafeGen, a claim-based streaming guardrail framework that certifies safety of LLM generations during streaming output.
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Problem
LLMs can still be jailbroken to generate unsafe content despite safety alignment, and off-the-shelf guardrail models mainly detect rather than certify safety of generations.
Approach
Shifts guardrails from detection toward certified safe generation by decomposing streaming output into claims and checking each claim with a guardrail, providing safety guarantees during generation.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use CSD claim-based stream decoding instead of vanilla, Reminder, Safety-Opt, Best-of-N, SafeDec | Llama-3.1-8B and 13B with ShieldGemma-9B · AdvBench and JailbreakBench (GCG suffix) | conformal and empirical safety risk | Improved |
| use CSD instead of Best-of-N | Llama-3.1 · safety vs decoding runtime | runtime per instance: over 40 s -> approximately 7 s | Improved |
| add KV cache to CSD (ablation) | CSD · safety vs decoding runtime | runtime per instance: approximately 7 s -> below 5 s | Improved |
| add KV cache to CSD (ablation) | CSD · safety vs decoding runtime | mean safety risk | No clear effect |
| increase backtrack threshold alpha_b (ablation) | CSD · AdvBench and JailbreakBench, nominal risk 0.10 | empirical safety risk | Improved |
| increase backtrack threshold alpha_b (ablation) | CSD · AdvBench and JailbreakBench | risk variability | Improved |
| scale model from Llama-3.1-8B to 13B | Reminder and Best-of-N baselines · AdvBench and JailbreakBench | safety risk | Hurt |
| certified configurations with nominal risk 0.10 | CSD · AdvBench and JailbreakBench | empirical safety risk: below nominal 0.10 in all settings | Improved |
Open problems in safety alignment of LLMs
How can LLM safety be shown to hold across languages, multi-turn use and models beyond small open ones?
- Safety is tested in English or a few languages only. · 30 papers state it
- Results come from a few open models, mostly small or mid-sized. · 26 papers state it
- Scores depend on an LLM judge that may be biased. · 23 papers state it
Closest papers by meaning
- RSafe: Incentivizing proactive reasoning to build robust and adaptive LLM safeguards (NeurIPS 2025 · similarity 0.88)
- MoGU: A Framework for Enhancing Safety of LLMs While Preserving Their Usability (NeurIPS 2024 · similarity 0.88)
- Adaptive Deployment of Untrusted LLMs Reduces Distributed Threats (ICLR 2025 · similarity 0.87)
- From Judgment to Interference: Early Stopping LLM Harmful Outputs via Streaming Content Monitoring (NeurIPS 2025 · similarity 0.87)
- PolyGuard: Massive Multi-Domain Safety Policy-Grounded Guardrail Dataset (NeurIPS 2025 · similarity 0.87)
- Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To! (ICLR 2024 · similarity 0.87)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.