使用基于图的近似最近邻搜索高效检索稠密-稀疏混合向量
Efficient and Effective Retrieval of Dense-Sparse Hybrid Vectors using Graph-based Approximate Nearest Neighbor Search
AI总结:
针对稠密与稀疏向量分别检索扩展性差、统一索引难兼顾精度与效率的问题,提出基于图的混合向量 ANNS,通过分布对齐、两阶段计算和稀疏剪枝提升精度与吞吐。
摘要:
文本嵌入向量表示的 ANNS 常用于信息检索,其中稀疏向量和稠密向量是两种重要的信息表示。尽管已有研究表明结合这些表示能够提升准确率,但当前分别执行稀疏与稠密向量搜索的方法存在可扩展性低和系统复杂度高的问题。另一方面,构建统一索引又面临准确率和效率方面的挑战。为解决这些问题,我们提出一种用于稠密-稀疏混合向量的基于图的 ANNS 算法。首先,我们提出一种分布对齐方法以提升准确率,该方法对稠密和稀疏向量进行预采样,分析其距离分布统计量,使准确率提升 1%~9%。其次,为提升效率,我们设计了自适应的两阶段计算策略:起初仅计算稠密距离,随后再计算混合距离。此外,我们对稀疏向量进行剪枝以加快计算。与朴素实现相比,我们实现了约 2.1 倍加速。充分的实验表明,在同等准确率下,与现有混合向量搜索算法相比,我们的算法实现了 8.9 倍至 11.7 倍的吞吐量。
英文摘要:
ANNS for embedded vector representations of texts is commonly used in information retrieval, with two important information representations being sparse and dense vectors. While it has been shown that combining these representations improves accuracy, the current method of conducting sparse and dense vector searches separately suffers from low scalability and high system complexity. Alternatively, building a unified index faces challenges with accuracy and efficiency. To address these issues, we propose a graph-based ANNS algorithm for dense-sparse hybrid vectors. Firstly, we propose a distribution alignment method to improve accuracy, which pre-samples dense and sparse vectors to analyze their distance distribution statistic, resulting in a 1%$\sim$9% increase in accuracy. Secondly, to improve efficiency, we design an adaptive two-stage computation strategy that initially computes dense distances only and later computes hybrid distances. Further, we prune the sparse vectors to speed up the calculation. Compared to naive implementation, we achieve $\sim2.1\times$ acceleration. Thorough experiments show that our algorithm achieves 8.9x$\sim$11.7x throughput at equal accuracy compared to existing hybrid vector search algorithms.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。