TL;DR
This paper introduces the first near-linear time construction of coresets for $k$-Median clustering in graph metrics whose size depends linearly on the graph's treewidth $\mathrm{tw}(G)$ rather than the number of data points. The authors prove an upper bound on coreset size of $\tilde{O}(k^3 \epsilon^{-2}) \cdot \mathrm{tw}(G)$ in $\tilde{O}(|E|)$ time, establish a matching $\Omega(\frac{k}{\epsilon} \cdot \mathrm{tw}(G))$ information-theoretic lower bound, and demonstrate 100×–1000× speedups for local search clustering on real-world road networks.
What Problem Does This Paper Address?
Coresets are compact, weighted summaries of large datasets that provably approximate the objective function—here, the metric $k$-Median problem—within a factor of $(1 \pm \epsilon)$ for any choice of $k$ cluster centers.
While coresets for Euclidean spaces have been extensively optimized to be independent of dataset size $n = |V|$ (and even the spatial dimension $d$), coresets on graph metrics have lagged far behind. Prior graph clustering coresets required $\text{polylog}(n)$ sizes and relied on all-pairs shortest paths (an expensive $O(n^2)$ or worse computation).
The authors investigate whether graph structure can eliminate this dependence on $n$. Specifically, they target graphs of bounded treewidth—a family encompassing trees, series-parallel graphs, and outerplanar graphs, which also models empirical topologies found in road grids and social networks.
Methods
The construction adapts the importance sampling framework of Feldman & Langberg (STOC 2011), modifying both the algorithmic implementation and the theoretical analysis for graph metrics:
-
Near-Linear Sensitivity Estimation: To compute sampling probabilities (sensitivities $\sigma_x$) in $\tilde{O}(|E|)$ time without all-pairs shortest path computation, the authors use Thorup's near-linear time bicriteria approximation algorithm combined with an iterative projection heuristic and a single Dijkstra search. This caps total sensitivity at $\sigma_X = O(k)$.
-
Shattering Dimension via Hyperplane Arrangements: The Feldman–Langberg framework requires bounding the shattering dimension under arbitrary point weights $v: V \to \mathbb{R}_+$. Arbitrary weights destroy spatial continuity (even on a simple line graph, weighted metric balls can be arbitrary subsets). The authors resolve this by:
-
Constructing a balanced separator decomposition into $\text{poly}(|H|)$ pieces using vertex cuts of size $O(\mathrm{tw}(G))$.
- Expressing shortest paths passing through a separator $S$ as the minimum of $|S|$ affine functions ($\mathbb{R}^{|S|} \to \mathbb{R}_+$).
- Mapping these min-linear functions to arrangements of hyperplanes in computational geometry to bound the number of induced permutations by $|H|^{O(\mathrm{tw}(G))}$, giving a shattering dimension of $O(\mathrm{tw}(G))$.
Datasets
- OpenStreetMap New York City Road Network: A graph extracted from OpenStreetMap covering New York State and clipped to NYC, containing 1,000,000 vertices and 1,200,000 edges with edge weights computed via the Haversine distance formula.
- Evaluated Distributions:
- $X_{\text{uni}}$: Points chosen uniformly at random across NYC.
- $X_{\text{man}}$: A skewed, realistic distribution heavily concentrated in Manhattan with sparse points in outer boroughs.
- Varying dataset sizes ranging from $|X| = 10^4$ to the entire graph ($|X| = 10^6$).
Key Insights and Ideas
- Separators Tame Metric Complexity: If a small vertex cut $S$ separates $x$ and $y$, the distance is strictly $\min_{s_i \in S} \{d(x, s_i) + d(s_i, y)\}$. By treating $d(s_i, y)$ as coordinates in $\mathbb{R}^{|S|}$, complex graph shortest-path metrics reduce to low-dimensional geometric hyperplane arrangements.
- The $\log n$ Factor in General Metrics is Unavoidable: The paper constructs a hard instance with treewidth $t$ requiring an $\Omega(\frac{k}{\epsilon} \cdot t)$ coreset. Setting $t = \Theta(\log n)$ yields an $\Omega(\frac{k}{\epsilon} \log n)$ lower bound for general metric spaces, settling the optimality of the logarithmic factor in general metric coresets.
- Treewidth Agnostic in Practice: The algorithm never needs to compute or approximate the treewidth of the input graph to run; treewidth serves purely as an analytical parameter governing coreset size.
Key Results
- Theoretical Bounds:
- Upper Bound: Coreset size of $\tilde{O}(\frac{k^2}{\epsilon^2}(k \cdot \mathrm{tw}(G) + \log \frac{1}{\delta}))$, computable in $\tilde{O}(|E|)$ time with success probability $1 - \delta$ (further refined in footnotes to $\tilde{O}(\frac{k^2}{\epsilon^2}) \cdot \mathrm{tw}(G)$ using recent PAC bounds).
- Lower Bound: Information-theoretic lower bound of $\Omega(\frac{k}{\epsilon} \cdot \mathrm{tw}(G))$ for graphs with treewidth $\ge 1$.
- Empirical Accuracy:
- On NYC road data ($k = 25$), the coreset achieves $< 5\%$ empirical error using only ~1,000 points from a million-node graph.
- On the skewed Manhattan dataset ($X_{\text{man}}$), the coreset is $3\times$ to $5\times$ more accurate than uniform random sampling of equal size.
- Coresets of a fixed size maintain identical accuracy across varying underlying data sizes $|X|$ ($10\text{k}$ to $90\text{k}$), verifying that size depends on graph structure rather than $|X|$.
- Downstream Speedups:
- Coreset construction is ~100× faster than running local search on the full dataset.
- Running local search constrained to the coreset ($D \times D$) achieves a 1000× speedup over local search on the raw data ($X \times V$) while incurring only a 5%–10% error penalty.
Limitations and Future Work
- Broader Graph Classes: The theoretical upper bound requires bounded treewidth. While the algorithm was applied empirically to road networks without knowing their treewidth, extending formal dimension-independent guarantees to planar graphs or general minor-free graphs remains an open theoretical problem.
- Dependence on $k$ and $\epsilon$: The theoretical coreset size scales cubically/quadratically with $k$ and inversely with $\epsilon^2$, whereas the lower bound is linear in $k/\epsilon$. Bridging this gap is left for future research.
Summary updated