| Faster Retrieval for Better, More Efficient RAG(machinelearning.apple.com) | |
| 233 points by zerop 18 days ago | 38 comments | |
tl;dr: Apple researchers propose "amortized MIPS," training small neural networks offline on a known query distribution to speed up vector retrieval for RAG and similar systems. Two architectures are introduced: SupportNet, which learns per-cluster support functions for better query routing than centroid-based methods, and KeyNet, which rewrites queries to directly predict the best-matching key before feeding them to a standard IVF index. On Natural Questions, the approach achieves up to 8–11× faster retrieval at 99% recall versus baseline methods, trading upfront training cost for faster, more accurate inference. | |
HN Discussion:
| |