Ignore Previous Prompt: Attack Techniques For Language Models

By Fábio Perez, I. Ribeiro. 2022

954 citations recorded by the source corpus.

Transformer-based large language models (LLMs) provide a powerful foundation for natural language tasks in large-scale customer-facing applications. However, studies that explore their vulnerabilities emerging from malicious user interaction are scarce. By proposing PromptInject, a prosaic alignment framework for mask-based iterative adversarial prompt composition, we examine how GPT-3, the most widely deployed language model in production, can be easily misaligned by simple handcrafted inputs. In particular, we investigate two types of attacks -- goal hijacking and prompt leaking -- and demonstrate that even low-aptitude, but sufficiently ill-intentioned agents, can easily exploit GPT-3's stochastic nature, creating long-tail risks. The code for PromptInject is available at https://github.com/agencyenterprise/PromptInject.

Subfields: Artificial Intelligence, Health Informatics, Safety, Robustness & Interpretability

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Yang Zhang
  2. Neil Zhenqiang Gong
  3. Michael Backes
  4. Jinyuan Jia
  5. Mario Fritz
  6. Percy Liang
  7. Mohit Bansal
  8. Minlie Huang

In Health Informatics

  1. Yanzhao Wu
  2. Badhan Chandra Das
  3. M. Amini
  4. Matei A. Zaharia
  5. Gero Strobel
  6. Neil Zhenqiang Gong
  7. Michael Backes
  8. Mario Fritz

In Safety, Robustness & Interpretability

  1. Jinyuan Jia
  2. Yang Zhang
  3. Michael Backes
  4. Mario Fritz
  5. Neil Zhenqiang Gong
  6. Zhexin Zhang
  7. Stella Biderman
  8. Yanzhao Wu

Citations in the corpus