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

被引:2
|
作者
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 条
  • [11] k-nearest-neighbor clustering and percolation theory
    Teng, Shang-Hua
    Yao, Frances F.
    ALGORITHMICA, 2007, 49 (03) : 192 - 211
  • [12] Nonparametric k-nearest-neighbor entropy estimator
    Lombardi, Damiano
    Pant, Sanjay
    PHYSICAL REVIEW E, 2016, 93 (01)
  • [13] Adaptive soft k-nearest-neighbor classifiers
    Bermejo, S
    Cabestany, J
    PATTERN RECOGNITION, 1999, 32 (12) : 2077 - 2079
  • [14] The k-Nearest-Neighbor Voronoi Diagram Revisited
    Chih-Hung Liu
    Evanthia Papadopoulou
    Der-Tsai Lee
    Algorithmica, 2015, 71 : 429 - 449
  • [15] Survey of improving k-nearest-neighbor for classification
    Jiang, Liangxiao
    Cai, Zhihua
    Wang, Dianhong
    Jiang, Siwei
    FOURTH INTERNATIONAL CONFERENCE ON FUZZY SYSTEMS AND KNOWLEDGE DISCOVERY, VOL 1, PROCEEDINGS, 2007, : 679 - 683
  • [16] Study on the Improvement of K-Nearest-Neighbor Algorithm
    Sun Bo
    Du Junping
    Gao Tian
    2009 INTERNATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE AND COMPUTATIONAL INTELLIGENCE, VOL IV, PROCEEDINGS, 2009, : 390 - 393
  • [17] k-Nearest-Neighbor Clustering and Percolation Theory
    Shang-Hua Teng
    Frances F. Yao
    Algorithmica, 2007, 49 : 192 - 211
  • [18] DISTANCE-WEIGHTED K-NEAREST-NEIGHBOR RULE
    DUDANI, SA
    IEEE TRANSACTIONS ON SYSTEMS MAN AND CYBERNETICS, 1976, 6 (04): : 327 - 327
  • [19] Using k-nearest-neighbor classification in the leaves of a tree
    Buttrey, SE
    Karo, C
    COMPUTATIONAL STATISTICS & DATA ANALYSIS, 2002, 40 (01) : 27 - 37
  • [20] Towards Faster k-Nearest-Neighbor Machine Translation
    Shi, Xiangyu
    Liang, Yunlong
    Xu, Jinan
    Chen, Yufeng
    ADVANCES IN ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING, 2024, 4 (01): : 1943 - 1958