IntermediateAbout 25 min

    Optimizers: SGD, Momentum, RMSprop, Adam

    Read the full article on Substack

    5 min read.

    THE engine of deep learning! See how different optimizers navigate loss landscapes. Compare SGD, Momentum, RMSprop, and Adam. Watch why Adam is the KING of optimizers!

    SGD, learning rate 0.050. Step 0, loss 18.0000. The green dot is the minimum.

    Check your understanding

    Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.

    What does each optimiser track?

    Sort

    Sort each optimiser by the state it keeps per parameter.

    Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.

    No extra state

    Drop items here

    Gradient average only

    Drop items here

    Gradient and squared-gradient

    Drop items here
    5 pieces left to place

    Quiz

    20 questions
    Question 1 of 20
    Score: 0

    MOMENTUM improves plain SGD by…

    Done with this lesson?

    Sign in free to keep your progress, streak and quiz scores.

    Keep going