arXiv:2501.16375cs.LGcs.AI2025-01

用神经网络减少存储中近似最近邻搜索的数据读取量。

On Storage Neural Network Augmented Approximate Nearest Neighbor Search

  • 用可迭代优化的神经网络预测最可能包含正确答案的向量簇。
  • 在SIFT1M数据集上达90%召回率,数据读取量比现有方法少58%~80%。
  • 适合大规模离线向量搜索场景,尤其对存储延迟敏感的应用。

大规模近似最近邻搜索(ANN)随着机器学习的发展日益重要。当数据无法完全放入内存时,需从存储设备(如NAND闪存)中检索与查询向量最相似的向量。尽管存储容量大于内存(如DRAM),但读取延迟更高,因此必须采用不同于传统内存内ANN的方法。在合理假设下,搜索耗时主要取决于从存储中读取的数据量,因此目标是在保证召回率的前提下最小化该数据量。对于基于划分的ANN,索引构建阶段将向量划分为簇,搜索阶段仅选取部分簇,从存储中加载其向量,并从中找出最近邻。关键在于准确选出包含真实最近邻的簇。本文提出一种通过神经网络逐步优化预测正确簇的方法,结合监督学习与重复簇分配进行交替训练。在SIFT1M数据集上,相比最先进的SPANN和基于k-means与线性搜索的穷举法,该方法分别实现了90%召回率,且数据读取量减少80%和58%。

原文摘要 · Abstract (English)

Large-scale approximate nearest neighbor search (ANN) has been gaining attention along with the latest machine learning researches employing ANNs. If the data is too large to fit in memory, it is necessary to search for the most similar vectors to a given query vector from the data stored in storage devices, not from that in memory. The storage device such as NAND flash memory has larger capacity than the memory device such as DRAM, but they also have larger latency to read data. Therefore, ANN methods for storage require completely different approaches from conventional in-memory ANN methods. Since the approximation that the time required for search is determined only by the amount of data fetched from storage holds under reasonable assumptions, our goal is to minimize it while maximizing recall. For partitioning-based ANNs, vectors are partitioned into clusters in the index building phase. In the search phase, some of the clusters are chosen, the vectors in the chosen clusters are fetched from storage, and the nearest vector is retrieved from the fetched vectors. Thus, the key point is to accurately select the clusters containing the ground truth nearest neighbor vectors. We accomplish this by proposing a method to predict the correct clusters by means of a neural network that is gradually refined by alternating supervised learning and duplicated cluster assignment. Compared to state-of-the-art SPANN and an exhaustive method using k-means clustering and linear search, the proposed method achieves 90% recall on SIFT1M with 80% and 58% less data fetched from storage, respectively.

近邻搜索存储优化神经网络高效检索

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。