Skip to content

    AdamW

    AI fundamentals & modelsAdam with decoupled weight decay
    Reading time: 3 min.Editorially reviewed on:

    Definition

    AdamW is a variant of Adam where weight decay is decoupled from the optimization steps related to the loss function.

    AdamW is a variant of the Adam optimizer that separates weight decay from the optimization of the loss function. The weights are thus reduced independently of the adaptive adjustments. This step does not accumulate in the momentum or variance estimates.

    Simply explained

    Adam decides how learning proceeds; AdamW additionally pulls weights back slightly in a separate step instead of mixing this effect into the same gradient. The image simplifies: in fact, weights are reduced by a small factor in the calculation.

    Why it matters in practice

    AdamW allows learning rate and weight decay to be tuned separately. This can improve the transferability of learned patterns to new data; the benefit must fit the task.

    Example from business

    Possible example: When fine-tuning a Transformer model, a team uses AdamW and adjusts learning rate and weight decay separately using a validation set.

    Limits and pitfalls

    • AdamW is not just a new name for Adam. Its weight decay is decoupled; L2 regularization is not equivalent for adaptive optimizers. Library defaults should be checked.

    Origin & history

    Ilya Loshchilov and Frank Hutter submitted the work on decoupled weight decay as a preprint on November 14, 2017; it appeared as a conference paper at ICLR 2019. The authors call their variant “Adam with decoupled weight decay (AdamW).”

    Use in mid-sized companies

    • Possible applications: own model training and fine-tuning when learning rate and weight decay should be tuned separately.

    Frequently asked questions

    Is there decoupled weight decay also for SGD?

    Yes, as SGDW with momentum.

    Is AdamW always better?

    The reported advantages concern image classification; other tasks require their own tests.

    Does AdamW replace a learning rate schedule?

    No, a global learning rate schedule can still help, for example a cosine adjustment.

    Sources

    Sources checked on 14.10.2026. Editorial application examples are hypothetical; no evidence of real customer results.

    Editorially reviewed on:

    On this page

    Next step

    Put knowledge into practice