Skip to content
nonconvexcard

Why AdamW differs from Adam with L2

ProofIntermediate⏱ 30 minSGDadamwweight decaypreconditionerregularisation

Problem

Write the update of (a) Adam applied to f(θ)+λ2∥θ∥22f(\theta)+\frac\lambda2\|\theta\|_2^2 and (b) Adam with decoupled weight decay. Show the two coincide iff the preconditioner is a multiple of the identity, and explain why the L2L^2 version applies weaker shrinkage to high-variance coordinates.

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
Derive Adam's bias correctionSGDProofBeginner15 min
Bounding how far the adapted model movesFine-TuningProofIntermediate30 min
The soft-margin SVM is regularised hinge-loss minimisationClassical MLProofIntermediate30 min
Normalisation makes weights scale-invariantDeep LearningProofAdvanced30 min
The AdaGrad summation inequalitySGDProofAdvanced30 min