ROAM: memory-efficient large DNN training via optimized operator ordering and memory layout
Huiyao Shu, Ang Wang, Ziji Shi, Hanyu Zhao, Yong Li, Lu, Lu

TL;DR
ROAM is a novel method that optimizes operator order and tensor memory layout at the computation graph level, significantly reducing memory usage and increasing training speed for large deep neural networks.
Contribution
ROAM introduces a new optimization framework with theories and algorithms for memory-efficient execution plans tailored for large complex models.
Findings
Achieves up to 35.7% memory reduction compared to PyTorch.
Delivers a 53.7x speedup in training.
Effectively scales to large models like GPT2-XL.
Abstract
As deep learning models continue to increase in size, the memory requirements for training have surged. While high-level techniques like offloading, recomputation, and compression can alleviate memory pressure, they also introduce overheads. However, a memory-efficient execution plan that includes a reasonable operator execution order and tensor memory layout can significantly increase the models' memory efficiency and reduce overheads from high-level techniques. In this paper, we propose ROAM which operates on computation graph level to derive memory-efficient execution plan with optimized operator order and tensor memory layout for models. We first propose sophisticated theories that carefully consider model structure and training memory load to support optimization for large complex graphs that have not been well supported in the past. An efficient tree-based algorithm is further…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Neural Network Applications · Topic Modeling · Advanced Graph Neural Networks
