Exact search on learned 128d vectors beats HNSW up to 100K passages in RAG benchmark
StopHungry881 · reddit · 2026-11-27
The author froze Contriever and trained a shared 768d→128d linear projection on MS MARCO labels, then compared exact search on the learned vectors against HNSW on original 768d vectors across 30K/100K/300K passages on an Apple M3 (single-threaded Faiss, top-10, p95 latency):
- 30K: 0.272ms exact vs 0.841ms HNSW
- 100K: 0.899ms vs 2.515ms
- 300K: 2.673ms vs 2.959ms, though the p95 ratio CI upper bound (0.909) exceeded the 0.90 protocol threshold
When HNSW also uses the learned 128d vectors, it wins big at 300K: 0.236ms vs 2.673ms, with nearly identical nDCG@10 (0.5179 vs 0.5182). Learned compression beats PCA by a wide margin (0.5182 vs 0.3268 nDCG@10). Code, projections, and benchmark data are open-sourced.
More from Research
- MedExAgent trains LLM agents to navigate clinical diagnosis amid noisy data and costly exams — mdredze · 2026-11-28
- Dive into Deep Learning 2nd edition released with Transformers, SSMs, diffusion and RL — smolix · 2026-11-28
- P=NP misconception clarified: the proof must contain a concrete factoring algorithm to matter — AaronBergman18 · 2026-11-28
- Mecha-nudges for Machines lands NeurIPS 2026 Spotlight in Atlanta — ethayarajh · 2026-11-28
- New Paper: Dataset Noise Sets a Hard Limit on Scaling Laws in Noisy Domains — NikoMcCarty · 2026-11-28
- Pathway's Zuzanna lands Forbes cover as researchers push post-Transformer reasoning AI — omarsar0 · 2026-11-28