Apple researchers use learned support functions to speed up vector retrieval
ResearchPublished: Source: Hacker News (100+ points)
TL;DR:Apple researchers present a learned routing approach for maximum inner product search (MIPS), a core operation in retrieval and RAG.

Apple researchers present a learned routing approach for maximum inner product search (MIPS), a core operation in retrieval and RAG. Small neural networks trained offline on representative queries learn either cluster-level support functions (SupportNet) or the best-matching key (KeyNet). On the Natural Questions benchmark with 2.6 million passages and 128 clusters, SupportNet achieved about 95% routing recall at 1.74 ms versus 3.36 ms for centroid routing. KeyNet-assisted IVF search reached 99% recall in 0.23 ms versus 1.8 ms with the raw query, and retrieved the true key up to 96.7% of the time while scanning 0.001% of the database. The source text ends mid-sentence, so further results are unavailable.
Key points
- SupportNet learns cluster-level support functions to route queries more accurately than centroid-based routing.
- On 2.6 million Natural Questions passages in 128 clusters, SupportNet reached about 95% routing recall in 1.74 ms, versus 3.36 ms for centroid routing.
- KeyNet rewrites queries before a standard IVF index; the largest model reached 99% recall in 0.23 ms versus 1.8 ms for raw queries.
- At a scan budget of 0.001% of the database, KeyNet retrieved the true key up to 96.7% of the time, compared with 86% for raw queries.
- Models are trained offline on sampled queries and their exhaustive-search matches; the supplied article cuts off before the final result.
Why it matters
For teams operating RAG or vector-search systems, query-aware learned routing could improve recall while lowering retrieval latency, especially when production queries follow a stable distribution. The reported gains are benchmark results, not evidence of deployment-wide performance.
Companies and models mentioned
- Apple
- SupportNet
- KeyNet
- Natural Questions
- Amortizing Maximum Inner Product Search with Learned Support Functions
- ICML 2026