arXiv:2501.18536cs.IR2025-01被引 6

攻击者可任意注入无关内容骗过检索系统,让无关信息获得最高相关性评分。

Illusions of Relevance: Arbitrary Content Injection Attacks Deceive Retrievers, Rerankers, and LLM Judges

  • 通过向相关文本或查询中注入任意句子实现内容欺骗。
  • 各类模型(检索器、重排序器、LLM判别器)均易被攻破,成功率极高。
  • 对防御机制构成挑战,适合关注模型安全的研究者阅读。

本文研究黑盒环境下攻击者如何在搜索系统中传播任意无关内容。实验表明,检索器、重排序器及基于大语言模型的相关性判别器均极易受攻击,攻击者可将任意内容推至搜索结果首位并赋予完美相关性评分。研究通过内容注入方式,在相关段落中插入无关句子,或在无关段落中插入查询词,分析了模型类型与规模、相关内容与无关内容比例、注入位置、内容毒性与严重性以及LLM生成内容等因素对攻击效果的影响,揭示出令人担忧且常违背直觉的结果。研究发现嵌入模型、基于LLM的评分模型及生成式大模型普遍存在漏洞,引发对语言模型整体鲁棒性、安全性与可信度的质疑。此外,分类器和精心提示的LLM判别器也难以识别注入内容,尤其在多主题、多风格文本下表现不佳。研究强调需进一步探索此类任意内容注入攻击。代码已公开供后续研究。

原文摘要 · Abstract (English)

This work considers a black-box threat model in which adversaries attempt to propagate arbitrary non-relevant content in search. We show that retrievers, rerankers, and LLM relevance judges are all highly vulnerable to attacks that enable arbitrary content to be promoted to the top of search results and to be assigned perfect relevance scores. We investigate how attackers may achieve this via content injection, injecting arbitrary sentences into relevant passages or query terms into arbitrary passages. Our study analyzes how factors such as model class and size, the balance between relevant and non-relevant content, injection location, toxicity and severity of injected content, and the role of LLM-generated content influence attack success, yielding novel, concerning, and often counterintuitive results. Our results reveal a weakness in embedding models, LLM-based scoring models, and generative LLMs, raising concerns about the general robustness, safety, and trustworthiness of language models regardless of the type of model or the role in which they are employed. We also emphasize the challenges of robust defenses against these attacks. Classifiers and more carefully prompted LLM judges often fail to recognize passages with content injection, especially when considering diverse text topics and styles. Our findings highlight the need for further research into arbitrary content injection attacks. We release our code for further study.

模型安全内容注入搜索系统LLM漏洞

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。