Let be convex with minimiser , and suppose stochastic gradients satisfy and . How do you prove that SGD with fixed step size satisfies for , and what step size gives the optimal rate?
Linear algebra and optimisation, Convergence analysis
Level L5 Expert. Length Long. Nature Mat Mathematical.
What's being asked
Whether you can prove the standard convex SGD bound by expanding , taking conditional expectations, telescoping, and applying Jensen's inequality.
Key idea
Unlike deterministic GD, need not decrease monotonically, so we track expected squared distance to instead. Expanding cleanly splits the bias-reduction term (via convexity) from the variance term , and averaging the iterates lets us apply Jensen's inequality at the end.
Steps
- Expand one SGD step :
- Take conditional expectation given , using and :
- Use convexity: , so . Taking total expectation and rearranging gives
- Sum over so the distance terms telescope, drop , and divide by :
- Apply Jensen's inequality to the convex function : , giving the stated bound on .
- Choose to balance both terms: setting gives and the optimal bound .
Common mistakes
- Forgetting to take conditional expectation given before plugging in , or claiming decreases monotonically.
- Omitting Jensen's inequality and claiming the bound holds for the last iterate rather than the averaged iterate .
How long your answer should be
One page; 8–10 minutes.
Last checked on 4 December 2026.
Read this
Previous in Linear algebra and optimisation: Let be -strongly convex and -smooth with unique minimiser . How do you prove that gradient descent with step size achieves linear convergence ?
Next in Linear algebra and optimisation: For a differentiable convex optimisation problem subject to ( convex) and (affine), how do you prove that any point satisfying the KKT conditions is globally primal-dual optimal and achieves zero duality gap?