AutoChunk: Automated Activation Chunk for Memory-Efficient Long Sequence Inference
Not on the map. Why?
Abstract (arXiv)
Large deep learning models have achieved impressive performance across a range of applications. However, their large memory requirements, including parameter memory and activation memory, have become a significant challenge for their practical serving. While existing methods mainly address parameter memory, the importance of activation memory has been overlooked. Especially for long input sequences, activation memory is expected to experience a significant exponential growth as the length of sequences increases. In this approach, we propose AutoChunk, an automatic and adaptive compiler system that efficiently reduces activation memory for long sequence inference by chunk strategies. The proposed system generates chunk plans by optimizing through multiple stages. In each stage, the chunk search pass explores all possible chunk candidates and the chunk selection pass identifies the optimal one. At runtime, AutoChunk employs code generation to automatically apply chunk strategies. The experiments demonstrate that AutoChunk can reduce over 80% of activation memory while maintaining speed loss within 10%, extend max sequence length by 3.2x to 11.7x, and outperform state-of-the-art methods by a large margin.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 17 of its 23 references that are in the map. First posted on arXiv 19 Jan 2024.
Builds on
17 of 23 references.
References · 17
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,604
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,539
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2015Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Codingcited by 2,291
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
- 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,278
- 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,215
- 2016Training Deep Nets with Sublinear Memory Costcited by 825
5 more
- 2018Quantizing deep convolutional networks for efficient inference: A whitepapercited by 507
- 2022DeepSpeed Inference: Enabling Efficient Inference of Transformer Models at Unprecedented Scalecited by 403
- 2021ZeRO-Offload: Democratizing Billion-Scale Model Trainingcited by 339
- 2021Self-attention Does Not Need O(n2) Memorycited by 152
- 2019Checkmate: Breaking the Memory Wall with Optimal Tensor Rematerializationcited by 90
Built on by
Not cited yet.