Coresets for clustering in Euclidean spaces: importance sampling is nearly optimal

Lingxiao Huang, Nisheeth K. Vishnoi

Introduction

In the era of massive datasets, running complex clustering algorithms on billions of points is often computationally prohibitive. Coresets—small, weighted summaries of data—have emerged as a powerful tool to address this challenge. A coreset allows us to approximate clustering results with high precision while significantly reducing the computational load. This paper by Lingxiao Huang and Nisheeth K. Vishnoi presents a breakthrough in coreset construction, offering summaries that are both dimension-agnostic and nearly optimal in size.

The Problem: Scalability and the Curse of Dimensionality

The paper focuses on the $(k, z)$-Clustering problem in Euclidean space. This generalized framework aims to find $k$ "centers" that minimize the sum of the $z$-th powers of the distances from each data point to its nearest center. This includes well-known problems like $k$-Median ($z=1$) and $k$-Means ($z=2$).

The primary goal of a coreset is to "compress" $n$ points into a much smaller set $S$ such that any clustering solution evaluated on $S$ yields nearly the same cost as the full dataset. Prior to this work, two major gaps existed:

  1. Dimension Dependence: Most constructions for general $z$ scaled with the dimension $d$, making them less effective for high-dimensional data.
  2. Optimality: For specific cases like $k$-Median, existing dimension-free coresets had a quadratic dependence on $k$, which was suspected to be sub-optimal.

Methodology: A Two-Stage Framework

The authors introduce a two-stage importance sampling framework to construct these coresets. Importance sampling selects points with a probability proportional to their "sensitivity"—their potential influence on the total clustering cost.

  • Stage 1: Dimension Reduction via Subspace Approximation. The authors link clustering to subspace approximation, showing that data can be projected onto a low-dimensional subspace $\Gamma$ (of dimension roughly $poly(k/\epsilon)$) without significant information loss. They construct an initial coreset representative of the data's structure relative to this subspace.
  • Stage 2: Terminal Embeddings. To remove the $d$ dependence entirely, they employ terminal embeddings. This technique, a sophisticated extension of the Johnson-Lindenstrauss lemma, preserves distances between data points and any potential center in the entire space, not just within the sampled set.

A novel concept introduced is representativeness. If a coreset is representative with respect to a subspace, it ensures that clustering objectives remain stable for equivalent sets of centers, allowing for more aggressive data pruning.

Key Results and Comparison

The proposed framework achieves significant improvements over previous state-of-the-art methods. Notably, it provides a coreset size of $\tilde{O}(\epsilon^{-4}k)$ for $k$-Median, a linear improvement over the previous $O(k^2)$ results. Crucially, the coreset size has zero dependence on the original dimension $d$.

Comparison of coreset sizes for various clustering objectives.

As shown in the table above, this paper consistently achieves near-linear dependence on $k$ while eliminating $d$ from the coreset size across $k$-Median, $k$-Means, and general $(k, z)$-clustering. The construction algorithm is also efficient, running in $\tilde{O}(ndk)$ time.

Theoretical Lower Bounds

To test the optimality of their results, the authors constructed synthetic adversarial datasets. They proved a size lower bound of $\Omega(k \cdot \min\{2^{z/20}, d\})$. This confirms that the linear dependence on $k$ and the exponential dependence on the distance power $z$ are essentially the best possible. While $k$-Means ($z=2$) is similar to $k$-Median ($z=1$), the objective function becomes increasingly sensitive as $z$ grows, making the exponential "blow-up" in coreset size unavoidable.

Conclusion

This work provides a unified and nearly optimal approach to coreset construction for Euclidean clustering. By breaking the dependence on dimension and optimizing the dependence on $k$, it paves the way for more efficient large-scale data analysis. Future work may address the remaining gap in the error parameter $\epsilon$ and explore extensions to $\ell_p$ metrics where $p > 2$.

Summary updated

BibTeX
@inproceedings{huang2020coresets,
  author = {Lingxiao Huang and Nisheeth K. Vishnoi},
  title = {{Coresets for clustering in Euclidean spaces: importance sampling is nearly optimal}},
  booktitle = {STOC},
  year = {2020},
  doi = {10.1145/3357713.3384296},
}
Figure