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

拯救未被污染者:针对RAG系统知识损坏攻击的高效防御

Rescuing the Unpoisoned: Efficient Defense against Knowledge Corruption Attacks on RAG Systems

Sungkyunkwan University(成均馆大学)

Minseok Kim, Hankook Lee, Hyungjoon Koo

AI总结:

提出RAGDefender,一种针对RAG系统知识损坏攻击的高效防御机制,在检索后阶段利用轻量级机器学习技术检测并过滤对抗性内容,无需额外模型训练,在多模型和对抗场景下显著降低攻击成功率并优于现有防御方法。

摘要:

大型语言模型(LLMs)正在重塑我们日常生活的诸多方面,作为基于网络的服务被广泛采用。尽管LLMs功能多样,但面临着显著的挑战,例如生成幻觉内容以及无法获取最新信息。近来,为了解决这些局限性,检索增强生成(RAG)作为一种有前景的方向出现,它通过基于外部知识源生成响应来应对。一个典型的RAG系统由i) 一个从知识库中检索出一组相关段落的检索器,以及ii) 一个基于检索内容生成响应的生成器组成。然而,与其他AI系统一样,近期的研究表明了RAG的脆弱性,例如通过注入误导信息进行的知识损坏攻击。作为应对,已经提出了几种防御策略,包括让LLMs单独检查检索到的段落或微调鲁棒检索器。虽然有效,但这些方法通常伴随着巨大的计算成本。在这项工作中,我们引入了RAGDefender,这是一种资源高效的防御机制,用于防御实际RAG部署中的知识损坏(即通过数据投毒)攻击。RAGDefender在检索后阶段运行,利用轻量级机器学习技术检测并过滤对抗性内容,而无需额外的模型训练或推理。我们的实证评估表明,RAGDefender在多个模型和对抗场景中始终优于现有的最先进防御方法:例如,当对抗性段落数量是合法段落的四倍(4x)时,RAGDefender将针对Gemini模型的攻击成功率(ASR)从0.89降至低至0.02,而RobustRAG为0.69,Discern-and-Answer为0.24。

英文摘要:

Large language models (LLMs) are reshaping numerous facets of our daily lives, leading widespread adoption as web-based services. Despite their versatility, LLMs face notable challenges, such as generating hallucinated content and lacking access to up-to-date information. Lately, to address such limitations, Retrieval-Augmented Generation (RAG) has emerged as a promising direction by generating responses grounded in external knowledge sources. A typical RAG system consists of i) a retriever that probes a group of relevant passages from a knowledge base and ii) a generator that formulates a response based on the retrieved content. However, as with other AI systems, recent studies demonstrate the vulnerability of RAG, such as knowledge corruption attacks by injecting misleading information. In response, several defense strategies have been proposed, including having LLMs inspect the retrieved passages individually or fine-tuning robust retrievers. While effective, such approaches often come with substantial computational costs. In this work, we introduce RAGDefender, a resource-efficient defense mechanism against knowledge corruption (i.e., by data poisoning) attacks in practical RAG deployments. RAGDefender operates during the post-retrieval phase, leveraging lightweight machine learning techniques to detect and filter out adversarial content without requiring additional model training or inference. Our empirical evaluations show that RAGDefender consistently outperforms existing state-of-the-art defenses across multiple models and adversarial scenarios: e.g., RAGDefender reduces the attack success rate (ASR) against the Gemini model from 0.89 to as low as 0.02, compared to 0.69 for RobustRAG and 0.24 for Discern-and-Answer when adversarial passages outnumber legitimate ones by a factor of four (4x).

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

↑