arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.12201cs.IR
收藏

AdversarialCoT:单文档检索污染用于LLM推理

AdversarialCoT: Single-Document Retrieval Poisoning for LLM Reasoning

University of Amsterdam(阿姆斯特丹大学)

Hongru Song, Yu-An Liu, Ruqing Zhang, Jiafeng Guo, Maarten de Rijke, Yixing Fan, Xueqi Cheng

AI总结:

研究针对RAG系统中的知识库污染攻击,提出AdversarialCoT方法,通过单文档污染影响LLM推理,揭示其安全风险并提供改进方案。

摘要:

检索增强生成(RAG)通过检索外部文档增强大语言模型(LLM)的推理能力,但也打开了新的攻击面。我们研究了RAG中的知识库污染攻击,攻击者将恶意内容注入检索语料库,随后由检索器自然呈现并被LLM在推理过程中消耗。与以往填充污染文档不同,我们提出了AdversarialCoT,一种查询特定的攻击方式,仅污染语料库中的单个文档。AdversarialCoT首先提取目标LLM的推理框架以指导初始对抗性思维链(CoT)的构建。对抗性文档通过与LLM的交互逐步优化,逐步暴露和利用关键推理漏洞。在基准LLM上的实验表明,单个对抗性文档可显著降低推理准确性,揭示了细微但影响深远的弱点。本研究揭示了RAG系统的安全风险,并为设计更稳健的LLM推理管道提供了可行见解。

英文摘要:

Retrieval-augmented generation (RAG) enhances large language model (LLM) reasoning by retrieving external documents, but also opens up new attack surfaces. We study knowledge-base poisoning attacks in RAG, where an attacker injects malicious content into the retrieval corpus, which is then naturally surfaced by the retriever and consumed by the LLM during reasoning. Unlike prior work that floods the corpus with poisoned documents, we propose AdversarialCoT, a query-specific attack that poisons only a single document in the corpus. AdversarialCoT first extracts the target LLM's reasoning framework to guide the construction of an initial adversarial chain-of-thought (CoT). The adversarial document is iteratively refined through interactions with the LLM, progressively exposing and exploiting critical reasoning vulnerabilities. Experiments on benchmark LLMs show that a single adversarial document can significantly degrade reasoning accuracy, revealing subtle yet impactful weaknesses. This study exposes security risks in RAG systems and provides actionable insights for designing more robust LLM reasoning pipelines.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑