arxiv-2404-13208 · paperThe Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions
Eric Wallace, Kai Xiao, Reimar Leike, et al.
Created: 2024 · Ingested: 2026-09-02
This source: The Instruction Hierarchy: Training LLMs to Prioritize Privileged Inst…How much the field cites it — very heavily cited in the last 12 months285 in the last 12 months · 486 totalpublished 2024checked 2026-09-04click for Semantic Scholar285 citations in the last 12 months · 486 total · checked 2026-09-04
https://arxiv.org/abs/2404.13208(opens in a new tab)In brief
Teaching a model that system messages outrank user messages, which outrank tool outputs, transfers to attack types never seen in training. OpenAI fine-tuned GPT-3.5 Turbo with supervised fine-tuning plus RLHF on synthetic data built by two rules: for instructions aligned with the higher-privilege one, decompose compositional requests and train on the original response; for misaligned ones, train the model to answer as if it never saw the lower-level text.
Training data covered direct prompt injections in open and closed domains, indirect injections via browsing, and system message extraction. Jailbreaks, password extraction from system prompts, and injections through non-browsing tools were deliberately excluded to test generalization.
Robustness rose by up to 63% on the main safety evaluations and by up to 34% on the held-out categories, including jailbreaks. Capability benchmarks (TriviaQA, LAMBADA, HellaSwag) were comparable to baseline.
The comparison is a matched fine-tuned baseline trained on the same capability data minus the hierarchy examples, which isolates the intervention reasonably well. But the evaluation suite is partly self-built and self-reported, there is 1 model, and no independent replication or attack-strength scaling is reported.
Over-refusal regressed on 2 adversarially constructed benign sets: System Message Probing Questions and Jailbreakchat with Allowed Prompts. Only text was tested; images and audio were not. The authors state models remain vulnerable to strong adversarial attacks.
If you are building agents, this is evidence that privilege structure can be trained in rather than bolted on.
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.
- supportsSeparating instructions from data raises injection resistance substantially, but both published versions get their strength from fine-tuning the model on the separation, and both report improved robustness rather than elimination. Treat it as one layer of defense in depth; the prompt-only variant, without training, has no measured efficacy behind it here.
- supportsTraining models to rank system, user, and tool instructions by privilege improves robustness to injections in tool outputs.