ANNLib: A Development Framework for Efficient Approximate Nearest Neighbor Search

Zheqi Shen, Jingbo Su, Zijin Wan, Yan Gu, Yihan Sun
7/20/2026
cs.LGcs.IR

No confident code implementation found for this paper.

Abstract

Approximate Nearest Neighbor Search (ANNS) plays a pivotal role in modern deep learning pipelines. Recently, many ANNS systems have been proposed to either provide broad functionality or reach high performance. However, it is yet difficult to achieve both with minimal programming efforts. We propose ANNLib to address the gap. ANNLib is a library that provides a programming framework for achieving high performance and flexible functionality in ANNS systems, based on popular graph-based ANNS algorithms. We carefully decouple and independently optimize both the algorithm and the data structure components of an ANNS system. In addition, we integrate state-of-the-art algorithms and data structures into ANNLib as modules, along with our new designs. Users can choose combinations of components to implement sophisticated settings with high performance, such as filter search, fully dynamic updates, and historical queries on snapshots. Our experiments show that our new solution provides a simple interface for various applications and achieves comparable or even better performance than previous work, specifically for each application.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{shen2026annlib,
  title  = {ANNLib: A Development Framework for Efficient Approximate Nearest Neighbor Search},
  author = {Zheqi Shen and Jingbo Su and Zijin Wan and Yan Gu and Yihan Sun},
  year   = {2026},
  eprint = {2607.17582},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.17582v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.17582.svg)](https://codeofpaper.com/paper/2607.17582)

Discussion