MicroAdam: Accurate Adaptive Optimization with Low Space Overhead and Provable Convergence
Abstract
We propose a new variant of the Adam optimizer called MicroAdam that specifically minimizes memory overheads, while maintaining theoretical convergence guarantees. We achieve this by compressing the gradient information before it is fed into the optimizer state, thereby reducing its memory footprint significantly. We control the resulting compression error via a novel instance of the classical error feedback mechanism from distributed optimization in which the error correction information is itself compressed to allow for practical memory gains. We prove that the resulting approach maintains theoretical convergence guarantees competitive to those of AMSGrad, while providing good practical performance. Specifically, we show that MicroAdam can be implemented efficiently on GPUs: on both million-scale (BERT) and billion-scale (LLaMA) models, MicroAdam provides practical convergence competitive to that of the uncompressed Adam baseline, with lower memory usage and similar running time. Our code is available at https://github.com/IST-DASLab/MicroAdam.
Cite
Text
Modoranu et al. "MicroAdam: Accurate Adaptive Optimization with Low Space Overhead and Provable Convergence." Neural Information Processing Systems, 2024. doi:10.52202/079017-0001Markdown
[Modoranu et al. "MicroAdam: Accurate Adaptive Optimization with Low Space Overhead and Provable Convergence." Neural Information Processing Systems, 2024.](https://mlanthology.org/neurips/2024/modoranu2024neurips-microadam/) doi:10.52202/079017-0001BibTeX
@inproceedings{modoranu2024neurips-microadam,
title = {{MicroAdam: Accurate Adaptive Optimization with Low Space Overhead and Provable Convergence}},
author = {Modoranu, Ionut-Vlad and Safaryan, Mher and Malinovsky, Grigory and Kurtic, Eldar and Robert, Thomas and Richtárik, Peter and Alistarh, Dan},
booktitle = {Neural Information Processing Systems},
year = {2024},
doi = {10.52202/079017-0001},
url = {https://mlanthology.org/neurips/2024/modoranu2024neurips-microadam/}
}