Amortized Maximum Inner Product Search with Learned Support Functions

Theo X. Olausson, João Monteiro, Michal Klein, Marco Cuturi
3/9/2026
cs.LGstat.ML

No confident code implementation found for this paper.

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{olausson2026amortized,
  title  = {Amortized Maximum Inner Product Search with Learned Support Functions},
  author = {Theo X. Olausson and João Monteiro and Michal Klein and Marco Cuturi},
  year   = {2026},
  eprint = {2603.08001},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.08001v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.08001.svg)](https://codeofpaper.com/paper/2603.08001)

Discussion