Research map / Large language models / Instruction and fine-tuning
Robustness via Referencing: Defending against Prompt Injection Attacks by Referencing the Executed Instruction
Yulin Chen, Haoran Li, Yuan Sui, Yue Liu, Yufei He, Xiaoling Bai, Chi Fei, Yabo Li, Haozhe Ma, Yangqiu Song, Bryan Hooi
National University of Singapore · Hong Kong University of Science and Technology
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 |
|---|---|---|---|
| prompt LLM to output tagged instruction references and filter by tag | Llama3-8B-Instruct · AlpacaFarm direct, Combined attack | ASR (%): 79.33 -> 0.96 (None vs Ours) | Improved |
| use referencing instead of fine-tuned StruQ against unseen attacks | Qwen2-7B-Instruct · AlpacaFarm direct, Combined attack | ASR (%): 30.29 -> 1.92 | Improved |
| apply referencing defense to indirect injection | Llama3-8B-Instruct · Inj-SQuAD, Combined attack | ASR (%): 86.67 -> 0.78 | Improved |
| apply referencing to larger models (70B+) | Llama3-70B / Llama3.1-405B / Qwen2-72B · Inj-SQuAD | ASR (%): maximum ASR 2.78 | Improved |
| increase model size from 7B to 70B+ | Ours · Inj-SQuAD | ASR (%) | No clear effect |
| apply referencing to closed-source models | GPT-4o-mini · Inj-SQuAD, Combined attack | ASR (%): 91.11 -> 0.22 | Improved |
| apply referencing against gradient-based attacks | Qwen2-7B-Instruct · AlpacaFarm direct, GCG | ASR (%): 10.10 (StruQ) -> 6.25 | Improved |
| apply referencing against GCG on Llama3-8B | Llama3-8B-Instruct · AlpacaFarm direct, GCG | ASR (%): 2.88 (StruQ) -> 3.85 | Hurt |
| add referencing defense | Llama3-8B-Instruct · SQuAD (no attack) | accuracy (%): 83.56 -> 87.78 | Improved |
| add referencing defense | Llama3-8B-Instruct · SST2 (no attack) | accuracy (%): 94.84 -> 93.00 | Hurt |
| vary split window size K (ablation) | Ours · Inj-SQuAD avg ASR | ASR (%): 1.11% best-worst gap (Llama3-8B) | No clear effect |
| add in-context examples to guideline prompt (ablation) | Ours · SQuAD/TriviaQA/SST2 utility | accuracy (%) | Improved |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.
- Sandwich — SANDWiCH: Semantical Analysis of Neighbours for Disambiguating Words in Context ad Hoc (NAACL 2025) · better on 4 of 4 shared results
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems in safety alignment after fine-tuning
Do safety defenses against harmful fine-tuning hold on larger models and against adaptive attacks?
- Larger models were not tested, mostly for lack of compute. · 27 papers state it
- Defenses are tested against few attacks and not against adaptive ones. · 15 papers state it
- Safety is scored by one LLM judge or classifier that may be biased. · 15 papers state it
Closest papers by meaning
- Defense Against Prompt Injection Attack by Leveraging Attack Techniques (ACL 2025 · similarity 0.95)
- Evaluating the Instruction-Following Robustness of Large Language Models to Prompt Injection (EMNLP 2024 · similarity 0.95)
- Backdoor-Powered Prompt Injection Attacks Nullify Defense Methods (EMNLP 2025 · similarity 0.93)
- Know Thy Enemy: Securing LLMs Against Prompt Injection via Diverse Data Synthesis and Instruction-Level Chain-of-Thought Learning (ACL 2026 · similarity 0.91)
- Instructional Segment Embedding: Improving LLM Safety with Instruction Hierarchy (ICLR 2025 · similarity 0.89)
- Tensor Trust: Interpretable Prompt Injection Attacks from an Online Game (ICLR 2024 · similarity 0.89)
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.