Improving Alignment and Robustness with Circuit Breakers

Andy Zou, Long Phan, Justin Wang, Derek Duenas, Maxwell Lin, Maksym Andriushchenko, Rowan Wang, Zico Kolter, Matt Fredrikson, Dan Hendrycks

arXiv:2406.04313 · 2026-07-27 공개 · arXiv · PDF

multimodal-models robustness ai-agents adversarial-attacks alignment representation-engineering image-hijacks circuit-breakers

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.

한국어 요약

한 줄 요약

"Representation Rerouting" 기반의 Circuit Breakers가 LLM과 멀티모달 모델의 해로운 출력을 억제하면서도 성능 저하 없이 공격에 강한 안정성을 제공한다.

핵심 기여도

핵심 아이디어

기존 방식(예: refusal training, adversarial training)은 특정 공격에 대응하는 방식이었으나, Circuit Breakers는 모델이 해로운 출력을 생성하는 **내부 표현**(representation)을 직접 조절함으로써 문제의 근본 원인을 제거한다. 이는 **representation engineering**(RepE) 기반의 접근법으로, 모델이 해로운 출력을 생성하는 순간에 해당 표현을 중단시켜 생성을 멈추는 방식이다. 이는 공격에 무관하게 작동하며, 추가적인 트레이닝이나 보조 모델 없이도 가능하다.

**Representation Rerouting (RR)** 알고리즘은 해로운 출력과 관련된 내부 표현을 특정 랜덤 벡터와의 **cosine loss**를 최소화함으로써, 해로운 표현의 활성화를 억제한다. 이는 **ℓ2 거리 최소화** 실험과 비교했을 때 더 안정적인 결과를 보임.

기술적 접근법

주요 결과

의의 및 한계

Circuit Breakers는 기존 방식(예: refusal training, adversarial training)과 달리 특정 공격에 대응하는 것이 아니라, **모델이 자체적으로 해로운 출력을 생성하는 능력을 제거**함으로써 보다 근본적인 해결책을 제시한다. 특히, **PGD 공격**에 대한 내성이 뛰어나며, 멀티모달 모델에서의 적용 가능성도 입증되었다.

그러나, **Harmfulness Probes**는 공격자가 해당 탐지기를 모르는 상황에서만 효과적이라는 한계가 있다. 또한, **Circuit Breakers의 정확한 작동 메커니즘**은 아직 완전히 밝혀지지 않았으며, 다양한 공격 상황에서의 일반화 능력은 추가 연구가 필요하다.

실용적 활용

이 연구는 **대형 언어 모델**(LLM)과 **멀티모달 시스템**에서의 해로운 출력 및 행동을 방지하는 데 유용하며, 특히 **보안이 중요한 산업**(예: 금융, 정부, 의료)에서의 AI 배포를 안정적으로 가능하게 한다. 또한, **AI 에이전트**(AI agent)의 해로운 행동 감소에도 적용 가능하며, **실시간 모니터링 및 보호 시스템**과의 통합 가능성도 높다.