Papers
Topics
Authors
Recent
Search
2000 character limit reached

Adversarial Robustness on Insertion-Deletion Streams

Published 24 Feb 2026 in cs.DS | (2602.20854v1)

Abstract: We study adversarially robust algorithms for insertion-deletion (turnstile) streams, where future updates may depend on past algorithm outputs. While robust algorithms exist for insertion-only streams with only a polylogarithmic overhead in memory over non-robust algorithms, it was widely conjectured that turnstile streams of length polynomial in the universe size nn require space linear in nn. We refute this conjecture, showing that robustness can be achieved using space which is significantly sublinear in nn. Our framework combines multiple linear sketches in a novel estimator-corrector-learner framework, yielding the first insertion-deletion algorithms that approximate: (1) the second moment F2F_2 up to a (1+ε)(1+\varepsilon)-factor in polylogarithmic space, (2) any symmetric function F\cal{F} with an O(1)\mathcal{O}(1)-approximate triangle inequality up to a 2<sup>O(C)2<sup>{\mathcal{O}(C)} factor in O~(n<sup>1/C)</sup>S(n)\tilde{\mathcal{O}}(n<sup>{1/C})</sup> \cdot S(n) bits of space, where SS is the space required to approximate F\cal{F} non-robustly; this includes a broad class of functions such as the L1L_1-norm, the support size F0F_0, and non-normed losses such as the MM-estimators, and (3) L2L_2 heavy hitters. For the F2F_2 moment, our algorithm is optimal up to poly((logn)/ε)\textrm{poly}((\log n)/\varepsilon) factors. Given the recent results of Gribelyuk et al. (STOC, 2025), this shows an exponential separation between linear sketches and non-linear sketches for achieving adversarial robustness in turnstile streams.

Summary

  • The paper disproves the conjectured Ω(n)-space barrier by achieving adversarially robust (1+ε)-approximation of F2 with poly(1/ε, log n) space for polynomial-length insertion-deletion streams.
  • The estimator-corrector-learner framework combines recursively organized sketches with fresh randomness, limiting adaptive interactions and achieving approximately Õ(ε⁻⁴ log⁸ n) space for robust F2 estimation.
  • The framework also supports robust L2 heavy hitters and broad approximate-triangle-inequality functions, while leaving open tighter logarithmic bounds, p>2 moments, and implementation efficiency.

This paper refutes a long-standing conjecture that adversarially robust constant-factor approximation of frequency moments on insertion-deletion (turnstile) streams requires Ω(n)\Omega(n) space. The authors construct the first adversarially robust turnstile algorithms that achieve sublinear-in-nn space for F2F_2 moment estimation, L2L_2 heavy hitters, and a broad class of symmetric functions satisfying an approximate triangle inequality. The key conceptual contribution is a non-linear algorithmic framework—termed the estimator-corrector-learner framework—that composes many linear sketches, each of which is only required to withstand a small number of adaptive queries, thereby circumventing known lower bounds against linear sketches.

Background and motivation

In the adversarially robust streaming model of Ben-Eliezer, Jayaram, Woodruff, and Yogev, updates to an implicit frequency vector $\bx \in \mathbb{R}^n$ may be chosen adaptively based on the full transcript of prior updates and algorithm outputs; the algorithm must produce accurate estimates at every one of $m = \poly(n)$ time steps. For insertion-only streams, robustness is now achievable for many problems with only polylogarithmic overhead over non-robust algorithms. For turnstile streams, however, the situation was far less understood: differential-privacy-based approaches yield space sublinear in the stream length mm, but become linear in nn when $m = \poly(n)$.

The negative results are sharp for linear sketches: Hardt and Woodruff, followed by Gribelyuk et al. (FOCS 2024, STOC 2025), showed adaptive attacks demonstrating that any linear sketch achieving constant-factor approximation to FpF_p moments on adversarial insertion-deletion streams requires sketching dimension nn0. Since all previously known large-length turnstile algorithms are linear sketches, and since optimal non-adaptive turnstile algorithms were characterized by linear sketching, it was conjectured that any robust constant-factor nn1 algorithm needs nn2 space. This paper shows the conjecture is false.

The main result for F2 estimation

Theorem 1.1: For any nn3, there exists an adversarially robust insertion-deletion streaming algorithm that outputs nn4-approximations to the nn5 moment at all times using nn6 bits of space for nn7.

Because Braverman and Zamir's lower bound implies even non-adaptive nn8 estimation requires nn9 space, this bound is optimal up to F2F_20 factors. Combined with the linear-sketch lower bounds of Gribelyuk et al., the result establishes an exponential separation between linear and non-linear sketches for adversarial robustness on turnstile streams—a strong claim that directly contradicts the intuition that optimal turnstile algorithms "might as well be linear sketches," which holds in the oblivious setting but breaks under adaptivity.

The estimator-corrector-learner framework

The core difficulty is that linear sketches draw their randomness once at initialization and behave deterministically thereafter; an adaptive adversary can extract the random bits over F2F_21 queries and then construct a breaking input. The paper's remedy is to inject fresh randomness during execution by initializing new independent sketches mid-stream.

The simplified setting assumes a prefix vector F2F_22 is already sketched by a matrix F2F_23, while a suffix F2F_24 arrives online and can additionally be sketched by a fresh matrix F2F_25. Three components operate jointly:

  • Estimator: outputs F2F_26 as an estimate of F2F_27, where F2F_28 is the learner's current approximation of F2F_29. When L2L_20 is uncorrelated with L2L_21 relative to L2L_22, near-orthogonality makes this accurate.
  • Corrector: uses the sketch L2L_23 to detect incorrect estimates, returning its own estimate whenever the estimator fails.
  • Learner: maintains L2L_24 as a linear combination of queries on which the estimate was incorrect, updating via L2L_25.

The analysis hinges on a progress argument: an incorrect estimate forces L2L_26, so choosing the step size L2L_27 yields L2L_28. Since L2L_29, the iterate converges within $\bx \in \mathbb{R}^n$0 updates—hence the corrector interacts with the adversary only $\bx \in \mathbb{R}^n$1 times per block.

Robustness then follows from the bounded computation paths technique: a deterministic adversary can generate at most $\bx \in \mathbb{R}^n$2 distinct output patterns, so setting the failure probability to roughly $\bx \in \mathbb{R}^n$3 and applying a union bound protects every sketch. Space scales linearly in $\bx \in \mathbb{R}^n$4 (where $\bx \in \mathbb{R}^n$5 is the block count), giving a direct quantitative trade-off between how often the estimator errs and total memory.

Recursion via a tree structure

To handle the fact that lower-level sketches themselves face many adaptive queries, the algorithm recurses: estimating $\bx \in \mathbb{R}^n$6 given a rounded sketch of $\bx \in \mathbb{R}^n$7 is structurally identical to the original problem but on a shorter stream. Concretely, the stream is partitioned into a $\bx \in \mathbb{R}^n$8-ary tree of height $\bx \in \mathbb{R}^n$9 with $m = \poly(n)$0. Setting $m = \poly(n)$1 and $m = \poly(n)$2 ensures each sketch handles at most $m = \poly(n)$3 adaptive interactions, and only one active sketch per level is maintained at any time. The total space works out to $m = \poly(n)$4 bits, dominated by $m = \poly(n)$5 levels each holding $m = \poly(n)$6 sketches of dimension $m = \poly(n)$7. Correctness is established through a level-wise invariant showing each output lies within a $m = \poly(n)$8-factor band around $m = \poly(n)$9, with errors telescoping across at most mm0 levels.

L2 heavy hitters

Building on the robust mm1 estimator, the paper gives the first adversarially robust turnstile algorithm for mm2 heavy hitters in mm3 space. Given an approximate norm bound mm4, the algorithm deterministically probes each coordinate by injecting mass mm5 and recomputing the norm in both directions. A clean analytic separation shows that heavy coordinates (mm6) increase the squared norm by at least mm7-scale amounts, whereas non-heavy coordinates increase it by at most mm8-scale amounts—a constant gap distinguishable by a mm9-approximation. Since nn0 heavy hitters for nn1 are contained in the nn2 set, this yields robust nn3 heavy hitters for all nn4, essentially matching the best classical (non-adaptive) bounds up to polynomial factors in nn5.

Generalization to approximate triangle inequality functions

The framework extends to symmetric functions nn6 satisfying a nn7-approximate triangle inequality, provided a non-adaptive turnstile sketch using nn8 bits achieving nn9-approximation exists for some constant $m = \poly(n)$0. The resulting robust algorithm uses $m = \poly(n)$1 bits and outputs a $m = \poly(n)$2-approximation for any constant $m = \poly(n)$3.

The progress mechanism changes: the estimator $m = \poly(n)$4 is always an overestimate by triangle inequality, and if it exceeds $m = \poly(n)$5, then $m = \poly(n)$6, so resetting the iterate to $m = \poly(n)$7 reduces $m = \poly(n)$8 by a constant factor. Combined with the assumption that $m = \poly(n)$9 takes values in FpF_p0, this bounds the number of updates per level to FpF_p1.

A notable application class arises from Bernstein functions FpF_p2: for FpF_p3 with FpF_p4, concavity and subadditivity give FpF_p5, i.e., FpF_p6. The paper further verifies that such FpF_p7 satisfies the slow-jumping, slow-dropping, and predictable conditions of the Braverman–Chestnut–Woodruff–Yang zero-one law, guaranteeing non-robust sketches exist. This covers the FpF_p8 norm, support size FpF_p9, nn00 norms for nn01, and robust-statistical losses including pseudo-Huber, Cauchy/Lorentzian, generalized Charbonnier, Welsch/Leclerc, and Geman–McClure losses. Notably, these include non-normed objectives outside the reach of standard moment machinery.

Limitations and open questions

Several caveats qualify the results. First, the general triangle-inequality theorem degrades the approximation ratio from the non-robust nn02 to nn03, and requires nn04 values to lie in a polynomial range—an assumption that excludes functions with extreme dynamic ranges. Second, the nn05 result achieves optimality only up to nn06 factors; tightening these exponents (e.g., removing the nn07 overhead from the tree structure) remains open. Third, for nn08 no sublinear-space robust algorithm is known, and whether the exponential separation between linear and non-linear sketches extends beyond constant-factor approximations or to other function classes is unresolved. Finally, the paper does not address update time or the practicality of maintaining the full tree structure, leaving implementation cost as an open consideration.

Conclusion

This paper disproves the conjectured nn09 barrier for adversarially robust turnstile streaming by introducing a non-linear composition of linear sketches in which each component faces only a bounded number of adaptive interactions. The framework delivers near-optimal polylogarithmic-space robust nn10 estimation, matching robust nn11 heavy hitters, and a generic reduction for approximate-triangle-inequality functions down to nn12 space. Its principal conceptual lesson is that the equivalence between turnstile streaming and linear sketching, valid in the oblivious setting, does not survive adaptivity: robustness demands fresh randomness injected throughout execution rather than fixed upfront.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.