NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Replicable Clustering

Hossein Esfandiari, Amin Karbasi, Vahab Mirrokni, Grigoris Velegkas, Felix Zhou

Introduction

In the broader "reproducibility crisis" affecting modern science, unsupervised learning—and clustering in particular—is a notorious offender. Standard clustering algorithms are highly sensitive to initial conditions, noise, and the specific data points sampled. Consequently, if two researchers draw different samples from the exact same population and run a standard $k$-means algorithm, they are highly likely to end up with different cluster boundaries.

To address this, recent research introduces the first replicable algorithms for statistical clustering, specifically targeting $k$-means, $k$-medians, and $k$-centers. By utilizing shared randomness across different data samples, these algorithms guarantee—with high probability—the output of the exact same partition of the sample space, providing a robust foundation for reliable and reproducible scientific discovery.

Defining Replicability

The authors tackle the reproducibility problem by adopting a formal definition of replicability recently proposed by Impagliazzo et al. (2022). Under this framework, an algorithm is considered replicable if, when given two different sets of independent and identically distributed (i.i.d.) samples from the same distribution and a shared "random seed," it produces identical output.

While previous work in clustering largely focused on "stability" (ensuring solutions are "close" to one another), this methodology demands that the solutions be exactly the same. This strict guarantee is significantly more useful for rigorous data analysis.

Methodology: From Combinatorial to Statistical Clustering

The core contribution is a pipeline that transforms standard "combinatorial" clustering oracles (which operate on fixed sets of points) into "statistical" replicable algorithms. This approach relies on three main pillars:

1. Replicable Coresets

Instead of clustering the raw data directly, the algorithm builds a "coreset"—a small, weighted set of points that accurately represents the underlying distribution. This is achieved using a Replicable Quad Tree. By employing a "Replicable Heavy Hitters" subroutine, the algorithm determines which regions of space are dense enough to be included in the coreset, ensuring the selection does not flip-flop between different samples. By reducing the distribution to a replicable coreset first, the authors decouple the "learning" of the distribution from the "optimization" of the clusters.

2. Shared Randomness

The algorithms utilize a global random string (a shared seed) to stabilize internal decisions. This shared randomness dictates critical thresholds for the heavy hitters and defines the grid offsets for the quad tree. The key insight is that the algorithm does not need to be strictly deterministic; it only needs to be consistent across different data samples when its internal randomness is coupled.

3. Dimensionality Reduction

For Euclidean spaces, the sample complexity of quad trees typically grows exponentially with the number of dimensions ($d$). To circumvent this curse of dimensionality, the authors employ data-oblivious dimensionality reduction (Johnson-Lindenstrauss transforms). By projecting the data into a lower-dimensional space before clustering, the sample complexity becomes polynomial in $d$. For high-dimensional Euclidean clustering, the algorithm outputs a clustering function rather than just explicit centers. This function maps any point in the original space to a cluster ID by projecting it and finding the nearest center in the reduced space.

Key Results and Experimental Validation

The paper provides significant theoretical bounds alongside empirical validation:

  • $k$-means & $k$-medians: The authors provide an $O(1)$-approximation algorithm for Euclidean space with a sample complexity of $\tilde{O}(\text{poly}(k, d) k^{\log \log k})$. This demonstrates theoretically that replicability does not require an astronomical amount of data.
  • $k$-centers: They achieve an $O(1)$-approximation with an additive error. However, this currently requires a sample complexity that is exponential in $d$ ($\tilde{O}(\text{poly}(k) \exp(d))$).
  • Empirical Validation: The theoretical results are validated using synthetic 2D datasets, including the "Two Moons" distribution (a classic non-linear benchmark) and a Mixture of Truncated Gaussians. Using scikit-learn's k-means++ as a black-box oracle, the experiments showed that while vanilla $k$-means++ failed to replicate centers across two different samples of the Two Moons dataset, the replicable coreset approach produced the exact same centers every time.

Limitations and Future Directions

While this work establishes a strong theoretical foundation for replicable clustering, several challenges remain:

  • General Metrics: While Euclidean space is effectively managed via dimensionality reduction, clustering under general metrics still suffers from an exponential dependence on $d$ due to the underlying quad-tree structure.
  • Assumptions for $k$-centers: The $k$-centers result requires a specific "clusterability" assumption, meaning the underlying distribution must be well-behaved enough that any sample is highly likely to contain points from every "true" cluster.
  • Computational Efficiency: Although the algorithms run in polynomial time, the constants and exponents in the sample complexity are currently quite high. Future work must focus on optimizing these bounds for practical, large-scale deployment.
  • Differential Privacy: The authors note a theoretical link between replicability and Differential Privacy (DP), suggesting that future research should explore more computationally efficient reductions between the two domains.

Summary updated

BibTeX
@inproceedings{esfandiari2023replicable,
  author = {Hossein Esfandiari and Amin Karbasi and Vahab Mirrokni and Grigoris Velegkas and Felix Zhou},
  title = {{Replicable Clustering}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
}
Figure