arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.08862cs.CRcs.CL
收藏

RAG安全性:探究针对检索增强生成的知识中毒攻击

RAG Safety: Exploring Knowledge Poisoning Attacks to Retrieval-Augmented Generation

School of Computer Science and Technology,Xi'an Jiaotong University(西安交通大学计算机科学与技术学院);Department of Computer Science, The University of Manchester(曼彻斯特大学计算机科学系);School of Computer Science and Engineering, Southeast University(东南大学计算机科学与工程学院);National University of Singapore(新加坡国立大学)

Tianzhe Zhao, Jiaoyan Chen, Yanchi Ru, Haiping Zhu, Nan Hu, Jun Liu, Qika Lin

AI总结:

本文首次系统研究了基于知识图谱的检索增强生成(KG-RAG)的安全风险,提出了一种隐蔽的知识中毒攻击策略,通过在知识图谱中插入扰动三元组完成误导推理链,实验证明该攻击能以极小扰动有效降低系统性能。

摘要:

检索增强生成(RAG)通过检索外部数据来缓解幻觉和知识过时问题,从而增强了大型语言模型(LLMs)。得益于在促进多样化数据源和支持可靠推理方面的强大能力,知识图谱(KGs)在RAG系统中得到了越来越多的应用,催生了基于知识图谱的RAG(KG-RAG)方法。尽管RAG系统广泛应用于各种场景,但近期研究也揭示了其对数据中毒攻击的脆弱性,即注入到外部知识源中的恶意信息会误导系统产生错误或有害的响应。然而,这些研究仅专注于使用非结构化文本数据源的RAG系统,尽管知识图谱因其结构化和可编辑的特性而呈现出独特的脆弱性,但KG-RAG的安全风险在很大程度上仍未被探索。在这项工作中,我们通过数据中毒攻击对KG-RAG方法的安全问题进行了首次系统性调查。为此,我们引入了一种符合实际实现、隐蔽的攻击设置。我们提出了一种攻击策略,该策略首先识别对抗性目标答案,然后在知识图谱中插入扰动三元组以完成误导性推理链,从而增加KG-RAG方法在生成过程中检索并依赖这些扰动的可能性。通过在两个基准和四种最近的KG-RAG方法上进行广泛实验,我们的攻击策略在降低KG-RAG性能方面表现出强大的有效性,即使在知识图谱扰动最小的情况下也是如此。我们还进行了深入分析,以了解KG-RAG系统内部阶段的安全威胁,并探索LLMs对抗对抗性知识的鲁棒性。

英文摘要:

Retrieval-Augmented Generation (RAG) enhances large language models (LLMs) by retrieving external data to mitigate hallucinations and outdated knowledge issues. Benefiting from the strong ability in facilitating diverse data sources and supporting faithful reasoning, knowledge graphs (KGs) have been increasingly adopted in RAG systems, giving rise to KG-based RAG (KG-RAG) methods. Though RAG systems are widely applied in various applications, recent studies have also revealed its vulnerabilities to data poisoning attacks, where malicious information injected into external knowledge sources can mislead the system into producing incorrect or harmful responses. However, these studies focus exclusively on RAG systems using unstructured textual data sources, leaving the security risks of KG-RAG largely unexplored, despite the fact that KGs present unique vulnerabilities due to their structured and editable nature. In this work, we conduct the first systematic investigation of the security issue of KG-RAG methods through data poisoning attacks. To this end, we introduce a practical, stealthy attack setting that aligns with real-world implementation. We propose an attack strategy that first identifies adversarial target answers and then inserts perturbation triples to complete misleading inference chains in the KG, increasing the likelihood that KG-RAG methods retrieve and rely on these perturbations during generation. Through extensive experiments on two benchmarks and four recent KG-RAG methods, our attack strategy demonstrates strong effectiveness in degrading KG-RAG performance, even with minimal KG perturbations. In-depth analyses are also conducted to understand the safety threats within the internal stages of KG-RAG systems and to explore the robustness of LLMs against adversarial knowledge.

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

↑