paper

Adversarial Robustness for Small Frequency Moments and a Weak Equivalence Theorem for Turnstile Streams

arXiv:2607.06312

Abstract

We study adversarially robust algorithms for insertion-deletion (turnstile) streams, where future updates may depend on past algorithm outputs. While recent work achieved a robust -approximation for the second moment in polylogarithmic space, achieving high accuracy for other frequency moments remained a major open question; for , including the fundamental distinct elements problem (), only constant-factor approximations were known in sublinear space. We close this gap, showing that -approximate robustness can be achieved in polylogarithmic space for all . Our approach generalizes the estimator-corrector-learner framework to non-Hilbert spaces by dynamically maintaining implicit isometric embeddings into and performing regularized kernel ridge regression over adaptively discovered hard queries, yielding the first insertion-deletion algorithms that approximate: (1) the -th frequency moment up to a -factor in poly space for all , including the support size , (2) metric and information-theoretic quantities, including the Earth Mover Distance (EMD) and -median clustering cost over up to an -factor, and the Shannon entropy up to an -additive error, and (3) non-normed symmetric losses defined by Bernstein functions up to a -factor. For the moments, our algorithm is optimal up to poly factors. Furthermore, we establish a weak equivalence between classical oblivious sketching and adversarial robustness. We prove that for any sub-multiplicative norm, the existence of an efficient classical linear sketch is equivalent to the existence of an efficient robust turnstile algorithm, up to polynomial factors, formalizing embeddability as the fundamental mechanism governing both models.

FOCS 2026