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:
  • ~Learned retrieval methods are only relevant at hyperscale, limiting practical applicability
  • ↓Retrieval systems bias LLMs with inferior heuristics; unconstrained LLM exploration yields better results
  • ↓Embedding-based retrieval is inferior to simple grep for many practical use cases
  • ↑Apple is strategically positioning for local AI inference dominance on devices
  • ↓The paper's examples seem unrealistic or trivial to anyone experienced with embeddings