Training a neural network means adjusting its weights to make a loss function smaller. Backpropagation computes, for every weight, the gradient — the direction that most increases the loss — by applying the chain rule backward from the output. Gradient descent then moves the weights a small step in the opposite direction. This simulation shrinks that whole process down to just two weights, so the loss function becomes a landscape you can see and the optimizer becomes a marker rolling across it.
(w1, loss, w2).Adam (Adaptive Moment Estimation), introduced by Kingma & Ba in 2015, combines momentum with per-parameter adaptive learning rates and is the default optimizer for the vast majority of modern deep learning training runs.
A 3D loss landscape built from two weight values, where a glowing marker trains itself downhill step by step so you can watch what backpropagation's gradients and different optimizers actually do to the weights.
The surface height is the loss for every pair of weights; the marker's exact position is (w1, loss, w2). Every step computes the true gradient of that surface — the same math backpropagation performs — and moves the marker according to the selected optimizer.
Pick an optimizer and a loss surface, then adjust the learning rate and momentum to see their effect live. The ravine surface makes vanilla gradient descent zig-zag, while momentum and Adam glide smoothly toward the floor.
A learning rate that is too large can make gradient descent overshoot the minimum and diverge entirely — try pushing the learning rate slider high on the bowl surface to watch it happen.