Relaxed Models for Adversarial Streaming: The Bounded Interruptions Model and the Advice Model

Menachem Sadigurschi, Moshe Shechner, Uri StemmerESA 2023

Abstract

Classical streaming algorithms often assume an oblivious adversary, where the data stream is fixed in advance. However, in many real-world applications, adversaries can adaptively change the stream based on the algorithm's previous outputs. While fully adversarially robust streaming algorithms exist, they often incur a significant memory overhead. This paper introduces two intermediate models—the Advice Model and the Bounded Interruptions Model—designed to bridge the gap between oblivious and adversarial streaming. By leveraging Differential Privacy and Sketch Switching, the authors provide generic reductions that achieve robustness with improved space complexity.

Introduction

In the standard streaming model, an algorithm processes a sequence of items to compute a function while using sublinear space. Most classical results assume the stream is "oblivious," meaning the sequence of items does not depend on the algorithm's internal random coins. In contrast, an adaptive adversary observes the algorithm’s outputs and can craft future inputs to exploit its specific state, often leading to a total failure of accuracy.

Achieving adversarial robustness typically requires a "space blowup," where the memory requirements increase significantly compared to the oblivious setting. This research explores whether intermediate models can provide a more realistic middle ground, offering robustness against limited adaptivity while maintaining memory efficiency.

The Proposed Models

The authors propose two distinct frameworks to quantify and manage adversarial adaptivity:

1. Adversarial Streaming with Advice (ASA)

In the ASA model, the algorithm is permitted to occasionally query an external source for one bit of "advice"—a predicate of the stream processed so far—every $\eta$ queries. This model represents scenarios where a streaming system might have access to a more powerful, albeit restricted, secondary monitoring process.

2. Adversarial Streaming with Bounded Interruptions (ASBI)

In the ASBI model, the adversary is partially adaptive. They can observe all outputs but are limited in how many times they can "interrupt" and modify the future suffix of the stream. If $R$ is the number of interruptions, the adversary can only change the stream's direction a fixed number of times, rather than at every single time step.

Methodology and Technical Contributions

Differential Privacy as a Shield

For the Advice Model (ASA), the authors utilize Differential Privacy (DP) in a novel way. Instead of protecting individual data points, DP is used to protect the algorithm's internal randomness. By running multiple instances of an oblivious algorithm and outputting a "private median," the authors ensure that the adversary cannot easily infer the algorithm's internal state. This prevents the adversary from "overfitting" their attacks to the specific random coins of the sketch. The occasional advice bits are then used to "reset" the algorithm's accuracy when the privacy budget or error grows too large.

Sketch Switching

For the Bounded Interruptions Model (ASBI), the authors employ a Sketch Switching technique. The algorithm maintains $2R$ copies of an oblivious sketch. At any given time, two copies are active. If these two copies begin to diverge significantly—indicating that the adversary may have successfully biased the current sketch—the algorithm discards the compromised pair and switches to a fresh, independent pair of sketches. This ensures that the adversary's influence is contained within a limited number of "failed" sketches.

Key Results

The paper provides several theoretical bounds demonstrating the efficiency of these models:

  • ASA Efficiency: For linear streaming algorithms (where states can be combined, such as the AMS sketch), the authors provide a transformation achieving robustness with space roughly proportional to $\eta \cdot s^2$ (where $s$ is the original space). For $F_2$ estimation, they achieve $\alpha$-accuracy using $\tilde{O}(\eta/\alpha^4)$ space.
  • ASBI Efficiency: The authors demonstrate a generic reduction that resists $R$ interruptions using $O(R \cdot s)$ space. For $F_2$ estimation, this results in a space complexity of $\tilde{O}(R/\alpha^2)$.
  • Hardness Results: The authors prove that advice is not a universal solution. For certain problems like $\ell_0$-sampling, the problem remains fundamentally difficult even if the algorithm receives a bit of advice for every query, showing that some tasks are inherently sensitive to adaptivity.

Discussion and Limitations

While these models provide a powerful "knob" for balancing robustness and memory, certain challenges remain. The current construction for the Advice Model requires the underlying algorithm to be linear. While many popular sketches (like Count-Min or AMS) meet this criterion, non-linear algorithms cannot yet benefit from this specific transformation.

Furthermore, while the theoretical space complexity is improved, the constants associated with Differential Privacy mechanisms can be large in practice. Future work is needed to refine these constants and determine the exact optimal dependency on the number of interruptions ($R$) in the ASBI model, as a gap still exists between the current $R \cdot s$ upper bound and the known $\sqrt{R} \cdot s$ bound in fully adversarial settings.

Conclusion

By introducing the ASA and ASBI models, this research provides a more nuanced understanding of adversarial robustness in streaming. These models allow researchers to precisely measure the "cost" of robustness, showing that we do not always need to pay the full price of total adversarial protection to handle realistic, partially adaptive threats.

Summary updated

BibTeX
@inproceedings{sadigurschi2023relaxed,
  author = {Menachem Sadigurschi and Moshe Shechner and Uri Stemmer},
  title = {{Relaxed Models for Adversarial Streaming: The Bounded Interruptions Model and the Advice Model}},
  booktitle = {ESA},
  year = {2023},
  doi = {10.4230/lipics.esa.2023.91},
}

Loading related content...

Figure