For convex losses ft with gradients satisfying ∥gt∥≤G, online gradient descent plays wt+1=Π(wt−ηgt), where Π projects onto the ball {∥w∥≤D}. Prove that regret against any u in the ball is at most ∥u−w1∥22η+ηG2T2. What are the best η and the resulting bound for D=1, G=2, T=10000?

Learning theory, Online learning and regret
Level L4 Advanced. Length Long. Nature Mat Mathematical.

What's being asked

Whether you can derive the O(T) regret bound for online gradient descent using convexity and a telescoping sum.

Key idea

Convexity turns regret into a sum of linear terms gt⊤(wt−u). One step of projected gradient descent controls each term by the change in squared distance to u, and these changes telescope.

Steps

  1. Convexity: ft(wt)−ft(u)≤gt⊤(wt−u). So regret ≤∑tgt⊤(wt−u).
  2. Projection onto a convex set does not increase the distance to any point u in the set. So ∥wt+1−u∥2≤∥wt−ηgt−u∥2=∥wt−u∥2−2ηgt⊤(wt−u)+η2∥gt∥2.
  3. Rearrange: gt⊤(wt−u)≤∥wt−u∥2−∥wt+1−u∥22η+η2∥gt∥2.
  4. Sum over t=1,…,T. The first terms telescope to ∥w1−u∥2−∥wT+1−u∥22η≤∥w1−u∥22η. The second terms sum to at most ηG2T2.
  5. So regret ≤∥w1−u∥22η+ηG2T2. Take w1=0 and ∥u∥≤D, giving D22η+ηG2T2.
  6. Minimise over η: set the derivative to zero, −D22η2+G2T2=0, so η=DGT. The bound becomes DGT.
  7. Numbers: η=12⋅100=0.005 and regret ≤1⋅2⋅10000=200. Average regret is 200/10000=0.02, which goes to 0 like 1/T, so the algorithm is no-regret.

Common mistakes

How long your answer should be

One page; 6–8 minutes.

Last checked on 4 December 2026.

Read this

Previous in Learning theory: Let F={f∈Hk:∥f∥H≤B} be a ball in an RKHS, with k(x,x)≤R2. Show that R^S(F)≤Bmtr⁡K≤BRm, where K is the kernel matrix of the sample. Why is this significant for the Gaussian kernel?
Next in Learning theory: Cover's counting function says that N points in general position in Rd have C(N,d)=2∑k=0d−1(N−1k) dichotomies realisable by a hyperplane through the origin. Derive it from the recurrence C(N+1,d)=C(N,d)+C(N,d−1), and compute the fraction of the 2N labellings that are separable for d=3 and N=4,6,8. What does this say about capacity?