Optimization / Smooth optimization
Gradient Descent
Walk downhill one step at a time: the algorithm that trains nearly every neural network.
Contents 3 sections
By the end you can
- State the gradient descent update
- Explain the role of the learning rate
- Describe momentum and why it helps in narrow valleys
Helps to know: Convexity
§1The update rule
The gradient points uphill, so step the other way:
The learning rate is the step size. Too small and progress crawls; too large and the iterates overshoot, oscillate, or explode. For the method converges exactly when .
Preparing the instrument…
§2Momentum
In a long narrow valley, plain descent zig-zags across the walls. Momentum keeps a running velocity, and , so consistent directions accumulate speed while oscillations cancel.
Check yourself
- Q1For , which learning rate makes gradient descent diverge?
- Q2Gradient descent moves in the direction of…