Loading…
Topic
Neural Networks
1 post about Neural Networks. Every summary links to the original.
- 1 post
- 1 company
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Newest first
Posts
Faster Retrieval for Better, More Efficient RAG
Maximum inner product search (MIPS) is central to retrieval-augmented generation, recommendation, and search, but exhaustive comparison grows costly with millions of high-dimensional keys. Apple researchers propose amortized MIPS, training small neural networks offline once on a fixed key database to learn the support function, a convex function that maps a query to the largest inner product with any key. They introduce SupportNet, which approximates support functions per cluster for exact routing, and KeyNet, which directly predicts the best-matching key vector using a consistency loss from Euler’s theorem. The method exploits known query distributions, such as short user questions in RAG, to trade a one-time training cost for faster inference. On the Natural Questions dataset, KeyNet achieves 99% recall while examining about 11 times fewer keys than raw query search, and SupportNet provides calibrated scores for re-ranking.
Related topics
All topics →Weekly digest
The best engineering reads, once a week.