How do you derive the regret bound for the Hedge (exponential weights) algorithm, with N experts, losses in [0,1] and learning rate η, so that RegretT≤ln⁡Nη+ηT8, 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 Wt=∑iwt(i) with wt(i)=e−ηLt−1(i). Hoeffding's lemma bounds each round's decrease and the best expert bounds the final weight from below.

Steps

  1. Hedge keeps wt(i)=exp⁡(−ηLt−1(i)), where Lt−1(i) is expert i's cumulative loss so far. It plays pt(i)=wt(i)/Wt with Wt=∑iwt(i). Its loss in round t is pt⋅ℓt.
  2. One round: Wt+1Wt=∑ipt(i)e−ηℓt(i). This is Ei∼pt[e−ηℓt(i)]. By Hoeffding's lemma for a variable in [0,1], this is at most exp⁡(−η pt⋅ℓt+η28).
  3. Telescope the logs: ln⁡WT+1W1≤−ηLalg+η2T8, where Lalg=∑tpt⋅ℓt.
  4. Lower bound: W1=N and WT+1≥e−ηL∗ where L∗ is the loss of the best expert. So ln⁡WT+1W1≥−ηL∗−ln⁡N.
  5. Combine and divide by η: Lalg−L∗≤ln⁡Nη+ηT8.
  6. Minimise over η: the two terms are equal when η=8ln⁡NT, giving RegretT≤Tln⁡N2. For N=100 and T=104 this is about 152, only about 1.5% of the total number of rounds.

Common mistakes

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 R2, with points inside labelled 1, and how do you prove it?
Next in Learning theory: What is uniform stability of a learning algorithm A, 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 β?