Research map / Adversarial robustness and security / Attacks on text and graphs
Defense against Prompt Injection Attacks via Mixture of Encodings
Ruiyi Zhang, David Sullivan, Kyle Jackson, Pengtao Xie, Mei Chen
University of California, San Diego · Microsoft
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.
On benchmark leaderboards
- MMLU leaderboard score 75.5 · rank 12 of 61 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| encode external text with Base64, Caesar or mixture of encodings | GPT-4 / GPT-4o · BIPIA (Email, Table, Abstract, Code) | attack success rate: GPT-4o Table: 36.80 (no defense) -> 1.00 (ours) | Improved |
| use mixture of encodings instead of Base64 alone | GPT-4o · MMLU | accuracy: 64.9 -> 75.5 | Improved |
| use mixture of encodings instead of Base64 alone | GPT-4o · MGSM | score: 5.2 -> 52.0 | Improved |
| use mixture of encodings instead of Base64 alone | GPT-4 · MGSM | score: 19.1 -> 36.8 | Improved |
| use mixture of encodings instead of Base64 alone | GPT-4 · Safety benchmark (Table and Abstract) | attack success rate: Table 10.40 -> 3.75; Code 0.15 -> 0.07; Email 3.40 -> 1.20; Abstract 8.66 -> 6.79 | Mixed |
| use mixture of encodings instead of no defense | GPT-4o · helpfulness benchmark (9 tasks) | task score: MMLU 79.9 -> 75.5; WebQ 29.7 -> 25.3; IMDB 91.7 -> 92.1; WildGuard 80.8 -> 82.0 | Mixed |
| use mixture of encodings instead of no defense | GPT-4 · WebQ | score: 34.4 -> 46.2 | Improved |
| use mixture of encodings (three prompts plus aggregation) instead of single-encoding defense | GPT-4 on BIPIA-Abstract · inference cost (normalized) | relative inference cost: Base64 1.31 -> Ours 3.46 | Hurt |
| use mixture of encodings instead of Base64 alone | Qwen-2.5-72B-Instruct · BIPIA Email/Table/Abstract | attack success rate: Email 1.46 -> 5.25; Table 1.00 -> 8.15; Abstract 5.71 -> 7.84 | Hurt |
| use mixture of encodings instead of Base64 alone | Qwen-2.5-72B-Instruct · MMLU, MGSM, SamSum | score: MMLU 42.19 -> 71.94; MGSM 3.84 -> 32.88; SamSum 27.01 -> 36.49 | Improved |
| use Atbash encoding in place of Caesar | GPT-4 · WMT / MGSM | BLEU / accuracy: 1.6 BLEU on WMT, 3.5% on MGSM | Hurt |
Open problems in LLM jailbreak and prompt injection defense
Which defenses against jailbreaks and prompt injection hold up, and what do they cost in usefulness?
- Adaptive attacks are not ruled out. · 8 papers state it
- Attack success does not carry over between target models. · 7 papers state it
- Strong attacks still need white-box access. · 6 papers state it
Closest papers by meaning
- Defense Against Prompt Injection Attack by Leveraging Attack Techniques (ACL 2025 · similarity 0.91)
- Robustness via Referencing: Defending against Prompt Injection Attacks by Referencing the Executed Instruction (ACL 2026 · similarity 0.90)
- Backdoor-Powered Prompt Injection Attacks Nullify Defense Methods (EMNLP 2025 · similarity 0.88)
- Assessing Vulnerabilities in State-of-the-Art Large Language Models Through Hex Injection (Student Abstract) (AAAI 2025 · similarity 0.87)
- Tensor Trust: Interpretable Prompt Injection Attacks from an Online Game (ICLR 2024 · similarity 0.86)
- An LLM can Fool Itself: A Prompt-Based Adversarial Attack (ICLR 2024 · similarity 0.86)
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.