New Coresets for Fair Clustering

Chansophea Wathanak In, Yi Li, Xuan WuNeurIPS 2026

TL;DR

Clustering massive datasets while enforcing demographic fairness constraints is computationally brutal, and existing data-shrinking shortcuts ("coresets") bloat quadratically as the number of clusters $k$ grows. By reimagining constrained clustering as an optimal transport problem—literally treating datasets and cluster centers like piles of dirt to be moved—the authors construct the first fair $k$-medians coresets whose size scales near-linearly with $k$. This breakthrough works in any metric space and immediately unlocks the first space-efficient streaming algorithm for fair clustering.

What Problem Does This Paper Address?

Suppose you want to group millions of data points into $k$ clusters (specifically $k$-medians, where you minimize the sum of distances from points to their assigned cluster centers). Now add a social fairness constraint: each cluster must contain a balanced representation of different groups.

Adding fairness makes an already NP-hard problem much harder. To cope, computer scientists build coresets: tiny, weighted summaries of the massive dataset that preserve the clustering cost for any candidate set of $k$ centers. However, standard coresets fail for fair clustering because points can't just snap to their closest center—group quotas act like strict capacity limits on who can go where.

You need an assignment-preserving coreset that respects capacity constraints. Until now, the best known constructions in $n$-point metric spaces required $\tilde{O}(k^2 \varepsilon^{-2} \log n)$ points, or suffered an exponential dependence on dimension $O(k \varepsilon^{-d})$ in Euclidean space $\mathbb{R}^d$. Because $\Omega(k)$ is the theoretical lower bound—and $k$ dictates the structural complexity of your problem—shaving that $k^2$ down to near-linear in $k$ (without getting crushed by high dimensions) has been a major open target.

Methods

The authors step away from pure geometric grid decompositions and instead lean into probability and Optimal Transport:

  • Clustering as Earth Mover's Distance (EMD): They treat both the dataset and any capacitated set of $k$ centers as discrete probability distributions. Finding the best capacity-respecting cluster assignment is mathematically identical to computing the EMD—the minimum work needed to transport "mass" from data points to centers.
  • Regular Distributions & Scaled Uniform Sampling: Using a standard ring-decomposition framework, they slice any messy input distribution into well-behaved "$(r, t)$-regular" distributions—partitions of at most $k$ bounded-radius balls containing roughly equal mass. For each regular piece, their algorithm simply takes a uniform random sample and rescales the weights so each ball's total mass stays intact.
  • Problem-Specific $\varepsilon$-Nets: Proving a random sample approximates the EMD to one set of $k$ centers is manageable; proving it works for all possible $k$-center sets simultaneously requires a union bound over a discretized "net" of distributions. Naive density rounding fails for EMD because tiny mass errors multiplied by huge distances ruin the approximation. The authors route "far" transportations through ball centers, build an auxiliary proximity graph over centers and targets, and discretize densities component by component so mass perturbations only ever travel short distances.

Datasets

Not discussed in the paper. (This is a purely theoretical computer science paper proving worst-case mathematical guarantees across arbitrary metric and Euclidean spaces.)

Key Insights and Ideas

  • Far points blur together: When analyzing transport costs from a bounded ball of data points to a distant cluster center, the exact coordinates inside the ball barely matter. As long as the total mass leaving the ball for distant targets is preserved, shuffling mass inside the ball only distorts distances by a tiny $1 \pm O(\varepsilon)$ factor.
  • Cyclical monotonicity gives optimality for free: How do you prove your sampled coreset has the right optimal transport cost without solving an optimization problem from scratch? A classic optimal transport theorem states that if a transport plan's active routes are a subset of an already-optimal plan's routes, it is automatically optimal. This lets the authors surgically tweak random sampling discrepancies while keeping exact handles on the EMD.
  • Dodging the curse of dimensionality: Previous Euclidean EMD coresets discretized the ambient space using grids or directional rays, paying an $\varepsilon^{-d}$ penalty. By discretizing the transportation structure over sparse distributions instead of the ambient geometry, the authors drop the exponential dependence on dimension $d$ entirely.

Key Results

  • General Metric Spaces: Constructs an assignment-preserving $(\varepsilon, k)$-coreset of size $\tilde{O}(k \varepsilon^{-4} \log n \log \frac{\tau}{\varepsilon})$, improving the $k$-dependence from $\tilde{O}(k^2)$ to near-linear (at the cost of a higher power of $\varepsilon^{-1}$).
  • High-Dimensional Euclidean Space ($\mathbb{R}^d$): Combined with terminal embeddings and iterative size reduction, computes an $(\varepsilon, k)$-coreset of size $\tilde{O}(k \varepsilon^{-6} \log n)$—completely independent of $d$—in near-linear time $\tilde{O}(nd)$.
  • Universal Fair Coresets & Streaming: For $n$ points in $\mathbb{R}^d$ belonging to $G$ distinct group combinations, yields a universal fair coreset (valid for all fairness parameters simultaneously) of size $\tilde{O}(G k \varepsilon^{-6} \log n)$. Plugging this into the standard merge-and-reduce framework produces the first insertion-only streaming algorithm for fair $k$-medians using $G k \cdot (\varepsilon^{-1} \log \Delta)^{O(1)}$ words of space (also correcting an unproved claim in prior literature that implicitly required $k^3$ space).

Limitations and Future Work

  • The $\varepsilon$ Trade-off: Achieving near-linear dependence on $k$ comes with a steeper dependence on the error parameter $\varepsilon$: $\varepsilon^{-4}$ in general metrics and $\varepsilon^{-6}$ in $\mathbb{R}^d$, compared to $\varepsilon^{-2}$ in previous $O(k^2)$-sized coresets.
  • Approximation Bottlenecks: In general metric spaces, the coreset construction's runtime relies on first computing a constant-factor approximation to unconstrained $k$-medians (though in Euclidean space, existing near-linear time algorithms keep the whole pipeline fast).

Summary updated

Abstract

We construct the first coreset of size near-linear in $k$ for fair \kMedian in general metric spaces. Combined with the standard merge-and-reduce framework, our construction also gives the first streaming algorithm for fair \kMedian with space complexity near-linear in $k$. The main technical innovation is a distributional reinterpretation of capacitated clustering that the cost of assigning a dataset to a capacitated center set can be expressed as the earth mover's distance between two discrete distributions. This viewpoint enables us to use tools from optimal transport to analyse uniform sampling. A key ingredient in this analysis is a new family of problem-specific $\epsilon$-nets for the earth mover's distance.
BibTeX
@inproceedings{in2026new,
  author = {Chansophea Wathanak In and Yi Li and Xuan Wu},
  title = {{New Coresets for Fair Clustering}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=RQT8lzmK8J},
}
Figure