ANNLib: A Development Framework for Efficient Approximate Nearest Neighbor Search
cs.LG, cs.IR
Submitted: 2026-07-20
Updated: 2026-09-18
Code: https://github.com/Microsoft/SPTAG
Project page: https://lucene.apache.org
License: http://creativecommons.org/licenses/by/4.0/
The gist: Approximate Nearest Neighbor Search (ANNS) plays a pivotal role in modern deep learning pipelines.
Terminology
Abstract
Approximate Nearest Neighbor Search (ANNS) plays a pivotal role in modern deep learning pipelines. Recently, many ANNS systems have been proposed to provide broad, flexible functionalities or achieve high performance. However, it is inherently difficult to achieve both. We propose ANNLib to address this gap. ANNLib is a library that provides a programming framework to achieve high performance and flexible functionalities for ANNS systems, based on popular graph-based ANNS algorithms. We carefully decouple and independently optimize both the algorithm and the data structure components in an ANNS system. In addition, we integrate state-of-the-art algorithms and data structures as modules in ANNLib, as well as our new designs. Users can choose combinations of components to support sophisticated settings with high performance, such as filtered search, fully dynamic updates, historical queries on snapshots, and range searches. Our experiments show that our new solution provides a simple interface for various applications, and achieves comparable or even better performance to previous work specifically for each application.
Sources
- The Faiss library
- Approximate Nearest Neighbor Search with Window Filters
- OOD-DiskANN: Efficient and Scalable Graph ANNS for Out-of-Distribution Queries
- Survey of Filtered Approximate Nearest Neighbor Search over the Vector-Scalar Hybrid Data
- Text and Code Embeddings by Contrastive Pre-Training
- Falconn++: A Locality-sensitive Filtering Approach for Approximate Nearest Neighbor Search
- Results of the Big ANN: NeurIPS'23 competition
- FreshDiskANN: A Fast and Accurate Graph-Based ANN Index for Streaming Similarity Search
- VecFlow: A High-Performance Vector Data Management System for Filtered-Search on GPUs
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: Local-Consistency Optimisation for Bayesian Neural Networks
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks