Legacy Concept Lab
Adam & Adaptive Gradient Methods
Large foundation models almost universally use Adam or AdamW for pretraining and fine-tuning
#3AdamOptimization
key equation
Phase 3: Optimization & generalizationConcept 3 of 100
Why It Matters for Modern Models
- Large foundation models almost universally use Adam or AdamW for pretraining and fine-tuning
- RLHF and diffusion training use Adam-style optimizers to handle noisy gradients and widely varying scales
What Tutorials Skip
What is still poorly explained in textbooks and papers:
- Geometric explanation of how per-coordinate scaling with 1/√vₜ interacts with overparameterized nets—why it sometimes hurts generalization vs SGD
- How Adam bias-correction and exponential averaging interact with curriculum and non-stationary objectives (e.g. RLHF)
Interactive Visualization
Core Math (Optional Deep Dive)
If you want intuition first, start with the key equation and the visualization. Come back here for the full walkthrough.
Key Equation
For gradient :
Convergence analyses show that naïve Adam can diverge on simple convex problems and motivate variants like AMSGrad.