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

BiRD: 一种用于检索增强生成的双向排序防御机制

BiRD: A Bidirectional Ranking Defense Mechanism for Retrieval Augmented Generation

Wuhan University(武汉大学);Naval University of Engineering(海军工程大学);Xi’an Jiaotong-Liverpool University(西交利物浦大学)

Chengcai Gao, Zhihong Sun, Xiaochuan Shi, Qiufeng Wang, Chao Liang

AI总结:

本文提出BiRD,一种基于双向排序的防御机制,通过双信号框架提升检索增强生成系统的效率和鲁棒性,有效降低对抗攻击成功率并提高任务准确性。

摘要:

随着检索增强生成(RAG)的广泛应用,对抗攻击也随之增加。现有防御方法依赖于语义分析或投票,面临计算成本高和在强污染攻击下鲁棒性差的权衡问题。其根本限制在于仅关注语义内容相关性,而忽视由排序结构定义的检索上下文。为此,我们研究了污染和良性文档的双向排序行为,发现关键的判别模式:污染文档在反向排序与查询的正向排序之间表现出显著更强的一致性。基于此,我们提出了BiRD,一种基于双信号框架的双向排序防御机制,利用正向排序评估语义内容相关性,利用反向排序量化排序上下文一致性。该设计直接解决了现有方法的根本限制,实现了同时的效率和鲁棒性。在三个数据集上使用三个检索器和三个LLM,在两种攻击场景下进行的广泛评估验证了BiRD的有效性。值得注意的是,BiRD将PoisonedRAG的攻击成功率降低了高达54%,同时任务准确性提高了高达56%,平均额外延迟低于1秒。

英文摘要:

The growing adoption of Retrieval-Augmented Generation (RAG) has led to a rise in adversarial attacks. Existing defenses, relying on semantic analysis or voting, face a trade-off between high computational cost and limited robustness under strong poisoning attacks. Their fundamental limitation is the exclusive focus on semantic content relevance, while neglecting the retrieval context that is critically defined by ranking structures. To this end, we investigate the bidirectional ranking behavior of poisoned and benign documents, and discover a key discriminative pattern: poisoned documents exhibit significantly stronger alignment between their backward rankings and the query's forward ranking. Capitalizing on this, we propose BiRD, a bidirectional ranking defense mechanism built upon a dual-signal framework that leverages forward ranking to assess semantic content relevance and backward ranking to quantify ranking context consistency. This design directly addresses the fundamental limitation of prior approaches, enabling simultaneous efficiency and robustness. Extensive evaluation across 3 datasets with 3 retrievers and 3 LLMs under 2 attack scenarios validates BiRD's effectiveness. Notably, BiRD reduces the attack success rate of PoisonedRAG by up to 54% while simultaneously improving task accuracy by up to 56%, with average additional latency under 1 second.

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

↑