Shaping the model: data and training
Circuit breakers and representation rerouting
Train the model so the internal patterns that lead to harmful output get redirected, which cuts the output off. The authors say this works even against attacks it was not trained on.
Circuit breakers train a model so that when its internal activity starts heading toward harmful output, that activity is redirected and the output breaks down. Instead of teaching the model to refuse specific requests, the method targets the internal patterns that produce harm in the first place. The aim is a defence that holds even against attacks nobody anticipated in training.
How it works
A language model's internal activations, the numbers it computes at each layer, carry patterns linked to what it is about to say. Representation engineering (October 2023) showed that some of these patterns line up with high-level concepts such as honesty or harmfulness, and that they can be read and steered.
Circuit breakers (June 2024) build on this. Developers collect examples of harmful completions and harmless ones, then fine-tune the model with two goals at once. On harmful examples, training pushes the internal representations into an unrelated direction, a step the authors call representation rerouting. On harmless examples, it keeps the representations as they were. If a jailbreak (a prompt crafted to get around safety training) later steers the model into harmful territory, the rerouted representations stop it from producing coherent harmful text. The same idea was applied to multimodal models and to AI agents that call tools.
Where research stands
In the original paper, average attack success on Llama-3-8B-Instruct across many attacks fell from 38.1% to 3.8%, with general benchmark scores almost unchanged. For an agent asked to take harmful actions with no attack, harmful compliance fell from 58 of 100 requests to 8. A combined model the authors called Cygnet reached an average attack success of 0.8%.
Circuit breakers are still a useful layer, but how robust they look depends heavily on which attacks are tested. In July 2024, two researchers reached a 100% attack success rate against circuit-breaker models by making small changes to attacks on the model's input embeddings. In August 2024 Scale AI's human red-teamers broke a circuit-breaker model in 51.7% of multi-turn conversations, a type of attack automated tests had missed. Attacks that disguise internal activations have also evaded other defences that work inside the model.
Key results
- Representation rerouting cut average attack success on Llama-3-8B-Instruct from 38.1% to 3.8% while MMLU fell only from 65.6 to 65.0. Andy Zou, Long Phan, Justin Wang, Derek Duenas, Maxwell Lin, Maksym Andriushchenko, Rowan Wang, Zico Kolter, Matt Fredrikson, Dan Hendrycks, 2024
- Population-level internal representations can be read and steered to monitor and control concepts such as honesty, harmlessness and power-seeking. Andy Zou and 20 co-authors, 2023
- Simple changes to input-embedding attacks reached a 100% attack success rate against circuit-breaker models. Leo Schwinn, Simon Geisler, 2024
- Multi-turn human jailbreaks succeeded 51.7% of the time against a representation-rerouting model and over 70% against several other defences that reported single-digit rates under automated attacks. Nathaniel Li, Ziwen Han, Ian Steneker et al. (Scale AI), 2024
- Attacks that disguise internal activations cut a harmfulness probe's recall from 100% to 0% while keeping a 90% jailbreak rate, showing latent-space defences can be evaded. Luke Bailey, Alex Serrano, Abhay Sheshadri et al., 2024
Open problems
- Robustness claims depend on the attacks tested; stronger embedding-space and multi-turn attacks have broken circuit-breaker models. source
- Defences that act on internal activations may be evaded by inputs that produce harmful behaviour through disguised activations. source
- Evaluation practice is weak: automated single-turn tests report near-zero success rates that human red-teamers far exceed. source
See all open problems in this group
Criticisms
- The original paper's robustness against continuous embedding attacks "may be overestimated", since modest changes to the attack reached 100% success. Leo Schwinn and Simon Geisler
- Defences tuned against automated single-turn attacks give a false sense of security when humans attack over several turns. Nathaniel Li, Summer Yue and co-authors (Scale AI)
Who works on it
- Gray Swan AI: Most circuit-breaker authors are affiliated with it; it built the Cygnet model. Improving Alignment and Robustness with Circuit Breakers (2024)
- Center for AI Safety: Co-authored the circuit-breaker and representation-engineering papers. Representation Engineering: A Top-Down Approach to AI Transparency (2023)
- Carnegie Mellon University: Faculty co-authored the circuit-breaker paper. Improving Alignment and Robustness with Circuit Breakers (2024)
- Scale AI: Red-teamed circuit breakers and other defences with multi-turn human jailbreaks and released the dataset. LLM Defenses Are Not Robust to Multi-Turn Human Jailbreaks Yet (2024)
Status
Active and contested. Leo Schwinn and Simon Geisler (July 2024) reported a 100% attack success rate against circuit-breaker models using attacks on the model's input embeddings.
Start reading
- Improving Alignment and Robustness with Circuit Breakers, Andy Zou et al. (2024). The method and its original results.
- Representation Engineering: A Top-Down Approach to AI Transparency, Andy Zou et al. (2023). The idea of reading and steering concepts inside models.
- Revisiting the Robust Alignment of Circuit Breakers, Leo Schwinn, Simon Geisler (2024). Short, direct challenge to the robustness claims.
- LLM Defenses Are Not Robust to Multi-Turn Human Jailbreaks Yet, Nathaniel Li et al. (2024). How human attackers compare with automated tests.
Related approaches
- Latent adversarial training another defence that works on activations
- Adversarial robustness and red-teaming red-teaming tests these defences
- Behavioural and activation monitoring reading activations to monitor, not block
- Input and output classifiers (guardrails) classifier defences outside the model
- Unlearning hazardous knowledge related representation-based unlearning
In their own words
We present an approach, inspired by recent advances in representation engineering, that interrupts the models as they respond with harmful outputs with "circuit breakers." ... As an alternative to refusal training and adversarial training, circuit-breaking directly controls the representations that are responsible for harmful outputs in the first place.
Andy Zou, Long Phan, Justin Wang, Derek Duenas, Maxwell Lin, Maksym Andriushchenko, Rowan Wang, Zico Kolter, Matt Fredrikson, Dan Hendrycks, Improving Alignment and Robustness with Circuit Breakers, 2024
RR directly targets the representations that give rise to harmful outputs and reroutes them to an orthogonal space. This reliably interrupts the model from completing the harmful generations even under strong adversarial pressure.
Andy Zou et al., Improving Alignment and Robustness with Circuit Breakers (full text, Figure 2 caption), 2024
Suggest a correction Something wrong, out of date or missing, such as an organisation? Opens a GitHub issue (free account needed).