arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2409.17275cs.CRcs.AIcs.CLcs.DBcs.ETcs.IRcs.LG
收藏

在知识密集型应用领域中应用检索增强生成的脆弱性

On the Vulnerability of Applying Retrieval-Augmented Generation within Knowledge-Intensive Application Domains

Department of ECE University of Minnesota(电子工程系明尼苏达大学);Data Science Institute University of Chicago(数据科学研究所芝加哥大学);Carlson School of Management University of Minnesota(卡尔森管理学院明尼苏达大学);Department of Surgery University of Minnesota(外科系明尼苏达大学);Cisco Research(思科研究);School of Statistics University of Minnesota(统计学学院明尼苏达大学)

Xun Xian, Ganghua Wang, Xuan Bi, Jayanth Srinivasa, Ashish Kundu, Charles Fleming, Mingyi Hong, Jie Ding

AI总结:

研究了RAG在知识密集型领域的对抗鲁棒性,发现检索系统易受通用投毒攻击,并提出一种基于检测的防御方法,在几乎所有情况下均实现出色的检测率。

摘要:

检索增强生成(Retrieval-Augmented Generation, RAG)已被经验证明能提升大型语言模型(LLMs)在医疗、金融和法律等知识密集型领域的性能。给定一个查询,RAG从语料库中检索相关文档,并将其整合到LLMs的生成过程中。在本研究中,我们调查了RAG的对抗鲁棒性,特别聚焦于检索系统。首先,在涵盖语料库、检索器、查询和目标信息的225种不同设置组合中,我们表明检索系统在医疗问答中容易受到通用投毒攻击。在此类攻击中,攻击者生成包含广泛目标信息(如个人身份信息)的投毒文档。当这些投毒文档被插入语料库时,只要使用攻击者指定的查询,任何用户都能准确检索到它们。为了理解这一脆弱性,我们发现从查询的嵌入到投毒文档嵌入的偏差往往遵循一种模式,即投毒文档与查询之间的高相似性得以保留,从而实现精确检索。基于这些发现,我们开发了一种新的基于检测的防御方法,以确保RAG的安全使用。通过跨越各种问答领域的广泛实验,我们观察到我们提出的方法在几乎所有情况下都始终实现了出色的检测率。

英文摘要:

Retrieval-Augmented Generation (RAG) has been empirically shown to enhance the performance of large language models (LLMs) in knowledge-intensive domains such as healthcare, finance, and legal contexts. Given a query, RAG retrieves relevant documents from a corpus and integrates them into the LLMs' generation process. In this study, we investigate the adversarial robustness of RAG, focusing specifically on examining the retrieval system. First, across 225 different setup combinations of corpus, retriever, query, and targeted information, we show that retrieval systems are vulnerable to universal poisoning attacks in medical Q\&A. In such attacks, adversaries generate poisoned documents containing a broad spectrum of targeted information, such as personally identifiable information. When these poisoned documents are inserted into a corpus, they can be accurately retrieved by any users, as long as attacker-specified queries are used. To understand this vulnerability, we discovered that the deviation from the query's embedding to that of the poisoned document tends to follow a pattern in which the high similarity between the poisoned document and the query is retained, thereby enabling precise retrieval. Based on these findings, we develop a new detection-based defense to ensure the safe use of RAG. Through extensive experiments spanning various Q\&A domains, we observed that our proposed method consistently achieves excellent detection rates in nearly all cases.

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

↑