MINE:无需训练、基于互信息与嵌入方差的间接提示注入防御方法
MINE: A Training-Free Defense against Indirect Prompt Injection via Mutual Information and Embedding Variance
MINE 是一种无需训练、与攻击类型无关的间接提示注入防御方法,通过最大化相关性而非检测攻击来防御,同时可作为查询条件重排序器。研究还提出平均每段 4,032 词的长上下文基准 LC-Inj-SQuAD,并在 Inj-SQuAD、Inj-TriviaQA、LC-Inj-SQuAD 和 InjecAgent 四个数据集上评估。
arXiv:2611.34188v1 Announce Type: new 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.
来源:arXiv (AI + Vision + Imaging) · arxiv.org