Optimal Prediction Using Expert Advice and Randomized Littlestone Dimension

Yuval Filmus, Steve Hanneke, Idan Mehalel, Shay Moran

Abstract

A classical result in online learning characterizes the optimal mistake bound achievable by deterministic learners using the Littlestone dimension. This paper proves an analogous result for randomized learners by introducing the Randomized Littlestone Dimension ($RL$). We show that the optimal expected mistake bound in learning a class $\mathcal{H}$ equals its $RL$ dimension, defined via the average depth of shattered trees. We further characterize the optimal mistake bounds in the agnostic case as a function of the mistakes $k$ made by the best function in $\mathcal{H}$. This theory resolves a 30-year-old open problem regarding prediction using expert advice, providing an optimal learning rule for all regimes of $n$ (experts) and $k$ (mistakes).

Introduction

In the framework of online learning, a learner makes sequential predictions on a series of examples. For each example, the learner receives an input, predicts a label, and then observes the true label. The goal is to minimize the total number of mistakes. In the "realizable" setting—where one hypothesis in a class $\mathcal{H}$ is guaranteed to be perfectly accurate—the Littlestone dimension ($L(\mathcal{H})$) provides the exact mistake bound for any deterministic learner.

However, the landscape changes significantly when we allow for randomization or move to agnostic settings where no hypothesis is perfect. While it has long been known that randomized learners can outperform deterministic ones, a precise combinatorial characterization of this advantage remained elusive. This paper fills that gap by introducing the Randomized Littlestone Dimension and applying it to solve long-standing questions in the "prediction with expert advice" literature.

The Randomized Littlestone Dimension

The standard Littlestone dimension is defined by the maximum depth of a complete binary tree shattered by a class $\mathcal{H}$. The authors propose that the randomized complexity of a class is instead governed by the average depth of such trees.

Specifically, the Randomized Littlestone Dimension ($RL(\mathcal{H})$) is defined as: $$RL(\mathcal{H}) = \frac{1}{2} \sup_{T \text{ shattered by } \mathcal{H}} \mathbb{E}[depth(T)]$$ where the expectation is taken over a random walk from the root to a leaf. The authors prove that for any class $\mathcal{H}$, the optimal expected mistake bound is exactly $RL(\mathcal{H})$. This result mirrors the deterministic case but scales the complexity by the probabilistic nature of the learner's choices.

Agnostic Learning and the Experts Problem

In the agnostic case, we assume the best hypothesis in $\mathcal{H}$ makes at most $k$ mistakes. The authors introduce the $k$-Littlestone dimension and its randomized variant to characterize performance in this regime.

Resolving a 30-Year-Old Challenge

A primary application of this theory is the classic problem of "prediction using expert advice." Given $n$ experts where the best makes at most $k$ mistakes, what is the optimal expected mistake bound? Since the 1990s, researchers have found nearly optimal bounds for deterministic learners, but the randomized case remained open for certain regimes of $n$ and $k$.

By treating the experts problem as a special case of learning a universal hypothesis class, the authors show that the optimal randomized mistake bound is: $$M^*(n, k) = \frac{1}{2} M^*_D(n, k) + o(M^*_D)$$ where $M^*_D$ is the deterministic bound. This result provides a unified analysis that holds for all $n$ and $k$, improving upon previous work that only addressed specific ratios of $k$ to $\log n$.

Algorithmic Innovations

The paper introduces two primary algorithms to achieve these optimal bounds:

  1. RandSOA (Randomized Standard Optimal Algorithm): A probabilistic version of Littlestone’s SOA. Instead of a binary choice, it calculates a probability $p$ for the label 1 such that the expected loss is minimized regardless of the adversary's choice.
  2. WeightedSOA: Designed for the agnostic case, this algorithm maintains a "mistake budget" for each hypothesis. It uses the structural properties of the hypothesis class to weight experts, similar to the Weighted Majority algorithm but with higher precision derived from the Littlestone structure.

A key insight is that improper learning is necessary for optimality. An optimal learner cannot simply predict a weighted average of the experts' advice (proper learning); it must sometimes predict values outside that convex hull to hedge against future uncertainty.

Theoretical Tools: Quasi-balanced Trees

To bridge the gap between combinatorial dimensions and probabilistic bounds, the authors utilize quasi-balanced trees. These are trees where the "weight" of branches is distributed such that random walks behave predictably. By applying martingale concentration inequalities (like Azuma’s inequality) to these structures, the authors prove that the expected depth of these trees accurately reflects the learner's risk.

Key Results and Impact

  • Optimal Regret: The paper establishes that the optimal regret for a class with Littlestone dimension $d$ is $\Theta(\sqrt{kd} + d)$. This refines the understanding of how complexity ($d$) and noise ($k$) interact.
  • Deterministic Bounds: The randomized results imply an optimal deterministic mistake bound of $2k + O(\sqrt{kd} + d)$, resolving an open question from Auer and Long (1999).
  • Unified Theory: The Randomized Littlestone Dimension provides a single framework to understand realizable, agnostic, deterministic, and randomized online learning.

Conclusion and Future Directions

This work provides a definitive answer to the complexity of randomized online learning for binary classification. Future research directions include extending these results to multiclass classification, where the label space is larger than $\{0, 1\}$, and improving the computational efficiency of the WeightedSOA, which currently scales poorly with the mistake bound $k$. Additionally, while an adaptive version of the algorithm exists, proving its absolute optimality remains a task for future study.

Summary updated

BibTeX
@inproceedings{filmus2023optimal,
  author = {Yuval Filmus and Steve Hanneke and Idan Mehalel and Shay Moran},
  title = {{Optimal Prediction Using Expert Advice and Randomized Littlestone Dimension}},
  booktitle = {Conference on Learning Theory},
  year = {2023},
  url = {https://openreview.net/forum?id=XbJ44RDhUw},
}

Loading related content...

Figure