124Implement the AdamW optimizer from scratch and explain how decoupled weight decay differs from Adam.▼mediumOpenAIGoogle DeepMindMeta1 replies◆ premiumA build-it-yourself check on modern optimizers. What matters is the moment estimates, bias correction, and the single change that counts: AdamW decouples weight decay from the gradient rather than folding it into the loss. The code follows, plus why it wins.Open full answer →
07Compare SGD, momentum, RMSProp, Adam, and AdamW. Why does AdamW decouple weight decay?▼mediumNVIDIAGoogleMeta2 repliesunlockedOptimizer questions probe whether you grasp what each one adapts and the subtle AdamW fix that the whole field now relies on. The signal is the per-parameter adaptivity story plus why tying weight decay to Adam was a bug. Here is that answer.Open full answer →