NewsCrawler.org

Faster Retrieval for Better, More Efficient RAG

Faster Retrieval for Better, More Efficient RAG
Image: news.hada.io

Apple researchers, in the paper "Amortizing Maximum Inner Product Search with Learned Support Functions" presented at ICML 2026, work on maximum inner product search (MIPS)[1]. This search finds, in a database of millions of key vectors, the key that best matches a query vector. It is used in recommendation systems, search, and retrieval-augmented generation (RAG)[2], where the document best suited to answer a question is added to the question. As the number of keys grows and vectors reach thousands of dimensions, comparing the query with every key becomes very costly.

Common approximate methods split the keys into clusters and route each query by its distance to a cluster's centroid[3]. This can miss the best match when a key lies far from the centroid of its own cluster. The researchers train small neural networks offline, for a fixed database of keys. SupportNet learns the support function of each cluster using input convex neural networks (ICNNs)[4] and routes the query to the cluster with the highest score. KeyNet directly outputs the vector of the best-matching key.

Both models are trained on queries drawn from the expected query distribution, with the correct answers computed by exhaustive search. SupportNet was tested in four sizes, from 1% to 20% of the database size, on Natural Questions split into 128 clusters. This benchmark pairs general-knowledge questions with roughly 2.6M unique passages.

Read the original machinelearning.apple.comDiscussion on GeekNews

Discussion

Most commenters are skeptical. Several say learned routing like this pays off only at very large scale, with hundreds of millions of items, and mention Spotify's Parallel Fusion Router. Others are not convinced that embeddings beat grep for searching codebases, and one notes that retrieval can bias the model's answers toward heuristic results.

Sources

  • KRGeekNews KO

    더 나은, 더 효율적인 RAG를 위한 빠른 검색

    10 points1 comment

  • Apple Machine Learning Research

    Faster Retrieval for Better, More Efficient RAG

    38 comments

Published: First seen: Читать по-русски

Open as a page