# An overview of gradient descent optimization algorithms

Gradient descent variants differ in how they handle learning rates and gradients

Sebastian Ruder · arXiv · 2016-9-15

- **Problem** Plain gradient descent uses one shared learning rate, which fits poorly when features occur at very different frequencies. Saddle points and ravines also slow it down, so practitioners often treat these optimizers as black boxes.
- **Method** Each optimizer targets one challenge and reuses past gradients to adjust its steps.
- **Results** On the Beale function, Adagrad, Adadelta and RMSprop converge at a similar speed, while Momentum and NAG are led off track. Kingma et al. report that Adam slightly beats RMSprop late in optimization.

## Why plain gradient descent stalls

Gradient descent moves the parameters opposite to the gradient of the objective, and the learning rate η sets the step size. The three variants differ only in how many training examples feed each gradient, which sets the balance between update accuracy and cost per update. Batch gradient descent uses the whole training set for every update, so it becomes slow and can't handle data that doesn't fit in memory.

Single-example SGD updates after each example, which is usually much faster and works for online learning, but its updates fluctuate heavily. Mini-batch gradient descent updates once per mini-batch, which lowers the variance of updates and lets optimized matrix routines do the work.

Even mini-batch training leaves open several problems, and the first is choosing the learning rate. A rate that is too small converges painfully slowly, and a rate that is too large can make the loss oscillate or diverge. Annealing schedules are fixed in advance, so they can't adapt to the characteristics of a dataset. One learning rate also applies to every parameter, which fits poorly when features occur at very different frequencies.

Non-convex neural network error surfaces are full of saddle points, where SGD gets held on plateaus with near-zero gradients.

## Momentum and look-ahead updates

Momentum targets ravines, where SGD zigzags across steep walls and makes slow progress along the valley floor. The method keeps a velocity that adds a fraction γ of the previous update to the new gradient step, so v\_t = γv\_{t-1} + η∇θJ(θ) and θ = θ − v\_t. A value of 0.9 for γ is a common choice. Components whose gradients keep their sign build up speed, while components whose gradients flip sign have their steps damped.

NAG keeps the momentum idea but asks where the parameters are about to go. It evaluates the gradient at θ − γv\_{t−1}, a rough estimate of the next position, rather than at the current θ. This anticipatory step prevents the update from going too fast as the slope turns upward.

## Per-parameter rates: Adagrad, Adadelta and RMSprop

Adagrad divides each parameter's learning rate by the root of its accumulated squared gradients, so rarely changed parameters take larger steps. For parameter i, the update is θ\_{t+1,i} = θ\_{t,i} − η/√(G\_{t,ii}+ε) · g\_{t,i}, where G\_{t,ii} sums the squared gradients for θ\_i up to step t.

The accumulated sum only grows, because every squared term is positive. So the learning rate keeps shrinking until it is so small that the algorithm stops acquiring new knowledge. It also replaces the learning rate with the RMS of past parameter updates, so no learning rate needs to be set.

RMSprop, proposed by Hinton in a Coursera lecture, arose around the same time and matches the first update vector of Adadelta. Its suggested learning rate is 0.001, with γ set to 0.9.

## Adam, AdaMax and Nadam

Adam keeps two running averages: m\_t, a decaying mean of past gradients, and v\_t, a decaying mean of past squared gradients. The recurrences are m\_t = β1 m\_{t−1} + (1−β1) g\_t and v\_t = β2 v\_{t−1} + (1−β2) g\_t². Both start at zero, so they are biased toward zero early on, especially when β1 and β2 are close to 1. Bias-corrected estimates divide by 1 − β1^t and 1 − β2^t to give m̂\_t and v̂\_t, and the update is θ\_{t+1} = θ\_t − η m̂\_t/(√v̂\_t + ε).

AdaMax generalizes the second moment from the ℓ2 norm to the ℓp norm and then takes the infinity norm. The resulting u\_t = max(β2 v\_{t−1}, \|g\_t\|) needs no bias correction, and the suggested η is 0.002.

Nadam combines Adam with Nesterov momentum by applying the look-ahead to the current momentum estimate instead of the previous one. The resulting update replaces the previous bias-corrected momentum with the current one, giving θ\_{t+1} = θ\_t − η/(√v̂\_t + ε)(β1 m̂\_t + (1−β1) g\_t/(1−β1^t)).

## What the two test surfaces show

On the Beale function, every optimizer starts from the same point on the contour plot. Adagrad, Adadelta and RMSprop head the right way at once and converge at a similar speed, while Momentum and NAG are led off track. NAG recovers sooner, which the authors tie to its responsiveness from looking ahead.

At a saddle point, SGD, Momentum and NAG struggle to break symmetry, although Momentum and NAG eventually escape. Adagrad, RMSprop and Adadelta head down the negative slope quickly, with Adadelta leading. From these pictures the authors conclude that adaptive learning-rate methods suit these scenarios best.

Kingma et al. report that Adam's bias correction lets it slightly outperform RMSprop toward the end of optimization, when gradients become sparser. The authors suggest Adam might be the best overall choice. Plain SGD without momentum and with a simple annealing schedule is still popular, but it relies on a robust initialization and may stall at saddle points.

## Parallel and distributed SGD

Hogwild! runs SGD updates on CPU processors that write to shared memory without locking the parameters. This is safe only for sparse data, because each update touches just a fraction of the parameters and overwrites are rare.

Downpour SGD runs model replicas on subsets of the data and sends their updates to a parameter server spread over many machines. Replicas don't share weights or updates with each other, so their parameters can drift apart and slow convergence.

Delay-tolerant algorithms extend Adagrad to account for update delays as well as past gradients. Elastic Averaging SGD ties each worker to a center variable with an elastic force, which lets local parameters explore further. TensorFlow's distributed version splits the computation graph into per-device subgraphs and communicates through Send/Receive node pairs.

## Data order, normalization and noise

Shuffling the training data after every epoch avoids a biased order of examples. Curriculum learning does the opposite on purpose, presenting examples from easier to harder. Zaremba and Sutskever found that a combined or mixed strategy beats the naive order when training LSTMs to evaluate simple programs.

Batch normalization re-normalizes each mini-batch and back-propagates through that operation. Because normalization becomes part of the model, higher learning rates become usable and initialization matters less. Batch normalization also acts as a regularizer and can reduce the need for Dropout.

Early stopping means monitoring validation error and stopping once it fails to improve, with some patience. Neelakantan et al. add Gaussian noise with annealed variance to each gradient, which they report helps with poor initialization and deep networks.

## Limits of the evidence

The two comparisons are single-start visualizations on the Beale function and at a saddle point. Speed and accuracy on real neural networks are not measured here, so the Adam and RMSprop comparison rests on the cited work of Kingma et al.

Hogwild! is argued only for sparse inputs, and the paper gives no evidence for dense ones. The defaults, such as 0.01 for Adagrad and 0.001 for RMSprop, are presented as typical choices rather than as values tuned in the paper.

## Paper info

- **Authors**: Sebastian Ruder
- **Venue**: arXiv · Preprint
- **First published**: 2016-9-15
- **Added**: 2026-11-11
- **Updated**: 2017-6-15
- **Version**: v2
- **arXiv**: 1609.04747
- **Category**: cs.LG
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1609.04747v2) · [PDF ↗](https://arxiv.org/pdf/1609.04747v2)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Sebastian Ruder (2016). An overview of gradient descent optimization algorithms. arXiv:1609.04747v2. https://arxiv.org/abs/1609.04747v2

**BibTeX**

```
@misc{ruder2016overview,
  title = {{An overview of gradient descent optimization algorithms}},
  author = {Sebastian Ruder},
  year = {2016},
  eprint = {1609.04747},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1609.04747v2}
}
```

## Other paper commentary

- [Decoupled Weight Decay Regularization](https://refivu.com/en/papers/19eca1c5-1291-475b-a58c-daedbe769654-decoupled-weight-decay-regularization.md)
- [SGDR: Stochastic Gradient Descent with Warm Restarts](https://refivu.com/en/papers/69cc99a3-59f2-4776-b5e2-a3baaeb53f0c-sgdr-stochastic-gradient-descent-with-warm-restarts.md)
- [mixup: Beyond Empirical Risk Minimization](https://refivu.com/en/papers/cc1e3261-af7e-47fa-99d8-0806fbe6afcf-mixup-beyond-empirical-risk-minimization.md)
- [Weight Normalization: A Simple Reparameterization to Accelerate Training of Deep Neural Networks](https://refivu.com/en/papers/c1050ccf-ffa6-4158-8fff-24b3a8223df6-weight-normalization-a-simple-reparameterization-to.md)
- [The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networks](https://refivu.com/en/papers/9c072b5c-bd96-4202-8960-653ce6a7f2fb-the-lottery-ticket-hypothesis-finding-sparse-trainable.md)
- [Adam: A Method for Stochastic Optimization](https://refivu.com/en/papers/1e4ce3cf-c297-4440-9078-a86a09a9caca-adam-a-method-for-stochastic-optimization.md)
- [Wide Residual Networks](https://refivu.com/en/papers/1bd6014c-67f5-4e80-9e66-e667155a3f6e-wide-residual-networks.md)
- [GANs Trained by a Two Time-Scale Update Rule Converge to a Local Nash Equilibrium](https://refivu.com/en/papers/e19fb2a4-2e7f-47ba-9ba7-ba5660b1efb6-gans-trained-by-a-two-time-scale-update.md)
- [Beyond a Gaussian Denoiser: Residual Learning of Deep CNN for Image Denoising](https://refivu.com/en/papers/42b88b1a-7986-4ec5-b7e5-406b2cec7f9e-beyond-a-gaussian-denoiser-residual-learning-of-deep.md)
- [Towards Evaluating the Robustness of Neural Networks](https://refivu.com/en/papers/6d9ac642-a922-416e-871a-f2ef8022e354-towards-evaluating-the-robustness-of-neural-networks.md)
- [Multi-Scale Context Aggregation by Dilated Convolutions](https://refivu.com/en/papers/d3d006c0-f6b8-44aa-adba-a3ef2b601bbf-multi-scale-context-aggregation-by-dilated-convolutions.md)
- [Attention U-Net: Learning Where to Look for the Pancreas](https://refivu.com/en/papers/b480e08e-027d-4c11-b1c5-0d3a4a63ead9-attention-u-net-learning-where-to-look-for.md)

## Terms in this paper

- [Stochastic Gradient Descent](https://refivu.com/en/terms/a49650824022-stochastic-gradient-descent)
- [Batch Normalization](https://refivu.com/en/terms/2b3e5f8509f6-batch-normalization)
- [Adagrad](https://refivu.com/en/terms/d6141e5e2b98-adagrad)
- [gradient descent](https://refivu.com/en/terms/7557852c745c-gradient-descent)
- [curriculum learning](https://refivu.com/en/terms/b6ef6666624f-curriculum-learning)
- [Momentum](https://refivu.com/en/terms/8ca5cdb0ae22-momentum)
- [Batch gradient descent](https://refivu.com/en/terms/2debff6c1a3b-batch-gradient-descent)
- [mini-batch gradient descent](https://refivu.com/en/terms/eae643d4fe30-mini-batch-gradient-descent)
- [AdaMax](https://refivu.com/en/terms/7c04522a9c5d-adamax)
- [Hogwild!](https://refivu.com/en/terms/564a85ee50f0-hogwild)
- [Downpour SGD](https://refivu.com/en/terms/e33386d40a56-downpour-sgd)
- [saddle points](https://refivu.com/en/terms/3fa1f6df1214-saddle-points)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/96d69873-e1ce-41dd-9333-645272090396-an-overview-of-gradient-descent-optimization-algorithms)
