Back to ML Engineer Mind Map
中文·English
💻 ML EngineerID: mle-optimizer-convergence-rules

Optimizer Convergence & Momentum

优化器收敛性与动量选型准则
🎯Core Definition
Optimizer Convergence Dynamics & Momentum Selection Rules establishes the algorithmic decision matrix choosing between first-order momentum and adaptive learning rate optimizers based on model topology (CNNs, Transformers, Sparse Embeddings); the 3 dominant families are: 1) SGD with Momentum / Nesterov Accelerated Gradient (NAG), dominating Computer Vision due to flat minima generalization; 2) AdamW (Decoupled Weight Decay Adam: updating θt+1=θtη(mtvt+ϵ+λθt)\theta_{t+1} = \theta_t - \eta (\frac{m_t}{\sqrt{v_t} + \epsilon} + \lambda \theta_t) by isolating weight decay from adaptive gradient scaling), serving as the universal standard for Transformers and LLMs; 3) AdaGrad / FTRL, optimizing sparse categorical embeddings in ad ranking.
💡Use Cases
LLM pre-training/fine-tuning, computer vision network training, and debugging training divergence or loss oscillations.
Key Problems Solved
Original Adam coupled L2 regularization into gradient updates, causing adaptive learning rate scaling to suppress weight decay on frequent tokens and degrading generalization; AdamW decouples weight decay, achieving fast convergence and superior out-of-distribution generalization.
🎯5 High-Frequency Exam Points
1
Derive the mathematical difference between original Adam and AdamW in weight decay updates, explaining why L2 regularization fails in Adam?
2
Derive the initial step bias correction formulas m^t=mt1β1t\hat{m}_t = \frac{m_t}{1 - \beta_1^t} and v^t=vt1β2t\hat{v}_t = \frac{v_t}{1 - \beta_2^t} in Adam/AdamW?
3
Why does SGD with Momentum often generalize better to flat minima in Computer Vision compared to adaptive optimizers?
4
Explain memory savings of Adafactor (low-rank factorization) and the sign-gradient operation of the Lion optimizer?
5
How to tune β1,β2,\beta_1, \beta_2, and ϵ\epsilon to stabilize training against loss spikes and gradient oscillations in mixed precision?
🔗Foundational Prerequisite Cards (Click to Review)
📖 In-depth Guide:📄 mle-core-cheatsheet
Updated 2026-08-14
🎯
Test Your Knowledge: Practice Questions for "Optimizer Convergence & Momentum"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardLoss Function Taxonomy & GradientsNext CardEnsemble Stacking & Blending

🔗 More ML Engineer Knowledge Cards

Bias-Variance Tradeoff & OverfittingModel Compression, Pruning & QuantLive Coding: Multi-Head Self-AttentionLive Coding: Numerically Safe Softmax