Skip to main content
QUICK REVIEW

[论文解读] Improving Alignment and Robustness with Circuit Breakers

Andy Zou, Long Phan|arXiv (Cornell University)|Jun 6, 2024
VLSI and FPGA Design TechniquesEngineering被引用 6
一句话总结

本论文提出电路断路器(circuit breakers),一种基于表示的防御方法,在大型语言模型(LLMs)和代理中对有害输出进行短路处理,从而在不显著牺牲效用的前提下提升对齐性和鲁棒性,并能推广到文本与多模态设置的未见攻击。

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.

研究动机与目标

  • 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.

提出的方法

  • 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

实验结果

研究问题

  • 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?

主要发现

  • 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

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。