concept

Instruction Hierarchy

How an assistant resolves conflicting instructions depends on their authority, not just their wording.

An instruction hierarchy assigns priority to instructions from different sources. Wallace and colleagues train models to follow compatible lower-priority requests while resisting conflicting ones.[1]

Their proposed order places system instructions above user requests, and user requests above third-party text such as tool results. Authority comes from the source’s assigned role, rather than an instruction’s urgency or a claim inside a document to be a system message. Synthetic examples teach both combining compatible requests and answering as if a conflicting lower-priority instruction were absent.[1]

Imagine a museum assistant authorized to describe exhibits. A visitor asks for a shorter explanation: that fits the task. An exhibit label asks the assistant to abandon the museum and advertise a shop: reading that label should not give it authority. This is an original teaching example, extending the document-versus-supervisor analogy.

The 2024 experiment’s browsing implementation is stricter than its ideal account: it treats every instruction in browsing or tool output as conflicting. Fine-tuned GPT-3.5 Turbo improves resistance on the tested attacks, including held-out types, but the results do not establish universal protection; some benign requests are also refused more often.[1]

Behavior and permission

In a second hypothetical example, an assistant is given a key to one display cabinet. Training it to honor instructions concerns how it chooses actions. Restricting which cabinet the key opens concerns which actions the surrounding system permits. Neither example estimates the reliability of a particular deployed product.

The 2026 position paper argues that security-critical model judgments should be constrained by system design.[2] Read both papers’ evidence scopes: a controlled training result and an architectural proposal answer different questions. The incidents guide asks what controls were actually present and what failed.

Sources

  1. The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions · Source record ref-instruction-hierarchy-2024 · Back to claim ↑1 ↑2 ↑3
  2. Architecting Secure AI Agents: Perspectives on System-Level Defenses Against Indirect Prompt Injection Attacks · Source record ref-secure-agent-position-2026 · Back to claim ↑1

Article updated 2026-10-31