[论文解读] Constitutional Classifiers: Defending against Universal Jailbreaks across Thousands of Hours of Red Teaming
本论文提出 Constitutional Classifiers——通过以宪法为指导的合成数据训练的防护机制,用以防御 LLM 面对普遍的越狱攻击,在经过大量红队测试后,在部署影响有限的前提下实现了强鲁棒性。它展示了在威胁模型下的实用性与灵活性。
Large language models (LLMs) are vulnerable to universal jailbreaks-prompting strategies that systematically bypass model safeguards and enable users to carry out harmful processes that require many model interactions, like manufacturing illegal substances at scale. To defend against these attacks, we introduce Constitutional Classifiers: safeguards trained on synthetic data, generated by prompting LLMs with natural language rules (i.e., a constitution) specifying permitted and restricted content. In over 3,000 estimated hours of red teaming, no red teamer found a universal jailbreak that could extract information from an early classifier-guarded LLM at a similar level of detail to an unguarded model across most target queries. On automated evaluations, enhanced classifiers demonstrated robust defense against held-out domain-specific jailbreaks. These classifiers also maintain deployment viability, with an absolute 0.38% increase in production-traffic refusals and a 23.7% inference overhead. Our work demonstrates that defending against universal jailbreaks while maintaining practical deployment viability is tractable.
研究动机与目标
- Motivate and define the problem of universal jailbreaks in LLMs and the need for practically deployable safeguards in high-risk domains like CBRN.
- Propose Constitutional Classifiers that leverage natural-language constitutions to generate synthetic training data for input and output guards.
- Demonstrate robustness of the classifiers through thousands of hours of red teaming and automated evaluations.
- Show deployment viability and flexibility by applying enhanced constitutions to different threat models and measuring latency and refusals.
提出的方法
- Define a constitution as natural-language rules that categorize content into harmless and harmful classes to guide data generation.
- Generate synthetic training data by composing constitution-guided inputs and outputs using a helpful-only model, followed by filtering with a separate filter model.
- Augment data extensively with translations, paraphrasing, and jailbreaking technique variations to broaden coverage.
- Train a dual-classifier system with an input classifier (next-token prediction framing) and an output classifier (token-level harmfulness prediction for streaming) with a combined loss that includes next-token-prediction and binary-cross-entropy terms.
- Use automated red-teaming with a large monetary bounty to identify jailbreak attempts and develop rubric-based evaluation pipelines.
- Evaluate robustness via human red-teaming and automated held-out jailbreak tests, reporting reductions in attack success rates and deployment costs.

实验结果
研究问题
- RQ1Can constitutional guidelines enable rapid adaptation to evolving threat models while maintaining practical deployment viability?
- RQ2How effective are input and output classifiers, individually and combined, at blocking universal jailbreaks across CBRN-related queries?
- RQ3What are the trade-offs in false positives and latency when deploying constitutional classifiers in production?
- RQ4Do constitutional classifiers generalize to novel, held-out jailbreaks beyond the training constitution?
- RQ5How does the robustness of constitutional classifiers compare to harmlessness-only or helpful-only baselines under red-teaming?
主要发现
- Over 3,000 hours of red teaming, no universal jailbreak achieved that matches the level of detail of an unrestricted model for most target queries.
- Automated evaluations show substantial improvement in jailbreak robustness when using constitutional classifiers compared to baselines.
- Input-only and output-only classifiers reduce jailbreak attack success rates to 2% and 0.5%, respectively, relative to a helpful-only baseline.
- Deployment viability is demonstrated with production traffic refusals increasing by 0.38 percentage points, and an inference overhead of 23.7%.
- Expanded constitutions and data augmentation reduce false positives and adapt to new threat models while preserving streaming capabilities.

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。