计算机科学
嵌入
稳健性(进化)
对抗制
情报检索
一般化
钥匙(锁)
计算机安全
对抗性信息检索
查询扩展
空格(标点符号)
人机信息检索
质量(理念)
人工智能
信息敏感性
答疑
数据挖掘
文献检索
搜索引擎
数据检索
作者
Longzhu He,Xiyu Zhang,Quan Liu,Chaozhuo Li,Zheng Liu,Pengpeng Zhou,Sen Su
出处
期刊:
[Association for Computing Machinery]
日期:2026-04-17
卷期号:44 (4): 1-31
被引量:6
摘要
Retrieval-Augmented Generation (RAG) improves the performance of Large Language Models (LLMs) by retrieving and integrating relevant information from external knowledge bases, which helps generate more accurate responses. However, RAG is vulnerable to retrieval poisoning attacks , where attackers can induce LLM to produce inaccurate responses by injecting malicious documents into the retrieval process. In this article, we propose ShieldRAG , a novel defense framework designed to counteract retrieval poisoning attacks by reshaping the retrieval embedding space. ShieldRAG leverages a dual-strategy effect realized via a majority-consensus mechanism: ① Push : Implicitly forces the embedding of a user query away from malicious documents by filtering out their minority signals, reducing their influence. ② Pull : Aligns the embedding of a user query closer to that of benign documents, reinforcing accurate retrieval. These strategies work synergistically to preserve retrieval integrity and enhance the quality of LLM-generated responses. Specifically, ShieldRAG operates through three key steps: Sliding Retrieval Explanation Generation , Keyword Aggregation , and Query Targeting Optimization . These three steps collectively ensure the effective integration of information from benign sources while filtering out malicious interference, thereby significantly enhancing the robustness of RAG systems against retrieval poisoning attacks. We evaluate ShieldRAG on four open-domain Question Answering (QA) datasets: Natural Questions, MS-MARCO, HotpotQA, and 2WikiMultiHopQA, using seven representative LLMs. Extensive experiments demonstrate that ShieldRAG significantly improves response accuracy while mitigating adversarial effects, showcasing strong generalization across multiple datasets and LLM architectures.
科研通智能强力驱动
Strongly Powered by AbleSci AI