One Gradient Descent Update
A gradient descent step subtracts a positive step size times the gradient at the current parameters.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Work a scalar step
For \(L(w)=(w-3)^2\), the gradient at w=1 is minus four. With step size 0.1 the next value is \(1-0.1(-4)=1.4\), moving toward three. Scalar chain-rule examples show the derivative calculation.
Check the new loss
The loss decreases from four to 2.56 on this step. A different step size can move too far. See learning rates.
The same update for the quadratic loss can be written in terms of the current distance from its minimum.
\[ w_{k+1}-3 = (1-2\eta)(w_k-3). \]
Here \(\eta\) is the learning rate. At 0.1 each update multiplies the signed distance by 0.8 in exact arithmetic. This explains why the one-step calculation moves toward three without crossing it.[1]