[论文解读] Black-Box Opinion Manipulation Attacks to Retrieval-Augmented Generation of Large Language Models
本文提出了一种黑箱对抗性攻击策略PAT,通过利用替代模型训练和基于指令的对抗性提示,操纵检索增强生成(RAG)模型中的观点极性。该攻击成功地将生成的观点导向预设立场——在某些主题中,支持性回应比例最高提升了40%,揭示了RAG系统在处理开放式、具有争议性查询时存在关键安全漏洞。
Retrieval-Augmented Generation (RAG) is applied to solve hallucination problems and real-time constraints of large language models, but it also induces vulnerabilities against retrieval corruption attacks. Existing research mainly explores the unreliability of RAG in white-box and closed-domain QA tasks. In this paper, we aim to reveal the vulnerabilities of Retrieval-Enhanced Generative (RAG) models when faced with black-box attacks for opinion manipulation. We explore the impact of such attacks on user cognition and decision-making, providing new insight to enhance the reliability and security of RAG models. We manipulate the ranking results of the retrieval model in RAG with instruction and use these results as data to train a surrogate model. By employing adversarial retrieval attack methods to the surrogate model, black-box transfer attacks on RAG are further realized. Experiments conducted on opinion datasets across multiple topics show that the proposed attack strategy can significantly alter the opinion polarity of the content generated by RAG. This demonstrates the model's vulnerability and, more importantly, reveals the potential negative impact on user cognition and decision-making, making it easier to mislead users into accepting incorrect or biased information.
研究动机与目标
- 研究RAG模型在开放式、具有争议性主题下对黑箱观点操纵攻击的脆弱性。
- 探讨此类攻击对用户认知与决策过程的影响,特别是在政治或社会敏感领域。
- 开发一种无需访问RAG系统内部组件(如检索器、大语言模型、语料库)的可迁移攻击策略。
- 在教育、社会、健康和政府等多样化主题中评估攻击的有效性,以识别易受攻击的模式。
- 揭示在现实大语言模型应用中,由于检索层级的操纵所导致的虚假信息传播与认知扭曲风险。
提出的方法
- 使用指令微调的对抗性文本训练替代模型,以模拟目标RAG系统检索器的行为。
- 生成能够通过利用替代模型预测结果来操纵检索结果排序的对抗性候选文本。
- 将这些对抗性构造的文本注入知识库,以污染检索过程,而无需修改检索器或大语言模型。
- 使用污染后的检索结果作为大语言模型的上下文,生成观点性回复,并测量观点极性的变化。
- 应用基于迁移的攻击技术,确保对抗样本在不同RAG系统间具有泛化能力,即使在黑箱约束下亦成立。
- 通过对比攻击前后生成回复的观点分布,利用立场分类评估攻击成功率。
实验结果
研究问题
- RQ1黑箱对抗性攻击在多大程度上能够操纵RAG生成内容在开放式、具有争议性主题下的观点极性?
- RQ2所提出的PAT攻击策略在将对抗样本从替代模型迁移至真实RAG系统方面的有效性如何?
- RQ3哪些主题(如健康、社会、政府)最易受到通过检索污染实现的观点操纵?
- RQ4大语言模型的指令遵循能力如何影响观点操纵攻击的成功率?
- RQ5此类攻击对用户在消费RAG生成内容时产生的下游认知与决策影响是什么?
主要发现
- PAT攻击策略在目标观点设为支持时,使教育和健康等主题的支持性回复比例最高提升了40%。
- 对于目标观点为反对的情况,该攻击使支持性回复减少30%以上,并增加了中立和反对类回复,表明其具备有效的观点引导能力。
- LLAMA3-8b在观点操纵效果上优于Qwen1.5-14b,可能归因于其更强的指令遵循与上下文理解能力。
- 该攻击在社会和健康主题上效果最佳,相较于政府相关主题,其成功率更高,且在前3名检索结果中的排名偏移更显著。
- 政府主题的操纵成功率较低,表明大语言模型可能在政府相关数据上进行了微调,有助于缓解基于检索的偏见。
- 结果证实,RAG模型易受检索层级污染攻击的影响,可能导致用户感知与决策扭曲,尤其在高风险、观点导向的领域中。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。