4.10.20 · D5Advanced Topics (Elite Level)
Question bank — Gradient descent and variants — convergence analysis
Before you start, one reminder of the cast of characters so no symbol trips you up:
Recall The symbols in one place
= step size (learning rate). = smoothness constant (curvature ceiling, Lipschitz bound on the gradient). = strong-convexity constant (curvature floor). = condition number. = per-step contraction factor. = the minimizer, .
True or false — justify
Constant step size always works for full-batch GD but never for SGD.
True. Full-batch gradients are exact so a fixed contracts every step; SGD gradient noise never vanishes near , so a constant leaves a residual bounce of radius .
If is convex and -smooth, GD converges linearly (geometrically).
False. Plain convexity () only buys . You need strong convexity to get a contraction factor and hence a linear rate.
Choosing guarantees decreases every single iteration.
True. From the descent lemma the drop is ; at this is , so is monotone non-increasing.
A larger learning rate always reaches the minimum in fewer iterations.
False. Speed only lives in ; beyond the factor and GD diverges by oscillating outward. The guaranteed-drop term even turns negative.
For a perfectly conditioned problem () GD with the optimal step converges in one step.
True. With and , the contraction factor , so exactly.
Momentum changes the problem's condition number .
False. is a property of (its Hessian's eigenvalue spread), not the algorithm. Momentum leaves untouched but improves the rate's dependence from to .
The descent lemma requires to be convex.
False. It only needs -smoothness. The proof uses the fundamental theorem of calculus plus the Lipschitz bound — convexity is never invoked. Convexity is needed later, to turn the per-step drop into a global rate.
For SGD the conditions and are both necessary.
True. lets the iterates travel arbitrarily far (reach any minimizer); makes the accumulated noise finite so the jitter dies out. Drop either and convergence fails.
Strong convexity guarantees a unique global minimizer.
True. with means curves strictly upward in every direction, so the bowl has exactly one bottom.
Spot the error
"To speed up GD I'll set — bigger steps, faster convergence."
Wrong: , so and the worst eigendirection grows each step. GD diverges, it doesn't speed up.
" is convex with a unique min, so GD converges linearly."
Wrong: at the minimum the curvature , so (not strongly convex). GD converges only sublinearly, not at a rate.
"The optimal step for strongly convex GD is because that's the smooth-case magic step."
Wrong: is optimal for smooth convex . For strongly convex, minimizing gives , which balances the two worst eigendirections.
"Since is steepest descent, GD takes the shortest path to the minimum."
Wrong: steepest descent is locally the best unit direction, but the globally shortest route is generally a straight line to . In an anisotropic valley GD zig-zags — locally optimal, globally wasteful.
"I set from , and my convergence proof needs to be an exact Hessian bound."
Wrong: only needs to be a valid upper bound on curvature (). Any overestimate is safe (just gives smaller steps); the danger is underestimating , which permits and divergence.
"For I'll pick since one eigenvalue is ."
Wrong: stability is set by the largest eigenvalue , needing . At the -direction factor is and blows up.
"SGD with satisfies the Robbins–Monro conditions."
Wrong: ✓ but as well (since ), so diverges. The noise isn't killed; use instead where .
Why questions
Why does the parent minimize a parabola each step rather than itself?
Because the descent lemma sandwiches below the parabola . Minimizing that easy upper bound guarantees drops at least as much — we can't minimize directly without knowing it globally.
Why does the condition number control the convergence speed?
measures how stretched the bowl is (ratio of steepest to flattest curvature). A large means a long thin valley where the safe step for the steep direction is tiny for the flat direction, forcing zig-zag and .
Why does the optimal balance and ?
The rate is the max of the two eigendirection factors. Lowering one raises the other, so the minimax is reached exactly where they're equal — solving gives .
Why does momentum turn into ?
Momentum averages out the oscillation across the narrow valley and accumulates speed along its floor, so the effective slowdown scales with the square root of the eigenvalue spread. Formally the accelerated contraction is .
Why is (and not some other descent direction) the steepest one?
For a unit direction , the rate of change is , which by Cauchy–Schwarz is most negative when points exactly opposite the gradient, .
Why must SGD's step decay while GD's can stay constant?
GD's gradient is exact, so a constant contraction shrinks error to zero. SGD's stochastic gradient keeps a variance floor near ; only a shrinking scales that noise down to zero.
Why does the descent lemma proof integrate along the segment ?
To express exactly via the fundamental theorem of calculus, so the only inequality used is the Lipschitz bound on how far the gradient can drift — that's what produces the clean term.
Edge cases
What happens to GD at exactly on the worst eigendirection?
The factor is : no contraction and no divergence — the iterate oscillates forever between the same magnitude. It's the exact knife-edge of stability.
What is the rate when (convex but not strongly convex)?
The contraction factor as , so no linear rate exists; you fall back to the sublinear guarantee.
What does mean geometrically and for the rate?
All curvatures equal (): the level sets are perfect circles/spheres. , so one optimal step lands on .
If but is a saddle, what does GD do?
It stops moving — — since the update multiplies the (zero) gradient. GD's convergence guarantees assume convexity precisely to rule out saddles; on nonconvex it can stall at one.
What is the drop term at ?
It tends to : infinitesimal steps make infinitesimal progress. Convergence still holds but takes infinitely many steps — the reason near (not near ) is the sweet spot.
For slightly above , does increase or the iterate diverge first?
Both are the same phenomenon: makes the worst-direction error grow geometrically, so and hence both blow up. The guaranteed-drop term has already gone negative.
What happens if you feed an underestimate of into the step with ?
Then , possibly exceeding , so the "safe" step is no longer safe and GD may diverge. Overestimating is conservative; underestimating is dangerous.