Tree-based Search Graph for Approximate Nearest Neighbor Search

Xiaobin Fan, Xiaoping Wang, Kai Lu, Lei Xue, Jinjing Zhao
1/10/2022
cs.IR

Official code: Fanxbin/TBSG (2 stars, C++, last commit 2021-06-23).

Abstract

Nearest neighbor search supports important applications in many domains, such as database, machine learning, computer vision. Since the computational cost for accurate search is too high, the community turned to the research of approximate nearest neighbor search (ANNS).

Show full abstract

Among them, graph-based algorithm is one of the most important branches. Research by Fu et al. shows that the algorithms based on Monotonic Search Network (MSNET), such as NSG and NSSG, have achieved the state-of-the-art search performance in efficiency. The MSNET is dedicated to achieving monotonic search with minimal out-degree of nodes to pursue high efficiency. However, the current MSNET designs did not optimize the probability of the monotonic search, and the lower bound of the probability is only 50%. If they fail in monotonic search stage, they have to suffer tremendous backtracking cost to achieve the required accuracy. This will cause performance problems in search efficiency. To address this problem, we propose (r,p)-MSNET, which achieves guaranteed probability on monotonic search. Due to the high building complexity of a strict (r,p)-MSNET, we propose TBSG, which is an approximation with low complexity. Experiment conducted on four million-scaled datasets show that TBSG outperforms existing state-of-the-art graph-based algorithms in search efficiency. Our code has been released on Github.

View on arXivView PDF

Code Implementations(1)

Fanxbin/TBSGOfficial100%

Tree-based Search Graph for Approximate Nearest Neighbor Search

20C++, MakefileMar 1, 20215 years ago

Similar Papers

Cite this paper

@article{fan2022treebased,
  title  = {Tree-based Search Graph for Approximate Nearest Neighbor Search},
  author = {Xiaobin Fan and Xiaoping Wang and Kai Lu and Lei Xue and Jinjing Zhao},
  year   = {2022},
  eprint = {2201.03237},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.03237}
}

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/2201.03237.svg)](https://codeofpaper.com/paper/2201.03237)

Discussion