Coresets for Clustering Using Noisy Comparisons and Few Distance Queries

Amir Carmel, Robert KrauthgamerNeurIPS 2026

TL;DR

When clustering massive datasets, computing exact distances between points—like running a heavy neural network embedding—can be prohibitively expensive. This paper shows how to shrink a massive dataset into a tiny, faithful summary (an $\epsilon$-coreset) by relying mostly on cheap, noisy "which pair is closer?" comparisons and making only a tiny, polylogarithmic number of exact distance measurements. It’s the first method in this setting to achieve arbitrary $(1 \pm \epsilon)$ precision while matching optimal summary sizes.

What Problem Does This Paper Address?

Imagine organizing millions of images or text documents using $k$-means or $k$-median clustering. Classically, we assume calculating the distance between any two data points is cheap. In modern machine learning, however, "distance" often requires passing items through a massive, expensive embedding model, or asking human annotators who can easily say "A is closer to B than C is to D," but can't give you a numerical distance of 0.734.

A common workaround is pairing a massive, accurate model with a tiny, fast proxy model. Their exact numerical distances don't match, so you use the cheap model for relative comparisons ("which pair is closer?") and save the expensive model for when you really need exact distances.

This setup is formalized as the Rank-Measure (RM) model: you get a cheap "quadruplet oracle" for noisy relative comparisons (where errors are persistent—asking twice won't fix a wrong answer) alongside an expensive "distance oracle" for exact distances. To cluster at scale, we want to build a coreset—a small, weighted subset of points that preserves the clustering cost of the full dataset within a $(1 \pm \epsilon)$ factor. Prior work in the RM model could only build rough, constant-factor coresets. Achieving an arbitrarily accurate $\epsilon$-coreset using very few exact distance queries remained an open problem.

Methods

The authors introduce a clever two-phase pipeline that bridges noisy comparisons (Phase 1) and classical full-access geometry (Phase 2):

  1. Rough Centers & Noisy Sorting: Using an existing comparison-based algorithm (ALG-G) and a tiny number of exact distances (Mettu-Plaxton), they find $k$ rough cluster centers and partition the data. Next, they sort points by their distance to their assigned center using only the noisy comparison oracle (ProbSort). Because of persistent noise, this sorted list isn't perfect, but no point is displaced by more than $D = O(\log n)$ positions from its true rank.
  2. Geometric Rings via Noisy Binary Search (The Secret Sauce): Following a classic framework by Chen (2009), the authors slice each cluster into concentric geometric "rings" (where the outer radius is twice the inner radius). Normally, putting $n$ points into rings takes $n$ exact distance queries. Instead, the authors run binary search on their noisily sorted list to find the approximate ring boundaries. Because the list's max error is $O(\log n)$, they only need to pay for exact distance queries inside a tiny $O(\log n)$ "ambiguity zone" around each boundary! Everyone else is classified for free by list position alone.
  3. Sample and Compress: They sample uniformly within each ring (snapping super-close points directly to the center) to get a sublinear intermediate coreset $S_1$. Finally, in Phase 2, because $S_1$ is already tiny, they simply query the exact distances for $S_1$ and feed it into a state-of-the-art offline coreset algorithm to squeeze it down to optimal size $S_2$.

Datasets

The authors evaluate $k$-means ($z=2$) on three standard real-world datasets (no new benchmarks are introduced), pairing cheap and expensive encoders to simulate the RM oracles:

  • 20-Newsgroups (18,846 text documents): bge-micro-v2 (17M params) vs. bge-large-v1.5 (335M params), yielding a natural comparison disagreement rate ($\varphi_{\text{act}}$) of 0.255.
  • STL-10 (13,000 images): MobileNetV3-Small (2.5M params) vs. DINOv2-Large (304M params), yielding a disagreement rate of 0.416.
  • Census 1990 (2.45M tabular records): Used with synthetic comparison noise to test massive-scale query growth.

Key Insights and Ideas

  • Turning Dislocation Bounds into Query Savings: Persistent comparison noise makes exact sorting impossible, but bounding how far an item wanders from its true rank ($O(\log n)$) turns a geometric classification problem into a cheap 1D boundary-cleanup problem.
  • Two-Stage Coreset Composition: You don't need to reinvent optimal coreset math under noisy constraints. By using uniform ring sampling—which asks very little of the geometry—just to get the data size sublinear in $n$, you can let off-the-shelf full-access algorithms handle the final compression.
  • Theory vs. Practice in Noise Thresholds: Theoretical sorting guarantees break down when the comparison error rate $\varphi \ge 1/4$ (0.25). Yet on real image embeddings (STL-10), where the cheap model disagreed with the big model 41.6% of the time, the algorithm still worked remarkably well.

Key Results

  • Theoretical Bounds: For $n$ points in $\mathbb{R}^d$ with noise $\varphi < 1/4$, the algorithm builds an $\epsilon$-coreset matching optimal classical size bounds—completely independent of $n$ and $d$. It uses $O(kn \operatorname{polylog} n)$ cheap comparison queries and only $\operatorname{poly}(k, \epsilon^{-1}, \log n)$ exact distance queries (specifically scaling with $\log^2 n$).
  • Sublinear Scaling: On Census 1990, scaling $n$ nearly $64\times$ (from 15,625 to 1,000,000 points) caused exact distance queries to grow at a crawl—staying well under 35,000 queries even for $k=20$.
  • Competitive Accuracy: Across coreset sizes from 200 to 1,000, the algorithm's worst-case cost error closely tracks full-access baselines (BICO, Sensitivity Sampling, Lightweight Coresets), exhibiting only a modest accuracy gap while computing orders of magnitude fewer exact distances.

Limitations and Future Work

  • Theoretical Noise Barrier: The theoretical proofs strictly require the comparison oracle's error rate to be $\varphi < 1/4$, even though empirical performance holds up past $\varphi = 0.4$.
  • Theory-to-Practice Heuristics: To make the implementation practical, the authors swapped out two theoretical subroutines (Mettu-Plaxton and ProbSort) for k-means++ and standard Merge-Sort with a hardcoded dislocation window ($D=30$), which lacks formal guarantees under persistent noise.
  • Future Directions: The authors expect their ring-classification and sampling techniques to naturally extend to other restricted-access models where exact distance evaluations are a bottleneck.

Summary updated

Abstract

Coresets are a fundamental tool for scaling clustering algorithms, but standard constructions assume full access to the pairwise distances. In many modern settings, access to distances is costly and thus limited, and algorithms must instead rely on inexpensive comparison queries. We study coreset construction in the Rank-Measure (RM) model, where the algorithm can make noisy comparison queries to a quadruplet oracle alongside a small number of distance queries. In this model, we present the first algorithm to construct an $\epsilon$-coreset for $(k,z)$-clustering in Euclidean space. It matches the coreset-size bounds known in the classical model, while using only polylogarithmically many distance queries in the input size. Our approach is based on a uniform-sampling framework [Chen, SICOMP 2009], which decomposes the input into geometric rings and samples uniformly within each ring. We implement this approach using primarily noisy comparison queries, and then compress the result using a standard full-access coreset construction. In contrast, prior work in oracle-based clustering achieved only constant-factor guarantees. We complement our theoretical findings with experiments that demonstrate strong empirical performance against full-access baselines while using significantly fewer distance computations.
BibTeX
@inproceedings{carmel2026coresets,
  author = {Amir Carmel and Robert Krauthgamer},
  title = {{Coresets for Clustering Using Noisy Comparisons and Few Distance Queries}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=lhTqQ3cQIZ},
}
Figure