Weighted Conformal Clustering

Anirban Nath, YoonHaeng Hur, Genevera I. AllenNeurIPS 2026

TL;DR

Standard clustering algorithms force every data point into a single bucket, hiding whether a point sits comfortably at a cluster’s core or precariously on a fuzzy boundary. This paper introduces Weighted Conformal Clustering, a method that wraps around clustering algorithms to output statistically valid confidence sets of plausible labels for individual points. By treating the gap between algorithm-generated labels and true latent structure as a distribution shift, it delivers tight, informative uncertainty estimates even in high-dimensional and nonlinear settings.

What Problem Does This Paper Address?

Clustering is a workhorse of exploratory data analysis, yet most pipelines end with a hard, deterministic label for each observation—offering zero insight into how uncertain that specific assignment is. While statistical tools exist to evaluate global cluster structure (like testing if clusters truly separate or bootstrapping centroids), measuring uncertainty for a single observation is tricky: cluster labels are categorical, have no inherent order (Cluster A and B can swap names without changing the math), and are fabricated by an algorithm looking at the dataset itself.

Recently, researchers adapted conformal inference—a popular supervised learning technique that turns model predictions into guaranteed confidence sets—to clustering. However, standard conformal inference relies on exchangeability (essentially, calibration data and new test points must follow the exact same statistical rules). Because calibration labels in clustering are synthetically generated by a data-dependent algorithm rather than drawn from ground truth, exchangeability breaks down, leading to degraded guarantees or overly conservative, bloated confidence sets.

Methods

Instead of treating broken exchangeability merely as an error term to be bounded, the authors attack the mismatch head-on using weighted conformal prediction:

  • Framing as Concept Shift: Both the synthetic clustering labels and the unobserved ground-truth labels share the same feature distribution, $P(X)$, but follow different label-assignment rules, $P(Y|X)$. The authors frame this discrepancy as a conditional label-distribution shift and reweight calibration scores using likelihood ratios to bridge the two distributions.
  • Augmented Calibration: Calculating exact "oracle" weights requires refitting the clustering algorithm once for every single calibration point on leave-one-out datasets—a computational nightmare that also scrambles label alignments. To fix this, the authors introduce augmented calibration: they pool the calibration features and the new test point together ($\mathcal{D}_{ca} \cup \{x\}$) and run the clustering algorithm just once. Because of this symmetry, messy combinatorial factors cancel out during normalization, reducing the weights to clean, pointwise probability ratios.
  • Tractable Estimation & Alignment: Since true latent label probabilities are unknown in unsupervised learning, the practical algorithm splits the data, fits a soft classifier (like k-NN) on clustered training data to estimate $P(Y|X)$, aligns cluster permutations via linear assignment, and computes weighted quantiles to build the final confidence set.

Datasets

The authors evaluate their framework across synthetic benchmarks and real-world image data (no new benchmarks are introduced):

  • Gaussian Mixture Models (GMMs): 5-component mixtures in both low-dimensional ($\mathbb{R}^2$) and high-dimensional ($\mathbb{R}^{50}$) spaces across varying noise levels ($\sigma^2$) and sample sizes.
  • Nonlinear Manifolds: Classic synthetic three moons and two concentric circles datasets, where clusters curve around one another and are not linearly separable.
  • MNIST: 10,000 handwritten digit images ($28 \times 28$), compressed into a 10D latent space via a pretrained convolutional autoencoder to test deep clustering pipelines.

Key Insights and Ideas

  • Unsupervised calibration is hidden distribution shift: Viewing synthetic cluster assignments as a shifted version of latent ground truth unlocks weighted conformal machinery without requiring exchangeable ground-truth labels.
  • A sweet spot between split and full conformal: Augmented calibration sidesteps the $O(N)$ refitting bottleneck of leave-one-out methods while eliminating the need for "replace-one stability" assumptions on the clustering algorithm.
  • Soft clustering matters: While the math technically runs on hard clustering algorithms like k-means, degenerate one-hot probabilities cannot consistently estimate smooth boundaries. Stochastic soft-clustering algorithms are key to unlocking tight theoretical coverage.

Key Results

Across nonlinear and high-dimensional tasks, Weighted Conformal Clustering (Weighted CC) achieves target coverage ($1 - \alpha = 0.90$) with much smaller, more informative confidence sets than standard Split Conformal Clustering (Split CC).

Coverage and confidence set sizes across 2D and 50D Gaussian Mixture Models.
  • 50D Spectral Clustering: As shown in the bottom row of the figure above, when noise increases ($\sigma^2 \in \{2.3, 2.5\}$) or sample sizes are moderate, Split CC produces oversized, uninformative sets (averaging 4–5 labels out of 5 total clusters). Weighted CC maintains 90% coverage while keeping average set sizes compact (under 2 labels), hitting informative set sizes at $n=1,200$ that Split CC doesn't match until $n=5,000$.
  • Nonlinear Manifolds: On moons and circles using spectral clustering, Weighted CC preserves tight confidence sets across a much wider band of manifold noise than Split CC, naturally expanding set sizes only where manifolds overlap.
  • MNIST Deep Clustering: Using 10-fold cross-validation against true digit labels, the method achieves 0.872 average coverage (near the 0.90 target) with an average set size of 1.868. Crucially, 45.3% of test digits receive confident singleton sets near cluster centers, while multi-label sets (size 2 at 30.4%, size 3+ at 24.3%) neatly flag genuinely messy handwriting along cluster borders.

Limitations and Future Work

  • Fixed Cluster Count ($K$): The framework assumes the number of clusters $K$ is known and fixed beforehand.
  • Reliance on Estimator Consistency: Finite-sample coverage is explicitly bounded by the total variation distance between the estimated conditional probabilities and the true latent distribution. If a clustering algorithm or classifier completely misses the latent structure (e.g., severe misspecification or hard one-hot assignments), coverage can dip below nominal levels.
  • Future Directions: Proving theoretical consistency for complex nonlinear methods (like spectral clustering) remains an open problem. Furthermore, the authors suggest their augmented calibration trick could generalize as a broader design principle for other unsupervised conformal tasks beyond clustering.

Summary updated

Abstract

Clustering is a central tool for discovering latent structure in unlabeled data; yet modern clustering pipelines often end with a hard assignment of each observation to a cluster without rigorous measures of assignment uncertainty. We propose a novel weighted conformal approach for constructing valid confidence sets for cluster labels. The key difficulty is that the labels available for calibration are not observed ground-truth labels, but synthetic labels produced by a data-dependent clustering algorithm. Our method develops a conformal inference algorithm that corrects the resulting mismatch with the latent target labels through weights by formulating conformal clustering as a conditional label-distribution shift problem. We first derive an oracle procedure that attains finite-sample marginal coverage and then develop a computationally tractable and implementable version using estimated conditional label probabilities and novel augmented calibration. We show that the coverage of the estimated-weight procedure depends on the estimator, giving an explicit bound on the loss relative to the nominal level. Empirical studies demonstrate that the proposed weighted approach offers improvements over the recently proposed split conformal clustering procedure in terms of informative confidence set size, especially in nonlinear and high-dimensional clustering applications.
BibTeX
@inproceedings{nath2026weighted,
  author = {Anirban Nath and YoonHaeng Hur and Genevera I. Allen},
  title = {{Weighted Conformal Clustering}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=jxX0Xpi5Wc},
}
Figure