Proceedings

Survey on Efficient Training of Large Neural Networks

Video #1 Video #2 Download BibTeX Cite

Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence. Survey Track. Pages 5494-5501.

https://doi.org/10.24963/ijcai.2022/769

Abstract

Modern Deep Neural Networks (DNNs) require significant memory to store weight, activations, and other intermediate tensors during training. Hence, many models don’t fit one GPU device or can be trained using only a small per-GPU batch size. This survey provides a systematic overview of the approaches that enable more efficient DNNs training. We analyze techniques that save memory and make good use of computation and communication resources on architectures with a single or several GPUs. We summarize the main categories of strategies and compare strategies within and across categories. Along with approaches proposed in the literature, we discuss available implementations.

  1. [Alistarh et al., 2017] Dan Alistarh, Demjan Grubic, Jerry Li, Ryota Tomioka, and Milan Vojnovic. QSGD: Communication-Efficient SGD via Gradient Quantization and Encoding. In NIPS, 2017.
  2. [Alistarh et al., 2019] Dan Alistarh, Torsten Hoefler, Mikael Johansson, Sarit Kririrat, Nikola Konstantinov, and Cedric Renggli. The Convergence of Sparsified Gradient Meth- ods. In NeurIPS, pages 5973-5983, 2019.
  3. [Athlur et al., 2021] Sanjith Athlur, Nitika Saran, Muthian Sivathanu, Ramachandran Ramjee, and Nipun Kwatra. Varuna: Scalable, Low-cost Training of Massive Deep Learning Models. arXiv:2111.04007, 2021.
  4. [Beaumont et al., 2019] Olivier Beaumont, Lionel Eyraud- Dubois, Julien Herrmann, Alexis Joly, and Alena Shilova. Optimal Checkpointing for Heterogeneous Chains: How to Train Deep Neural Networks with Limited Memory. Re- search Report RR-9302, INRIA, 2019.
  5. [Beaumont et al., 2020] Olivier Beaumont, Lionel Eyraud- Dubois, and Alena Shilova. Optimal GPU-CPU Offload- ing Strategies for Deep Neural Network Training. In Euro- Par, 2020.
  6. [Beaumont et al., 2021a] Olivier Beaumont, Lionel Eyraud- Dubois, and Alena Shilova. Efficient Combination of Re- materialization and Offloading for Training DNNs. In NeurIPS, 2021.
  7. [Beaumont et al., 2021b] Olivier Beaumont, Lionel Eyraud- Dubois, and Alena Shilova. Pipelined Model Parallelism: Complexity Results and Memory Considerations. In Euro- Par, pages 183-198, 2021.
  8. [Bershatsky et al., 2022] Daniel Bershatsky, Aleksandr Mikhalev, Alexandr Katrutsa, Julia Gusak, Daniil Merkulov, and Ivan Oseledets. Memory-Efficient Backpropagation through Large Linear Layers. arXiv:2201.13195, 2022.
  9. [Chen et al., 2016] Tianqi Chen, Bing Xu, Chiyuan Zhang, and Carlos Guestrin. Training Deep Nets with Sublinear Memory Cost. arXiv:1604.06174, 2016.
  10. [Cho et al., 2019] Minsik Cho, Vinod Muthusamy, Brad Ne- manich, and Ruchir Puri. GradZip: Gradient Compres- sion using Alternating Matrix Factorization for Large- scale Deep Learning. In Workshop on Systems for ML at NeurIPS'19, 2019.
  11. [Dettmers et al., 2021] Tim Dettmers, Mike Lewis, Sam Shleifer, and Luke Zettlemoyer. 8-bit Optimizers via Block-wise Quantization. CoRR, 2021.
  12. [Fan et al., 2021] Shiqing Fan, Yi Rong, Chen Meng, Zongyan Cao, Siyu Wang, Zhen Zheng, Chuan Wu, Guop- ing Long, Jun Yang, Lixue Xia, et al. DAPPLE: A Pipelined Data Parallel Approach for Training Large Mod- els. In PPOPP, 2021.
  13. [Goyal et al., 2017] Priya Goyal, Piotr Dollár, Ross Gir- shick, Pieter Noordhuis, Lukasz Wesolowski, Aapo Ky- rola, Andrew Tulloch, Yangqing Jia, and Kaiming He. Ac- curate, Large Minibatch SGD. arXiv:1706.02677, 2017.
  14. [Griewank and Walther, 2000] Andreas Griewank and An- drea Walther. Algorithm 799: Revolve: An Implemen- tation of Checkpointing for the Reverse or Adjoint Mode of Computational Differentiation. ACM TOMS, 2000.
  15. [Grimm et al., 1996] José Grimm, Loïc Pottier, and Nicole Rostaing-Schmidt. Optimal Time and Minimum Space- Time Product for Reversing a Certain Class of Programs. Technical report, INRIA, 1996. [Gruslys et al., 2016] Audrunas Gruslys, Rémi Munos, Ivo Danihelka, Marc Lanctot, and Alex Graves. Memory- Efficient Backpropagation Through Time. In NIPS, 2016.
  16. [Hrinchuk et al., 2020] Oleksii Hrinchuk, Valentin Khrulkov, Leyla Mirvakhabova, Elena Orlova, and Ivan Oseledets. Tensorized embedding layers. In Find- ings of the Association for Computational Linguistics: EMNLP 2020, pages 4847-4860, Online, November 2020. Association for Computational Linguistics.
  17. [Huang et al., 2019] Yanping Huang, Youlong Cheng, Ankur Bapna, Orhan Firat, Mia Xu Chen, Dehao Chen, Hyouk Joong Lee, Jiquan Ngiam, Quoc V. Le, Yonghui Wu, and Zhifeng Chen. GPipe: Efficient Training of Giant Neural Networks using Pipeline Parallelism. In NeurIPS, 2019.
  18. [Huang et al., 2020] Chien-Chin Huang, Gu Jin, and Jinyang Li. SwapAdvisor: Pushing Deep Learning Beyond the GPU Memory Limit via Smart Swapping. In ASPLOS, 2020.
  19. [Jain et al., 2020a] Arpan Jain, Ammar Ahmad Awan, As- maa M. Aljuhani, Jahanzeb Maqbool Hashmi, Quentin G. Anthony, Hari Subramoni, Dhableswar K. Panda, Raghu Machiraju, and Anil Parwani. GEMS: GPU-Enabled Memory-Aware Model-Parallelism System for Distributed DNN Training. In SC, 2020.
  20. [Jain et al., 2020b] Paras Jain, Ajay Jain, Aniruddha Nrusimha, Amir Gholami, Pieter Abbeel, Joseph Gonza- lez, Kurt Keutzer, and Ion Stoica. Checkmate: Breaking the Memory Wall with Optimal Tensor Rematerialization. In MLSys, 2020.
  21. [Keskar et al., 2016] Nitish Shirish Keskar, Dheevatsa Mudigere, Jorge Nocedal, Mikhail Smelyanskiy, and Ping Tak Peter Tang. On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minima. arXiv:1609.04836, 2016.
  22. [Kirisame et al., 2020] Marisa Kirisame, Steven Lyubomirsky, Altan Haan, Jennifer Brennan, Mike He, Jared Roesch, Tianqi Chen, and Zachary Tatlock. Dynamic Tensor Rematerialization. arXiv:2006.09616, 2020.
  23. [Kumar et al., 2019] Ravi Kumar, Manish Purohit, Zoya Svitkina, Erik Vee, and Joshua Wang. Efficient Remate- rialization for Deep Networks. In NeurIPS, 2019.
  24. [Kusumoto et al., 2019] Mitsuru Kusumoto, Takuya Inoue, Gentaro Watanabe, Takuya Akiba, and Masanori Koyama. A Graph Theoretic Framework of Recomputation Al- gorithms for Memory-Efficient Backpropagation. In NeurIPS, 2019.
  25. [Le et al., 2018] Tung D. Le, Haruki Imai, Yasushi Negishi, and Kiyokuni Kawachiya. TFLMS: Large Model Support in TensorFlow by Graph Rewriting. arXiv:1807.02037, 2018.
  26. [Li and Hoefler, 2021] Shigang Li and Torsten Hoefler. Chimera: Efficiently Training Large-Scale Neural Net- works with Bidirectional Pipelines. In SC, pages 1-14, 2021.
  27. [Li et al., 2021] Conglong Li, Ammar Ahmad Awan, Han- lin Tang, Samyam Rajbhandari, and Yuxiong He. 1- bit LAMB: Communication Efficient Large-Scale Large- Batch Training with LAMB's Convergence Speed. arXiv preprint arXiv:2104.06069, 2021.
  28. [Lin et al., 2021] Junyang Lin, An Yang, Jinze Bai, Chang Zhou, Le Jiang, Xianyan Jia, Ang Wang, Jie Zhang, Yong Li, Wei Lin, et al. M6-10T: A Sharing-Delinking Paradigm for Efficient Multi-Trillion Parameter Pretrain- ing. arXiv:2110.03888, 2021.
  29. [Narayanan et al., 2019] Deepak Narayanan, Aaron Harlap, Amar Phanishayee, Vivek Seshadri, Nikhil R. Devanur, Gregory R. Ganger, Phillip B. Gibbons, and Matei Za- haria. Pipedream: Generalized Pipeline Parallelism for DNN Training. In SOSP, 2019.
  30. [Narayanan et al., 2021a] Deepak Narayanan, Amar Phan- ishayee, Kaiyu Shi, Xie Chen, and Matei Zaharia. Memory-Efficient Pipeline-Parallel DNN Training. In ICML, 2021.
  31. [Narayanan et al., 2021b] Deepak Narayanan, Mohammad Shoeybi, Jared Casper, Patrick LeGresley, Mostofa Pat- wary, Vijay Korthikanti, Dmitri Vainbrand, Prethvi Kashinkunti, Julie Bernauer, Bryan Catanzaro, Amar Phanishayee, and Matei Zaharia. Efficient Large- Scale Language Model Training on GPU Clusters Using Megatron-LM. In SC, pages 1-15, 2021.
  32. [Novikov et al., 2022] Georgii Novikov, Daniel Bershatsky, Julia Gusak, Alex Shonenkov, Denis Dimitrov, and Ivan Oseledets. Few-Bit Backward: Quantized Gradients of Activation Functions for Memory Footprint Reduction. arXiv:2202.00441, 2022.
  33. [Park et al., 2020] Jay H. Park, Gyeongchan Yun, Chang M. Yi, Nguyen T. Nguyen, Seungmin Lee, Jaesik Choi, Sam H. Noh, and Young ri Choi. HetPipe: Enabling Large DNN Training on (Whimpy) Heterogeneous GPU Clus- ters through Integration of Pipelined Model Parallelism and Data Parallelism. In USENIX ATC, 2020.
  34. [Pudipeddi et al., 2020] Bharadwaj Pudipeddi, Maral Mes- makhosroshahi, Jinwen Xi, and Sujeeth Bharadwaj. Train- ing Large Neural Networks with Constant Memory using a New Execution Algorithm. arXiv:2002.05645, 2020.
  35. [Rajbhandari et al., 2020] Samyam Rajbhandari, Jeff Rasley, Olatunji Ruwase, and Yuxiong He. ZeRO: Memory Opti- mizations toward Training Trillion Parameter Models. In SC, pages 1-16, 2020.
  36. [Ren et al., 2021] Jie Ren, Samyam Rajbhandari, Reza Yaz- dani Aminabadi, Olatunji Ruwase, Shuangyan Yang, Minjia Zhang, Dong Li, and Yuxiong He. ZeRO- Offload: Democratizing Billion-Scale Model Training. arXiv:2101.06840, 1 2021.
  37. [Rhu et al., 2016] Minsoo Rhu, Natalia Gimelshein, Jason Clemons, Arslan Zulfiqar, and Stephen W. Keckler. vDNN: Virtualized Deep Neural Networks for Scalable, Memory-Efficient Neural Network Design. In MICRO, 2016.
  38. [Siskind and Pearlmutter, 2018] Jeffrey Mark Siskind and Barak A. Pearlmutter. Divide-and-Conquer Checkpoint- ing for Arbitrary Programs with no User Annotation. Op- timization Methods and Software, 2018.
  39. [Stich et al., 2018] Sebastian U. Stich, Jean-Baptiste Cor- donnier, and Martin Jaggi. Sparsified SGD with Memory. In NIPS, pages 4452-4463, 2018.
  40. [Sun et al., 2020] Xiao Sun, Naigang Wang, Chia-Yu Chen, Jiamin Ni, Ankur Agrawal, Xiaodong Cui, Swa- gath Venkataramani, Kaoutar El Maghraoui, Vijayalak- shmi (Viji) Srinivasan, and Kailash Gopalakrishnan. Ultra- Low Precision 4-bit Training of Deep Neural Networks. In NeurIPS, volume 33, pages 1796-1807, 2020.
  41. [Tang et al., 2021] Hanlin Tang, Shaoduo Gan, Ammar Ah- mad Awan, Samyam Rajbhandari, Conglong Li, Xian- gru Lian, Ji Liu, Ce Zhang, and Yuxiong He. 1-bit Adam: Communication Efficient Large-Scale Training with Adam's Convergence Speed. In ICML, 2021.
  42. [Tarnawski et al., 2021] Jakub M Tarnawski, Deepak Narayanan, and Amar Phanishayee. Piper: Multidimen- sional Planner for DNN Parallelization. In NeurIPS, volume 34, 2021.
  43. [Vogels et al., 2019] Thijs Vogels, Sai Praneeth Karinireddy, and Martin Jaggi. PowerSGD: Practical low-rank gradi- ent compression for distributed optimization. In NeurIPS, 2019.
  44. [Walther and Griewank, 2008] Andrea Walther and Andreas Griewank. Evaluating Derivatives: Principles and Tech- niques of Algorithmic Differentiation. SIAM, 2008.
  45. [Xu et al., 2021] Hang Xu, Chen-Yu Ho, Ahmed M Abdel- moniem, Aritra Dutta, El Houcine Bergou, Konstantinos Karatsenidis, Marco Canini, and Panos Kalnis. GRACE: A compressed communication framework for distributed machine learning. In ICDCS, pages 561-572, 2021.
  46. [Yang et al., 2021] Bowen Yang, Jian Zhang, Jonathan Li, Christopher Re, Christopher Aberger, and Christopher De Sa. PipeMare: Asynchronous Pipeline Parallel DNN Training. In MLSys, 2021.
  47. [You et al., 2017] Yang You, Igor Gitman, and Boris Gins- burg. Large Batch Training of Convolutional Networks. arXiv:1708.03888, 2017.
  48. [You et al., 2019] Yang You, Jing Li, Sashank Reddi, Jonathan Hseu, Sanjiv Kumar, Srinadh Bhojanapalli, Xi- aodan Song, James Demmel, Kurt Keutzer, and Cho-Jui Hsieh. Large Batch Optimization for Deep Learning. arXiv:1904.00962, 2019.
  49. [Zhan and Zhang, 2019] Jun Zhan and Jinghui Zhang. Pipe- Torch: Pipeline-Based Distributed Deep Learning in a GPU Cluster with Heterogeneous Networking. In CBD, 2019.
  50. [Zhang et al., 2019] Junzhe Zhang, Sai Ho Yeung, Yao Shu, Bingsheng He, and Wei Wang. Efficient Mem- ory Management for GPU-based Deep Learning Systems. arXiv:1903.06631, 2019.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards