Adaptively Robust Resettable Streaming

Edith Cohen, Elena Gribelyuk, Jelani Nelson, Uri Stemmer

Abstract

In modern data processing, streaming algorithms are essential for maintaining compact summaries—known as "sketches"—of massive datasets. However, when streams are adaptive (meaning future data depends on the algorithm's previous outputs), adversaries can reverse-engineer a sketch's internal randomness and inject poisoned updates. This paper introduces the first space-efficient, adaptively robust algorithms for the resettable streaming model, where data values can be increased or wiped to zero. By integrating Differential Privacy via the Binary Tree Mechanism, the authors protect the algorithm's internal randomness, achieving accurate "prefix-max" estimates using only polylogarithmic space.

Introduction: The Threat of Adaptive Streams

Traditionally, streaming algorithms assume data arrives in a fixed, predetermined sequence. Yet, in real-world applications like recommendation engines, active resource monitoring, and security systems, streams are often adaptive. This creates a severe vulnerability: an adversary can observe the sketch's output, deduce its internal state, and craft inputs that cause massive estimation errors.

This challenge is particularly acute in the resettable streaming model. In this model, keys can either be increased or completely reset to zero, making it highly relevant for applications requiring machine unlearning or data deletion. Unfortunately, standard robustification techniques fail here because the tracked statistics can oscillate wildly between zero and their maximum value. Previous attempts to create robust wrappers for resettable streams required space that grew polynomially with the stream length ($T$), defeating the primary purpose of using a space-efficient sketch.

The Vulnerability of Existing Sketches

To illustrate the fragility of current methods, the authors formalize a "Sample-and-Delete" attack. Consider a simple Bernoulli sampling sketch. An adversary can insert a key and check if the sketch's estimate increases. If it does, the adversary knows the key was sampled and immediately deletes it. By repeating this process, the adversary systematically biases the sample toward zero, rendering the sketch useless. The paper provides formal proofs demonstrating that existing non-robust sketches fail catastrophically under such adaptive inputs.

A New Approach: Differential Privacy as an Algorithmic Shield

To overcome these vulnerabilities, the authors abandon "black-box" wrappers and design dedicated robust sketches for cardinality ($L_0$), sum ($L_1$), and Bernstein statistics. Their solution relies on two core pillars:

  1. Differential Privacy (DP) for Stability: Rather than using DP to protect user data, the authors employ it to protect the algorithm's internal state. By adding carefully calibrated noise to the sketch's output, they prevent an adversary from learning enough about the internal randomness to craft a successful attack.
  2. The Binary Tree Mechanism: A naive application of DP—adding independent noise at every step—would destroy the sketch's accuracy over time. To maintain a low space complexity, the authors utilize the Binary Tree Mechanism for "continual observation." This mechanism maintains noisy prefix sums of updates to the sketch's internal counters. This provides an exponential improvement in robustness, allowing for a number of adaptive interactions nearly equal to the stream length itself.

Key Theoretical Results

This paper is fundamentally theoretical, focusing on algorithmic design and mathematical proofs rather than empirical benchmarks. The primary achievement is the introduction of the first adaptively robust sketches for the resettable model that require only polylogarithmic space—specifically, $O(\text{poly}(\epsilon^{-1}, \log T, \log \delta^{-1}))$ bits.

Because it is mathematically impossible to achieve a standard $(1+\epsilon)$-relative error guarantee in this model using polylogarithmic space, the authors bypass this limitation by targeting a prefix-max guarantee. This means the estimation error is bounded relative to the maximum value the statistic has ever reached in the stream's history, rather than its current (potentially reset) value.

Furthermore, they demonstrate that a wide class of sublinear functions (Bernstein statistics, such as logarithmic growth or soft capping) can be effectively approximated using a linear combination of these robust sum and cardinality sketches.

Limitations and Future Work

While this framework successfully secures sublinear statistics, it does not currently support super-linear statistics like the $L_2$ norm (sum of squares). Current sampling techniques for $L_2$ rely on "sticky" per-key randomness, which is inherently difficult to hide from an adaptive adversary.

Additionally, while the authors solve the "resettable" model (where values drop exactly to zero), the more general ReLU model remains an open problem. In the ReLU model, values can be decremented by arbitrary amounts but never drop below zero. These partial decrements can cause "bias amplification" that is much harder to clear than a total reset. Finally, the authors suggest that incorporating more advanced DP variants, such as Zero-Concentrated DP (zCDP), could further tighten the bounds and optimize the constant factors in their space complexity.

Summary updated

BibTeX
@inproceedings{cohen2026adaptively,
  author = {Edith Cohen and Elena Gribelyuk and Jelani Nelson and Uri Stemmer},
  title = {{Adaptively Robust Resettable Streaming}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=5SMn6N9SXq},
}
Figure