On the optimality of the Hedge algorithm in the stochastic regime

Jaouad Mourtada, Stéphane Gaïffas

TL;DR

This paper analyzes the classic Hedge algorithm in a stochastic setting, revealing that a simple version with a decreasing learning rate (Decreasing Hedge) surprisingly achieves optimal regret bounds without any explicit adaptation to the stochastic nature of the problem. This contrasts with other Hedge variants that fail to adapt, highlighting the inherent adaptivity of this specific learning rate schedule.

What Problem Does This Paper Address?

The paper tackles the problem of "prediction with expert advice," a fundamental task in online learning. In this setting, a learner must make a sequence of predictions by combining the advice of multiple "experts." The goal is to minimize the learner's cumulative loss, defined as the difference between its total loss and the total loss of the best expert. While the standard analysis focuses on the worst-case adversarial setting (where an adversary can choose losses to maximize regret), this paper investigates the performance of algorithms in a "stochastic regime." In this regime, expert losses are assumed to be drawn from a random process, and the problem becomes "easier" if there's a discernible gap between the best expert and the others. The core question is whether a simple, well-established algorithm like Hedge, which is designed for the adversarial setting, can also perform optimally in these easier stochastic scenarios without modifications.

Methods

The paper's primary contribution is a theoretical analysis of the Hedge algorithm, specifically focusing on its "Decreasing Hedge" variant. This variant uses a learning rate that decreases over time, proportional to $1/\sqrt{t}$. The authors prove that this specific learning rate schedule allows Decreasing Hedge to achieve an optimal regret bound of $O(\log(M)/\Delta)$ in the stochastic setting with a gap $\Delta$, matching the performance of more complex, explicitly adaptive algorithms. They contrast this with other Hedge variants, such as "Constant Hedge" (fixed learning rate) and "Hedge with doubling trick," which fail to adapt and retain their worst-case $O(\sqrt{T \log M})$ regret even in the stochastic setting. The analysis involves intricate mathematical proofs, including the use of Hoeffding's inequality and careful decomposition of the regret into different phases.

Datasets

Not discussed in the paper. The paper focuses on theoretical analysis and provides experimental results in Section 5, which are based on simulated data generated according to specific stochastic and adversarial instance definitions.

Key Insights and Ideas

  • Inherent Adaptivity of Decreasing Hedge: The most striking finding is that Decreasing Hedge, despite its "conservative" and data-independent learning rate, automatically adapts to the stochastic setting with a gap, achieving optimal regret. This is surprising because adaptive algorithms typically require explicit mechanisms to detect and exploit problem structure.
  • Failure of Other Hedge Variants: The paper clearly demonstrates that other standard Hedge variants (Constant Hedge, Hedge with doubling trick) do not adapt to the stochastic setting, even when the problem is easy. This highlights that the specific choice of learning rate schedule is crucial for adaptivity.
  • Characterization of Limitations: The authors establish that the $O(\log(M)/\Delta)$ regret bound for Decreasing Hedge in the stochastic setting is essentially determined by the sub-optimality gap $\Delta$, and this dependence cannot be improved. They also show that Decreasing Hedge cannot exploit finer-grained "easiness" conditions like Bernstein conditions, where more sophisticated adaptive algorithms can achieve even better rates.

Key Results

  • Optimal Stochastic Regret: Decreasing Hedge achieves an $O(\log(M)/\Delta)$ pseudo-regret in the stochastic setting with a gap $\Delta$. This is proven to be optimal.
  • Sub-optimality of Other Variants: Constant Hedge and Hedge with doubling trick suffer from $O(\sqrt{T \log M})$ regret even in easy stochastic instances.
  • Bernstein Condition Limitation: Decreasing Hedge does not benefit from Bernstein conditions, while adaptive algorithms can exploit them for improved regret.

Limitations and Future Work

The paper acknowledges that while Decreasing Hedge is optimal in the gap-based stochastic setting, it does not exploit finer-grained "easiness" conditions like Bernstein conditions. This is where more sophisticated adaptive algorithms, which can leverage these conditions, offer an advantage. Future work could explore how to bridge this gap or further understand the interplay between different types of problem structure and algorithm adaptivity. The experimental section also suggests that while Decreasing Hedge is good, adaptive algorithms like AdaHedge can sometimes outperform it, particularly when the best expert has a very small loss.

Summary updated

BibTeX
@article{mourtada2019optimality,
  author = {Jaouad Mourtada and Stéphane Gaïffas},
  title = {{On the optimality of the Hedge algorithm in the stochastic regime}},
  journal = {J. Mach. Learn. Res.},
  year = {2019},
}
Figure