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

流式稀疏向量上最大内积搜索的一种近似算法

An Approximate Algorithm for Maximum Inner Product Search over Streaming Sparse Vectors

Sebastian Bruch, Franco Maria Nardini, Amir Ingber, Edo Liberty

AI总结:

针对流式、任意分布稀疏实值向量的动态 top-k 最大内积检索,论文提出可调节内存、延迟与准确性的近似算法 Sinnamon,并给出误差理论和跨平台实证评估。

摘要:

稀疏向量上的最大内积搜索(Maximum Inner Product Search)或称 top-k 检索,在信息检索领域已得到充分理解,并有许多成熟算法能够精确求解。然而,现有所有算法都是面向文本及基于频率的相似性度量而定制的。为实现最优的内存占用和查询延迟,它们依赖文档的近似平稳性以及支配自然语言的规律。与此不同,我们考虑一种集合处于流式状态的设置——这就要求动态索引——并且索引与检索必须处理任意分布的实值向量。正如我们所展示的,在这种设置下,现有算法即使与朴素方案相比也不再具有竞争力。我们研究了这一差距,并提出了一种名为 Sinnamon 的新型近似解决方案,它能够高效检索来自任意分布的稀疏实值向量的 top-k 结果。值得注意的是,Sinnamon 提供了在内存消耗、延迟和准确性之间进行权衡的调节手段,使该算法适用于资源受限的应用和系统。我们给出了关于该算法近似特性所引入误差的理论结果,并在两种硬件平台以及合成数据集和实值数据集上对其性能进行了实证评估。最后,我们围绕这一通用的稀疏向量 top-k 检索问题,给出了未来研究的具体方向。

英文摘要:

Maximum Inner Product Search or top-k retrieval on sparse vectors is well-understood in information retrieval, with a number of mature algorithms that solve it exactly. However, all existing algorithms are tailored to text and frequency-based similarity measures. To achieve optimal memory footprint and query latency, they rely on the near stationarity of documents and on laws governing natural languages. We consider, instead, a setup in which collections are streaming -- necessitating dynamic indexing -- and where indexing and retrieval must work with arbitrarily distributed real-valued vectors. As we show, existing algorithms are no longer competitive in this setup, even against naive solutions. We investigate this gap and present a novel approximate solution, called Sinnamon, that can efficiently retrieve the top-k results for sparse real valued vectors drawn from arbitrary distributions. Notably, Sinnamon offers levers to trade-off memory consumption, latency, and accuracy, making the algorithm suitable for constrained applications and systems. We give theoretical results on the error introduced by the approximate nature of the algorithm, and present an empirical evaluation of its performance on two hardware platforms and synthetic and real-valued datasets. We conclude by laying out concrete directions for future research on this general top-k retrieval problem over sparse vectors.

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

↑