Robust Streaming Against Low-Memory Adversaries

Omri Ben-Eliezer, Krzysztof Onak, Sandeep Silwal

In the world of data streaming, we usually assume the data arrives "obliviously"—like a ticker tape that was written before the algorithm even started running. But in the real world, data sources can be adaptive. If you’re running a fraud detection system or a high-frequency trading bot, the "stream" might react to your algorithm's outputs. This is the domain of adversarially robust streaming.

A new paper, "Robust Streaming Against Low-Memory Adversaries," by Omri Ben-Eliezer, Krzysztof Onak, and Sandeep Silwal, challenges a long-standing assumption in this field: that the adversary is an all-knowing, infinite-memory entity.

TL;DR

This paper introduces a more realistic model for robust streaming where the adversary is "low-memory," meaning it can't remember the entire history of the interaction. The authors prove that while these adversaries are still dangerous, we can design much more efficient algorithms (polylogarithmic space) against them for a wide class of problems like $F_p$-moment estimation and triangle counting.

What Problem Does This Paper Address?

Standard robust streaming models are notoriously difficult. For fundamental tasks like estimating the $F_2$ moment (the sum of squares of frequencies) in a "turnstile" stream (where items can be added or deleted), there is an exponential gap. In the oblivious setting, you only need $O(\log n)$ space; against a fully adaptive adversary, the best known algorithms require $O(m^{0.4})$ space—where $m$ is the stream length.

The authors argue that this gap exists because the adversary is "too strong." In current models, the adversary has infinite memory and can perfectly reconstruct the algorithm's internal state by observing every single output. The authors ask: Can we close this exponential gap if the adversary is also memory-constrained, just like the algorithm?

Methods

The authors define a hierarchy of adversarial power based on memory:

  1. Memoryless Adversaries: At each step, the adversary only sees the most recent output of the algorithm. It doesn't know the current time or any previous outputs.
  2. Low-Memory Adversaries: Similar to memoryless, but with a small "persistent memory" buffer of $k$ bits.
  3. Deterministic vs. Randomized: They distinguish between adversaries that follow a fixed strategy based on the last output and those that can toss coins to decide the next update.

To build robust algorithms against these foes, the authors introduce the $\tau$-Stream Adversary Model. This is a middle ground where an adversary picks $\tau$ different streams in advance and adaptively switches between them based on the algorithm's behavior. By showing that a low-memory adversary can be "simulated" by a $\tau$-stream adversary (where $\tau$ depends on the adversary's memory size), they can use a "median-of-means" style amplification to ensure the algorithm stays accurate across all possible adversarial paths.

Datasets

As a theoretical computer science paper, no empirical datasets were used. Instead, the authors provide adversarial constructions—mathematical proofs showing how a randomized memoryless adversary can craft a "difficult" stream (one with high "flip number" and high density) to try and fool existing robustification techniques.

Key Insights and Ideas

  • The Power of Random Walks: Even a memoryless adversary can be formidable. By using a randomized strategy (a "random walk" based on the algorithm's last estimate), a memoryless adversary can force the underlying value of the stream to fluctuate wildly, potentially breaking algorithms that rely on the stream being "stable."
  • Order Invariance is a Shield: The paper highlights that many streaming algorithms (like linear sketches) are "order-invariant"—the final result doesn't change if you shuffle the updates. This property is crucial because it allows the algorithm to handle an adversary that adaptively merges different pre-generated streams.
  • Rounding as a Defense: For deterministic adversaries, the authors show that simply "rounding" the algorithm's output to a coarse grid (an $\epsilon$-net) is incredibly effective. It limits the amount of information the adversary can learn, effectively "blinding" them to the algorithm's exact state.

Key Results

  • Deterministic Victory: Against a deterministic memoryless adversary, any "reasonable" function can be estimated using only $O(\frac{\log \alpha}{\epsilon} \cdot \log(mn))$ bits of space. This effectively closes the gap for the deterministic case.
  • Randomized Robustness: For randomized adversaries with $k$ bits of memory, the authors provide a general framework to robustify oblivious algorithms. The space complexity scales with $2^k$. If $k$ is small (e.g., $O(\log \log m)$), the algorithm remains highly efficient.
  • Specific Applications: They provide the first polylogarithmic-space robust algorithms for:
  • $F_p$-moment estimation for $p \in [0, 2]$.
  • Triangle counting in graphs under turnstile updates.

Limitations and Future Work

The most significant limitation is the exponential dependence on $k$ (the adversary's persistent memory). If the adversary has even a moderate amount of memory, the $2^k$ factor in the space complexity becomes prohibitive.

The authors pose several open questions:

  • Can we achieve a space complexity that is polynomial in $k$ rather than exponential?
  • Can these techniques be extended to problems where the output is large (like identifying "heavy hitters") rather than just a single number?
  • Are there limits to existing state-of-the-art techniques (like the Woodruff-Zhou $F_2$ estimator) when facing these specific low-memory adversaries?

This work opens a new "middle way" in streaming research, moving away from worst-case "god-like" adversaries toward more realistic, computationally-bounded 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