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

针对基于R1的检索增强生成系统的思维链投毒攻击

Chain-of-Thought Poisoning Attacks against R1-based Retrieval-Augmented Generation Systems

Hongru Song, Yu-an Liu, Ruqing Zhang, Jiafeng Guo, Yixing Fan

AI总结:

针对基于R1的RAG系统,提出利用推理模板包装错误知识的思维链投毒攻击方法,并在MS MARCO数据集上验证了其有效性。

摘要:

检索增强生成(RAG)系统能够有效缓解大语言模型(LLMs)的幻觉问题,但其自身也存在固有的脆弱性。在RAG系统大规模现实部署之前识别这些弱点至关重要,因为这为未来构建更安全、更稳健的RAG系统奠定了基础。现有的对抗性攻击方法通常利用知识库投毒来探测RAG系统的脆弱性,这些方法能够有效欺骗标准的RAG模型。然而,随着现代大语言模型深度推理能力的快速进步,以往仅注入错误知识的方法在攻击具备深度推理能力的RAG系统时已显不足。受大语言模型深度思考能力的启发,本文从基于R1的RAG系统中提取推理过程模板,利用这些模板将错误知识包装成对抗性文档,并将其注入知识库以攻击RAG系统。我们方法的关键思想在于,对抗性文档通过模拟与模型训练信号对齐的思维链模式,可能被模型误认为是真实的历史推理过程,从而增加其被引用的可能性。在MS MARCO段落排序数据集上进行的实验证明了我们提出方法的有效性。

英文摘要:

Retrieval-augmented generation (RAG) systems can effectively mitigate the hallucination problem of large language models (LLMs),but they also possess inherent vulnerabilities. Identifying these weaknesses before the large-scale real-world deployment of RAG systems is of great importance, as it lays the foundation for building more secure and robust RAG systems in the future. Existing adversarial attack methods typically exploit knowledge base poisoning to probe the vulnerabilities of RAG systems, which can effectively deceive standard RAG models. However, with the rapid advancement of deep reasoning capabilities in modern LLMs, previous approaches that merely inject incorrect knowledge are inadequate when attacking RAG systems equipped with deep reasoning abilities. Inspired by the deep thinking capabilities of LLMs, this paper extracts reasoning process templates from R1-based RAG systems, uses these templates to wrap erroneous knowledge into adversarial documents, and injects them into the knowledge base to attack RAG systems. The key idea of our approach is that adversarial documents, by simulating the chain-of-thought patterns aligned with the model's training signals, may be misinterpreted by the model as authentic historical reasoning processes, thus increasing their likelihood of being referenced. Experiments conducted on the MS MARCO passage ranking dataset demonstrate the effectiveness of our proposed method.

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

↑