Skip to content

    Adam Optimizer

    AI fundamentals & modelsAdamAdaptive moment estimation
    Reading time: 3 min.Editorially reviewed on:

    Definition

    Adam adjusts the step size during model training based on previous update directions and their magnitude.

    Adam computes individual adaptive learning rates for different parameters from estimates of the first and second moments of the gradients. According to Kingma and Ba, the method is simple to implement, computationally efficient, has low memory requirements, and is invariant to diagonal rescaling of the gradients. The PyTorch documentation describes the calculation using moving averages of both moments (β1, β2) and a bias correction.

    Simply explained

    Like hiking, previous directions and slopes are considered to suitably adjust the next steps.

    Why it matters in practice

    Adam offers adapted step sizes for training neural networks, for example with many parameters or noisy gradients. Its suitability depends on the task.

    Example from business

    Possible example: When fine-tuning a neural network, Adam updates millions of parameters with adjusted step sizes instead of using exactly the same effective step for all parameters.

    Limits and pitfalls

    • Adam is not the best choice for every task. Adam and AdamW differ; L2 regularization and weight decay are not equivalent for adaptive optimizers.

    Origin & history

    Diederik P. Kingma and Jimmy Ba submitted Adam as a preprint on December 22, 2014; the work appeared as a conference paper at ICLR 2015.

    Use in mid-sized companies

    • Possible applications: own training or fine-tuning of neural networks, where learning rate and other optimizer settings are tuned based on own data and a validation set, and results are reproducibly documented.

    Frequently asked questions

    What does Adam stand for?

    According to Kingma and Ba, the name derives from “adaptive moment estimation.”

    What makes AdamW different from Adam?

    AdamW decouples weight decay from the steps related to the loss function.

    Can AdamW also be used via Adam in PyTorch?

    Yes, with decoupled_weight_decay=True the optimizer is equivalent to AdamW according to the documentation.

    Sources

    Sources checked on 14.10.2026. Editorial use cases are hypothetical; no evidence of real customer results.

    Editorially reviewed on:

    On this page

    Next step

    Put knowledge into practice