cd /news/machine-learning/amortizing-maximum-inner-product-sea… · home topics machine-learning article
[ARTICLE · art-48205] src=machinelearning.apple.com ↗ pub= topic=machine-learning verified=true sentiment=↑ positive

Amortizing Maximum Inner Product Search with Learned Support Functions

Researchers from Apple propose amortized maximum inner product search (MIPS) using neural networks to predict optimal keys, significantly improving efficiency on the BEIR benchmark. The method trains SupportNet and KeyNet models to replace costly repeated searches, achieving better IVF match rates with less compute.

read2 min views1 publishedJul 2, 2026
Amortizing Maximum Inner Product Search with Learned Support Functions
Image: Apple ML Research

content type paperpublished July 2026 Amortizing Maximum Inner Product Search with Learned Support Functions

AuthorsTheo X. Olausson†**, João Monteiro, Michal Klein, Marco Cuturi

Amortizing Maximum Inner Product Search with Learned Support Functions

AuthorsTheo X. Olausson†**, João Monteiro, Michal Klein, Marco Cuturi

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 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 SupportNets and KeyNets 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.

Scalable Private Search with Wally

October 16, 2024research area Privacy This paper presents Wally, a private search system that supports efficient semantic and keyword search queries against large databases. When sufficiently many clients are making queries, Wally’s performance is significantly better than previous systems. In previous private search systems, for each client query, the server must perform at least one expensive cryptographic operation per database entry. As a result, performance degraded…

Syntactic Code Search with Sequence-to-Tree Matching: Supporting Syntactic Search with Incomplete Code Fragments

June 20, 2024research area Human-Computer Interaction, research area Tools, Platforms, Frameworksconference Programming Language Design and Implementation (PLDI)

Lightweight syntactic analysis tools like Semgrep and Comby leverage the tree structure of code, making them more expressive than string and regex search. Unlike traditional language frameworks (e.g., ESLint) that analyze codebases via explicit syntax tree manipulations, these tools use query languages that closely resemble the source language. However, state-of-the-art matching techniques for these tools require queries to be complete and…

── more in #machine-learning 4 stories · sorted by recency
── more on @apple 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/amortizing-maximum-i…] indexed:0 read:2min 2026-07-02 ·