Skip to main content
CenXiv.org
此网站处于试运行阶段,支持我们!
我们衷心感谢所有贡献者的支持。
贡献
赞助
cenxiv logo > cs > arXiv:2507.08862

帮助 | 高级搜索

计算机科学 > 密码学与安全

arXiv:2507.08862 (cs)
[提交于 2025年7月9日 ]

标题: RAG安全:探索知识污染攻击对检索增强生成的影响

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

Authors:Tianzhe Zhao, Jiaoyan Chen, Yanchi Ru, Haiping Zhu, Nan Hu, Jun Liu, Qika Lin
摘要: 检索增强生成(RAG)通过检索外部数据来缓解幻觉和过时知识问题,从而增强大型语言模型(LLMs)的能力。 得益于在促进多种数据源和支持忠实推理方面的强大能力,知识图谱(KGs)已被越来越多地应用于RAG系统,从而产生了基于知识图谱的RAG(KG-RAG)方法。 尽管RAG系统被广泛应用于各种应用中,但最近的研究也揭示了其对数据中毒攻击的脆弱性,其中注入到外部知识源中的恶意信息可能会误导系统产生错误或有害的响应。 然而,这些研究仅专注于使用非结构化文本数据源的RAG系统,尽管知识图谱由于其结构化和可编辑的特性而存在独特的漏洞,但KG-RAG的安全风险仍 largely 未被探索。 在本工作中,我们通过数据中毒攻击对KG-RAG方法的安全问题进行了首次系统的调查。 为此,我们引入了一个实际且隐蔽的攻击设置,与现实世界的实现相一致。 我们提出了一种攻击策略,首先识别对抗性目标答案,然后插入扰动三元组以在知识图谱中完成误导性的推理链,增加KG-RAG方法在生成过程中检索和依赖这些扰动的可能性。 通过在两个基准和四种最近的KG-RAG方法上的大量实验,我们的攻击策略表现出强大的有效性,即使在最小的知识图谱扰动下也是如此。 还进行了深入分析,以了解KG-RAG系统内部阶段内的安全威胁,并探讨大型语言模型对对抗性知识的鲁棒性。
摘要: 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.
评论: 13页,6图
主题: 密码学与安全 (cs.CR) ; 计算与语言 (cs.CL)
引用方式: arXiv:2507.08862 [cs.CR]
  (或者 arXiv:2507.08862v1 [cs.CR] 对于此版本)
  https://doi.org/10.48550/arXiv.2507.08862
通过 DataCite 发表的 arXiv DOI

提交历史

来自: Tianzhe Zhao [查看电子邮件]
[v1] 星期三, 2025 年 7 月 9 日 13:06:58 UTC (376 KB)
全文链接:

获取论文:

    查看标题为《》的 PDF
  • 查看中文 PDF
  • 查看 PDF
  • HTML(实验性)
  • TeX 源代码
  • 其他格式
查看许可
当前浏览上下文:
cs.CR
< 上一篇   |   下一篇 >
新的 | 最近的 | 2025-07
切换浏览方式为:
cs
cs.CL

参考文献与引用

  • NASA ADS
  • 谷歌学术搜索
  • 语义学者
a 导出 BibTeX 引用 加载中...

BibTeX 格式的引用

×
数据由提供:

收藏

BibSonomy logo Reddit logo

文献和引用工具

文献资源探索 (什么是资源探索?)
连接的论文 (什么是连接的论文?)
Litmaps (什么是 Litmaps?)
scite 智能引用 (什么是智能引用?)

与本文相关的代码,数据和媒体

alphaXiv (什么是 alphaXiv?)
CatalyzeX 代码查找器 (什么是 CatalyzeX?)
DagsHub (什么是 DagsHub?)
Gotit.pub (什么是 GotitPub?)
Hugging Face (什么是 Huggingface?)
带有代码的论文 (什么是带有代码的论文?)
ScienceCast (什么是 ScienceCast?)

演示

复制 (什么是复制?)
Hugging Face Spaces (什么是 Spaces?)
TXYZ.AI (什么是 TXYZ.AI?)

推荐器和搜索工具

影响之花 (什么是影响之花?)
核心推荐器 (什么是核心?)
IArxiv 推荐器 (什么是 IArxiv?)
  • 作者
  • 地点
  • 机构
  • 主题

arXivLabs:与社区合作伙伴的实验项目

arXivLabs 是一个框架,允许合作伙伴直接在我们的网站上开发和分享新的 arXiv 特性。

与 arXivLabs 合作的个人和组织都接受了我们的价值观,即开放、社区、卓越和用户数据隐私。arXiv 承诺这些价值观,并且只与遵守这些价值观的合作伙伴合作。

有一个为 arXiv 社区增加价值的项目想法吗? 了解更多关于 arXivLabs 的信息.

这篇论文的哪些作者是支持者? | 禁用 MathJax (什么是 MathJax?)
  • 关于
  • 帮助
  • contact arXivClick here to contact arXiv 联系
  • 订阅 arXiv 邮件列表点击这里订阅 订阅
  • 版权
  • 隐私政策
  • 网络无障碍帮助
  • arXiv 运营状态
    通过...获取状态通知 email 或者 slack

京ICP备2025123034号