Abstract: This paper introduces novel streaming algorithms for $k$-median clustering and coreset construction that leverage Approximate Nearest Neighbour (ANN) oracles. By replacing exact nearest neighbor searches with black-box ANN queries, the authors achieve significant speedups—reducing runtimes from $O(nk \log n)$ to $O(n \log(k \log(n/k)))$ in specific geometric spaces—while maintaining provable approximation guarantees.
Introduction
Clustering is a cornerstone of large-scale data analysis, yet performing it efficiently on streaming data remains a significant computational challenge. A primary bottleneck in streaming clustering algorithms, such as those based on Online Facility Location, is the requirement to identify the nearest existing cluster center for every incoming data point. In high-dimensional spaces, exact nearest neighbor search is prohibitively slow. While Approximate Nearest Neighbour (ANN) search is often used as a heuristic, theoretical guarantees for its impact on clustering quality have been lacking. This work bridges that gap by demonstrating how black-box ANN oracles can be integrated into clustering frameworks with provable performance bounds.
Algorithmic Frameworks
The authors adapt three core algorithmic frameworks to utilize ANN oracles:
- Streaming $k$-median: Modifying the Braverman et al. (2011) algorithm to replace exact distance queries.
- Coreset Construction: Adapting methods from Chen (2009) and Braverman et al. (2016) to build small, weighted representative subsets of the data.
The integration is designed to be "black-box," meaning it can utilize any ANN construction—such as Cover Trees, Locality-Sensitive Hashing (LSH), or Navigating Nets—provided they meet standard ANN oracle definitions. Furthermore, the results extend beyond Euclidean distance to $\alpha$-metric spaces, which accommodate $k$-means clustering and various $M$-estimators.
Theoretical Performance and Complexity
The theoretical contribution of this work lies in the dramatic reduction of query and time complexity for various geometric settings. By leveraging the sub-linear query time of ANN search, the authors bypass the classic $\Omega(nk)$ lower bound for clustering runtime.
As shown in the table above, the most significant improvements occur in spaces with "constant expansion." In these environments, using Cover Trees as the ANN oracle allows the $k$-median clustering runtime to scale logarithmically with $k$, a substantial improvement over the linear scaling required by exhaustive search. The authors also achieved a minor improvement in space complexity, moving from $O(k \log n)$ to $O(k \log(n/k))$.
Empirical Validation
The proposed methods were evaluated using the USCensus1990 dataset (200,000 points, 68 dimensions). The experiments compared the ANN-based approach against exact search and optimized sklearn implementations (Lloyd’s, GMM, and Elkan’s).
Key findings include:
- Accuracy: The Cover Tree ANN achieved clustering costs identical to exact search.
- Scalability: While exact search time grew linearly with the number of clusters ($k$), the Cover Tree approach exhibited logarithmic growth, eventually outperforming highly optimized standard libraries.
- Efficiency: The algorithm makes exactly $n$ calls to the ANN oracle for $n$ points, which the authors argue is optimal for maintaining clustering quality.
Conclusion
This research demonstrates that exact geometry is not a prerequisite for high-quality clustering. By utilizing ANN oracles, streaming algorithms can achieve near-optimal performance with significantly reduced computational overhead. However, the choice of ANN oracle is critical; while Cover Trees performed exceptionally well on the test data, other methods like LSH showed more limited benefits depending on the dataset's properties. Future work may extend this "ANN-first" philosophy to other popular clustering frameworks like $k$-means++.
Summary updated