Streaming Algorithms for Learning with Experts: Deterministic Versus Robust

David P. Woodruff, Fred Zhang, Samson ZhouarXiv 2023 · DOI

Introduction

In the classic "learning with experts" framework, an algorithm aims to predict a sequence of events by aggregating advice from $n$ experts over $T$ time steps. The primary performance metric is "regret"—the difference between the algorithm's cumulative loss and the loss of the single best expert in hindsight. While this problem is well-understood in full-information settings where memory is abundant, modern large-scale data processing necessitates a streaming approach. In this paradigm, the algorithm must operate with sublinear memory, ideally much less than the $O(n)$ space required to track every expert's performance individually.

A recent study by David P. Woodruff, Fred Zhang, and Samson Zhou investigates the fundamental limits of memory-constrained streaming algorithms for this problem. Their work specifically addresses the tension between deterministic stability and randomized efficiency, particularly when facing adaptive adversaries who can modify future inputs based on the algorithm's past predictions.

The Challenge of Adaptive Adversaries

Most existing streaming algorithms for learning with experts rely on randomization to achieve low regret with minimal memory. However, these algorithms are often designed for oblivious adversaries, where the sequence of expert losses is fixed in advance. In many real-world applications, the environment is adaptive: the adversary observes the algorithm’s outputs and can tailor future losses to exploit the algorithm's current state.

Randomized algorithms are notoriously fragile in adaptive settings because the adversary can "learn" the algorithm's internal biases. Deterministic algorithms are naturally robust to such manipulation, but they typically require significantly more memory. This research quantifies the "memory tax" required for robustness and explores whether randomized algorithms can be made adversarially robust without sacrificing their memory advantages.

Methodology

1. Deterministic Complexity and Lower Bounds

The authors establish a mathematical floor for deterministic memory usage using communication complexity. By reducing the problem to $\epsilon$-DiffDist (a problem concerning the distinguishability of distributions), they prove that any deterministic algorithm achieving a specific regret bound must satisfy a minimum memory requirement. To match this bound, they propose a "pool-and-purge" algorithm. This strategy maintains a small subset (pool) of experts and follows their majority opinion. When experts in the pool accumulate too many mistakes, they are purged and replaced by a new set, ensuring the algorithm eventually identifies the best-performing experts while keeping memory usage strictly controlled.

2. Robust Randomization via Differential Privacy

To bridge the gap between deterministic robustness and randomized efficiency, the authors introduce a novel application of Differential Privacy (DP). Instead of using DP to protect user data, they use it as a "shield" for the algorithm's internal state. By running multiple independent instances of a standard (non-robust) streaming algorithm and aggregating their predictions through a "Private Median" mechanism, the algorithm prevents an adaptive adversary from gaining enough information to manipulate its future choices. This ensures that the algorithm's output remains stable even if the adversary attempts to probe its internal logic.

Theoretical Framework

As a work of theoretical computer science, this paper does not rely on empirical datasets. Instead, the results are validated through rigorous mathematical proofs. The authors characterize the space complexity of the problem based on the number of mistakes ($M$) made by the best expert, treating $M$ as an intrinsic parameter that dictates the difficulty of the streaming task.

Key Insights and Results

The Deterministic-Randomized Gap

The research establishes a clear hierarchy in memory requirements:

  • Deterministic Tightness: The authors prove that any deterministic algorithm achieving regret $R$ must use $\Omega(\frac{nM}{RT})$ space. Their "pool-and-purge" algorithm matches this bound (up to polylogarithmic factors), effectively settling the deterministic complexity of the problem.
  • The DP Advantage: The randomized, DP-protected algorithm achieves robustness against adaptive adversaries using only $\tilde{O}(\frac{n}{R\sqrt{T}})$ space. This demonstrates that randomized algorithms can remain more memory-efficient than deterministic ones even under adversarial pressure.

Mistakes as a Memory Metric

A significant finding is that for deterministic algorithms, memory complexity is fundamentally tied to $M$. If the best expert is highly accurate (low $M$), it becomes harder to distinguish them from the crowd in a streaming setting, necessitating more memory to track potential candidates.

Discussion and Future Work

While the paper successfully characterizes the deterministic regime and provides a robust randomized alternative, several challenges remain. The robust randomized algorithm incurs a multiplicative space overhead of $O(\sqrt{T})$ compared to algorithms designed for oblivious adversaries. Closing this gap is a primary objective for future research.

Additionally, the authors distinguish between "black-box" adversaries (who only see outputs) and "white-box" adversaries (who can see the algorithm's internal memory). While DP provides a defense against black-box adversaries, achieving sublinear space against white-box adversaries remains an open and significantly more difficult problem in the field of streaming algorithms.

Summary updated

BibTeX
@misc{woodruff2023streaming,
  author = {David P. Woodruff and Fred Zhang and Samson Zhou},
  title = {{Streaming Algorithms for Learning with Experts: Deterministic Versus Robust}},
  year = {2023},
  eprint = {2303.01709},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.01709},
}
Figure