Memory bounds for the experts problem

Vaidehi Srinivas, David P. Woodruff, Ziyu Xu, Samson Zhou · DOI · OpenReview

Introduction

The "Learning with Expert Advice" problem is a foundational paradigm in online learning and decision theory. In this setting, an agent must make a sequence of predictions over $T$ time steps, guided by the advice of $n$ experts. The standard objective is to minimize regret: the difference between the agent's cumulative loss and the loss of the single best expert in hindsight.

While classical algorithms like the Multiplicative Weights Algorithm (MWA) achieve optimal regret, they suffer from a significant practical limitation: they require $\Omega(n)$ memory to track weights for every expert. In the era of massive datasets where $n$ can reach millions or billions, this linear space requirement becomes a prohibitive bottleneck. This paper investigates the fundamental space-accuracy tradeoffs for the experts problem within the streaming model, asking whether it is possible to achieve low regret using only a small fraction of the total expert pool.

The Streaming Model and Memory Constraints

The authors evaluate the problem across three distinct streaming environments:

  1. Adversarial (Worst-Case): The sequence of losses is determined by an adaptive opponent to maximize the algorithm's regret.
  2. Random-Order: The sequence of losses is a fixed set presented in a uniformly random permutation.
  3. i.i.d.: Each day's losses are drawn independently from a fixed, unknown distribution.

The core challenge is to design algorithms that store only $k \ll n$ experts at any given time while still providing rigorous guarantees on the final regret $\delta$.

Methodology: Lower Bounds and Masking

To establish the limits of what any algorithm can achieve, the authors employ a reduction to communication complexity, specifically a task known as "distributed detection."

A significant hurdle in proving lower bounds for the experts problem is that an algorithm might achieve low regret by sheer luck or by ignoring the experts entirely in certain regimes. To counter this, the authors introduce a novel masking technique. By applying an XOR operation to the expert predictions and the ground truth using a random fair coin flip, the true signal is "masked." This forces any algorithm seeking to minimize regret to actively "listen" to and store information about the experts, as the correct answer cannot be guessed without their specific advice. This technique allows the authors to prove that any algorithm achieving regret $\delta$ must utilize at least $\Omega\left(\frac{n}{\delta^2 T}\right)$ bits of memory.

Algorithmic Innovation: The Pool Strategy

The paper introduces a "Pool" strategy to achieve efficient upper bounds. Rather than tracking all $n$ experts, the algorithm maintains a small active set (a pool) of $k$ experts. The process follows three main phases:

  1. Sampling: A random subset of experts is selected to populate the pool at the start of a round.
  2. Execution: A standard sequential prediction algorithm (such as MWA or Follow the Perturbed Leader) is run exclusively on the experts within the pool.
  3. Resampling: If the pool's performance degrades beyond a specific cost threshold, the current pool is discarded, and a new subset of experts is sampled.

The mathematical challenge in analyzing this strategy lies in the dependency between the time a round ends and the quality of the experts sampled. The authors address this using a decoupling argument, which simplifies the probability calculations regarding when the "best" expert is likely to be present in the active pool.

Key Results

The research establishes several tight bounds that define the landscape of memory-constrained online learning:

  • Space-Regret Separation: The paper proves a fundamental separation between centralized and streaming settings. Specifically, if memory is $o(n / \log n)$, the classical regret bounds are unattainable.
  • Optimality in Random-Order Streams: For random-order and i.i.d. streams, the authors provide an algorithm using $\tilde{O}\left(\frac{n}{\delta^2 T}\right)$ space. This matches their lower bound (up to logarithmic factors), effectively solving the problem for these settings.
  • Adversarial Performance: In the adversarial setting, the authors achieve regret $\delta$ using $\tilde{O}\left(\frac{n}{\delta T}\right)$ space, provided the best expert makes a relatively small number of mistakes ($M \approx \frac{\delta T}{\log^2 n}$).

Discussion and Future Directions

This work provides the first comprehensive look at the space complexity of the experts problem. It demonstrates that while random-order streams allow for near-optimal memory efficiency, adversarial streams remain more challenging.

The primary remaining gap is the "high-mistake" adversarial regime. Currently, if the best expert incurs a constant fraction of errors ($M = O(T)$), existing algorithms cannot yet match the theoretical lower bounds. Determining the exact regret achievable in this specific scenario remains a major open question that would complete the theoretical understanding of memory-constrained expert advice.

Summary updated

BibTeX
@inproceedings{srinivas2022memory,
  author = {Vaidehi Srinivas and David P. Woodruff and Ziyu Xu and Samson Zhou},
  title = {{Memory bounds for the experts problem}},
  booktitle = {STOC},
  year = {2022},
  doi = {10.1145/3519935.3520069},
}
Figure