Notes

Adversarial Prompts

Every input a language model receives is just text, and the model has no reliable way to separate an instruction it should follow from one it should refuse. Adversarial prompts are inputs written to exploit that gap — crafted to pull behaviour out of a model that its safety training was meant to prevent.

What they look like
  • Role framing: the request is wrapped in fiction, a hypothetical, or a persona, so a refusal feels out of place in the scene.
  • Instruction override: text claiming higher authority — a fake system message, a developer note, "ignore previous instructions".
  • Obfuscation: base64, another language, deliberate misspellings, so the harmful span does not resemble anything seen during alignment.
  • Optimized suffixes: strings of apparent gibberish discovered by gradient search against an open model, which then transfer to models the attacker cannot inspect.
Why they keep working

Safety training shapes a distribution of behaviour; it does not install a rule. Refusals are learned on the phrasings that appeared in alignment data, and the space of phrasings is unbounded, so an attacker needs only one the model never learned to decline. Transferability makes this worse: an attack tuned on open weights frequently works against a hosted model behind an API.

What to do about it

Treat prompt text as untrusted input rather than configuration. Defences layer rather than solve: a classifier on the input and on the output, strict response formats, least privilege for any tool the model can call, and red-teaming with an attack set that keeps growing. Automated adversarial generation is now a standard part of evaluating a model before release.

Adversarial prompts are inputs deliberately crafted to make a language model produce behaviour its safety training was meant to prevent — through role-play framing, fake instruction overrides, obfuscated encodings, or optimized suffixes found against open weights that transfer to hosted models. They matter because alignment shapes learned behaviour rather than enforcing a rule, so any deployment exposing a model to untrusted text needs input and output filtering, restricted tool permissions, and continuous red-teaming.

A language model reads everything it is given as one stream of words, and it cannot really tell the difference between its owner's instructions and a stranger's. Adversarial prompts take advantage of that. They are messages written to talk a model out of its own rules — by wrapping a forbidden request inside a story, by pretending to be a message from the people who built it, or by spelling things oddly so the model does not recognise what it is being asked. It is less like breaking a lock and more like persuading a very agreeable assistant that, just this once, the rules do not apply.