arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.08001cs.LGstat.ML
收藏

通过学习支持函数摊销最大内积搜索

Amortized Maximum Inner Product Search with Learned Support Functions

Apple(苹果公司);MIT(麻省理工学院)

Theo X. Olausson, João Monteiro, Michal Klein, Marco Cuturi

AI总结:

提出基于回归的摊销MIPS方法,通过训练神经网络直接预测最优键,利用支持函数的凸性加速搜索,在BEIR基准上显著提升IVF匹配率。

摘要:

最大内积搜索(MIPS)是机器学习中的关键子程序,需要从数据库(键)中识别出与给定查询最匹配的向量。我们提出摊销MIPS:一种基于回归的方法,训练神经网络直接预测MIPS解,从而摊销在固定键数据库上从已知分布中重复求解查询的MIPS成本。我们的关键洞察是,MIPS值函数是键集合的\emph{支持}函数,这是一个经过充分研究的凸函数,其梯度给出最优键。这激发了两种互补的摊销模型:SupportNet,一个输入凸神经网络,用于回归支持函数;以及KeyNet,一个向量值网络,直接回归最优键。SupportNet可以作为聚类路由器,将查询引导到相关的数据库分区,而KeyNet可以作为原始查询的直接替代品,直接输入到现成的索引流水线中。我们在BEIR基准上的实验表明,对于文档嵌入,当考虑计算工作量(无论是FLOPs、探测次数还是挂钟时间)时,学习的SupportNet和KeyNet显著提高了IVF匹配率。我们的代码可在以下网址获取:this https URL。

英文摘要:

Maximum inner product search (MIPS) is a crucial subroutine in machine learning, requiring the identification of a vector taken within a database (the keys) that best aligns with a given query. We propose amortized MIPS: a regression-based approach that trains neural networks to directly predict MIPS solutions, amortizing the cost of repeatedly solving MIPS for queries drawn from a known distribution over a fixed key database. Our key insight is that the MIPS value function is the \emph{support} function of the set of keys, a well-studied convex function whose gradient yields the optimal key. This motivates two complementary amortized models: SupportNet, an input-convex neural network trained to regress the support function, and KeyNet, a vector-valued network that directly regresses the optimal key. SupportNet can serve as a cluster router, steering queries toward relevant database partitions, while KeyNet can be used as a drop-in replacement for the original query, fed directly to off-the-shelf indexing pipelines. Our experiments on the BEIR benchmark show that, for document embeddings, learned \SupportNet{}s and \KeyNet{}s significantly improve IVF match rates when accounting for compute effort, whether measured in FLOPs, number of probes, or wall-clock time. Our code is available at: https://github.com/apple/ml-amips.

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

↑