Research map / Large language models / Language, safety and interpretability
Evaluating the Instruction-Following Robustness of Large Language Models to Prompt Injection
Zekun Li, Baolin Peng, Pengcheng He, Xifeng Yan
University of California, Santa Barbara · Microsoft · Zoom
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use proprietary models (GPT-3.5-Turbo, Claude-2) instead of open-source ones | instruction-following LLMs · NaturalQuestions, TriviaQA, SQuAD, HotpotQA | PDR / IDR | Improved |
| increase model size to 70B (LLaMA2-70B-Chat) | LLaMA2 chat · four QA datasets | PDR / IDR | No clear effect |
| higher AlpacaEval instruction-following ability (Zephyr-7B-Beta) | 7B models · four QA datasets | PDR / IDR | Hurt |
| inject context-irrelevant instead of context-relevant instructions | most models · NaturalQuestions etc. | PDR | Improved |
| move the injection from start to middle to end of context (ablation) | less robust models · NaturalQuestions | PDR / IDR | Hurt |
| place the injection at the end for robust models (GPT-3.5-Turbo, Claude-2, Vicuna-33B) (ablation) | robust models · NaturalQuestions | PDR | Hurt |
| add jailbreak-style prefix to injected instruction (ablation) | GPT-3.5-Turbo, Claude-2, Vicuna-33B · NaturalQuestions | PDR | Hurt |
| add jailbreak-style prefix to injected instruction (ablation) | LLaMA2-70B-Chat, Zephyr-7B-Beta, Alpaca-7B · NaturalQuestions | PDR | No clear effect |
| add system prompt telling the model to ignore injected instructions (ablation) | instruction-following LLMs · NaturalQuestions | PDR | Mixed |
| put original question after the context (CQA order) instead of before (QCA) (ablation) | instruction-following LLMs · NaturalQuestions | PDR | Improved |
| use 4-shot demonstrations instead of 0-shot (ablation) | instruction-following LLMs · NaturalQuestions | robustness evaluation | Improved |
| increase demonstrations from four to five (ablation) | instruction-following LLMs · NaturalQuestions | original task performance | Hurt |
Open problems in safety alignment of LLMs
How can LLM safety be shown to hold across languages, multi-turn use and models beyond small open ones?
- Safety is tested in English or a few languages only. · 30 papers state it
- Results come from a few open models, mostly small or mid-sized. · 26 papers state it
- Scores depend on an LLM judge that may be biased. · 23 papers state it
Closest papers by meaning
- Robustness via Referencing: Defending against Prompt Injection Attacks by Referencing the Executed Instruction (ACL 2026 · similarity 0.95)
- Enhancing Large Language Models Against Inductive Instructions with Dual-critique Prompting (NAACL 2024 · similarity 0.92)
- Instructional Segment Embedding: Improving LLM Safety with Instruction Hierarchy (ICLR 2025 · similarity 0.91)
- Context-Aware Hierarchical Learning: A Two-Step Paradigm towards Safer LLMs (NeurIPS 2025 · similarity 0.91)
- Evaluating the Zero-shot Robustness of Instruction-tuned Language Models (ICLR 2024 · similarity 0.90)
- Do LLMs ``know'' internally when they follow instructions? (ICLR 2025 · similarity 0.90)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.