How Much Distribution Shift Can a Clustering Withstand? Exact Split and Merge Certificates for Structured Transports

Alisina Bayati, Srinivasa Salapaka, Shahriar TalebiarXiv 2026 · arXiv

Clustering is a cornerstone of data science, but it’s often treated as a static solution to a dynamic problem. We cluster a "nominal" dataset today, but what happens tomorrow when sensor noise creeps in, or the underlying population drifts? At what point does our carefully constructed clustering become obsolete, requiring us to split a bloated cluster or merge two that have grown too close?

A recent paper by Alisina Bayati, Srinivasa M. Salapaka, and Shahriar Talebi, titled "How Much Distribution Shift Can a Clustering Withstand? Exact Split and Merge Certificates for Structured Transports," provides a rigorous mathematical answer. They introduce a framework to calculate the exact "radius" of stability for a clustering, giving engineers a "robustness certificate" against future data shifts.

TL;DR

The authors develop a framework to calculate the smallest distribution shift—restricted to specific "structured" directions—that would trigger a cluster split or merge. By reformulating this complex transport problem into an exact semidefinite program (SDP), they provide a "robustness certificate" that guarantees a clustering remains stable as long as the data shift stays within a calculated budget.

What Problem Does This Paper Address?

Most clustering algorithms (like k-means) minimize distortion—the average distance between points and their representatives. However, distortion is a poor proxy for robustness. Two different clusterings can have identical distortion but vastly different sensitivities to data shifts.

The core challenge is quantifying this sensitivity. If we know that data can only shift in certain ways (e.g., only certain features change, or only specific sensors fail), how do we calculate the minimum "effort" (measured by optimal transport distance) required to make a cluster unstable? Until now, there wasn't a precise way to define these "split" and "merge" thresholds or to calculate them efficiently for structured shifts.

Methods

The authors bridge the gap between clustering stability and optimal transport using three key pillars:

  1. Deterministic Annealing (DA) Stability: They use the "temperature" parameter $T$ from DA to define resolution. A cluster is considered stable if its covariance is "small enough" relative to $T$. Specifically, the threshold is reached when the largest eigenvalue of the cluster's covariance matrix equals $T/2$.
  2. Structured Transport: Instead of allowing data to shift in any direction, they restrict displacements to a prescribed linear subspace $\mathcal{U}$. This models real-world constraints where only specific attributes of the data are uncertain.
  3. Exact SDP Reformulation: Finding the minimum shift to reach a stability threshold is naturally an infinite-dimensional optimization problem over transport plans. The authors prove an exact moment reduction, showing the problem can be solved using finite-dimensional Semidefinite Programming (SDP). Remarkably, the "split radius" SDP requires only two scalar decision variables, making it extremely efficient to solve.

Datasets

The framework was evaluated on several standard benchmarks:

  • S1, S2, S3: 2D datasets containing 5,000 points in 15 Gaussian clusters with increasing levels of overlap.
  • DIM64: A higher-dimensional dataset with 1,024 points in $\mathbb{R}^{64}$ across 16 clusters, used to demonstrate the scalability of the SDP approach.

Key Insights and Ideas

  • Distortion $\neq$ Robustness: Figure 1 illustrates this perfectly. Two clusterings (A and B) have the same distortion, but Clustering A is significantly more robust to horizontal shifts than Clustering B.
Comparison of two clusterings with identical distortion but different robustness to horizontal shifts.
  • Geometry of Structured Shifts: Restricting shifts to a subspace $\mathcal{U}$ doesn't just make the problem "smaller"; it changes the geometry. A shift within $\mathcal{U}$ can change the variance in directions outside $\mathcal{U}$ if those directions aren't orthogonal. This geometric nuance is handled exactly by their SDP formulation.
  • The Robustness Certificate: By calculating the "radius" for every potential split and merge event, the authors can provide a single number: the robustness certificate. If the total population shift (in Wasserstein distance) is less than this certificate, no monitored split or merge event can possibly occur.

Key Results

  • Visualizing Stability: The stability threshold has a clean geometric interpretation: a cluster reaches the split threshold when its "covariance ellipse" first touches a circle of radius $\sqrt{T/2}$.
Attaining shifts for split and merge events. The shifted covariance contours (black) touch the stability circles (dotted).
  • Directional Vulnerability: In the S1 dataset, the most vulnerable event under unrestricted shifts was a merge between clusters 6 and 13 (radius 12.08). However, when shifts were restricted to be horizontal, that merge became much harder to trigger, and a different merge (between clusters 3 and 9) became the "weakest link."
  • Scalability: The authors successfully computed certificates for the 64-dimensional DIM64 dataset, monitoring all 16 potential splits and 120 pairwise merges. They showed that as the allowed subspace $\mathcal{U}$ grows, the robustness certificate decreases, as expected.

Limitations and Future Work

While powerful, the current framework has a few boundaries:

  • Squared Euclidean Distance: The stability criteria are currently derived for squared Euclidean distortion. Extending this to Bregman divergences or other metrics is a logical next step.
  • Fixed Subspace: The subspace $\mathcal{U}$ must be defined upfront. Future work could involve identifying the "worst-case" subspace for a given clustering.
  • Dynamic Steering: The authors suggest that this framework could be linked to covariance steering, where one might actively control a population's evolution to keep it away from split/merge thresholds, maintaining clustering stability over time.

For researchers and engineers deploying clustering in the wild, this paper offers a much-needed "safety manual," turning the vague intuition of "cluster stability" into a precise, calculable certificate.

Summary updated

Abstract

In clustering, the distribution of the population being clustered is often uncertain or changes over time, so the true distribution may shift away from the nominal distribution used to form the clustering. Once the clustering is committed and each member is assigned to a cluster, such shifts may change the distribution of each cluster. They can make a cluster too spread out for one representative at a given resolution, motivating a split, or bring distinct clusters close enough to share a representative at that resolution, motivating a merge. We make these split and merge events precise using a local stability criterion built on the phase-transition analysis in deterministic annealing. This notion of stability enables us to quantify how robust a clustering is against such events. Furthermore, motivated by applications in which uncertainty and population change are structured, we study shifts whose displacements are restricted to a prescribed subspace. The smallest structured shifts that reach the respective thresholds define the split and merge radii, for which we obtain exact semidefinite programming (SDP) reformulations. The split SDP has only two scalar decision variables. These convex reformulations enable us to combine the radii into a robustness certificate for the full clustering that gives the size of the smallest structured shift that reaches any monitored split or merge threshold.
BibTeX
@misc{bayati2026how,
  author = {Alisina Bayati and Srinivasa Salapaka and Shahriar Talebi},
  title = {{How Much Distribution Shift Can a Clustering Withstand? Exact Split and Merge Certificates for Structured Transports}},
  year = {2026},
  eprint = {2611.22000},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.22000},
}
Figure