你能否信任你向量数据库中的向量?来自嵌入空间缺陷的黑洞攻击
Can You Trust the Vectors in Your Vector Database? Black-Hole Attack from Embedding Space Defects
AI总结:
研究揭示了向量数据库中因高维嵌入缺陷导致的检索漏洞,提出通过注入几何中心附近的恶意向量引发黑洞攻击,实验显示恶意向量在检索结果中出现率高达99.85%。
摘要:
向量数据库是现代AI应用的核心检索组件,但其安全性研究尚不充分。本文提出黑洞攻击,通过注入少量恶意向量至存储向量的几何中心区域,使这些向量像黑洞一样吸引查询,频繁出现在top-k检索结果中。该攻击利用高维嵌入空间中中心驱动的hubness现象:在高维嵌入空间中,靠近质心的向量成为大量其他向量的最近邻,而质心区域在实践中几乎为空。实验表明,恶意向量在top-10结果中出现率达99.85%。此外,评估了现有hubness缓解方法作为对抗黑洞攻击的防御手段,结果显示这些方法要么显著降低检索准确率,要么提供有限保护,表明需要更稳健的防御措施来应对黑洞攻击。
英文摘要:
Vector databases serve as the retrieval backbone of modern AI applications, yet their security remains largely unexplored. We propose the Black-Hole Attack, a poisoning attack that injects a small number of malicious vectors near the geometric center of the stored vectors. These injected vectors attract queries like a black hole and frequently appear in the top-k retrieval results for most queries. This attack is enabled by a phenomenon we term centrality-driven hubness: in high-dimensional embedding spaces, vectors near the centroid become nearest neighbors of a disproportionately large number of other vectors, while this centroid region is nearly empty in practice. The attack shows that vectors in a vector database cannot be blindly trusted: geometric defects in high-dimensional embeddings make retrieval inherently vulnerable. Based on this insight, we propose four attack paths tailored to different attacker capabilities. Our experiments show that up to 94.4% of queries are successfully attacked. Additionally, we study two directions of defense: hubness mitigation and detection-based filtering. Hubness mitigation either significantly reduces retrieval accuracy or provides only limited protection, while the detection-based defense is effective against some attack paths but fails against others. A robust and adaptive defense thus remains an open problem, and our findings indicate that vector databases require more careful treatment of security.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。