Abstract
Large Language Models (LLMs) face significant security risks from "universal jailbreaks"—systematic prompting strategies designed to bypass safety filters. This paper presents Constitutional Classifiers, a robust defense framework trained on synthetic data generated from natural language "constitutions." Through a massive red-teaming effort spanning over 3,000 hours, the system successfully blocked all attempts at universal jailbreaks in high-stakes domains like Chemical, Biological, Radiological, and Nuclear (CBRN) safety. The results demonstrate that high-level safety can be integrated into production environments with minimal impact on latency or general model performance.
Introduction
While many adversarial prompts are "one-offs," universal jailbreaks represent a more severe threat: reliable, often automated strategies capable of extracting detailed, actionable, and harmful information across diverse queries. Current defenses often struggle to balance robustness with flexibility and practical viability. Anthropic's Constitutional Classifier framework addresses these challenges by creating a multi-layered defense that is easy to update and efficient enough for real-time streaming applications.
The Constitutional Classifier Framework
The core innovation lies in moving away from slow, expensive human-labeled data toward a "Constitution"—a set of natural language rules defining safety boundaries.
The system employs a dual-layer architecture:
- Input Classifier: Blocks malicious prompts before they reach the model.
- Output Classifier: Monitors the model's response in real-time.
To ensure robustness, the classifiers are trained on synthetic data generated by a "helpful-only" model following the constitution. This data is further augmented with transformations like multi-language translation, paraphrasing, and known jailbreak templates (e.g., "DAN"). A key technical feature is the use of a "value head" in the output classifier, which predicts the harmfulness of the entire sequence at every token, allowing the system to terminate a response mid-sentence if a violation is detected.
Evaluation and Red Teaming
The framework was put to the test through an extensive bug-bounty program via HackerOne, involving 405 participants and over 3,000 hours of manual red teaming.
The evaluation utilized a detailed scoring rubric to measure how much actionable information a model leaked. Beyond human testing, the system was evaluated against:
- Held-out Jailbreaks: 5,681 novel adversarial attempts.
- Production Traffic: 5,000 real-world conversations from Claude.ai to measure "over-refusal" (false positives).
- Technical Benchmarks: GPQA and MMLU (Chemistry) to ensure legitimate scientific queries weren't blocked.
Key Results and Insights
- Unprecedented Robustness: Zero human red teamers found a universal jailbreak that could consistently extract harmful CBRN information. The system blocked 95% of held-out automated jailbreaks, a significant improvement over the 14% blocked by standard safety training alone.
- Minimal Production Impact: The classifiers added only a 0.38% absolute increase in refusals on general traffic and a manageable 23.7% inference overhead.
- Scalability and Agility: Safety robustness improved as the classifier model size increased. Furthermore, updating safety policies is as simple as editing the natural language constitution and re-running the synthetic data pipeline.
- The "Swiss Cheese" Model: By stacking independent layers (input classifier, model safety training, and output classifier), the system ensures that vulnerabilities in one layer are caught by another.
Limitations and Future Work
Despite its success, the system faces challenges in highly technical domains. The classifiers showed a 26% false-positive rate on advanced chemistry questions (GPQA), highlighting the difficulty of distinguishing between "weaponization" and "advanced research." Additionally, some red teamers engaged in "rubric gaming," forcing the model to generate verbose but useless technical jargon to achieve higher scores without providing actual harmful utility. Future work will focus on scaling and refining "harmlessness" constitutions to better handle specialized scientific contexts.
Summary updated