liveBook · Manning

Momentum

Momentum is an optimization technique that incorporates a running history of gradients or parameter updates to smooth and accelerate movement during training.

How 6 Manning books explain it

Inside Deep Learning: Math, Algorithms, Models

A stochastic gradient-based optimization method that uses an accumulated velocity term for parameter updates.

How it is used
Improves SGD training by reaching better minima faster and reducing the number of updates needed.
How deep it goes
Derives velocity accumulation and shrinking history, then demonstrates PyTorch configuration and overshooting behavior.
Examples
Uses optimization-landscape figures, PyTorch SGD listings, and accuracy curves comparing SGD, momentum, and Nesterov momentum.
What you can do after
Apply it via PyTorch's SGD optimizer and compare standard momentum with Nesterov momentum.

Read how Inside Deep Learning: Math, Algorithms, Models explains momentum →

Sutskever's List

Momentum is an optimization technique that incorporates a running history of parameter updates to smooth and accelerate training.

How it is used
Stabilizes and accelerates mini-batch SGD updates during neural-network training.
How deep it goes
Explains momentum through noisy steps and a hiking analogy, but gives no mathematical update rule.
Examples
Uses a fog-bound hiker to illustrate noisy gradient estimates and momentum's smoothing effect.
What you can do after
Apply momentum to smooth noisy mini-batch updates and move through shallow plateaus during neural-network training.

Read how Sutskever's List explains momentum →

Math and Architectures of Deep Learning

An optimization strategy that accelerates parameter updates using accumulated past gradients or a lookahead variant to smooth descent on the loss surface.

How it is used
Uses accumulated gradient direction to make optimization moves more reliable during loss minimization.
How deep it goes
Explains weighted gradient accumulation, geometric intuition, overshooting, Nesterov lookahead, and Adam’s related state vectors.
Examples
Uses a cone-shaped loss surface, overshooting diagrams, and PyTorch optimizer configurations as concrete illustrations.
What you can do after
Apply it via PyTorch by configuring SGD with momentum or Nesterov momentum and comparing related optimizers.

Read how Math and Architectures of Deep Learning explains momentum →

Natural Language Processing in Action, Second Edition

Momentum is an optimization hyperparameter that incorporates prior update direction to accelerate or damp parameter movement during gradient-based optimization.

How it is used
Uses momentum to control parameter movement during stochastic gradient descent for a neural-network classifier.
How deep it goes
Defines acceleration and damping behavior, then demonstrates configuration; stops short of deriving the update equation or systematic tuning procedure.
Examples
Demonstrates momentum in a PyTorch single-neuron classifier trained for 200 epochs on vectorized name data.
What you can do after
Apply momentum via PyTorch's SGD optimizer and inspect training loss and test accuracy across epochs.

Read how Natural Language Processing in Action, Second Edition explains momentum →

Deep Learning with R, Third Edition

Momentum is an optimization technique that incorporates previous parameter updates into the current update to improve movement through the optimization landscape.

How it is used
Improves stochastic gradient descent by accelerating convergence and helping optimization escape local minima.
How deep it goes
Explains the velocity intuition and gives a naive parameter-update implementation, but does not cover tuning or framework-specific configuration.
Examples
Uses one-dimensional loss curves, a rolling-ball analogy, and pseudocode that tracks past velocity.
What you can do after
Build it from scratch by retaining the previous velocity and combining it with each new gradient update.

Read how Deep Learning with R, Third Edition explains momentum →

Machine Learning Algorithms in Depth

Momentum is an optimization technique that incorporates an exponentially weighted moving average of past gradients into parameter updates.

How it is used
Uses accumulated gradient direction to improve neural-network parameter updates during optimization.
How deep it goes
Explains exponential averaging, gradient alignment, parameter choice, and Nesterov’s evaluation difference, but does not provide a full derivation.
Examples
Compares optimizers through LeNet training on CIFAR-100 using cross-entropy loss and validation accuracy.
What you can do after
Evaluate momentum alongside alternative optimizers using training loss and validation accuracy.

Read how Machine Learning Algorithms in Depth explains momentum →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.