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.
★☆☆☆☆ 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. AdaBelief divides by a moving average of…
2. With consistent gradients, AdaBelief's steps are…
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. AdaBelief's step per unit η for μ = 1, σ = 0.5?
2. For constant gradients, AdaBelief's denominator is set by…
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 AdaBeliefAdaBelief(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. AdaBelief's recommended ε is about…
2. Why does ε matter more in AdaBelief?
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. AdaBelief's long-run step is approximately…
2. Comparing optimisers at one shared learning rate mostly measures…
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
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.
R. M. Schmidt, F. Schneider, P. Hennig (2021). “Descending through a crowded valley: benchmarking deep learning optimizers.” Proc. ICML.
D. P. Kingma, J. Ba (2015). “Adam: a method for stochastic optimization.” Proc. ICLR.
In exercise 2, at each method’s best η the advantage nearly vanished, though AdaBelief was more forgiving of a too-small η.
Practice
Show:
Level 0
Problem 1Level 0
(g − m)² for g = 3, m = 1?
4.
Problem 2Level 0
Mean square of gradients (2, 2, 2)?
4.
Problem 3Level 0
Variance of gradients (2, 2, 2)?
0.
Level 1
Problem 4Level 1
AdaBelief’s long-run step per unit η for μ = 1, σ = 0.1?
μ/σ = 10.
Problem 5Level 1
Adam’s long-run step per unit η for μ = 1, σ = 0.1?
1/√1.01 ≈ 0.995.
Problem 6Level 1
AdaBelief’s step per unit η for μ = 1, σ = 0.5?
2.
Problem 7Level 1
Adam’s step per unit η for μ = 0.1, σ = 1?
0.1/√1.01 ≈ 0.0995.
Level 2
Problem 8Level 2
AdaBelief’s measured step per unit η on consistent gradients in exercise 1?
≈ 10.5.
Problem 9Level 2
AdaBelief’s steps on the quadratic at η = 0.001 in exercise 2?
1573.
Problem 10Level 2
Adam’s steps on the quadratic at η = 0.001?
5372.
Problem 11Level 2
Adam’s best steps on the quadratic?
54.
Problem 12Level 2
AdaBelief’s best steps on the quadratic?
52.
Problem 13Level 2
AdaBelief’s best steps on the network?
30.
Level 3
Problem 14Level 3
Show that AdaBelief’s denominator estimates the gradient variance.
For stationary gradients with mean μ and variance σ², the momentum m tracks μ (with its own small fluctuation). Then E[(g − m)²] ≈ E[(g − μ)²] + Var(m) ≈ σ² + small. The moving average s therefore converges to about σ², while Adam’s v converges to E[g²] = μ² + σ². ∎
Problem 15Level 3
Explain why AdaBelief looked 3–4 times faster at η = 0.001 but not at the best η.
On the quadratic, gradients along the slowly converging directions are consistent, so AdaBelief’s denominator (their small variation) is far below Adam’s (their magnitude), and its effective step at η = 0.001 is several times larger. A small η is the regime where larger effective steps help most. Each method’s best η is where its effective step is as large as stability allows; at that point both are limited by the same curvature, and their step counts converge (54 against 52). ∎
Problem 16Level 3
Explain why AdaBelief needs a carefully chosen ε.
When gradients are nearly constant, (g − m)² is close to zero, and the step η·m̂/(√ŝ + ε) can become huge, limited only by ε. The ε inside the average and in the denominator caps it. The authors chose ε = 10⁻¹⁶ inside the average, much smaller than Adam’s default, which keeps steps large but bounded. Too small an ε risks giant steps when gradients become constant (for example at a plateau with a fixed gradient); too large an ε turns AdaBelief back into SGD with momentum. ∎
Problem 17Level 3
Design a fair comparison of AdaBelief against Adam for a perception model.
Tune the learning rate (and if feasible the weight decay and warm-up) separately for each optimiser on a validation set, with the same budget of trials. Use several seeds per configuration and report the mean and spread of time to target and final validation accuracy. Compare at each method’s best settings, and also report sensitivity: how performance degrades away from the best η (AdaBelief was more forgiving of a too-small η in exercise 2). Hold everything else fixed: data order, augmentation, model and schedule. ∎
Level 4
Problem 18Level 4
Adam’s best steps on the network?
40.
Problem 19Level 4
AdaBelief’s steps on the noisy quadratic at η = 0.001?
539.
Problem 20Level 4
AdaBelief’s steps on the network at η = 0.001?
550.
Coding practice
🐍 Code 1 (Level 1): AdaBelief step
Belief second moment, Adam-style step.
🐍 Code 2 (Level 0): belief term
(g − m)².
🐍 Code 3 (Level 0): mean square and variance
E[g²] and Var(g).
🐍 Code 4 (Level 1): long-run step ratios
Adam's and AdaBelief's steps per unit η.
🐍 Code 5 (Level 0): best over a grid
Fewest steps, ignoring failures.
Topic test
A timed test drawn at random from this topic's question bank. Each attempt gets new questions. For a longer test across the whole chapter, see the chapter test, or mix topics in the question bag.
AdaBelief: topic test
10 questions, drawn at random from a bank of 21. Every attempt is different.
⏱ Time limit: 15 minutes. The test submits itself when time runs out.
Levels covered: 0, 1, 2, 3, 4. No hints or solutions until you submit.