ML
beginner
Gradient Descent
Interactive 3D visualization of how gradient descent optimizes functions by iteratively moving towards the minimum.
algorithms.live
Gradient Descent
Learn how optimization algorithms navigate loss landscapes to find optimal solutions
Convex quadratic function - easy optimization
0.100
Controls step size: too high = overshoot, too low = slow
2.000
Position X
1.500
Position Y
3.1250
Cost
0
Iterations
Gradient Magnitude:2.5000
Current positionPath so farStep (−α∇f)Uphill (∇f)Cost (low → high)
This step
(2.00, 1.50) − 0.100 · (2.00, 1.50) = (1.80, 1.35)
Key Insights
Learning Rate Effects:
Too high → overshooting, instability
Too low → slow convergence
Just right → smooth, fast convergence
Function Shapes:
Bowl → easy optimization
Valley → slow in narrow direction
Bumpy → gets stuck in local minima
Saddle → challenging, may not converge
Diagnose the learning rate
Sort
Sort each symptom by the learning rate that causes it.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
Learning rate too high
Drop items hereLearning rate too low
Drop items here6 pieces left to place
Test your knowledge
21 questions
Question 1 of 21
Score: 0
What is the "Learning Rate"?
Interview Questions
OpenAI
Google
Anthropic
Google
NVIDIA
Microsoft
DeepMind
Baidu
Cerebras
Apple
Amazon
IBM
Love this visualization?
Sign up to track your progress, earn achievements, use the AI assistant, and access your personal learning dashboard.
100% free • No credit card required