Is it true that (a) a uniformly sampled mini-batch gradient is an unbiased estimator of the full-batch gradient, (b) every SGD step decreases the training objective, and (c) SGD with a fixed learning rate converges to the exact minimum, and why?

Linear algebra and optimisation, Stochastic optimisation
Level L3 Intermediate. Length Medium. Nature Th+Mat Both.

What's being asked

Whether you can separate exact expectations from per-step behaviour and asymptotic noise in stochastic gradient descent (SGD).

Key idea

By linearity of expectation, averaging gradients over a uniformly sampled mini-batch gives the full-batch gradient in expectation. However, each single step has variance, so it can go uphill on the full loss and—with a constant learning rate—keeps bouncing in a noise ball around the minimum.

Steps

  1. (a) True. Let F(w)=1n∑i=1nfi(w) be the average loss over n samples, where fi is the loss on sample i, and draw a mini-batch of m indices uniformly at random. Without replacement, each index i lies in the subset B with probability m/n, giving E[1m∑i∈B∇fi(w)]=1m∑i=1nmn∇fi(w)=∇F(w); with replacement, each of the m independent draws has expectation ∇F(w), so their average still equals ∇F(w).
  2. (b) False. The mini-batch gradient gt at step t equals ∇F(wt) only on average, not on every draw. When gt points at an obtuse angle to ∇F(wt) (so the update −gt points uphill, ∇F(wt)⊤gt<0) or when the step is large relative to curvature, F(wt+1)>F(wt) on that step.
  3. (c) False (unless the gradient noise vanishes at the optimum). Even at the global minimiser w∗, individual sample gradients ∇fi(w∗) are usually non-zero, so Var⁡(gt)>0. With a fixed learning rate η>0, SGD cannot stay at w∗ and settles instead into a stationary noise ball of root-mean-square radius O(η) (and expected excess loss O(η)).

Common mistakes

How long your answer should be

One short paragraph per statement; 2–3 minutes.

Read this

Previous in Linear algebra and optimisation: What are the four fundamental subspaces of a matrix A∈Rm×n of rank r, how do they pair up as orthogonal complements, and how does the SVD A=UΣV⊤ give an orthonormal basis for every one of them?
Next in Linear algebra and optimisation: Why are the non-negative weighted sum ∑iαifi(x) (αi≥0), the pointwise maximum max⁡ifi(x), and the affine composition f(Ax+b) convex whenever each fi and f is convex, and how do these rules show that the L2-regularised hinge loss is convex without computing any Hessian?