Adam Optimiser Calculator

Simulate Adam, AdamW, and AMSGrad updates, inspect every moment calculation, compare optimisers, analyse convergence, and export complete machine learning optimisation results instantly during training.

Calculation Results

Ready
Enter values and select Calculate Adam Update.
New parameter value
Update amount
Selected method
Adam
First moment mₜ
Second moment vₜ
Corrected m̂ₜ
Corrected v̂ₜ
Effective learning rate
Gradient magnitude
Update direction
Parameter change
Calculation steps will appear here.
IterationPrevious θGradientmₜvₜm̂ₜv̂ₜUpdateNew θEffective step
No simulation data yet.
OptimiserUpdateNew parameterMagnitudeStateObservation
No comparison data yet.
No detailed output yet.

Input Parameters


Gradient sequence options

Spaces, commas, semicolons, and line breaks are accepted.

Repeated gradient options

Multiple parameter options

Hyperparameter sensitivity ranges


Result Tools

Formula Used

mₜ = β₁mₜ₋₁ + (1 − β₁)gₜ vₜ = β₂vₜ₋₁ + (1 − β₂)gₜ² m̂ₜ = mₜ ÷ (1 − β₁ᵗ) v̂ₜ = vₜ ÷ (1 − β₂ᵗ) θₜ = θₜ₋₁ − αm̂ₜ ÷ (√v̂ₜ + ε)

Adam combines momentum with adaptive variance scaling. Bias correction compensates for zero-initialised moments. Epsilon prevents unstable division near zero.

How to Use

  1. Select a calculation mode and optimiser method.
  2. Enter the parameter, gradient, learning rate, and moment values.
  3. Use sequence, repeated, or multi-parameter inputs when required.
  4. Select Calculate Adam Update to generate detailed results.
  5. Review warnings, charts, comparisons, and export options.

Example Data

ScenarioParameterGradientLearning rateβ₁β₂Use
Default Adam1.0000.1000.0010.90.999General training
Noisy gradient1.000Sequence0.0010.90.999Momentum smoothing
AdamW1.0000.1000.0010.90.999Weight decay
Large gradient1.00020.0000.0010.90.999Scale adaptation

Adam Hyperparameter Guide

Learning rate α
Controls update size. Large values accelerate movement but can destabilise training.
Beta 1 β₁
Controls momentum memory. Larger values smooth noisy gradients more strongly.
Beta 2 β₂
Controls squared-gradient smoothing. Large values produce slower variance adaptation.
Epsilon ε
Improves numerical stability. Oversized epsilon weakens adaptive scaling.

Frequently Asked Questions

What does Adam mean?

Adam means Adaptive Moment Estimation. It tracks moving averages of gradients and squared gradients. These estimates control every parameter update.

Why does Adam need bias correction?

Moment estimates begin at zero. Early values are therefore biased downward. Bias correction compensates during initial iterations.

What is a good learning rate?

A common starting value is 0.001. The best value depends on data and architecture. Validation performance should guide final tuning.

What is AdamW?

AdamW decouples weight decay from gradient adaptation. This produces clearer regularisation behaviour. It is common in modern deep learning.

What is AMSGrad?

AMSGrad keeps the maximum historical variance estimate. This prevents some adaptive denominator decreases. It may improve stability in selected problems.

Why is epsilon required?

Epsilon prevents division by zero. It also affects very small denominator values. Extremely large epsilon reduces Adam’s adaptiveness.

Can Adam handle sparse gradients?

Adam adapts each parameter independently. This often helps sparse-gradient problems. Performance still depends on model and data.

Does Adam always converge better?

No optimiser dominates every task. Adam often trains quickly. SGD may generalise better in some settings.

How are multiple parameters calculated?

Each parameter maintains separate moment states. This calculator applies the same hyperparameters independently. Parameter and gradient counts must match.

Adam Optimiser Calculator

Related Calculators

Gradient Descent CalculatorStochastic Gradient Descent CalculatorMomentum Optimiser CalculatorLearning Rate Decay CalculatorK-Nearest Neighbours CalculatorKNN Majority Vote CalculatorQ-Learning Update CalculatorMulti-Armed Bandit CalculatorModel Calibration CalculatorBrier Score Calculator

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.