← Lab /AI/ML

Most adversarial example attacks fail against chatbots, but succeed on multimodal models

Standard adversarial example attacks are largely ineffective against current text-only chatbots, while they are highly effective against multimodal chatbots.

AI/ML SPY Lab (ETH Zurich) 30 Jun 2023 Measurement Prototype evidence

Published as “Adversarial examples in the age of ChatGPT”

Why it matters

Current chatbot security cannot rely on traditional adversarial example defenses and needs new attack and defense research.

Summary

The authors evaluate two gradient-based adversarial attacks (ARCA and GDBA) on three language models (GPT-2, LLaMa, Vicuna) and find the attacks only work on undefended models and fail most of the time on a defended model. They then show that multimodal chatbots (e.g., Mini GPT-4) can be attacked by perturbing images, achieving near-100% success in eliciting toxic outputs. The evidence consists of small experimental runs on open-source models, demonstrating a gap between traditional adversarial research and real chatbot attack techniques.

What they found 2

  1. Optimization attacks are somewhat effective against undefended models but fail most of the time against a defended model.

    “We find that while optimization attacks are somewhat effective against undefended models, they fail most of the time against a defended model.”

  2. Image-based attacks on multimodal chatbots succeed almost always at eliciting toxic content.

    “These attacks are vastly more effective at eliciting toxicity compared to our previous attempts at manipulating text, and essentially succeed all the time.”

Caveats 3

  • Optimization attacks have some success against undefended models.
  • Recent work by Zou et al. at CMU makes significant progress on stronger NLP attacks that transfer.
  • These attacks are thus not strong enough for either attacking current chatbots, or for evaluating their robustness.

What’s new here 4

  • Empirical demonstration that text-only adversarial attacks rarely succeed against defended chatbots.
  • Show that image-based attacks on multimodal chatbots are consistently successful.
  • Highlight the mismatch between adversarial example assumptions (imperceptibility, optimization) and chatbot attack goals.
  • Provide a call for stronger optimization-based attacks for text-only chatbots.