LEANN: A Low-Storage Vector Index
Yichuan Wang, Zhifei Li, Shu Liu, Yongji Wu, Ziming Mao, Yilong Zhao, Xiao Yan, Zhiying Xu, Yang Zhou, Ion Stoica, Sewon Min, Matei Zaharia, Joseph E. Gonzalez
TL;DR
The paper addresses the prohibitive storage overhead of embedding-based vector indices by introducing LEANN, a storage-efficient index that recomputes embeddings on demand and prunes index metadata. It combines a two-level search with hybrid distance using selective exact recomputation and dynamic batching to maintain accuracy while reducing latency. A high-degree preserving graph pruning strategy and a sharded merging index-building pipeline further shrink storage and enable efficient updates. Empirical results show LEANN delivers up to 50x storage reduction with recall comparable to state-of-the-art methods and acceptable end-to-end latency for RAG on personal devices, enabling practical on-device vector search for privacy-preserving and large-scale retrieval tasks.
Abstract
Embedding-based vector search underpins many important applications, such as recommendation and retrieval-augmented generation (RAG). It relies on vector indices to enable efficient search. However, these indices require storing high-dimensional embeddings and large index metadata, whose total size can be several times larger than the original data (e.g., text chunks). Such high storage overhead makes it difficult, or even impractical, to deploy vector search on personal devices or large-scale datasets. To tackle this problem, we propose LEANN, a storage-efficient index for vector search that recomputes embeddings on the fly instead of storing them, and compresses state-of-the-art proximity graph indices while preserving search accuracy. LEANN delivers high-quality vector search while using only a fraction of the storage (e.g., 5% of the original data) and supporting storage-efficient index construction and updates. On real-world benchmarks, LEANN reduces index size by up to 50x compared with conventional indices, while maintaining SOTA accuracy and comparable latency for RAG applications.
