r/learnmachinelearning • u/tzero_lab • 3h ago
Project I visualized gradient descent with three step sizes. What happens at η = 1.10?
Enable HLS to view with audio, or disable this notification
Same starting point, same quadratic loss surface, three step sizes. For this tzero lab experiment I rendered f(x, y) = (x² + 1.7y²)/2 and checked the Excel and Colab results against the same update rule.
Before running it: would η = 1.10 converge or diverge, and why? And which made the behavior clearer: the 3D paths or the loss plot?
3
Upvotes
1
u/GiggleSamurai 3h ago
It converges, but by zig-zagging: the updates are x ← (1−η)x and y ← (1−1.7η)y, so at η = 1.10 the factors are −0.10 and −0.87, both under 1 in size. y flips sign every step and only shrinks about 13% per step, and it would start diverging once η passes 2/1.7 ≈ 1.18.