A Parameter-free Hedging Algorithm

Kamalika Chaudhuri, Yoav Freund, Daniel J. Hsu

In the realm of Decision-Theoretic Online Learning (DTOL), algorithms must continuously distribute their "wealth" (probability) across $N$ possible actions. After making a choice, the learner observes the losses for each action and incurs an expected loss. The ultimate goal is to minimize regret—the difference between the learner's cumulative loss and the loss of the best possible action in hindsight.

For years, the gold standard for this problem has been the Hedge algorithm. However, Hedge suffers from a major practical flaw: it requires a tunable "learning rate" parameter ($\eta$). If $\eta$ is too high, the learner overreacts to noise; if it is too low, the learner adapts too slowly. Setting $\eta$ optimally requires knowing the total number of rounds ($T$) and the number of actions ($N$) in advance, which is often impossible in real-world applications like object tracking. Furthermore, when $N$ is massive (e.g., representing every possible path an object could take), chasing the single best action is often less meaningful than performing well relative to the top group of actions.

This paper introduces NormalHedge, a breakthrough algorithm that removes the need for a learning rate parameter entirely. It matches the performance of optimally tuned traditional algorithms and introduces a more robust way to measure success in environments with a massive number of actions.

The NormalHedge Algorithm

The authors replace the standard exponential weighting of Hedge with a novel approach based on a potential function reminiscent of a half-normal distribution:

$$\phi(x, c) = \exp\left(\frac{([x]_+)^2}{2c}\right)$$

NormalHedge Algorithm

NormalHedge introduces several key innovations:

  • The Scale Parameter ($c_t$): Instead of a fixed learning rate, NormalHedge maintains an internal scale $c_t$ that is updated every round. It is chosen such that the average potential across all actions remains constant ($e$). This requires a simple line search each round but makes the algorithm entirely adaptive.
  • Quantile Regret: The authors introduce a new metric: regret to the top $\epsilon$-quantile. Instead of comparing the learner to just the #1 action, they compare it to the $\lfloor \epsilon N \rfloor$-th best action. This is much more stable when many actions are nearly identical.
  • Hard Sparsity: Unlike Hedge, which assigns a tiny non-zero weight to every action, NormalHedge assigns exactly zero weight to any action that has performed worse than the learner's average so far (due to the $[x]_+$ operation).
  • The Power of the Square: By using the square of the regret in the exponent ($R^2/2c$) rather than the linear regret ($\eta R$), the algorithm becomes much more aggressive toward actions that are significantly outperforming the average, while remaining stable.

Experimental Validation and Key Results

The paper is primarily theoretical, establishing a regret bound to the top $\epsilon$-quantile of $O\left(\sqrt{T \ln \frac{1}{\epsilon} + \ln^2 N}\right)$. If you set $\epsilon = 1/N$ (to find the single best action), the regret is $O(\sqrt{T \ln N} + \ln^2 N)$. This is nearly identical to the theoretical optimum for Hedge, but achieved without knowing $T$ or tuning any parameters. Furthermore, NormalHedge achieves a regret bound that holds simultaneously for all $\epsilon$ and all $T$.

To demonstrate its practical robustness, the authors use a synthetic illustrative example designed to break traditional algorithms. They create a Hadamard matrix-based loss matrix where no action is inherently better than another, and artificially replicate actions (rows) many times. This simulates "discretization"—for example, in a tracking task where 1,000 paths are essentially the same.

Regret vs. Replication Factor

One of the most significant insights is NormalHedge's invariance to redundancy. Because it uses an internal scale based on the distribution of regrets, adding 1,000 copies of a bad action doesn't change the learner's behavior. As shown in the simulation results, as the number of redundant actions (replication factor) increased, the performance of adaptive Hedge ("Exp") and Polynomial Weights ("Poly") worsened significantly. In contrast, NormalHedge’s performance remained a flat line—it simply didn't care how many redundant actions were added.

Limitations and Future Work

While NormalHedge is a significant step forward, it has a few limitations:

  • The $\ln^2 N$ Term: The theoretical bound includes a $\ln^2 N$ term which makes the algorithm slightly less efficient than a perfectly tuned Hedge in the very early rounds (when $T$ is small).
  • Small Loss Bounds: The current analysis focuses on regret as a function of time ($T$). Other variants of Hedge have "small loss" bounds, where regret depends on the cumulative loss of the best action ($L$). The potential-function approach does not yet yield these sharper bounds.
  • Computational Cost: While the line search for $c_t$ is efficient, it is still computationally more complex than the closed-form update used in standard Hedge.

Summary updated

BibTeX
@inproceedings{chaudhuri2009parameter,
  author = {Kamalika Chaudhuri and Yoav Freund and Daniel J. Hsu},
  title = {{A Parameter-free Hedging Algorithm}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2009},
  url = {https://openreview.net/forum?id=SJZadDbdZB},
}
Figure