Revisiting the Robust Alignment of Circuit Breakers

Leo Schwinn, Simon GeislerarXiv 2024

TL;DR

This paper revisits the "circuit breaker" defense mechanism for LLMs, which aims to improve alignment and robustness. The authors demonstrate that the original claims of high robustness against continuous embedding space attacks may be overestimated. By making minor adjustments to existing attack methods, they achieve a 100% attack success rate, suggesting that current evaluations of such defenses need to be more rigorous.

What Problem Does This Paper Address?

The field of AI, particularly with Large Language Models (LLMs), faces a persistent challenge: ensuring that models are robust against adversarial attacks. While adversarial training has shown promise, many proposed defenses have failed under closer scrutiny. Recently, a defense called "circuit breakers" was introduced, claiming significant improvements in LLM alignment and robustness against continuous attacks in the input token embedding space. However, the authors of this paper question these claims, suspecting that the original evaluations might have been overly optimistic. They aim to re-evaluate the effectiveness of circuit breakers by applying more stringent attack methodologies, highlighting a broader issue of potentially flawed robustness assessments in LLM research.

Methods

The core of this paper's contribution lies in its re-evaluation of the "circuit breaker" defense using modified adversarial attack techniques. The authors implemented three key changes to the embedding space attack method originally used in the "circuit breaker" paper:

  1. Optimizer Change: They replaced the original SGD optimizer with a signed gradient descent method, a technique known to be effective in similar adversarial attack scenarios.
  2. Semantic Initialization: Instead of using generic "x" tokens for initialization, they employed a more semantically meaningful instruction string designed to encourage toxic output. This change aims to better guide the attack towards its objective.
  3. Multiple Generations: While the original paper used a specific early stopping procedure, the authors introduced the practice of periodically generating and evaluating multiple outputs (20 per query) from the attacked model. This increases the chances of finding a successful adversarial example.

Crucially, these modifications were implemented without extensive hyperparameter tuning, suggesting that the original defense was not as robust as initially claimed.

Datasets

The paper does not introduce new datasets. Instead, it evaluates the "circuit breaker" defense applied to LLMs. The specific models evaluated are those provided by the authors of the original "circuit breaker" paper, which include:

  • Mistral-7B-Instruct-v2 + RR
  • Llama-3-8B-Instruct + RR

The evaluation also mentions testing the attack on other open-source LLMs, including:

  • Llama2-7b-chat-hf
  • Vicuna-7b-v1.5
  • Mistral-7B-v0.1

The evaluation script and judge model from the "HarmBench" framework were used.

Key Insights and Ideas

  • Overestimated Robustness: The most significant insight is that the robustness claims of the "circuit breaker" defense against continuous embedding space attacks appear to be overestimated. This suggests a broader problem of overly optimistic evaluations in LLM defense research.
  • Sensitivity to Attack Parameters: The "circuit breaker" defense, particularly the embedding space attack used against it, is highly sensitive to seemingly minor changes in attack methodology, such as the optimizer and initialization strategy.
  • "Sanity Check" Value of Embedding Attacks: Even though embedding space attacks might be considered an unrealistic threat model for proprietary LLMs, they serve as a valuable "sanity check" for evaluating defenses. High robustness against such attacks should be reported with caution.
  • Cost of Evaluation: The paper implicitly highlights the high cost of evaluating LLM defenses, making it crucial to ensure that these evaluations are rigorous and not prone to false positives or negatives.

Key Results

The authors report a dramatic increase in attack success rate (ASR) against the "circuit breaker" models:

  • 100% ASR: With the implemented modifications (optimizer change, semantic initialization, and multiple generations), the attack achieves a 100% ASR against both Mistral-7B-Instruct-v2 + RR and Llama-3-8B-Instruct + RR.
  • Significant Improvement: This represents an increase of over 80% compared to the original evaluation's reported ASRs (15.7% and 9.6% for the respective models).
  • Broad Applicability: The modified attack also achieves 100% ASR on other popular open-source LLMs (Llama2-7b-chat-hf, Vicuna-7b-v1.5, Mistral-7B-v0.1) using the same attack and evaluation protocol.

Limitations and Future Work

  • Limitations: The paper acknowledges that embedding space attacks are an "unrealistically strong threat model" for proprietary LLMs and are primarily relevant as a sanity check for open-source models. The current work focuses on continuous embedding space attacks, and other attack types might yield different results.
  • Future Work: The authors plan to conduct further robustness evaluations, including adaptive discrete attacks. They also mention that ongoing third-party evaluations are observing vulnerabilities to manual human jailbreaks, further supporting the idea that the original robustness assessment might be overestimated. They express gratitude to the authors of the original work for providing code and pre-trained models, which facilitated their evaluation.

Summary updated

Abstract

Over the past decade, adversarial training has emerged as one of the few reliable methods for enhancing model robustness against adversarial attacks [Szegedy et al., 2014, Madry et al., 2018, Xhonneux et al., 2024], while many alternative approaches have failed to withstand rigorous subsequent evaluations. Recently, an alternative defense mechanism, namely "circuit breakers" [Zou et al., 2024], has shown promising results for aligning LLMs. In this report, we show that the robustness claims of "Improving Alignment and Robustness with Circuit Breakers" against unconstraint continuous attacks in the embedding space of the input tokens may be overestimated [Zou et al., 2024]. Specifically, we demonstrate that by implementing a few simple changes to embedding space attacks [Schwinn et al., 2024a,b], we achieve 100% attack success rate (ASR) against circuit breaker models. Without conducting any further hyperparameter tuning, these adjustments increase the ASR by more than 80% compared to the original evaluation. Code is accessible at: https://github.com/SchwinnL/circuit-breakers-eval
BibTeX
@misc{schwinn2024revisiting,
  author = {Leo Schwinn and Simon Geisler},
  title = {{Revisiting the Robust Alignment of Circuit Breakers}},
  year = {2024},
  eprint = {2407.15902},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.15902},
}

Loading related content...

Figure