How do you derive the regret bound for the Hedge (exponential weights) algorithm, with experts, losses in and learning rate , so that , and what is the best ?
Learning theory, Online learning and regret
Level L4 Advanced. Length Long. Nature Mat Mathematical.
What's being asked
Whether you can use a potential function (the log of the total weight) together with Hoeffding's lemma.
Key idea
Track with . Hoeffding's lemma bounds each round's decrease and the best expert bounds the final weight from below.
Steps
- Hedge keeps , where is expert 's cumulative loss so far. It plays with . Its loss in round is .
- One round: . This is . By Hoeffding's lemma for a variable in , this is at most .
- Telescope the logs: , where .
- Lower bound: and where is the loss of the best expert. So .
- Combine and divide by : .
- Minimise over : the two terms are equal when , giving . For and this is about , only about of the total number of rounds.
Common mistakes
- Mixing up the sign: the weights decrease with the loss, so the exponent is .
- Forgetting that the optimal needs in advance. If is unknown use the doubling trick or a decreasing .
- Claiming this beats the best expert. Regret is against the best fixed expert, and the bound says the per-round gap is .
How long your answer should be
One page; 6–7 minutes.
Last checked on 4 December 2026.
Read this
Previous in Learning theory: What is the VC dimension of the class of disks (interior and boundary) in , with points inside labelled , and how do you prove it?
Next in Learning theory: What is uniform stability of a learning algorithm , and how do you prove that a -uniformly stable algorithm has expected generalisation gap at most ? What is an example of a stable algorithm with its ?