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

Confundo: 学习生成稳健的毒药以应对实际RAG系统

Confundo: Learning to Generate Robust Poison for Practical RAG Systems

The University of Hong Kong(香港大学);Nanjing University(南京大学);City University of Hong Kong(香港城市大学)

Haoyang Hu, Zhejun Jiang, Yueming Lyu, Junyuan Zhang, Yi Liu, Ka-Ho Chow

AI总结:

Confundo是一种学习生成毒药的框架,通过微调大型语言模型以提高RAG系统的鲁棒性和隐蔽性,有效应对实际系统中的安全威胁。

摘要:

检索增强生成(RAG)正在越来越多地应用于现实世界中,其基于参考的设计使输出显得可信。这种信任推动了针对恶意内容的污染攻击研究,这些攻击会制造恶意内容,将其注入知识源,并操控RAG响应。然而,当在实际RAG系统中评估时,现有攻击效果严重下降。这一差距源于两个被忽视的现实:(i)内容通常在使用前被处理,这可以将毒药碎片化并削弱其效果,(ii)用户往往不会发出攻击设计中预期的精确查询。这些因素可能导致从业者低估风险并发展出错误的安全感。为了更好地表征对实际系统的威胁,我们提出了Confundo,一种学习生成毒药的框架,通过微调大型语言模型作为毒药生成器来实现高效果、稳健性和隐蔽性。Confundo提供了一个统一的框架,支持多种攻击目标,通过操控事实准确性、引发偏见观点和触发幻觉来证明。通过解决这些被忽视的挑战,Confundo在多个数据集和RAG配置中明显优于各种专门设计的攻击,即使在存在防御措施的情况下也是如此。除了暴露漏洞外,我们还提出了一个防御用例,通过防止网络内容被未经授权地纳入RAG系统中,而不会影响用户体验。

英文摘要:

Retrieval-augmented generation (RAG) is increasingly deployed in real-world applications, where its reference-grounded design makes outputs appear trustworthy. This trust has spurred research on poisoning attacks that craft malicious content, inject it into knowledge sources, and manipulate RAG responses. However, when evaluated in practical RAG systems, existing attacks suffer from severely degraded effectiveness. This gap stems from two overlooked realities: (i) content is often processed before use, which can fragment the poison and weaken its effect, and (ii) users often do not issue the exact queries anticipated during attack design. These factors can lead practitioners to underestimate risks and develop a false sense of security. To better characterize the threat to practical systems, we present Confundo, a learning-to-poison framework that fine-tunes a large language model as a poison generator to achieve high effectiveness, robustness, and stealthiness. Confundo provides a unified framework supporting multiple attack objectives, demonstrated by manipulating factual correctness, inducing biased opinions, and triggering hallucinations. By addressing these overlooked challenges, Confundo consistently outperforms a wide range of purpose-built attacks across datasets and RAG configurations by large margins, even in the presence of defenses. Beyond exposing vulnerabilities, we also present a defensive use case that protects web content from unauthorized incorporation into RAG systems via scraping, with no impact on user experience.

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

↑