Skip to main content
QUICK REVIEW

[Paper Review] Adversarial Attacks and Defenses in Large Language Models: Old and New Threats

Leo Schwinn, David Dobre|arXiv (Cornell University)|Oct 30, 2023
Adversarial Robustness in Machine LearningComputer Science12 citations
TL;DR

The paper analyzes adversarial robustness in LLMs, highlighting embedding-space attacks on open-source models, and shows how current defenses can be easily circumvented without LLM-specific best practices.

ABSTRACT

Over the past decade, there has been extensive research aimed at enhancing the robustness of neural networks, yet this problem remains vastly unsolved. Here, one major impediment has been the overestimation of the robustness of new defense approaches due to faulty defense evaluations. Flawed robustness evaluations necessitate rectifications in subsequent works, dangerously slowing down the research and providing a false sense of security. In this context, we will face substantial challenges associated with an impending adversarial arms race in natural language processing, specifically with closed-source Large Language Models (LLMs), such as ChatGPT, Google Bard, or Anthropic's Claude. We provide a first set of prerequisites to improve the robustness assessment of new approaches and reduce the amount of faulty evaluations. Additionally, we identify embedding space attacks on LLMs as another viable threat model for the purposes of generating malicious content in open-sourced models. Finally, we demonstrate on a recently proposed defense that, without LLM-specific best practices in place, it is easy to overestimate the robustness of a new approach.

Motivation & Objective

  • Highlight the risk of faulty robustness evaluations in LLM defenses and the need for NLP-specific guidelines.
  • Introduce embedding-space attacks as a viable threat model for open-source LLMs.
  • Provide a first set of prerequisites to improve robustness assessment and reduce erroneous evaluations.
  • Demonstrate how a recent defense can be easily circumvented under LLM-specific threat models.

Proposed method

  • Review historical adversarial robustness work and common evaluation flaws.
  • Propose LLM-specific threat-model dimensions and a first set of prerequisites for robust evaluations.
  • Demonstrate embedding-space attacks on open-source LLMs by optimizing continuous token embeddings to trigger target responses.
  • Quantify attack effectiveness (e.g., average 8.8 forward/backward passes to achieve 100% trigger rate on Llama2-7b-chat).
  • Show a defense (substring-based filtering) can be circumvented by removing the assumed fixed instruction in the threat model.

Experimental results

Research questions

  • RQ1What are the appropriate threat-model dimensions for evaluating robustness in LLMs?
  • RQ2Are embedding-space attacks a viable and efficient threat model for open-source LLMs compared to discrete-space attacks?
  • RQ3How do current defense evaluations fare under LLM-specific threat-model prerequisites, and can they be circumvented?
  • RQ4What guidelines and benchmarks are needed to standardize robustness assessments in LLMs?

Key findings

  • Embedding-space attacks enable 100% trigger rates on open-source LLMs with about 8.8 optimization passes on average.
  • Embedding-space attacks are orders of magnitude faster than discrete-space attacks in current benchmarks.
  • Defenses certified under a limited threat model can be circumvented when threat-model assumptions are relaxed (e.g., removing fixed instructions).
  • There is currently no established, universally agreed-upon benchmark for LLM robustness assessments, increasing the risk of overfitting defenses.
  • Narrow benchmarks can lead to overfitting and may not generalize to broader threat models in LLMs.

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.