AdamW

Category: Foundations of ML/AI

A variant of Adam that decouples weight decay from the gradient update, providing better regularization.

Full Explanation

AdamW, introduced by Loshchilov and Hutter in 2019, fixes a subtle issue in the original Adam optimizer's handling of weight decay. In standard Adam, L2 regularization interacts with the adaptive learning rate in unintended ways, making weight decay less effective. AdamW decouples the weight decay from the gradient-based update, applying it directly to the weights rather than through the gradient. This seemingly small change leads to significantly better generalization in practice. AdamW has become the default optimizer for training transformers and large language models. It is used in the training of GPT, BERT, and most modern large-scale models. The decoupled weight decay provides more consistent regularization regardless of the adaptive learning rate adjustments.

Related Terms

More in Foundations of ML/AI

Explore More