AdamW
What is AdamW?
In one sentence: AdamW is a version of Adam that handles weight decay in a cleaner way, which usually leads to better models.
Weight decay gently pulls weights toward zero to prevent overfitting. In original Adam, this effect got tangled up with Adam's step-size tricks. AdamW separates them, so weight decay works as intended.
What does AdamW look like?
Most large language models, including many GPT and Llama models, are trained with AdamW.
Why does AdamW matter?
AdamW is the default optimizer for training Transformers.
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/adamw/">AdamW, explained simply</a> (The AI Math Dictionary)