Robust Streaming Against Low-Memory Adversaries

Omri Ben-Eliezer, Krzysztof Onak, Sandeep Silwal · DOI

Abstract

In data streaming, the assumption that data arrives obliviously is often violated by adaptive real-world sources. While robust streaming against all-powerful adversaries typically requires significant space, this paper explores a more realistic middle ground: the low-memory adversary. By constraining the adversary's memory, we demonstrate that it is possible to design highly efficient, polylogarithmic-space algorithms for tasks such as $F_p$-moment estimation and triangle counting.

Introduction

Traditional data streaming models often treat the incoming data as a fixed "ticker tape" written before the algorithm begins. However, in applications like fraud detection or high-frequency trading, the stream may react dynamically to the algorithm's outputs. This necessitates adversarially robust streaming.

Historically, there has been an exponential space gap between oblivious and robust streaming. For example, estimating the $F_2$ moment in a turnstile stream requires only $O(\log n)$ space in the oblivious setting, but known robust algorithms against fully adaptive adversaries require $O(m^{0.4})$ space. This paper, "Robust Streaming Against Low-Memory Adversaries" by Ben-Eliezer, Onak, and Silwal, argues that this gap stems from assuming an "all-knowing" adversary. By modeling adversaries with finite memory, the authors bridge this gap.

The Low-Memory Adversary Model

The core contribution of this work is a hierarchy of adversarial power based on memory constraints. Instead of an infinite-memory entity that perfectly reconstructs the algorithm's state, the authors consider:

  1. Memoryless Adversaries: These adversaries only see the most recent output of the algorithm and lack knowledge of the current time or previous history.
  2. Low-Memory Adversaries: These possess a small "persistent memory" buffer of $k$ bits to track limited state information.
  3. Deterministic vs. Randomized: Adversaries are further categorized by whether their strategies are fixed or involve random coin tosses.
The interaction model between a low-memory adversary and a streaming algorithm.

As shown in the figure above, the adversary interacts with the streaming algorithm by receiving estimates and providing updates, while managing its own internal working and persistent memory.

Methods: The $\tau$-Stream Framework

To counter these adversaries, the authors introduce the $\tau$-Stream Adversary Model. In this setting, an adversary selects $\tau$ different streams in advance and adaptively switches between them based on the algorithm's behavior.

The authors prove that a low-memory adversary can be simulated by a $\tau$-stream adversary, where $\tau$ is a function of the adversary's memory size. By employing a "median-of-means" style amplification, the algorithm can maintain accuracy across all potential adversarial paths. Additionally, for deterministic adversaries, the authors show that rounding the algorithm's output to a coarse grid (an $\epsilon$-net) effectively "blinds" the adversary to the algorithm's exact internal state, preventing it from crafting malicious updates.

Key Insights

  • The Power of Random Walks: Even memoryless adversaries can be dangerous. A randomized memoryless adversary can use a "random walk" strategy to force the stream's value to fluctuate, potentially breaking algorithms that assume stream stability.
  • Order Invariance: Many streaming algorithms (like linear sketches) are order-invariant. This property is a natural defense, as it allows the algorithm to handle adversaries that merge pre-generated streams.

Key Results

The paper provides the first polylogarithmic-space robust algorithms for several fundamental problems:

  • Deterministic Victory: Against deterministic memoryless adversaries, any reasonable function can be estimated using $O(\frac{\log \alpha}{\epsilon} \cdot \log(mn))$ bits, effectively closing the space gap.
  • Randomized Robustness: For adversaries with $k$ bits of memory, the space complexity scales with $2^k$. This remains highly efficient for small $k$ (e.g., $O(\log \log m)$).
  • Applications: The framework yields robust algorithms for $F_p$-moment estimation ($p \in [0, 2]$) and triangle counting in graphs under turnstile updates.

Limitations and Future Work

The primary limitation is the exponential dependence on the adversary's memory size $k$. If $k$ grows significantly, the $2^k$ factor becomes a bottleneck. Future research may explore whether space complexity can be reduced to a polynomial function of $k$, or if these techniques can be extended to "heavy hitter" problems where the output is a large set rather than a single scalar. This work establishes a vital "middle way" in streaming research, shifting focus toward computationally-bounded, realistic opponents.

Summary updated

BibTeX
@inproceedings{beneliezer2026robust,
  author = {Omri Ben-Eliezer and Krzysztof Onak and Sandeep Silwal},
  title = {{Robust Streaming Against Low-Memory Adversaries}},
  booktitle = {ITCS},
  year = {2026},
  doi = {10.4230/lipics.itcs.2026.16},
}
Figure