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

连接压缩空间和Transformer的近似最近邻搜索

Connecting Compression Spaces with Transformer for Approximate Nearest Neighbor Search

Haokui Zhang, Buzhou Tang, Wenze Hu, Xiaoyu Wang

摘要:

我们提出了一个通用的特征压缩方法近似最近邻搜索(ANNS)的问题,加快现有的ANNS方法在一个即插即用的方式。具体而言,基于Transformer,我们提出了一种新的网络结构,以压缩到一个低维空间的功能,和非均匀的邻域关系保持(INRP)损失,旨在保持高搜索精度。具体来说,我们使用多个压缩投影将特征投射到许多低维空间中,然后使用Transformer全局优化这些投影,使得特征在我们的损失函数的指导下被很好地压缩。损失函数被设计为在原始特征空间中接近的点对分配高权重,并且保持它们在投影空间中的距离。保持这些距离有助于保持最终的top-k检索精度,而降低其他距离的权重则为特征压缩创造了空间。在实验中,我们在公共数据集上运行我们的压缩方法,并将压缩后的特征用于基于图、乘积量化和标量量化的ANNS解决方案中。实验结果表明,我们的压缩方法可以显着提高这些方法的效率,同时保持甚至提高搜索精度,这表明其在现实世界中的应用广泛的潜在影响。

英文摘要:

We propose a generic feature compression method for Approximate Nearest Neighbor Search (ANNS) problems, which speeds up existing ANNS methods in a plug-and-play manner. Specifically, based on transformer, we propose a new network structure to compress the feature into a low dimensional space, and an inhomogeneous neighborhood relationship preserving (INRP) loss that aims to maintain high search accuracy. Specifically, we use multiple compression projections to cast the feature into many low dimensional spaces, and then use transformer to globally optimize these projections such that the features are well compressed following the guidance from our loss function. The loss function is designed to assign high weights on point pairs that are close in original feature space, and keep their distances in projected space. Keeping these distances helps maintain the eventual top-k retrieval accuracy, and down weighting others creates room for feature compression. In experiments, we run our compression method on public datasets, and use the compressed features in graph based, product quantization and scalar quantization based ANNS solutions. Experimental results show that our compression method can significantly improve the efficiency of these methods while preserves or even improves search accuracy, suggesting its broad potential impact on real world applications.

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

↑