Faster Approximation Algorithms for k-Center via Data Reduction

Arnold Filtser, Shaofeng H.-c. Jiang, Yi Li, Anurag Murty Naredla, Ioannis Psarros, Qiaoyuan Yang, Qin Zhang

Introduction

Clustering is a fundamental task in data analysis, with the $k$-center problem serving as a cornerstone for applications ranging from facility location to vector quantization. Given a set of $n$ points in a metric space, the objective is to select $k$ centers such that the maximum distance from any point to its nearest center is minimized. While Gonzalez’s algorithm has provided a reliable 2-approximation since the 1980s, its $O(nkd)$ complexity becomes a significant bottleneck in the era of big data, particularly when the number of clusters $k$ is large.

In the recent paper "Faster Approximation Algorithms for $k$-Center via Data Reduction," the authors address this "large $k$" regime. By leveraging novel data reduction techniques and geometric hashing, they achieve near-linear running times for problems that previously required quadratic-scale computational effort.

The Challenge of Large $k$

The $k$-center problem is known to be NP-hard and APX-hard, meaning no polynomial-time algorithm can achieve an approximation ratio better than 2 unless P = NP. Gonzalez’s greedy algorithm is the standard approach, but its runtime scales linearly with both $n$ and $k$. In modern contexts such as product quantization for vector databases or large-scale entity resolution, $k$ can be as large as $\sqrt{n}$ or even $n^c$ for some constant $c$. In these scenarios, the $O(nk)$ complexity becomes prohibitively expensive. The authors' goal is to provide $O(1)$-approximations that run in near-linear time ($\tilde{O}(n)$), effectively decoupling the complexity from the number of clusters $k$.

Methodology: Data Reduction via Coresets

The core of the proposed approach is the construction of $\alpha$-coresets. A coreset is a small, representative subset of the original data $P$ such that a solution found on the coreset $S$ provides a guaranteed approximation for the entire dataset. The paper introduces two primary techniques for coreset construction:

1. Consistent Hashing with Randomly-Shifted Grids

The primary technical contribution is a new consistent hashing mechanism. Consistent hashing partitions the space into cells such that any ball of a certain radius intersects only a small number of cells. While previous methods were often exponential in the dimension $d$, the authors developed a version using randomly-shifted grids that remains polynomial in $d$. This allows for the construction of a coreset in $\tilde{O}(n)$ time, even in high-dimensional spaces.

2. Random Hitting Sets

A secondary method utilizes random sampling combined with Approximate Nearest Neighbor (ANN) search. By framing the coreset construction as a "hitting set" problem, the authors can identify a subset of points that "covers" the dataset within a specified radius. While this method produces smaller coresets, it typically requires more construction time than the hashing approach.

To maintain efficiency in very high-dimensional settings (e.g., image data), the authors employ the Johnson-Lindenstrauss (JL) transform. This technique projects points into a lower-dimensional space while preserving pairwise distances within a small error margin, facilitating faster geometric operations.

Experimental Evaluation

The algorithms were evaluated against four diverse real-world datasets:

  • Kddcup: Network intrusion data (5M points, 38D).
  • Covertype: Forestry data (581k points, 55D).
  • Census: US Census data (2M points, 69D).
  • Fashion-MNIST: Image data (70k points, 784D).

The researchers compared their coreset-based Gonzalez algorithm against the standard Gonzalez algorithm and uniform random sampling baselines.

Key Results and Insights

The study yielded several significant findings:

  • Near-Linear Complexity: For the regime where $k = n^c$, the algorithms achieve an $O(1)$-approximation in $\tilde{O}(n)$ time, representing a theoretical breakthrough for large-scale clustering.
  • Empirical Speedups: On the tested datasets, the coreset approach provided a 2x to 4x speedup over the standard Gonzalez algorithm.
  • Solution Quality: The clustering cost (the maximum radius) remained within 1.3x of the cost achieved by running the full algorithm on the entire dataset. This demonstrates that the data reduction preserves the essential geometric structure of the problem.
  • Superiority over Baselines: The proposed coreset methods consistently outperformed uniform random sampling, which often fails to capture outliers that are critical for the $k$-center objective.

Limitations and Future Directions

While the results are promising, the authors identify several areas for further research. The coresets produced are "weak" coresets, meaning they preserve the approximation ratio for the optimal solution but do not necessarily approximate the cost for every possible set of centers. Additionally, while the algorithm achieves $O(1)$-approximation, the constant factor is higher than the classic 2-approximation. Achieving a 2-approximation in near-linear time for the large $k$ regime remains an open challenge in computational geometry.

Finally, the hashing method's reliance on grid structures can be sensitive to data scaling. Although the authors mitigate this with a coarse approximation step, more robust adaptive structures could be explored in future work.

Summary updated

BibTeX
@inproceedings{filtser2025faster,
  author = {Arnold Filtser and Shaofeng H.-C. Jiang and Yi Li and Anurag Murty Naredla and Ioannis Psarros and Qiaoyuan Yang and Qin Zhang},
  title = {{Faster Approximation Algorithms for k-Center via Data Reduction}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=cwpf8S4f5C},
}
Figure