Foundations to Frontier
Tests
E. Deep Learning › E3 Optimizers (one page each)

AdaBelief

AdaBelief changes one quantity in Adam: instead of a moving average of g², it divides by a moving average of (g − m)², how far each gradient deviates from the momentum's prediction. When gradients are consistent (the 'belief' is confirmed), the denominator is small and steps are large; when they are noisy, steps shrink. The authors reported Adam-like speed with SGD-like generalisation. This page covers the update, the mean-square versus variance distinction, its effective step size and a fair way to compare optimisers. In the exercises you show AdaBelief steps about ten times further than Adam on consistent gradients and about the same on noisy ones, then compare them on three problems: at a fixed small learning rate AdaBelief was three to four times faster, but at each method's best learning rate the advantage nearly vanished.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

Trust the gradient when it is predictable

Adam shrinks each step by the typical size of recent gradients. AdaBelief instead shrinks it by how surprising the gradient is: how far it lands from what the momentum predicted. If the gradient keeps saying the same thing, even loudly, there is little surprise, so AdaBelief steps boldly. If the gradient jumps around, it is surprising, so AdaBelief steps cautiously. One line of Adam changes.

Optimizer lab: AdaBelief versus plain gradient descent
AdaBelief: final loss 2.4e-6 (target reached at step 37) · gradient descent: final loss 2.2e-9 (step 22)
Orange: the chosen optimizer; grey dashed: plain gradient descent with the same learning rate. Darker shading means higher loss. On the ill-conditioned bowl, raise κ and watch gradient descent zig-zag across the narrow direction; on the saddle it stalls near the flat start; on the plateau its gradients are tiny. Adaptive methods rescale each direction; momentum methods build speed along consistent directions. The target is 1% of the starting loss (for the saddle, a loss below −0.2; its minima are at −0.25).
Why engineers care

AdaBelief is a drop-in replacement for Adam that was reported to train as fast as Adam while generalising closer to SGD, and it has been used for image classification and GANs. It is also a good lesson in comparing optimisers: an optimiser that takes larger effective steps will look faster at any fixed learning rate. Fair comparisons tune the learning rate for each method.

📝 Quick check (Level 0)
0/3 answered
  1. 1. AdaBelief divides by a moving average of…
  2. 2. With consistent gradients, AdaBelief's steps are…
  3. 3. A fair optimiser comparison should…

Level 1: Beginner

★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.

By hand

  • Update: m ← β₁m + (1 − β₁)g; s ← β₂s + (1 − β₂)((g − m)² + ε); w ← w − η·m̂/(√ŝ + ε), with bias corrections as in Adam.
  • Denominators: Adam’s v estimates E[g²] = μ² + σ², while AdaBelief’s s estimates roughly Var(g) = σ², the variance around the mean.
  • Constant gradients: for gradients (2, 2, 2), the mean square is 4 and the variance is 0, so AdaBelief’s denominator is set by ε alone and its steps can be very large.
  • Long-run step per unit η: Adam’s is μ/√(μ² + σ²); AdaBelief’s is about μ/σ.
    • For μ = 1, σ = 0.1: Adam 0.995, AdaBelief 10.
    • For μ = 0.1, σ = 1: about 0.1 for both.
  • Belief term: for g = (1, 3) and m = (1, 1), (g − m)² = (0, 4).
📝 Quick check (Level 1)
0/3 answered
  1. 1. AdaBelief's step per unit η for μ = 1, σ = 0.5?
  2. 2. For constant gradients, AdaBelief's denominator is set by…
  3. 3. Adam's denominator estimates…

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 25 minUndergraduate students and practising engineers.

AdaBelief in code

Exercise 1.

  • For consistent gradients (mean 1, standard deviation 0.1), Adam’s step was 0.97η and AdaBelief’s 10.5η, about the μ/σ = 10 the analysis predicts.
  • For noisy gradients (mean 0.1, standard deviation 1) the two were similar (0.41η and 0.45η).

AdaBelief’s distinctive behaviour is in the consistent regime.

Practice.

  • The authors’ defaults are η = 10⁻³, β = (0.9, 0.999), and ε = 10⁻¹⁶. ε matters more than in Adam, because the denominator can be tiny, so it caps the step when gradients are very consistent.
  • The official package also offers decoupled weight decay and rectification (RAdam-style).
  • When comparing with Adam, tune the learning rate separately for each: AdaBelief’s effective step at a given η is larger.
from adabelief_pytorch import AdaBelief
AdaBelief(params, lr=1e-3, eps=1e-16, betas=(0.9, 0.999), weight_decouple=True, rectify=False)
🐍 Exercise 1: mean square versus variance
Track Adam's and AdaBelief's second-moment estimates along consistent and noisy gradient sequences, and compare the resulting step sizes.
📝 Quick check (Level 2)
0/3 answered
  1. 1. AdaBelief's recommended ε is about…
  2. 2. Why does ε matter more in AdaBelief?
  3. 3. On noisy gradients AdaBelief and Adam take…

Level 3: Advanced

★★★★☆ Advanced⏱ 25 minGraduate level, with full derivations and proofs.

Theory

What the denominator measures. Adam’s √v approximates √(E[g²]), which mixes signal and noise. AdaBelief’s √s approximates the noise standard deviation σ alone. Dividing m by σ is a signal-to-noise step: in the limit, AdaBelief’s per-coordinate step is about ημ/σ.

  • It takes a large step when the signal is clear, even if the gradient is large.
  • It takes a small step when the gradient is noisy.
  • In a region where gradients are large and consistent (a steep, smooth slope), Adam steps about η while AdaBelief can step much further.

Curvature intuition. The authors argued that (g − m)² relates to how quickly the gradient changes, a crude curvature proxy: little change means low curvature, where a larger step is safe.

Fair comparisons. Because AdaBelief’s effective step at a fixed η is larger whenever gradients are consistent, comparing the two at one shared learning rate mostly measures step size, not the quality of the method. The authors and later reproductions report mixed results once learning rates are tuned separately; exercise 2 shows the same effect.

Theory. Convergence guarantees similar to AMSGrad’s hold for a variant with a running maximum; the base method inherits Adam’s caveats.

📝 Quick check (Level 3)
0/3 answered
  1. 1. AdaBelief's long-run step is approximately…
  2. 2. Comparing optimisers at one shared learning rate mostly measures…
  3. 3. AdaBelief was introduced by…

Level 4: Expert

★★★★★ Expert⏱ 25 minResearchers: original papers and open problems.

A fair comparison with Adam

History.

  • J. Zhuang et al. (2020) introduced AdaBelief at NeurIPS, reporting fast convergence and good generalisation on image classification, language modelling and GANs.
  • Subsequent benchmarks found its advantages problem-dependent.
  • R. Schmidt, F. Schneider and P. Hennig (2021) benchmarked 15 optimisers and found that tuning matters more than the choice among Adam-like methods.

Exercise 2. Adam and AdaBelief at learning rates from 0.001 to 0.3 on three problems:

  • a 20-dimensional quadratic (κ = 100);
  • the same with gradient noise;
  • a small tanh network on spirals.

The table gives steps to the target (“—” means not reached in time).

problem method 0.001 0.003 0.01 0.03 0.1 0.3
quadratic Adam 5372 2378 801 261 72 54
quadratic AdaBelief 1573 815 365 160 62 52
noisy quadratic Adam 2192 782 233 74 27 15
noisy quadratic AdaBelief 539 260 110 50 24 15
network Adam — 290 120 70 40 90
network AdaBelief 550 220 100 70 30 60
  • At a fixed small learning rate, AdaBelief looked much faster: 3.4–4.1 times fewer steps on the quadratics at η = 0.001, because its effective step is larger.
  • At each method’s best learning rate the advantage nearly vanished. It was a tie on both quadratics (54 against 52 and 15 against 15), and 30 against 40 steps on the network.
  • AdaBelief was less sensitive to choosing η too small, which is a real practical benefit: it reached the target from η = 0.001 on the network, where Adam did not.
  • Lesson: compare optimisers at their own tuned learning rates. Most of the apparent speed-up here was step size, not a better algorithm.
🐍 Exercise 2 (research): a fair comparison with Adam
Count steps to target for Adam and AdaBelief over a grid of learning rates on a quadratic, a noisy quadratic and a small network, and compare both at a fixed learning rate and at each method's best.

AdaBelief in AI, robotics and aerospace

  • Drop-in for Adam where training is slow at conservative learning rates; check against a tuned Adam.
  • GAN training for synthetic sensor data, where the authors reported more stable training.
  • Benchmarking practice: when evaluating any new optimiser for a perception or control pipeline, tune its learning rate separately before drawing conclusions.

References

  1. J. Zhuang, T. Tang, Y. Ding, S. Tatikonda, N. Dvornek, X. Papademetris, J. Duncan (2020). “AdaBelief optimizer: adapting stepsizes by the belief in observed gradients.” Advances in NeurIPS 33.
  2. R. M. Schmidt, F. Schneider, P. Hennig (2021). “Descending through a crowded valley: benchmarking deep learning optimizers.” Proc. ICML.
  3. D. P. Kingma, J. Ba (2015). “Adam: a method for stochastic optimization.” Proc. ICLR.