Skip to content
nonconvexcard

Derive Adam's bias correction

ProofBeginner⏱ 15 minSGDadambias correctionmoving average

Problem

Show that the exponential moving average mt=βmt−1+(1−β)gtm_t = \beta m_{t-1}+(1-\beta)g_t started from m0=0m_0 = 0 satisfies Emt=(1−βt)Eg\E m_t = (1-\beta^t)\E g under a stationary gradient distribution, and deduce the correction factor. Quantify the size of the bias at t=1t=1 and t=100t=100 for β=0.999\beta = 0.999.

Write a complete argument. Every inequality you use should be one you could state precisely.

Solution

Opening this before you have a real attempt on paper is the fastest way to feel like you understand something you cannot reproduce.

Related problems

All problems
SolvedProblemFieldTypeDifficultyTime
Will this fine-tune fit?Fine-TuningNumericalBeginner30 min
Why AdamW differs from Adam with L2SGDProofIntermediate30 min
The AdaGrad summation inequalitySGDProofAdvanced30 min
The SVRG control variateSGDProofAdvanced1 hour
Open: why does Adam beat SGD on transformers? abyssSGDProofResearchResearch