Skip to main content
QUICK REVIEW

[Paper Review] Efficient K-Nearest Neighbor Join Algorithms for High Dimensional Sparse Data

Jijie Wang, Lin Lei|arXiv (Cornell University)|Nov 12, 2010
Data Management and AlgorithmsComputer Science9 references5 citations
TL;DR

This paper proposes three K-Nearest Neighbor (KNN) join algorithms—Brute Force (BF), Inverted Index-Based (IIB), and Improved Inverted Index-Based (IIIB)—for high-dimensional sparse data, particularly targeting proteomics applications. IIIB achieves up to 10x speedup over BF by combining inverted indexing with threshold-based refinement, significantly reducing I/O and CPU costs on 10,000-dimensional synthetic and real-world datasets.

ABSTRACT

The K-Nearest Neighbor (KNN) join is an expensive but important operation in many data mining algorithms. Several recent applications need to perform KNN join for high dimensional sparse data. Unfortunately, all existing KNN join algorithms are designed for low dimensional data. To fulfill this void, we investigate the KNN join problem for high dimensional sparse data. In this paper, we propose three KNN join algorithms: a brute force (BF) algorithm, an inverted index-based(IIB) algorithm and an improved inverted index-based(IIIB) algorithm. Extensive experiments on both synthetic and real-world datasets were conducted to demonstrate the effectiveness of our algorithms for high dimensional sparse data.

Motivation & Objective

  • Address the lack of efficient KNN join algorithms for high-dimensional sparse data, especially in computational proteomics.
  • Design scalable KNN join algorithms that handle data with up to 10,000 dimensions and sparsity.
  • Reduce I/O and CPU overhead in KNN join by leveraging data sparsity and indexing strategies.
  • Improve performance through threshold-based refinement to prune unnecessary distance computations.
  • Enable efficient KNN join on large-scale datasets exceeding main memory using block nested loop strategies.

Proposed method

  • Propose a brute force (BF) baseline algorithm for KNN join on high-dimensional sparse vectors.
  • Design an Inverted Index-Based (IIB) algorithm that indexes non-zero features of sparse vectors in set S to avoid scanning zero entries.
  • Introduce threshold-based refinement in IIIB to dynamically prune candidate vectors during score accumulation, reducing index and list scanning overhead.
  • Use dot product as the similarity metric, representing sparse vectors as (dimension, weight) pairs for efficient computation.
  • Apply block nested loop join with buffer management to handle datasets larger than main memory.
  • Optimize performance by sorting datasets and scheduling joins to reduce I/O and CPU costs.

Experimental results

Research questions

  • RQ1Can inverted indexing effectively reduce I/O and CPU costs in KNN join for high-dimensional sparse data?
  • RQ2How does threshold-based refinement improve the efficiency of KNN join beyond basic inverted indexing?
  • RQ3How do the proposed algorithms scale with respect to data size, relative dataset size, and buffer size?
  • RQ4What is the performance gain of IIIB over BF and IIB in real-world proteomics datasets?
  • RQ5Can the proposed algorithms handle extremely high-dimensional sparse data (e.g., 10,000 dimensions) efficiently?

Key findings

  • IIIB achieves up to 10x speedup over BF on real-world Yeast&Worm datasets, with a 16% improvement over IIB on average.
  • IIB and IIIB show stable performance across varying data sizes, while BF’s cost increases dramatically with larger datasets.
  • The I/O time of all algorithms increases with smaller buffer sizes, but IIIB maintains a significant performance advantage under memory constraints.
  • The CPU time increases moderately with higher k values, as pruning strategies are independent of k, and IIIB outperforms IIB and BF consistently.
  • Threshold-based refinement in IIIB significantly reduces index construction and list scanning overhead, especially effective when buffer size is small.
  • IIIB and IIB scale well with respect to relative dataset size (R:S ratio from 10:1 to 1:10), with minimal performance degradation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.