MINE:基于互信息与嵌入方差的无训练间接提示注入防御方法
MINE: A Training-Free Defense against Indirect Prompt Injection via Mutual Information and Embedding Variance
AI 导读
arXiv 论文提出 MINE,一种免训练、不依赖攻击类型检测的间接提示注入防御方法,通过最大化相关性而非检测攻击来防御,同时可充当按查询条件重排器。作者还推出平均每条上下文约 4,032 词的长上下文基准 LC-Inj-SQuAD。
正文 · 原文
Abstract:Existing defenses against indirect prompt injection in retrieval-augmented generation (RAG) are inherently reactive: prompt-engineering methods are often overridden by the injected instructions, while supervised detectors must be retrained for each new attack style. We propose a different paradigm: defend by maximizing relevance, not by detecting attacks. Our method, MINE, is training-free and attack-agnostic, and it also serves as a query-conditioned reranker. To evaluate defenses under realistic conditions, we introduce LC-Inj-SQuAD, a long-context benchmark with an average of 4,032 words per context. We evaluate on four datasets spanning short-context QA (Inj-SQuAD, Inj-TriviaQA), long-context QA (LC-Inj-SQuAD), and agent tool-call injection (InjecAgent). Across all four, MINE achieves the best accuracy--security trade-off among training-free defenses. It is also the only defense that stays usable against a fully adaptive attacker, generalizes to agent tool-call injection, and achieves the lowest inference latency on long contexts.
| Comments: | To appear in Proceedings of EACL 2027 (Main conference paper) |
| Subjects: | Computation and Language (cs.CL); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2611.34188 [cs.CL] |
| (or arXiv:2611.34188v1 [cs.CL] for this version) | |
| https://doi.org/10.48550/arXiv.2611.34188 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Truong Phan [view email]
[v1]
Wed, 25 Nov 2026 11:16:43 UTC (71 KB)
来源:arXiv cs.AI · arxiv.org