arxiv-2211-09527 · paper

Ignore Previous Prompt: Attack Techniques For Language Models

Fábio Perez, Ian Ribeiro

Created: 2022 · Ingested: 2026-09-02

This source: Ignore Previous Prompt: Attack Techniques For Language ModelsHow much the field cites it — very heavily cited in the last 12 months475 in the last 12 months · 1055 totalpublished 2022checked 2026-09-04click for Semantic Scholar475 citations in the last 12 months · 1055 total · checked 2026-09-04

https://arxiv.org/abs/2211.09527(opens in a new tab)

In brief

The most capable model in a family is the easiest to hijack with injected instructions, an inverse-scaling result for instruction-following. Handcrafted user text that says to ignore the application prompt reliably derails GPT-3 apps built by string substitution.

PromptInject assembles base prompts, attack strings, delimiters and model settings into a grid. The 35 base prompts come from OpenAI's public Examples page, run mostly on text-davinci-002, with 2 attacks: goal hijacking (make the model print a target string) and prompt leaking (make it print its own instruction).

Best observed rates were 58.6% ± 1.6 for goal hijacking and 23.6% ± 2.7 for leaking. Across models the same attack got 13.8% ± 2.2 (text-ada-001), 29.5% ± 5.9 (babbage), 23.8% ± 3.9 (curie), 30.5% ± 3.9 (davinci-001), 58.6% ± 1.6 (davinci-002). More harmful rogue strings worked less well ("I hate humans" 58.6% ± 1.6 vs "Kill all humans" 49.3% ± 2.7 vs non-harmful 70.0% ± 3.7). Stop sequences (60.0% ± 0.0 to 47.5% ± 5.0) and text placed after the user input (63.1% ± 2.4 to 51.8% ± 3.6) reduced success.

Each factor is varied one at a time over the same 35 prompts and repeated 4 times, so attribution within the grid is clean, but the search was not exhaustive, success is exact-match, and only OpenAI models were tested.

Treat capability at following instructions as an attack surface that grows with model quality.

Written from the abstract by claude-opus-5 on 2026-09-05, with every figure checked against it. Not a substitute for the paper.

Referenced by

Claims in this catalog that draw on this source, and whether as support or counterpoint.