利用学习到的支撑函数分摊最大内积搜索的计算成本 / Amortizing Maximum Inner Product Search with Learned Support Functions
1️⃣ 一句话总结
这篇论文提出了一种基于学习的方法,通过训练神经网络来直接预测最大内积搜索的结果,从而将针对特定查询分布的搜索计算成本一次性分摊到训练阶段,大幅提升了推理效率。
Maximum inner product search (MIPS) is a crucial subroutine in machine learning, requiring the identification of key vectors that align best with a given query. We propose amortized MIPS: a learning-based approach that trains neural networks to directly predict MIPS solutions, amortizing the computational cost of matching queries (drawn from a fixed distribution) to a fixed set of keys. Our key insight is that the MIPS value function, the maximal inner product between a query and keys, is also known as the support function of the set of keys. Support functions are convex, 1-homogeneous and their gradient w.r.t. the query is exactly the optimal key in the database. We approximate the support function using two complementary approaches: (1) we train an input-convex neural network (SupportNet) to model the support function directly; the optimal key can be recovered via (autodiff) gradient computation, and (2) we regress directly the optimal key from the query using a vector valued network (KeyNet), bypassing gradient computation entirely at inference time. To learn a SupportNet, we combine score regression with gradient matching losses, and propose homogenization wrappers that enforce the positive 1-homogeneity of a neural network, theoretically linking function values to gradients. To train a KeyNet, we introduce a score consistency loss derived from the Euler theorem for homogeneous functions. Our experiments show that learned SupportNet or KeyNet achieve high match rates and open up new directions to compress databases with a specific query distribution in mind.
利用学习到的支撑函数分摊最大内积搜索的计算成本 / Amortizing Maximum Inner Product Search with Learned Support Functions
这篇论文提出了一种基于学习的方法,通过训练神经网络来直接预测最大内积搜索的结果,从而将针对特定查询分布的搜索计算成本一次性分摊到训练阶段,大幅提升了推理效率。
源自 arXiv: 2603.08001