arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2304.04759cs.LGcs.IR
收藏

基于压缩索引的眨眼间相似性搜索

Similarity search in the blink of an eye with compressed indices

Intel Labs(英特尔实验室)

Cecilia Aguerrebere, Ishwar Bhati, Mark Hildebrand, Mariano Tepper, Ted Willke

AI总结:

针对十亿级向量相似性搜索中基于图的索引随机访存限制性能的问题,提出局部自适应向量压缩方法LVQ结合高性能图搜索系统,实现性能与内存效率的双重突破,大幅刷新业界标杆。

摘要:

如今,数据以向量形式表示。从数百万乃至数十亿条向量中检索与给定查询相似的向量,是一个普遍存在的问题,被称为相似性搜索,在广泛的应用场景中都具有重要意义。基于图的索引是目前十亿级规模相似性搜索中性能最佳的技术。然而,这类索引的随机访存模式为充分发挥其性能潜力带来了挑战。\n在本研究中,我们提出了用于构建更快、更轻量的基于图的索引的新技术与系统。为此,我们提出了一种新型向量压缩方法——局部自适应向量量化(Locally-adaptive Vector Quantization,LVQ),该方法采用逐向量缩放和标量量化技术,通过快速相似性计算与降低有效带宽提升搜索性能,同时减少内存占用,且几乎不影响准确率。\nLVQ 与一套全新的基于图的相似性搜索高性能计算系统结合后,在性能和内存占用方面均树立了新的业界标杆。针对数十亿条向量的场景,LVQ 性能优于次优方案:(1)在低内存配置下,吞吐量提升最高达 20.7 倍,内存占用最多减少 3 倍;(2)在高吞吐量配置下,吞吐量提升 5.8 倍,内存占用减少 1.4 倍。

英文摘要:

Nowadays, data is represented by vectors. Retrieving those vectors, among millions and billions, that are similar to a given query is a ubiquitous problem, known as similarity search, of relevance for a wide range of applications. Graph-based indices are currently the best performing techniques for billion-scale similarity search. However, their random-access memory pattern presents challenges to realize their full potential. In this work, we present new techniques and systems for creating faster and smaller graph-based indices. To this end, we introduce a novel vector compression method, Locally-adaptive Vector Quantization (LVQ), that uses per-vector scaling and scalar quantization to improve search performance with fast similarity computations and a reduced effective bandwidth, while decreasing memory footprint and barely impacting accuracy. LVQ, when combined with a new high-performance computing system for graph-based similarity search, establishes the new state of the art in terms of performance and memory footprint. For billions of vectors, LVQ outcompetes the second-best alternatives: (1) in the low-memory regime, by up to 20.7x in throughput with up to a 3x memory footprint reduction, and (2) in the high-throughput regime by 5.8x with 1.4x less memory.

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

↑