These notes are adapted from Prof. Alexis Drouot's MATH 480 course at the University of Washington, Seattle (Winter 2025). They are my own notes, not official course materials. I have done my best to ensure correctness, but errors may remain.
The goal is to collect a few basic convergence guarantees for gradient descent under progressively stronger assumptions, and then to see what changes when exact gradients are replaced by stochastic ones. We begin with smooth, possibly nonconvex objectives, then add convexity and strong convexity, and finish with a standard stationarity bound for stochastic gradient descent.
1Gradient descent for smooth functions
We seek to solve
starting from and applying the fixed-step iteration
(1)
where is small. Under suitable assumptions, the gradient norms converge to zero.
Definition 1.1 (Smoothness).A differentiable function is -smooth if
Equivalently, its gradient is -Lipschitz. If , the bound for all implies that is -smooth.
Assume throughout this section that is -smooth. In the setting above, a sufficient condition is
(2)
where, for symmetric matrices, means for every .
Lemma 1.2 (Descent lemma).If is differentiable and -smooth, then, for every ,
(3)
In particular,
Proof.
Let . By the fundamental theorem of calculus,
Using Cauchy–Schwarz and -smoothness,
which is (3).
Theorem 1.3 (Stationarity rate).Let , and suppose is -smooth. For a fixed step size , the iterates in (1) satisfy, for every integer ,
(4)
Moreover, as .
Proof.
Apply Lemma 1.2 with :
Hence
Since the minimum is at most the average, (4) follows. Letting shows that the nonnegative series is finite, so its terms tend to zero.
The conclusion above guarantees convergence to first-order stationarity, but a critical point need not be a global minimizer. Convexity supplies that missing implication.
2The convex case
Definition 2.1.A function is convex if, for all and ,
Lemma 2.2 (First-order characterization).If is differentiable and convex, then, for every ,
(5)
Thus a differentiable convex function lies above each of its tangent hyperplanes.
Proof.
For , convexity gives
Rearranging,
Letting yields .
In particular, if , then (5) implies for every , so is a global minimizer.
Theorem 2.3 (Function-value rate for convex objectives).Suppose is convex, differentiable, and -smooth, and assume a minimizer exists. With , gradient descent satisfies
(6)
where .
Proof.
The previous descent estimate gives
(7)
Let . Since ,
By Lemma 2.2, . Combining this with (7) gives
Summing from to yields
The values are nonincreasing by (7); hence the left side is at least , proving (6).
Thus iterations suffice to ensure .
3The strongly convex case
Definition 3.1.A differentiable function is -strongly convex, for , if
(8)
The factor is the standard normalization. Under this convention, is -strongly convex exactly when is convex. If , this is equivalent to for all . If is also -smooth, then necessarily .
Lemma 3.2 (Existence and uniqueness of the minimizer).A continuously differentiable, strongly convex function on has a unique minimizer .
Proof.
Set in (8):
The quadratic term dominates the linear term as , so ; that is, is coercive. A continuous coercive function on attains its minimum. Strong convexity implies strict convexity, so two distinct minimizers cannot exist.
Lemma 3.3 (Gradient domination).If is -strongly convex and is its minimizer, then
(9)
Proof.
Taking the infimum in on the right side of (8),
where the quadratic is minimized at . Rearrangement gives (9).
Theorem 3.4 (Linear convergence).Suppose is -strongly convex and -smooth. If , then gradient descent satisfies
(10)
If and , it therefore suffices to take
(11)
to guarantee . Thus the iteration complexity is for fixed and . In the endpoint case , (10) already gives .
Proof.
By (7) and Lemma 3.3,
Iterating proves (10); solving the resulting geometric bound for proves (11).
4Stochastic gradient descent
Large-data objectives often have the finite-sum form
(12)
where is the loss associated with the th data point. Computing the full gradient may be expensive. Stochastic gradient descent (SGD) instead uses
(13)
where, conditional on the past, is sampled uniformly from . If denotes the information available before drawing , then
(14)
Lemma 4.1 (First and second moments).For uniform sampling and any fixed ,
(15)
(16)
Proof.
By (12), , which gives (15). Equation (16) is the vector-valued bias–variance identity .
The variance term generally depends on the current iterate. For a uniform theorem, assume that there exists such that, almost surely,
(17)
Theorem 4.2 (Expected stationarity bound for SGD).Assume is -smooth and bounded below by , the stochastic gradients are conditionally unbiased as in (14), and (17) holds. If , then, for every ,
(18)
Proof.
The descent lemma and (13) give
Take conditional expectation and apply Lemma 4.1 together with (17):
After taking full expectation and summing from to ,
Dividing by and using that a minimum is no larger than the corresponding weighted average proves (18).
4.1Step-size consequences
For a constant step , Theorem 4.2 becomes
The second term is the noise floor. Choosing on the order of balances the two terms and yields an stationarity bound. More generally, if
then the bound in (18) forces the weighted average of the expected squared gradient norms to vanish asymptotically. In particular,