Labs · Neural Networks
Gradient Descent Optimizers
Training a neural network means rolling downhill on a loss landscape. This 2D landscape stands in for the millions of dimensions of a real network. Four optimizers race from the same starting point:
- SGD: step straight down the gradient,
θ −= η·∇f. - Momentum: builds up speed like a heavy ball, so it rolls through flat areas and shallow bumps.
- RMSProp: divides by a running average of squared gradients, so it takes even steps on steep and flat axes.
- Adam: combines momentum with RMSProp, and is the default in deep learning.
Try "Rosenbrock valley" and see which ones make it down the curved valley. Click to choose a new start point.
Controls
- Landscape
- Learning rate (log₁₀ η)
- Steps per frame
- SGD (red)
- Momentum (yellow)
- RMSProp (green)
- Adam (blue)
- Low ground colour
- High ground colour
Evolved from Neural Network Playground.
Evolved into K-Means Clustering.