Coresets for Clustering in Graphs of Bounded Treewidth

Daniel N. Baker, Vladimir Braverman, Lingxiao Huang, Shaofeng H.-c. Jiang, Robert Krauthgamer, Xuan Wu

Introduction

Clustering—specifically the $k$-median problem—is a cornerstone of data analysis, utilized in applications ranging from logistics optimization to social network community detection. However, as datasets grow into the millions, running these algorithms becomes computationally prohibitive.

In Euclidean space, researchers often rely on coresets: small, weighted subsets of the data that act as a proxy for the whole. If a clustering algorithm is run on a high-quality coreset, it yields nearly the same result as running it on the full dataset, but in a fraction of the time.

The primary challenge is that most coreset research focuses on geometric spaces, whereas real-world data frequently lives on graphs (such as road networks), where distances are defined by shortest paths. Historically, graph coresets had sizes that grew with the total number of points ($n$). This paper introduces the first "strong coresets" for clustering in graph metrics where the size of the summary depends entirely on the graph's topology rather than the number of data points.

Methodology: Importance Sampling and Treewidth

The authors utilize the Feldman-Langberg framework, a gold standard for coreset construction based on "importance sampling." The core idea is to sample points with a probability proportional to their "sensitivity"—essentially, how much a specific point can influence the total clustering cost.

The heavy lifting in this paper is theoretical. To prove the coreset is both small and accurate, the authors had to bound the shattering dimension of the graph metric. They proved that for any graph, this dimension is linearly bounded by its treewidth ($tw(G)$)—a measure of how "tree-like" a graph is.

To make this practical, they implemented an optimized version of Thorup’s algorithm for importance sampling. While the original algorithm is theoretically fast but practically complex, the authors swapped out a difficult sub-component (the Jain-Vazirani algorithm) for a simpler local search, making it scalable to millions of nodes.

Datasets and Experimental Setup

The authors evaluated their approach on a massive real-world dataset extracted from OpenStreetMap:

  • NYC Road Network: Consisting of 1 million vertices and 1.2 million edges.
  • Synthetic Distributions: They tested two point distributions on this map: $X_{uni}$ (points spread uniformly across the city) and $X_{man}$ (points heavily concentrated in Manhattan) to simulate different real-world demand patterns.
Full NYC road network dataset

Key Insights

  • Treewidth as a Complexity Proxy: The critical realization of this work is that treewidth is the right parameter for graph coresets. Many real-world networks (like power grids and road maps) have surprisingly small treewidths, meaning they are "skinny" enough to be simplified effectively.
  • Breaking Continuity with Weights: In standard graphs, "balls" (sets of points within a certain distance) are contiguous. However, when points have different weights, these balls can become fragmented and "jumpy." The authors used computational geometry techniques (specifically the arrangement number of hyperplanes) to prove that even with these messy weights, the complexity remains bounded by the treewidth.
  • Linear Dependence is Optimal: The authors didn't just find an upper bound; they proved a lower bound showing that any coreset must scale linearly with treewidth, confirming their approach is near-optimal.

Key Results: Massive Compression and Speedup

The empirical results demonstrate the profound practical impact of this theoretical breakthrough:

  • Massive Compression: On the NYC dataset, a coreset of only 1,000 points (0.1% of the original data) consistently achieved less than 5% error.
Coreset representation of the NYC dataset
  • Speedup: Constructing the coreset is roughly 100x faster than running a standard local search on the full dataset.
  • Downstream Efficiency: Once the coreset is built, running a $k$-median local search on it is 1,000x faster than running it on the original data, while reaching a nearly identical objective value.
  • Independence of $n$: Experiments confirmed that as the dataset $X$ grew, the coreset size needed to maintain accuracy stayed flat, validating the "independence of $n$" theory.

Limitations and Future Work

While highly effective for road networks, the approach has limitations. Graphs with high treewidth (like dense social networks or expander graphs) would cause the coreset size to explode.

Future work may extend these techniques to broader graph families, such as planar graphs or minor-free graphs, which would cover even more real-world scenarios. Additionally, there remains a small theoretical gap between the authors' upper bound (which scales with $k^3$ or $k^2$) and their lower bound (which scales with $k$). Closing this gap remains an open mathematical challenge.

Summary updated

BibTeX
@inproceedings{baker2020coresets,
  author = {Daniel N. Baker and Vladimir Braverman and Lingxiao Huang and Shaofeng H.-C. Jiang and Robert Krauthgamer and Xuan Wu},
  title = {{Coresets for Clustering in Graphs of Bounded Treewidth}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
  url = {https://openreview.net/forum?id=H_-4TtBmIx5},
}
Figure