ARKGraph: All-Range Approximate K-Nearest-Neighbor Graph

被引:0
|
作者
Zuo, Chaoji [1 ]
Deng, Dong [1 ]
机构
[1] Rutgers State Univ, New Brunswick, NJ 08901 USA
来源
PROCEEDINGS OF THE VLDB ENDOWMENT | 2023年 / 16卷 / 10期
基金
美国国家科学基金会;
关键词
PRODUCT QUANTIZATION; SMALL WORLD; SEARCH; LOCALITY;
D O I
10.14778/3603581.3603601
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Given a collection of vectors, the approximate K-nearest-neighbor graph (KGraph for short) connects every vector to its approximate K-nearest-neighbors (KNN for short). KGraph plays an important role in high dimensional data visualization, semantic search, manifold learning, and machine learning. The vectors are typically vector representations of real-world objects (e.g., images and documents), which often come with a few structured attributes, such as timestamps and locations. In this paper, we study the all-range approximate K-nearest-neighbor graph (ARKGraph) problem. Specifically, given a collection of vectors, each associated with a numerical search key (e.g., a timestamp), we aim to build an index that takes a search key range as the query and returns the KGraph of vectors whose search keys are within the query range. ARKGraph can facilitate interactive high dimensional data visualization, data mining, etc. A key challenge of this problem is the huge index size. This is because, given.. vectors, a brute-force index stores a KGraph for every search key range, which results in O(Kn(3)) index size as there are O(n(2)) search key ranges and each KGraph takes O(Kn) space. We observe that the KNN of a vector in nearby ranges are often the same, which can be grouped together to save space. Based on this observation, we propose a series of novel techniques that reduce the index size significantly to just O(Kn logn) in the average case. Furthermore, we develop an efficient indexing algorithm that constructs the optimized ARKGraph index directly without exhaustively calculating the distance between every pair of vectors. To process a query, for each vector in the query range, we only need O(log log n + K log K) to restore its KNN in the query range from the optimized ARKGraph index. We conducted extensive experiments on real-world datasets. Experimental results show that our optimized ARKGraph index achieved a small index size, low query latency, and good scalability. Specifically, our approach was 1000x faster than the baseline method that builds a KGraph for all the vectors in the query range on-the-fly.
引用
收藏
页码:2645 / 2658
页数:14
相关论文
共 50 条
  • [1] Adaptive Estimation for Approximate k-Nearest-Neighbor Computations
    LeJeune, Daniel
    Baraniuk, Richard G.
    Heckel, Reinhard
    22ND INTERNATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE AND STATISTICS, VOL 89, 2019, 89
  • [2] Accelerating k-nearest-neighbor searches
    Bernstein, Herbert J. (yayahjb@gmail.com), 1600, International Union of Crystallography, 5 Abbey Road, Chester, CH1 2HU, United Kingdom (49):
  • [3] Fast Approximate Complete-data k-nearest-neighbor Estimation
    Murua, Alejandro
    Wicker, Nicolas
    AUSTRIAN JOURNAL OF STATISTICS, 2020, 49 (02) : 18 - 30
  • [4] Connectivity of the mutual k-nearest-neighbor graph in clustering and outlier detection
    Brito, MR
    Chavez, EL
    Quiroz, AJ
    Yukich, JE
    STATISTICS & PROBABILITY LETTERS, 1997, 35 (01) : 33 - 42
  • [5] Approximate direct and reverse nearest neighbor queries, and the k-nearest neighbor graph
    Figueroa, Karina
    Paredes, Rodrigo
    SISAP 2009: 2009 SECOND INTERNATIONAL WORKSHOP ON SIMILARITY SEARCH AND APPLICATIONS, PROCEEDINGS, 2009, : 91 - +
  • [6] Accelerating k-nearest-neighbor searches
    Bernstein, Herbert J.
    Andrews, Lawrence C.
    JOURNAL OF APPLIED CRYSTALLOGRAPHY, 2016, 49 : 1471 - 1477
  • [7] A Novel clustering method based on hybrid K-nearest-neighbor graph
    Qin, Yikun
    Yu, Zhu Liang
    Wang, Chang-Dong
    Gu, Zhenghui
    Li, Yuanqing
    PATTERN RECOGNITION, 2018, 74 : 1 - 14
  • [8] Fast Approximate Nearest Neighbor Search via k-Diverse Nearest Neighbor Graph
    Xiao, Yan
    Guo, Jiafeng
    Lan, Yanyan
    Xu, Jun
    Cheng, Xueqi
    THIRTY-SECOND AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE / THIRTIETH INNOVATIVE APPLICATIONS OF ARTIFICIAL INTELLIGENCE CONFERENCE / EIGHTH AAAI SYMPOSIUM ON EDUCATIONAL ADVANCES IN ARTIFICIAL INTELLIGENCE, 2018, : 8175 - 8176
  • [9] The k-Nearest-Neighbor Voronoi Diagram Revisited
    Liu, Chih-Hung
    Papadopoulou, Evanthia
    Lee, Der-Tsai
    ALGORITHMICA, 2015, 71 (02) : 429 - 449
  • [10] Adaptive soft k-nearest-neighbor classifiers
    Bermejo, S
    Cabestany, J
    PATTERN RECOGNITION, 1999, 32 (12) : 2077 - 2079