Skip to main content
QUICK REVIEW

[Paper Review] Improving Alignment and Robustness with Circuit Breakers

Andy Zou, Long Phan|arXiv (Cornell University)|Jun 6, 2024
VLSI and FPGA Design TechniquesEngineering6 citations
TL;DR

The paper introduces circuit breakers, a representation-based defense that short-circuits harmful outputs in LLMs and agents, improving alignment and robustness without heavily sacrificing utility, and generalizes to unseen attacks in text and multimodal settings.

ABSTRACT

AI systems can take harmful actions and are highly vulnerable to adversarial attacks. We present an approach, inspired by recent advances in representation engineering, that interrupts the models as they respond with harmful outputs with "circuit breakers." Existing techniques aimed at improving alignment, such as refusal training, are often bypassed. Techniques such as adversarial training try to plug these holes by countering specific attacks. 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. Our technique can be applied to both text-only and multimodal language models to prevent the generation of harmful outputs without sacrificing utility -- even in the presence of powerful unseen attacks. Notably, while adversarial robustness in standalone image recognition remains an open challenge, circuit breakers allow the larger multimodal system to reliably withstand image "hijacks" that aim to produce harmful content. Finally, we extend our approach to AI agents, demonstrating considerable reductions in the rate of harmful actions when they are under attack. Our approach represents a significant step forward in the development of reliable safeguards to harmful behavior and adversarial attacks.

Motivation & Objective

  • Motivate a defense that directly suppresses harmful outputs at the internal representation level rather than at the output or input layer.
  • Develop a general, attack-agnostic mechanism to improve safety without substantial utility loss.
  • Demonstrate effectiveness across text-only LLMs, multimodal models, and AI agents under diverse, unseen attacks.
  • Show that the method scales to multimodal inputs and agent safety scenarios.

Proposed method

  • Ground the approach in Representation Engineering (RepE) to connect harmful-output representations to circuit breakers.
  • Introduce Representation Rerouting (RR) using a LoRA-based circuit-breaker model (LoRRA) to remap harmful representations away from productive directions.
  • Define circuit-breaker data sets split into Circuit Breaker Set and Retain Set to train the rerouting and retain representations.
  • Use two losses: a rerouting loss that minimizes cosine similarity between original and circuit-broken harmful representations, and a retain loss that preserves benign representations.
  • Optimize a combined loss with a schedule to progressively emphasize rerouting early and retention later.
  • Apply the method to LLMS (Mistral-7B-Instruct-v2, Llama-3-8B-Instruct), multimodal models (LLaVA-NeXT-Mistral-7B), and AI agents (function-calling scenarios).
Figure 1 : Introduction of circuit-breaking as a novel approach for constructing highly reliable safeguards. Traditional methods like RLHF and adversarial training offer output-level supervision that induces refusal states within the model representation space. However, harmful states remain accessi
Figure 1 : Introduction of circuit-breaking as a novel approach for constructing highly reliable safeguards. Traditional methods like RLHF and adversarial training offer output-level supervision that induces refusal states within the model representation space. However, harmful states remain accessi

Experimental results

Research questions

  • RQ1Can circuit breakers reduce harmful-output compliance under unseen attacks without large drops in standard capabilities?
  • RQ2Do circuit breakers generalize to multimodal inputs and adversarial image-based assaults?
  • RQ3Can the approach mitigate harmful actions in AI agents while preserving function-calling performance?

Key findings

  • RR reduces harmful-output compliance across tested LLMs by an average of about 87% (Mistral) and 90% (Llama-3).
  • Circuits-breaker-enabled models show minimal capability loss, with a performance dip of less than 1% in proposed tests.
  • In multimodal settings, RR yields large safety gains under white-box PGD attacks while preserving MMMU and LLaVA-Wild capabilities within about 0.5% of the original.
  • Cygnet, a Llama-3-8B-Instruct finetune with circuit breakers, achieves ~two orders of magnitude reduction in harmful output under strong attacks.
  • RR extends to AI agents, significantly reducing harmful function-calling compliance under adversarial pressure while maintaining Berkeley Function Calling Leaderboard performance.
Improving Alignment and Robustness with Circuit Breakers

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.