What is an EMA of weights and why do modern training recipes use it?
mediumAnswer
- Maintain a shadow copy of the weights updated as ← every step, with α ~ 0.999-0.9999.
- Evaluate / deploy with , not the raw training weights.
- The EMA lives at the center of a flat minimum → ~0.5-1% better accuracy for free, better calibration, more stable predictions.
- Widely used in diffusion training (essential for sample quality), BYOL / DINO self-supervised methods (EMA teacher), and modern classification recipes.
Check yourself — multiple choice
- EMA is only a sanity check
- Exponential moving average of weights → evaluate on EMA copy → better accuracy, calibration, stability; essential in diffusion / SSL teachers
- Same as gradient accumulation
- Deprecated technique
Weight EMA: shadow copy at the center of a flat minimum → free accuracy + stability.
#training#regularization#distillation
Practise Deep Learning
214 interview questions in this topic.
Related questions
- How does dropout work and when is it applied?
- What is stochastic depth / DropPath and where is it used?
- What is early stopping and how do you configure it?
- What is Stochastic Weight Averaging (SWA)?
- What is adversarial training (PGD, FGSM)?
- Your validation loss is lower than your training loss. Is something broken?