Remapping harmful internal activations to an orthogonal direction cuts average attack success rates by 90% on Llama-3-8B-Instruct (38.1% to 3.8%) and 87% on Mistral-7B-Instruct-v2 (76.7% to 9.8%) across unseen jailbreaks, with under 1% drop on MT-Bench and OpenLLM benchmarks. Andy Zou and colleagues at Gray Swan AI, Carnegie Mellon University, and the Center for AI Safety call this method Representation Rerouting (RR), a circuit breaker trained directly on hidden states via LoRA in 20 minutes on a single A100-80GB GPU.
- Outperforms adversarial training at a fraction of the cost: Mistral-7B adversarially trained against GCG (
R2D2) still hits31.7%average attack success (failing on TAP-T at68.7%and PAIR at59.9%) and drops MT-Bench from7.60to6.00; Mistral+ RRholds7.53MT-Bench and65.4OpenLLM (65.4baseline) at9.8%average attack success. - Resists white-box prefilling and embedding attacks: Standard Llama-3-8B-Instruct complies
84.9%under prefilling,80.4%under soft input embedding optimization, and91.2%under RepE steering;+ RRcuts those to3.3%,9.6%, and8.7%, and the extended Cygnet model hits0.8%average ASR (0.0%on9of10settings) while raising MT-Bench to8.21. - Transfers to multimodal PGD and tool-calling agents: On
LLaVA-NeXT-Mistral-7B,RRslashes white-box PGD image-hijack compliance from91.0%(96.2%with a safety prompt) to14.3%while keeping MMMU (34.2vs.34.7) and LLaVA-Wild (79.3vs.79.2) intact; on Llama-3-8B agents, forced function-call harm drops from82%to14%while BFCL improves from74.8to76.0. - Low benign over-refusal: On
500non-toxic WildChat prompts, refusal shifts modestly from2.0%to3.4%on Mistral-7B (vs.10.6%forR2D2) and2.2%to6.2%on Llama-3-8B (vs.20.6%on Claude-3-Opus).
How It Works
Standard RLHF and adversarial training supervise only output tokens, leaving the model’s internal harmful states intact behind a thin refusal boundary. Once an attack slips past that boundary (for example, by prefilling "Sure, here's how..."), autoregressive decoding completes the harmful trajectory. Building on Representation Engineering (RepE) and Low-Rank Representation Adaptation (LoRRA), RR attacks the trajectory itself across intermediate layers 10 and 20 using LoRA adapters inserted across layers 0 through 20 for 150 training steps.
Training alternates between two curated sets: a Circuit Breaker Set D_s (synthetic harmful queries and completions filtered below 0.3 BLEU against HarmBench, plus stripped harmful assistant continuations so models that already refuse still traverse the circuit-broken states) and a Retain Set D_r (UltraChat, XSTest exaggerated-refusal prompts, and extra refusal examples for Llama-3). The loss combines ReLU(cosine_sim(rep_M(x_s), rep_{M_cb}(x_s))) to push harmful states orthogonal to the frozen original model M with an L2 retain penalty ||rep_M(x_r) - rep_{M_cb}(x_r)||_2, scheduled linearly over t = 1..T via c_s = alpha(1 - t / 2T) and c_r = alpha(t / 2T). When a harmful process triggers in the wild, hidden-state cosine similarity plunges and activation norms spike around layer 10 to 20, collapsing completion into repeated <EOS> tokens or incoherent text before dangerous details emerge.
Key Findings
- Orthogonal cosine loss beats random-vector baselines: In Llama-3-8B ablations across six attacks, centering random vectors (
RandC) and unlearning (RMU) failed to converge, while positive random-vector targeting (RandP) left9.7%average ASR vs.2.5%forRRat identical8.0MT-Bench. Removing refusal examples fromD_rlowered ASR to0.6%but dropped MT-Bench to7.7. - Representation control outperforms reading probes: At matched WildChat false-positive rates (
3.4%Mistral,6.2%Llama-3), token-level Harmfulness Probes cut five-attack average ASR from80.6%to19.0%(linear) and14.3%(MLP) on Mistral, and from32.6%to9.0%and6.8%on Llama-3, still trailingRR(11.2%and3.1%). - Category coverage governs generalization: Splitting
D_sinto six harm categories shows broad sets likeIllegal Activitiesgeneralize well (8.2%ASR onMisinfo,15.3%onHarmful), whereas narrow training onCybercrimeleaves47.2%ASR onHarmfuland80.1%onMisinfo.
Caveats and Builder Takeaway
Circuit breakers target generically harmful generation rather than non-harmful classification errors such as standard image-label PGD attacks, and all experiments focus on single-turn prompts rather than long multi-turn jailbreaks. Crucially, a subsequent circuit-breaker robustness reassessment by Schwinn et al. showed that stronger white-box continuous embedding-space attacks can still achieve 100% ASR against open-weight circuit-broken models, underscoring that open-weight threat models differ sharply from API deployments.
For engineers shipping tool-using systems (see also AgentDojo security and single-direction refusal), RR is a low-cost (20-minute LoRA) defense-in-depth layer that sharply raises the bar against prefilling, multilingual, and multimodal hijacks without taxing benign latency, provided you pair it with strict permission boundaries around external tools.


