A Tight VC-Dimension Analysis of Clustering Coresets with Applications

Vincent Cohen-Addad, Andrew Draganov, Matteo Russo, David Saulpic, Chris Schwiegelshohn

Abstract

Coresets are essential for scaling clustering algorithms to massive datasets. This paper introduces "Layered Group Sampling," a novel algorithm that achieves the first VC-dimension-based coreset for $k$-clustering with a near-linear dependency on the number of centers $k$. This breakthrough significantly reduces coreset sizes for complex metric spaces like planar graphs and Fréchet distances, improving previous bounds by multiple orders of magnitude.

Introduction

Clustering is a cornerstone of data science, yet algorithms like $k$-median and $k$-means become computationally prohibitive on massive datasets. Coresets address this by constructing a small, weighted subset of the data that preserves the clustering cost of the original dataset within a $(1 \pm \epsilon)$ factor for any possible set of $k$ centers. The utility of a coreset is primarily defined by its size; smaller coresets enable faster processing and lower memory overhead.

The Coreset Size Challenge

While simple spaces like Euclidean space enjoy very small coresets, complex metrics—such as shortest paths in planar graphs or Fréchet distances between trajectories—rely on the VC-dimension ($d_{VC}$) of the metric space to bound coreset size. Historically, all VC-dimension-based constructions suffered from a quadratic or cubic dependency on the number of centers $k$ (e.g., $O(k^2)$ or $O(k^3)$). This paper aims to close this gap, reaching the near-linear $\tilde{O}(k)$ dependency known to be optimal for simpler metrics.

Methodology: Layered Group Sampling

The authors introduce Layered Group Sampling, a framework that refines existing group sampling techniques through a critical preprocessing step:

  1. Partitioning: Data points are grouped based on their contribution to a constant-factor approximation of the optimal solution.
  2. Layering Property: Groups are further subdivided such that the ratio of average costs between subgroups is either near unity or separated by a large factor $\phi$.
  3. Clustering Nets: The space of solutions is discretized using clustering nets.
  4. Tight Union Bound: The "layering" property limits the interaction between subgroups. A center serving one layer cannot significantly "shatter" or impact the cost of a vastly different layer, allowing for a much tighter union bound than previously possible.

Key Results and Comparisons

The primary contribution is a sharp analysis for $(k, z)$-clustering. For $k$-median ($z=1$), the paper achieves a coreset size of $\tilde{O}(k \cdot d_{VC} \cdot \epsilon^{-2})$. This is the first bound to achieve near-linear dependency on $k$ using VC-dimension.

Comparison of coreset sizes for k-clustering across various state-of-the-art methods.

As shown in the table above, this result improves upon several years of research, reducing the complexity from $k^3$ or $k^2$ down to $k$.

Specific Applications

  • Planar Graphs: For shortest-path metrics, coreset size drops to $\tilde{O}(k \epsilon^{-2})$, a massive improvement over the previous best of $\tilde{O}(k \epsilon^{-6})$ or $\tilde{O}(k^2 \epsilon^{-4})$.
  • Polygonal Curves: For curves of length $m$ under Fréchet/Hausdorff distances, the size is reduced to $\tilde{O}(kd\ell\epsilon^{-2} \log m)$, significantly improving upon previous $O(k^3)$ bounds.

Conclusion and Future Work

This work provides a powerful "plug-and-play" tool for fields like computational geometry and graph theory. While the bound is tight for many metrics, the authors note that VC-dimension does not always characterize the absolute best coreset size (e.g., in Euclidean space where dimension-independent bounds exist). Future work may focus on refining polylogarithmic factors and extending the tightness proofs for $z > 1$ clustering.

Summary updated

BibTeX
@inproceedings{cohenaddad2025tight,
  author = {Vincent Cohen-Addad and Andrew Draganov and Matteo Russo and David Saulpic and Chris Schwiegelshohn},
  title = {{A Tight VC-Dimension Analysis of Clustering Coresets with Applications}},
  booktitle = {SODA},
  year = {2025},
  doi = {10.1137/1.9781611978322.162},
}
Figure