atlas

Research map / Adversarial robustness and security / Attacks on text and graphs

Improving Alignment and Robustness with Circuit Breakers

NeurIPS 2024 · Adversarial robustness and security › Attacks on text and graphs · approach: Adversarial prompts for language models · 11 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

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.

Proposes circuit breakers (Representation Rerouting, RR) that remap harmful-process representations via a LoRRA-style cosine-similarity loss to make LLMs, multimodal models, and agents robust to unseen attacks without losing capability.

Problem

Aligned LLMs, multimodal models, and agents remain vulnerable to adversarial attacks that elicit harmful outputs; refusal training and adversarial training generalize poorly and often cost capability.

Approach

Instead of defending against specific attacks, directly reroute the internal representations responsible for harmful generation (via a ReLU-cosine loss to orthogonalize them against original representations, plus an retain loss) using LoRA adapters, so the model's harmful processes are interrupted regardless of attack.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add Representation ReroutingMistral-7B-Instruct-v2 · HarmBench attacks (average)attack success rate: 31.7 -> 9.8Helped
Add Representation ReroutingLlama-3-8B-Instruct · HarmBench attacks (average)attack success rate: 38.1 -> 3.8Helped
Add Representation ReroutingMistral-7B-Instruct-v2 · MT-Benchscore: 7.60 -> 7.53No clear effect
Add Representation ReroutingLlama-3-8B-Instruct · MT-Benchscore: 8.05 -> 8.00No clear effect
Add circuit-breaker examples that bypass refusal mechanisms (ablation)Mistral-7B-Instruct-v2 with RR · 6 attacks (average)attack success rate: 5.8 -> 2.5Helped
Add circuit-breaker examples that bypass refusal mechanisms (ablation)Mistral-7B-Instruct-v2 with RR · MT-Benchscore: 8.1 -> 8.0No clear effect
Add refusal examples to the retain set (ablation)Mistral-7B-Instruct-v2 with RR · 6 attacks (average)attack success rate: 0.6 -> 2.5Hurt
Add refusal examples to the retain set (ablation)Mistral-7B-Instruct-v2 with RR · MT-Benchscore: 7.7 -> 8.0Helped
Replace RR cosine loss with RandP loss (ablation)Mistral-7B-Instruct-v2 · 6 attacks (average)attack success rate: 2.5 -> 9.7Hurt
Replace RR cosine loss with RandC loss (ablation)Mistral-7B-Instruct-v2 · 6 attacks (average)attack success rateHurt
Replace RR cosine loss with RMU loss (ablation)Mistral-7B-Instruct-v2 · 6 attacks (average)attack success rateHurt

Surprising findings

Limitations

Experimental setup

Datasets: HarmBench UltraChat XSTest LLaVA-Instruct COCO Glaive Function Calling v2 WildChat MM-SafetyBench MT-Bench MMLU ARC-c HellaSwag

Benchmarks: HarmBench MT-Bench Open LLM Leaderboard LLaVA-Wild MMMU BFCL WildChat over-refusal MM-SafetyBench-derived multimodal set AgentBench (proposed)

Metrics: attack success rate compliance rate MT-Bench score Open LLM average accuracy refusal rate

Baselines: Refusal-trained Mistral-7B-Instruct-v2 Refusal-trained Llama-3-8B-Instruct R2D2 (adversarially trained Mistral) Harmfulness Probing (linear and MLP) LLaVA-NeXT-Mistral-7B with safety prompt RMU RandP RandC

Builds on: representation engineering RMU LoRRA refusal training adversarial training

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy