paper-with-me

홈 › Papers

Adam Accumulation to Reduce Memory Footprints of both Activations and Gradients for Large-scale DNN Training

2023-05-31 · Yijia Zhang, Yibo Han, Shijie Cao, Guohao Dai, Youshan Miao, Ting Cao, Fan Yang, Ningyi Xu

Running out of GPU memory has become a main bottleneck for large-scale DNN training. How to reduce the memory footprint during training has received intensive research attention. We find that previous gradient accumulation reduces activation memory but fails to be compatible with gradient memory reduction due to a contradiction between preserving gradients and releasing gradients. To address this issue, we propose a novel optimizer accumulation method for Adam, named Adam Accumulation (AdamA), which enables reducing both activation and gradient memory. Specifically, AdamA directly integrates gradients into optimizer states and accumulates optimizer states over micro-batches, so that gradients can be released immediately after use. We mathematically and experimentally demonstrate AdamA yields the same convergence properties as Adam. Evaluated on transformer-based models, AdamA achieves up to 23% memory reduction compared to gradient accumulation with less than 2% degradation in training throughput. Notably, AdamA can work together with memory reduction methods for optimizer states to fit 1.26x~3.14x larger models over PyTorch and DeepSpeed baseline on GPUs with different memory capacities.

📄 PDF Abstract BibTeX arXiv:2305.19982

Code (0)

등록된 구현이 없습니다.

Tasks

GPU

Methods 이 논문이 사용한 방법론

Adam 설명 없음

Similar Papers 제목 키워드 기반

LNS-Madam: Low-Precision Training in Logarithmic Number System using Multiplicative Weight Update

2021-06-26 · Jiawei Zhao, Steve Dai, Rangharajan Venkatesan, Brian Zimmer 외

Representing deep neural networks (DNNs) in low-precision is a promising approach to enable efficient acceleration and memory reduction. Previous methods that train DNNs in low-precision typically keep a copy of weights …

Quantization

Memory-Efficient Optimization with Factorized Hamiltonian Descent

2024-06-14 · Son Nguyen, Lizhang Chen, Bo Liu, Qiang Liu

Modern deep learning heavily depends on adaptive optimizers such as Adam and its variants, which are renowned for their capacity to handle model scaling and streamline hyperparameter tuning. However, these algorithms typ…

KVarN: Variance-Normalized KV-Cache Quantization Mitigates Error Accumulation in Reasoning Tasks

2026-06-02 · Lorenz K. Muller, Philippe Bich, Chiara Boretti, Hyun-Min Chang 외 arxiv

Test-time scaling is a powerful approach to obtain better reasoning in large language models, but it becomes memory-bottlenecked during long-horizon decoding, as the KV-cache grows. KV-cache quantization can help improve…

ButterflyQuant: Ultra-low-bit LLM Quantization through Learnable Orthogonal Butterfly Transforms

2025-09-11 · Bingxin Xu, Zhen Dong, Oussama Elachqar, Yuzhang Shang arxiv

Large language models require massive memory footprints, severely limiting deployment on consumer hardware. Quantization reduces memory through lower numerical precision, but extreme 2-bit quantization suffers from catas…

TokenPilot: Cache-Efficient Context Management for LLM Agents

2026-06-15 · Buqiang Xu, Zirui Xue, Dianmou Chen, Chenyang Fu 외 arxiv

As LLM agents are deployed in long-horizon sessions, context accumulation drives up inference costs. Existing approaches utilize text pruning or dynamic memory eviction to minimize token footprints; however, their uncons…