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

对抗性中心性检测器:在检索增强生成系统中检测中心性污染

Adversarial Hubness Detector: Detecting Hubness Poisoning in Retrieval-Augmented Generation Systems

Idan Habler;Vineeth Sai Narajala;Stav Koren;Amy Chang;Tiffany Saade

Idan Habler, Vineeth Sai Narajala, Stav Koren, Amy Chang, Tiffany Saade

AI总结:

Hubscan通过多检测器架构检测RAG系统中的对抗性中心性问题,利用统计分析、聚类扩展、稳定性测试和领域感知方法,有效识别并隔离潜在的安全威胁。

摘要:

检索增强生成(RAG)系统是当代AI应用中的关键组成部分,使大型语言模型能够通过向量相似性搜索获取外部知识。然而,这些系统面临一个显著的安全漏洞:中心性——即在大量不同查询中频繁出现在前k检索结果中的项目。这些中心点可以被用来引入有害内容、改变搜索排名、绕过内容过滤和降低系统性能。我们引入了hubscan,一个开源的安全扫描器,用于评估向量索引和嵌入以识别RAG系统中的中心点。Hubscan提出了一个多检测器架构,整合了:(1)利用中位数/中位数绝对偏差(MAD)基于z分数的稳健统计中心性检测,(2)聚类扩展分析以评估跨聚类检索模式,(3)在查询扰动下的稳定性测试,以及(4)领域感知和模态感知检测以应对类别特定和跨模态攻击。我们的解决方案支持几种向量数据库(FAISS、Pinecone、Qdrant、Weaviate)并提供灵活的检索技术,包括向量相似性、混合搜索和基于词汇匹配的重排序能力。我们评估hubscan在Food-101、MS-COCO和FiQA对抗性中心性基准上的性能,这些基准使用了最先进的梯度优化和质心基的中心生成方法。Hubscan在0.2%的警报预算下达到90%的召回率,在0.4%下达到100%的召回率,对抗性中心点排名在99.8百分位以上。在测试中,领域范围的扫描恢复了100%的目标攻击,这些攻击逃过了全局检测。在MS MARCO上的生产验证显示,干净文档与对抗性内容之间有显著的分数分离。

英文摘要:

Retrieval-Augmented Generation (RAG) systems are essential to contemporary AI applications, allowing large language models to obtain external knowledge via vector similarity search. Nevertheless, these systems encounter a significant security flaw: hubness - items that frequently appear in the top-$k$ retrieval results for a disproportionately high number of varied queries. These hubs can be exploited to introduce harmful content, alter search rankings, bypass content filtering, and decrease system performance. We introduce hubscan, an open-source security scanner that evaluates vector indices and embeddings to identify hubs in RAG systems. Hubscan presents a multi-detector architecture that integrates: (1) robust statistical hubness detection utilizing median/Median Absolute Deviation (MAD)-based z-scores, (2) cluster spread analysis to assess cross-cluster retrieval patterns, (3) stability testing under query perturbations, and (4) domain-aware and modality-aware detection for category-specific and cross-modal attacks. Our solution accommodates several vector databases (FAISS, Pinecone, Qdrant, Weaviate) and offers versatile retrieval techniques, including vector similarity, hybrid search, and lexical matching with reranking capabilities. We evaluate hubscan on Food-101, MS-COCO, and FiQA adversarial hubness benchmarks constructed using state-of-the-art gradient-optimized and centroid-based hub generation methods. Hubscan achieves 90% recall at a 0.2% alert budget and 100% recall at 0.4%, with adversarial hubs ranking above the 99.8th percentile. In testing, domain-scoped scanning recovered 100% of targeted attacks that evaded global detection. Production validation on 1M real web documents from MS MARCO demonstrates significant score separation between clean documents and adversarial content.

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

↑