Introduction
In the field of online learning, the "Prediction with Expert Advice" problem serves as a fundamental benchmark for decision-making under uncertainty. In this framework, a learner must choose among $M$ experts at each time step, incurring a loss based on the performance of the chosen expert. The objective is to minimize regret: the cumulative difference between the learner's total loss and the loss of the single best expert in hindsight.
Traditionally, this problem is analyzed through two distinct lenses:
- The Adversarial Regime: Losses are arbitrary or even chosen by an opponent. Robustness is the priority, typically resulting in regret that grows at a rate of $O(\sqrt{T})$.
- The Stochastic Regime: Losses are independent and identically distributed (i.i.d.). When a "gap" ($\Delta$) exists between the best expert and the others, algorithms should ideally achieve "fast rates," where regret remains constant over time, specifically $O(\log M / \Delta)$.
While complex, adaptive algorithms have been developed to bridge these two worlds, this research investigates whether the classic Hedge algorithm—specifically the version using a simple decreasing learning rate—is already a "best-of-both-worlds" strategy.
The Hedge Algorithm and Learning Rate Schedules
The Hedge algorithm (or Exponentially Weighted Average Forecaster) assigns weights to experts based on their historical performance. A parameter known as the learning rate ($\eta_t$) determines how aggressively the algorithm shifts its weights toward the current leaders. This study compares three specific implementations of Hedge:
- Anytime (Decreasing) Hedge: Utilizes a learning rate that shrinks over time ($\eta_t \propto 1/\sqrt{t}$). This version is "anytime" because it does not require prior knowledge of the total time horizon $T$.
- Fixed-horizon Hedge: Uses a constant learning rate ($\eta \propto 1/\sqrt{T}$) optimized for a specific, pre-determined end-time.
- Hedge with Doubling Trick: A meta-strategy that restarts the algorithm on increasingly large time intervals to simulate anytime behavior using fixed-horizon parameters.
Key Insights: The "Accidental" Optimality of Anytime Hedge
The core finding of this research is that Anytime Hedge is "accidentally" adaptive. Although its $1/\sqrt{t}$ learning rate schedule is traditionally tuned for worst-case adversarial robustness, it is sufficiently large to allow the algorithm to identify and "lock onto" the best expert in a stochastic environment.
This leads to a distinct two-phase behavior:
- Exploration Phase: The algorithm initially explores various experts while the learning rate is relatively high.
- Concentration Phase: As the learning rate decreases, the weights concentrate almost entirely on the optimal expert, resulting in optimal constant regret.
The Failure of the Doubling Trick
One of the most surprising results is the suboptimality of the "doubling trick." While frequently taught as a standard method for converting fixed-horizon algorithms into anytime ones, the authors prove it is detrimental in stochastic settings. Because the doubling trick periodically resets the algorithm and "forgets" past performance, it prevents the learner from ever entering the concentration phase. Consequently, it continues to suffer $\Theta(\sqrt{T})$ regret even when the environment is easy and stochastic.
Experimental Validation
To validate these theoretical proofs, the authors conducted simulations across several synthetic environments:
- Stochastic instances with a gap: Losses drawn from Bernoulli distributions with distinct means.
- Hard stochastic instances: Cases where the gap $\Delta$ is zero, testing behavior under pure noise.
- Adversarial with a gap: Non-random sequences where one expert eventually dominates, testing adaptability outside of i.i.d. assumptions.
The results confirmed that Anytime Hedge achieves a regret bound of $O(\frac{\log M}{\Delta})$, matching known lower bounds for the stochastic setting. In contrast, both the Fixed-horizon Hedge and the Doubling Trick variant suffered $\Theta(\sqrt{T})$ regret in the same scenarios.
Limitations and Conclusion
Despite its strengths, Anytime Hedge is not a universal solution. The authors note that it cannot exploit more refined "Bernstein conditions"—scenarios where losses are highly correlated or have low variance. In these specific cases, second-order adaptive algorithms (such as AdaHedge) maintain a performance advantage.
However, for most practical applications, the simplicity of the $1/\sqrt{t}$ learning rate schedule provides a remarkably robust balance. It ensures minimax optimality in the worst case while automatically providing constant regret in the best case, proving that one of the oldest algorithms in the field is more sophisticated than previously understood.
Summary updated