Write Adam's full update rule.
mediumAnswer
- (first moment); (second moment).
- Bias-corrected: , .
- Update: θ ← .
- Defaults: , , ε=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 (v), applies bias correction, updates θ - η·m̂/√v̂
- Adam is deterministic
- Adam removes momentum
Adam: EMA of g and , bias-corrected → per-param LR + momentum.
#optimizers
Practise Deep Learning
214 interview questions in this topic.