Definition
To minimize : gradient descent uses the full gradient, . SGD picks a random and uses only its gradient.
Formula
with step size (learning rate) .
The perceptron is SGD with on the linear loss, visiting the points in order. SGD does not pick just any minimizer of the empirical risk: it has an implicit bias, which later lectures use (stability of SGD, implicit regularization).
Appears in
- Lecture 2, recap of GD and SGD
- Lecture 2, the perceptron is SGD
- Lecture 2, implicit regularization of SGD (preview)
- Lecture 4, stability of GD
- Lecture 4, stability of SGD (convex and non-convex)