向量相似性搜索中的距离比较操作并非万能解决方案:对其优劣与局限的基准研究
Distance Comparison Operations Are Not Silver Bullets in Vector Similarity Search: A Benchmark Study on Their Merits and Limits
AI总结:
本文通过基准测试8种距离比较算法在10个数据集上的性能,发现其效率受维度影响大,且在分布外查询时表现不稳定,但能加速索引构建和数据更新。
摘要:
距离比较操作(DCOs)决定数据向量与查询之间的距离是否在阈值内,是向量相似性搜索中的关键性能瓶颈。最近的DCO方法通过避免全维度距离计算提供显著加速,但其在生产级向量数据库系统中的适用性仍存疑问。为此,我们对8种DCO算法在10个数据集(最多1亿个向量和12288维)和多样化的硬件配置(带有/无SIMD的CPU和GPU)上进行了全面基准测试。研究发现,这些方法并非万能解决方案:其效率对数据维度高度敏感,在分布外查询时性能下降,并且在不同硬件上表现不稳定。然而,我们的评估也展示了常被忽视的优点:它们可以加速索引构建和数据更新。尽管有这些优势,其不稳定性能,有时比全维度扫描还慢,使我们得出结论:最近的DCO算法进展尚未准备好用于生产部署。
英文摘要:
Distance Comparison Operations (DCOs), which decide whether the distance between a data vector and a query is within a threshold, are a critical performance bottleneck in vector similarity search. Recent DCO methods that avoid full-dimensional distance computations promise significant speedups, but their readiness for production vector database systems remains an open question. To address this, we conduct a comprehensive benchmark of 8 DCO algorithms across 10 datasets (with up to 100M vectors and 12,288 dimensions) and diverse hardware configurations (CPUs with/without SIMD, and GPUs). Our study reveals that these methods are not silver bullets: their efficiency is highly sensitive to data dimensionality, degrades under out-of-distribution queries, and is unstable across hardware. Yet, our evaluation also demonstrates often-overlooked merits: they can accelerate index construction and data updates. Despite these benefits, their unstable performance, which can be slower than a full-dimensional scan, leads us to conclude that recent algorithmic advancements in DCO are not yet ready for production deployment.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。