Answer
- mt=β1⋅mt−1+(1−β1)⋅gt (first moment); vt=β2⋅vt−1+(1−β2)⋅gt2 (second moment).
- Bias-corrected: mhat=mt/(1−β1t), vhat=vt/(1−β2t).
- Update: θ ← θ−η⋅mhat/(sqrt(vhat)+ε).
- Defaults: β1=0.9, β2=0.999, ε=1e-8.
- Combines momentum and per-param LR — robust default optimizer.
Check yourself — multiple choice
- Adam uses only the second moment
- Adam maintains EMAs of g (m) and g2 (v), applies bias correction, updates θ - η·m̂/√v̂
- Adam is deterministic
- Adam removes momentum
Adam: EMA of g and g2, bias-corrected → per-param LR + momentum.
#optimizers
Practise Deep Learning
214 interview questions in this topic.