TRIM:通过增强基于三角不等式的剪枝加速高维向量相似性搜索
TRIM: Accelerating High-Dimensional Vector Similarity Search with Enhanced Triangle-Inequality-Based Pruning
AI总结:
针对高维向量相似性搜索中传统三角不等式剪枝因距离集中失效的问题,提出TRIM通过优化地标向量和可调节放宽下界增强剪枝,集成多方法后显著提升效率并保持精度。
摘要:
高维向量相似性搜索(HVSS)对许多数据处理和AI应用至关重要。然而,传统HVSS方法通常需要大量数据访问来进行距离计算,导致效率低下。基于三角不等式的下界剪枝是低维空间中广泛用于减少数据访问次数的技术,但在高维场景中效果较差,这归因于“距离集中”现象,即由三角不等式推导的下界过小而无用。为此,我们提出TRIM,通过两种关键方式增强传统基于三角不等式的剪枝在高维向量相似性搜索中的有效性:(1)优化用于形成三角形的地标向量;(2)放宽由三角不等式推导的下界,且放宽程度可根据用户需求调整。TRIM是一种通用操作,可无缝集成到基于内存(如HNSW、IVFPQ)和基于磁盘(如DiskANN)的HVSS方法中,减少距离计算和磁盘访问。大量实验表明,TRIM增强了基于内存的方法,将基于图的搜索速度提高多达90%,基于量化的搜索速度提高多达200%,同时实现高达99%的剪枝率;对于基于磁盘的方法,它将I/O成本降低多达58%,效率提高102%,同时保持高查询精度。
英文摘要:
High-dimensional vector similarity search (HVSS) is critical for many data processing and AI applications. However, traditional HVSS methods often require extensive data access for distance calculations, leading to inefficiencies. Triangle-inequality-based lower bound pruning is a widely used technique to reduce the number of data access in low-dimensional spaces but becomes less effective in high-dimensional settings. This is attributed to the "distance concentration" phenomenon, where the lower bounds derived from the triangle inequality become too small to be useful. To address this, we propose TRIM, which enhances the effectiveness of traditional triangle-inequality-based pruning in high-dimensional vector similarity search using two key ways: (1) optimizing landmark vectors used to form the triangles, and (2) relaxing the lower bounds derived from the triangle inequality, with the relaxation degree adjustable according to user's needs. TRIM is a versatile operation that can be seamlessly integrated into both memory-based (e.g., HNSW, IVFPQ) and disk-based (e.g., DiskANN) HVSS methods, reducing distance calculations and disk access. Extensive experiments show that TRIM enhances memory-based methods, improving graph-based search by up to 90% and quantization-based search by up to 200%, while achieving a pruning ratio of up to 99%. It also reduces I/O costs by up to 58% and improves efficiency by 102% for disk-based methods, while preserving high query accuracy.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。