mlsanityData to 7 Oct 2026

LeanVec: Searching vectors faster by making them fit

arXiv 2312.16335 ↗First posted 26 Dec 2023cs.LG cs.DBcited by 5

Not on the map. Why?

Abstract (arXiv)

Modern deep learning models have the ability to generate high-dimensional vectors whose similarity reflects semantic resemblance. Thus, similarity search, i.e., the operation of retrieving those vectors in a large collection that are similar to a given query, has become a critical component of a wide range of applications that demand highly accurate and timely answers. In this setting, the high vector dimensionality puts similarity search systems under compute and memory pressure, leading to subpar performance. Additionally, cross-modal retrieval tasks have become increasingly common, e.g., where a user inputs a text query to find the most relevant images for that query. However, these queries often have different distributions than the database embeddings, making it challenging to achieve high accuracy. In this work, we present LeanVec, a framework that combines linear dimensionality reduction with vector quantization to accelerate similarity search on high-dimensional vectors while maintaining accuracy. We present LeanVec variants for in-distribution (ID) and out-of-distribution (OOD) queries. LeanVec-ID yields accuracies on par with those from recently introduced deep learning alternatives whose computational overhead precludes their usage in practice. LeanVec-OOD uses two novel techniques for dimensionality reduction that consider the query and database distributions to simultaneously boost the accuracy and the performance of the framework even further (even presenting competitive results when the query and database distributions match). All in all, our extensive and varied experimental results show that LeanVec produces state-of-the-art results, with up to 3.7x improvement in search throughput and up to 4.9x faster index build time over the state of the art.

Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 34 of its 67 references that are in the map. First posted on arXiv 26 Dec 2023.

Builds on

34 of 67 references.

References · 34

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2023BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Modelscited by 6,069
  5. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
  6. 2017Billion-scale similarity search with GPUscited by 2,477
  7. 2021LAION-400M: Open Dataset of CLIP-Filtered 400 Million Image-Text Pairscited by 1,544
  8. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  9. 2021Improving language models by retrieving from trillions of tokenscited by 1,278
  10. 2022CoCa: Contrastive Captioners are Image-Text Foundation Modelscited by 1,265
  11. 2016Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphscited by 853
  12. 2020Making Monolingual Sentence Embeddings Multilingual using Knowledge Distillationcited by 591
22 more
  1. 2018ANN-Benchmarks: A Benchmarking Tool for Approximate Nearest Neighbor Algorithmscited by 130
  2. 2016A Survey on Learning to Hashcited by 119
  3. 2017Fast Approximate Nearest Neighbor Search With The Navigating Spreading-out Graphcited by 103
  4. 2021Efficient Nearest Neighbor Language Modelscited by 93
  5. 2021A Comprehensive Survey and Experimental Comparison of Graph-Based Approximate Nearest Neighbor Searchcited by 82
  6. 2021Everything at Once -- Multi-modal Fusion Transformer for Video Retrievalcited by 79
  7. 2016Convergence Rate of Frank-Wolfe for Non-Convex Objectivescited by 59
  8. 2013A Survey on Metric Learning for Feature Vectors and Structured Datacited by 57
  9. 2020A Survey on Deep Hashing Methodscited by 47
  10. 2021A Survey on Locality Sensitive Hashing Algorithms and their Applicationscited by 40
  11. 2020A Memory Efficient Baseline for Open Domain Question Answeringcited by 32
  12. 2023Similarity search in the blink of an eye with compressed indicescited by 20
  13. 2023Infeasible Deterministic, Stochastic, and Variance-Reduction Algorithms for Optimization under Orthogonality Constraintscited by 18
  14. 2023Block Coordinate Descent on Smooth Manifolds: Convergence Theory and Twenty-One Examplescited by 15
  15. 2018Quicker ADC : Unlocking the hidden potential of Product Quantization with SIMDcited by 14
  16. 2022OOD-DiskANN: Efficient and Scalable Graph ANNS for Out-of-Distribution Queriescited by 14
  17. 2016Scalable Semantic Matching of Queries to Ads in Sponsored Search Advertisingcited by 12
  18. 2016Decentralized Frank-Wolfe Algorithm for Convex and Non-convex Problemscited by 11
  19. 2018Link and code: Fast indexing with graphs and compact regression codescited by 9
  20. 2018Frank-Wolfe Splitting via Augmented Lagrangian Methodcited by 7
  21. 2021Low-Precision Quantization for Efficient Nearest Neighbor Searchcited by 6
  22. 2021Connecting Compression Spaces with Transformer for Approximate Nearest Neighbor Searchcited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 2; 2026: 2.

5 papers.