Apple Researchers Train Neural Networks to Speed Up RAG Retrieval
According to Apple Machine Learning: Researchers at Apple have developed a new method to speed up the core search process behind recommendation systems and RAG. Instead of treating all search queries the same, they use small neural networks trained on typical user questions to predict and route queries to the right data much faster.

Original image temporarily unavailable
According to Apple Machine Learning:
In a paper presented at ICML 2026, Apple researchers introduced a technique called amortized maximum inner product search (MIPS) to improve retrieval-augmented generation (RAG) and search systems. Traditional systems often rely on geometric approximations, such as clustering keys and comparing queries to cluster centroids, which can lead to errors because queries (short user questions) and keys (long curated texts) differ significantly. To solve this, the researchers train small neural networks offline—specifically SupportNet and KeyNet—using supervised learning on typical query distributions.
SupportNet learns the mathematical support function of data clusters to route queries more accurately, helping the system find the right partition up to 1.9 times faster than traditional centroid routing. Meanwhile, KeyNet acts as a query rewriter that transforms incoming questions directly into predicted key vectors, allowing existing index systems to retrieve true keys up to 11 times fewer database scans. This method effectively trades a one-time training cost for significantly faster inference, demonstrating how knowing the query distribution in advance can dramatically optimize computational resources in production machine learning systems.
View selection rationale
Importance 83/100
About this brief
- Content type
- Research summary
- Source type
- First-party / official source
- Original source
- Apple Machine Learning ↗
- Source published
- Process
- AI-assisted discovery, translation, summarisation, classification and scoring; standards and corrections are maintained by the editorial desk.
- Verification
- The original URL and publication metadata are retained. This brief is not independently fact-checked unless explicitly stated.
- Published by
- Polyemergence Editorial Desk · PolyEmergence Pte Ltd.
- Conflict disclosure
- No financial or commercial conflict declared.