Skip to content

    Adafactor

    Reading time: 3 min.Editorially reviewed on:

    Definition

    Adafactor saves additional memory during training of neural networks by storing parameter statistics in a simplified manner.

    Adafactor is a memory-saving optimization method for neural networks. For weight matrices, it keeps statistics per row and column and estimates values for individual parameters from these. This requires less additional memory than methods that store corresponding statistics for each parameter individually.

    Simply explained

    Instead of recording every single number, the method remembers summaries for rows and columns, saving space.

    Why it matters in practice

    Adafactor can reduce additional optimizer memory during training of large models. The reported memory advantage does not imply fundamentally better model quality.

    Example from business

    Possible example: When training a large transformer model, Adafactor reduces memory for estimating second moments, allowing more model parameters or larger batches to fit into the available accelerator memory.

    Limits and pitfalls

    • Less memory requirement does not automatically mean better quality. Adam settings must not be adopted without verification: learning rate and weight decay are used differently in Adafactor.

    Origin & history

    Noam Shazeer and Mitchell Stern submitted Adafactor as a preprint on April 11, 2018; version 1 is the only version.

    Use in mid-sized companies

    • Possible application areas: own training or fine-tuning of large models when accelerator memory is limited. No own training occurs with finished models used via interfaces.

    Frequently asked questions

    How does the learning rate differ from Adam?

    Adafactor works with relative parameter changes instead of an absolute step size.

    Why does it limit updates?

    Too large changes can destabilize training.

    Why can PyTorch operate more slowly?

    The default setting saves memory with a single tensor loop.

    How does factorization save memory?

    For an n-by-m matrix, the corresponding memory requires space proportional to n + m instead of n·m.

    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