Tight Bounds on the Cost of Adaptivity for the Meyerson Sketch

Edith Cohen, Elena Gribelyuk, Pasin Manurangsi, Uri StemmerarXiv 2026

This paper explores the robustness of one of the most fundamental algorithms in online clustering: the Meyerson Sketch. While the algorithm is a "workhorse" for processing massive streams of data, its classical guarantees assume the data is fixed in advance. This paper asks: what happens if the data source is an adversary that watches the algorithm’s every move?

TL;DR

The authors prove that the Meyerson Sketch is surprisingly robust against adaptive adversaries. They show that an adversary can only inflate or deflate the algorithm's expected cost by a factor of $O(\log \Delta / \log \log \Delta)$, where $\Delta$ is the aspect ratio of the data. This bound is asymptotically tight and implies that the sketch remains a reliable tool for streaming $k$-clustering even in interactive or adversarial environments.

What Problem Does This Paper Address?

In the Online Facility Location (OFL) problem, points arrive one by one. For each point, an algorithm must decide immediately and irrevocably: do I open a new "facility" here (paying a fixed cost $f$), or do I "route" this point to the nearest existing facility (paying the distance $d$)?

The Meyerson Sketch is a elegant, randomized solution: it opens a facility at a new point with probability $d/f$. It is famous for being space-efficient (it only stores the open centers) and having strong competitive ratios against an offline optimum.

However, standard analyses assume an oblivious adversary—one who decides the entire sequence of points before the algorithm starts. In many modern applications (like adaptive data analysis or interactive systems), the input might be adaptive. An adaptive adversary can choose the next point based on which facilities the algorithm has already opened. This could potentially "steer" the algorithm into a very high-cost configuration, voiding its classical guarantees.

Methods

The authors quantify the "price of adaptivity" using a clever benchmark called Oblivious Replay.

  1. Adaptive Run: An adversary generates a sequence of points $X$ by observing the algorithm's choices.
  2. Oblivious Replay: We take that exact same sequence $X$ and run the Meyerson Sketch on it again, but with fresh random coins.

By comparing the expected cost of these two runs, the authors isolate the specific impact of adaptivity from the inherent difficulty of the sequence itself.

To prove the upper bounds, they use a "Dear Charging Lemma." They categorize steps as "cheap" (where the adaptive run's opening probability is similar to the replay's) or "dear" (where the adversary has successfully created a gap). They prove that "dear" steps can be charged to facilities opened in the replay run, and that each replay facility can only be charged a limited number of times before the geometric scales are "blocked."

Datasets

As a theoretical work, this paper does not use empirical datasets. Instead, it employs synthetic mathematical constructions to prove lower bounds (the "attacks"):

  • Real-line generators: Deterministic sequences of points on a 1D line used to show that the $\log \Delta / \log \log \Delta$ inflation/deflation is actually possible.
  • High-dimensional Euclidean space ($R^{D+1}$): Used to demonstrate that while the total cost is bounded, the routing component of the cost can be inflated exponentially relative to the dimension if the adversary is powerful enough.

Key Insights and Ideas

  • Fresh Coins are a Shield: Unlike many streaming algorithms that use a fixed hash function or a "persistent" random matrix (which an adversary can eventually learn), the Meyerson Sketch flips a fresh coin for every single point. This lack of persistent state makes it much harder to "break."
  • Geometry vs. Time: The cost of adaptivity depends on the aspect ratio ($\Delta$, the ratio of the largest to smallest distance) rather than the number of points ($n$). This means the algorithm's relative performance doesn't necessarily degrade as the stream gets longer.
  • Symmetry in Two-Sided Adversaries: The authors introduce a "two-sided" adversary (who sees both the adaptive and replay runs) as an analytical tool. Because this model is symmetric, proving that an adversary can't inflate the cost automatically proves they can't deflate it either.
  • Robust $k$-Clustering: By running multiple Meyerson Sketches at different price scales, the authors build a $k$-clustering summary that is robust to adaptivity, using only $O(k \cdot \text{polylog } n)$ space.

Key Results

  • Tight Bounds: The adaptivity ratio for expected cost is $\Theta(\log \Delta / \log \log \Delta)$. This is the first tight characterization of adaptivity for this class of algorithms.
  • High Probability Robustness: They provide "time-uniform" bounds, showing that with high probability, the adaptive cost stays close to the replay cost at all times $t$ simultaneously, not just at a fixed stopping point.
  • Semi-metric Extension: The results hold not just for standard metrics, but for "semi-metrics" (like squared Euclidean distance used in $k$-means), where the triangle inequality only holds approximately.

Limitations and Future Work

  • Routing Cost Vulnerability: While the total cost (facilities + routing) is well-behaved, the authors show that an adversary can make the routing cost much worse than the replay's routing cost in high dimensions. Finding an upper bound for the routing ratio remains an open problem.
  • Adaptive-to-OPT Gap: The paper bounds the ratio between an adaptive run and an oblivious replay. However, the gap between an adaptive run and the absolute offline optimum (OPT) is still slightly open. The current upper bound is $O(\frac{\log^2 n}{(\log \log n)^2})$, but it's unclear if this is tight.
  • Coreset Accuracy: The current robust $k$-clustering sketch provides a constant-factor approximation. The authors suggest that achieving a $(1 \pm \epsilon)$-coreset under adaptive inputs is a significant next step for the field.

Summary updated

BibTeX
@misc{cohen2026tight,
  author = {Edith Cohen and Elena Gribelyuk and Pasin Manurangsi and Uri Stemmer},
  title = {{Tight Bounds on the Cost of Adaptivity for the Meyerson Sketch}},
  year = {2026},
  eprint = {2609.06669},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.06669},
}
Figure