Apple: small learned networks make vector search for RAG faster and more accurate
In an ICML 2026 paper, Apple researchers observe that the max-inner-product function at the heart of MIPS is the convex support function of the key set. They train small networks (SupportNet and KeyNet) once, offline, on the real query distribution, to route…
Why it matters
In RAG, short queries look nothing like long documents, so routing tuned to real query distributions can raise recall at the same cost.
What happened
1 min readIn an ICML 2026 paper, Apple researchers observe that the max-inner-product function at the heart of MIPS is the convex support function of the key set. They train small networks (SupportNet and KeyNet) once, offline, on the real query distribution, to route queries to the right cluster more accurately than centroid-based routing.
Our analysis
Query-aware indexing isn't new, but grounding it in convex analysis and ICNNs gives it a principled basis. The blog excerpt doesn't show head-to-head numbers against HNSW or ScaNN, so the practical gain is unclear. Offline training cost and retraining when the corpus changes are real constraints.