arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.29968cs.DB
收藏

CLIP:基于余弦定律的轻量级倒排列表剪枝技术用于IVF向量搜索

CLIP: Lightweight Cosine-Law-Based Inverted-List Pruning for IVF-Based Vector Search

Hong Kong Baptist University(香港浸会大学);Shanghai Jiao Tong University(上海交通大学);Tencent Inc.(腾讯公司)

Yitong Song, Shuhang Lu, Pengcheng Zhang, Jianliang Xu

AI总结:

针对IVF向量搜索中粗粒度执行导致高延迟的问题,提出基于余弦定律的轻量级剪枝技术CLIP,支持簇间和簇内剪枝,显著减少不必要的簇和向量访问,并开发了IVF-CLIP、HIVF-CLIP和LSM-IVF三种变体,实验表明剪枝率达78%,效率提升最高141%。

摘要:

向量搜索已成为现代多模态检索系统的核心组件。在现有方法中,基于倒排文件(IVF)的方法因其可扩展性、高效更新和硬件友好性而被广泛采用。然而,它们从根本上受限于粗粒度执行:每个查询通常探测多个簇并穷举扫描其中的所有向量,导致高查询延迟。先前的工作通过剪枝策略缓解这一问题,但通常引入大量额外剪枝开销,缺乏簇级剪枝,并且由于剪枝元数据维护繁重而损害更新效率。本文提出CLIP,一种基于余弦定律的轻量级剪枝技术,支持簇间和簇内剪枝,以可忽略的开销大幅减少不必要的簇和向量访问。首先,CLIP利用基于余弦定律的下界的单调性,能够在O(1)时间内消除不理想的簇,并在列表大小的对数时间内过滤成批不相关向量,且具有严格的分析保证。其次,在此基础上,我们开发了两种IVF变体:IVF-CLIP,将CLIP集成到IVFFlat中;以及HIVF-CLIP,通过层次结构扩展以实现自适应子簇探测。第三,针对动态工作负载,我们提出LSM-IVF,一种受LSM启发的设计,通过将索引维护推迟到后台压缩来支持快速更新,并通过基于CLIP的优化实现高效查询,避免昂贵的逐级搜索。大量实验表明,CLIP变体在静态IVF基线上实现了高达78%的剪枝率和69%的效率提升,而LSM-IVF在动态IVF基线上将吞吐量提升了高达141%,同时保持了相当的更新效率。

英文摘要:

Vector search has become a core component of modern multimodal retrieval systems. Among existing methods, inverted file (IVF)-based methods are widely adopted due to their scalability, efficient updates, and hardware friendliness. However, they are fundamentally limited by coarse-grained execution: each query typically probes many clusters and exhaustively scans all vectors within them, resulting in high query latency. Prior works mitigate this using pruning strategies, but they often incur substantial extra pruning overhead, lack cluster-level pruning, and compromise update efficiency due to heavy maintenance of pruning metadata. This paper proposes CLIP, a lightweight cosine-law-based pruning technique that supports both inter- and intra-cluster pruning, substantially reducing unnecessary cluster and vector accesses with negligible overhead. First, CLIP exploits the monotonicity of cosine-law-based lower bounds, enabling eliminating an undesirable cluster in O(1) time and filtering batches of irrelevant vectors in logarithmic time in the list size, with a tight analytical guarantee. Second, building on this, we develop two IVF variants: IVF-CLIP, which integrates CLIP into IVFFlat, and HIVF-CLIP, which extends it with a hierarchical structure for adaptive sub-cluster probing. Third, for dynamic workloads, we present LSM-IVF, an LSM-inspired design that supports fast updates by deferring index maintenance to background compaction, and enables efficient queries via CLIP-based optimizations that eliminate costly level-by-level searches. Extensive experiments show that CLIP variants achieve up to 78% pruning and 69% higher efficiency over static IVF baselines, while LSM-IVF improves throughput by up to 141% over dynamic IVF baselines with comparable update efficiency.

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

↑