# ADADELTA: An Adaptive Learning Rate Method

ADADELTA adapts learning rates per dimension without a hand-tuned global rate

Matthew D. Zeiler · arXiv · 2012-12-22

- **Problem** Gradient descent needs a hand-tuned global learning rate. ADAGRAD removes that need, but its summed squared gradients shrink the rate toward zero.
- **Method** ADADELTA keeps a decaying average of squared gradients instead of ADAGRAD's full sum. It scales each step by the RMS of past updates over the RMS of recent gradients.
- **Results** ADADELTA's MNIST test error stayed between 1.83% and 2.59% across every tested ρ and ϵ setting, where SGD ranged up to 58.10%.

## Why one global learning rate is hard to set

Gradient descent moves the parameters against the gradient, and the learning rate sets how far each step goes. That rate is usually chosen by hand, and the search often feels more like craft than method. A rate set too high makes the objective diverge, while one set too low makes learning crawl. Annealing schedules and momentum soften the problem, but each adds its own knobs.

## Where ADAGRAD's accumulation stalls

ADAGRAD gives each dimension its own rate by dividing a shared global rate by the root of all past squared gradients. Dimensions with large gradients get small rates and dimensions with small gradients get large ones, which suits deep networks whose layers differ by orders of magnitude. The catch is that the sum only grows, so the rates fall steadily and can approach zero.

A large early gradient also keeps the rates low for the rest of training. The authors wanted to keep the per-dimension scaling while removing both the continual decay and the hand-set global rate.

## Windowed averages and a units check

The core idea keeps ADAGRAD's per-dimension scaling but changes what gets accumulated. Instead of summing every squared gradient since the start, the method keeps a decaying average that acts like a window over recent gradients. Taking the square root of that average gives an RMS of recent gradients, with a small constant ϵ added for conditioning.

The second idea concerns units, since the authors argue that SGD and momentum updates scale like the inverse of the parameter's units. Newton-style steps have the right units because they multiply by the inverse curvature. Rearranging the Newton relation expresses the inverse curvature as the update size divided by the gradient. The current update is unknown, so the authors estimate it from the RMS of past updates, assuming the curvature changes smoothly.

## One update, step by step

Each iteration starts by computing the gradient for the current sample or batch. The running average of squared gradients is then updated, as \\(E\[g^2\]\_t = \\rho E\[g^2\]\_{t-1} + (1-\\rho) g\_t^2\\). The step is the gradient scaled by the ratio of the RMS of past updates to the RMS of recent gradients: \\\[\\Delta x\_t = -\\frac{RMS\[\\Delta x\]\_{t-1}}{RMS\[g\]\_t}\\, g\_t\\\]

Because the numerator lags one step behind, a sudden large gradient inflates the denominator before the numerator can respond, which shrinks the step at that moment. The update still points opposite the current gradient, as in SGD, so it keeps descending. Its numerator plays the part of momentum by averaging past updates, while the denominator evens out progress per dimension as ADAGRAD does.

After the step, the running average of squared updates is updated with the new step, and the parameters move. No global learning rate appears in the formula, and each iteration costs one gradient computation.

## MNIST with tanh units

The first MNIST run used tanh units, with 500 hidden units in the first layer, 300 in the second and a softmax output. Mini-batches held 100 images, and the authors trained for 6 epochs. The authors stress that 6 epochs is far from convergence, so this number measures early speed rather than final accuracy.

## Convergence over 50 epochs

For the longer comparison, the authors switched to rectified linear units, which they found to train better in practice than tanh. They kept 500 and 300 hidden units and trained for 50 epochs. Plain SGD does worst, and momentum gives a clear improvement over it. ADAGRAD does well through about epoch 10, then slows as its denominator grows.

ADADELTA matches ADAGRAD's fast start and keeps lowering test error.

Given enough epochs, Momentum ended at a better final solution than ADADELTA. In this run, ADADELTA starts fast but ends behind momentum.

## Sensitivity to the hyperparameter grid

The authors varied the learning rate settings for SGD, Momentum and ADAGRAD, and varied ρ and ϵ for ADADELTA, all at 6 epochs with rectified linear units. SGD's test error goes from 2.26% at its best setting to 58.10% at the other end of the table. ADAGRAD runs from 1.79% at its best setting to 43.76% at the other end, and Momentum swings from 2.03% to 89.68%.

The authors say these methods need the rate set to the right order of magnitude, since high rates diverge and low ones crawl.

ADADELTA's test error stays between 1.83% and 2.59% across every ρ and ϵ combination in Table 2. The best ADAGRAD point, 1.79%, sits slightly below ADADELTA's best of 1.83%, so the advantage lies in the spread rather than in the best point.

## Effective step sizes during training

To see whether the design behaves as intended, the authors logged effective step sizes during training. They tracked 10 randomly chosen dimensions in each of the 3 weight matrices of a tanh MNIST network for 25 epochs, recording every 60 batches. Early on, the step sizes are larger in the lower layers than in the top layer, which the authors link to smaller gradients in the lower layers.

Late in training the step sizes converge toward 1, which would make most methods diverge. This happens only when gradients and updates are already small, so the ϵ constants dominate the sums. The parameter changes then shrink toward zero, which the authors describe as behaving like an annealing schedule.

## Speech experiments with many replicas

Each hidden layer has 2560 hidden units, and the input is 26 frames of 40 log-energy filter bank outputs. The 8,000 senone outputs come from a GMM-HMM system with forced alignment. A central parameter server collects gradients from many replicas of the network.

With 100 replicas and logistic units, ADADELTA used the same ϵ = 1e−6 and ρ = 0.95 as on MNIST. Its frame accuracy rose faster than ADAGRAD's early on and stayed ahead through training. The comparisons appear as accuracy curves over time, and the text gives no final values.

With 200 replicas and rectified linear units, the authors kept the same hyperparameters. The 200 replicas add noise to the gradient accumulations, yet ADADELTA matched the frame accuracy of the other methods. This run compares ADADELTA with ADAGRAD and Momentum.

## Limits of the evidence

The update rests on a diagonal curvature assumption, so the step is an approximation rather than an exact Newton step. The curvature estimate uses only RMS statistics of past gradients and updates.

On MNIST, Momentum with suitable settings finished ahead of ADADELTA late in training. The authors suspect ADADELTA lacks an explicit annealing schedule, so oscillations can build up in its numerator. They leave adding an annealing schedule to future work.

The MNIST runs used one network with two hidden layers of 500 and 300 units, with tanh or rectified linear units. The speech runs compared ADADELTA with ADAGRAD at 100 replicas, and with ADAGRAD and Momentum at 200 replicas. The speech runs reuse the MNIST ϵ and ρ, and no sweep over them is reported there. The hyperparameter grid covers only 6-epoch MNIST runs, so the broader claim that the settings need no tuning rests on those ranges.

## Paper info

- **Authors**: Matthew D. Zeiler
- **Venue**: arXiv · Preprint
- **First published**: 2012-12-22
- **Added**: 2026-11-11
- **Updated**: 2012-12-22
- **Version**: v1
- **arXiv**: 1212.5701
- **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/1212.5701v1) · [PDF ↗](https://arxiv.org/pdf/1212.5701v1)

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

Matthew D. Zeiler (2012). ADADELTA: An Adaptive Learning Rate Method. arXiv:1212.5701v1. https://arxiv.org/abs/1212.5701v1

**BibTeX**

```
@misc{zeiler2012adadelta,
  title = {{ADADELTA: An Adaptive Learning Rate Method}},
  author = {Matthew D. Zeiler},
  year = {2012},
  eprint = {1212.5701},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1212.5701v1}
}
```

## Other paper commentary

- [An overview of gradient descent optimization algorithms](https://refivu.com/en/papers/96d69873-e1ce-41dd-9333-645272090396-an-overview-of-gradient-descent-optimization-algorithms.md)
- [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)
- [Dynamic Graph CNN for Learning on Point Clouds](https://refivu.com/en/papers/a7ba9236-fc2d-445b-bae5-b02e11ac4255-dynamic-graph-cnn-for-learning-on-point-clouds.md)
- [Unsupervised Cross-lingual Representation Learning at Scale](https://refivu.com/en/papers/6b2842f9-6ee4-433e-84ed-ae8dc85bdb0a-unsupervised-cross-lingual-representation-learning-at-scale.md)
- [ShuffleNet V2: Practical Guidelines for Efficient CNN Architecture Design](https://refivu.com/en/papers/d1e3c93e-79dc-4e3d-a949-2f726da0b409-shufflenet-v2-practical-guidelines-for-efficient-cnn.md)
- [Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Coding](https://refivu.com/en/papers/7b8d214e-c983-4cf0-910e-176f0c996770-deep-compression-compressing-deep-neural-networks-with.md)
- [Cascade R-CNN: Delving into High Quality Object Detection](https://refivu.com/en/papers/8374d444-20db-4d12-9b4c-6fa3eca5e1d6-cascade-r-cnn-delving-into-high-quality-object.md)
- [Real-Time Single Image and Video Super-Resolution Using an Efficient Sub-Pixel Convolutional Neural Network](https://refivu.com/en/papers/c2c293f4-dc72-4731-8795-3cf7b87f96e1-real-time-single-image-and-video-super-resolution.md)

## Terms in this paper

- [Stochastic Gradient Descent](https://refivu.com/en/terms/a49650824022-stochastic-gradient-descent)
- [Adagrad](https://refivu.com/en/terms/d6141e5e2b98-adagrad)
- [Adadelta](https://refivu.com/en/terms/f8ccffb7eddb-adadelta)
- [Hessian](https://refivu.com/en/terms/cb53640b58ff-hessian)
- [cross entropy](https://refivu.com/en/terms/f914876d14b2-cross-entropy)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/e2abf038-96af-4e19-bbda-5c8262404473-adadelta-an-adaptive-learning-rate-method)
