Skip to main content
QUICK REVIEW

[Paper Review] Large-Scale Deep Learning Optimizations: A Comprehensive Survey

Xiaoxin He, Fuzhao Xue|arXiv (Cornell University)|Nov 1, 2021
Advanced Neural Network ApplicationsComputer Science118 references8 citations
TL;DR

This survey provides a comprehensive analysis of optimization techniques for large-scale deep learning, focusing on improving model accuracy and efficiency. It reviews state-of-the-art methods for large-batch training, communication-efficient distributed training, and memory-efficient optimization—particularly ZeRO—enabling training of models with up to 200 billion parameters up to 10× faster.

ABSTRACT

Deep learning have achieved promising results on a wide spectrum of AI applications. Larger datasets and models consistently yield better performance. However, we generally spend longer training time on more computation and communication. In this survey, we aim to provide a clear sketch about the optimizations for large-scale deep learning with regard to the model accuracy and model efficiency. We investigate algorithms that are most commonly used for optimizing, elaborate the debatable topic of generalization gap arises in large-batch training, and review the SOTA strategies in addressing the communication overhead and reducing the memory footprints.

Motivation & Objective

  • To provide a unified overview of optimization techniques that enhance both model accuracy and training efficiency in large-scale deep learning.
  • To address the critical challenge of generalization gap in large-batch training, where model performance degrades despite increased batch size.
  • To analyze communication and memory bottlenecks in distributed training across thousands of GPUs or TPUs.
  • To evaluate state-of-the-art memory optimization strategies like ZeRO, SM3, and Adafactor that reduce memory footprint without sacrificing convergence.
  • To clarify the trade-offs between algorithmic improvements and system-level optimizations in large-scale training pipelines.

Proposed method

  • Categorizes large-scale deep learning optimizations into two main axes: model accuracy (e.g., gradient descent variants, adaptive methods, second-order optimization) and model efficiency (e.g., communication and memory reduction).
  • Reviews large-batch training techniques such as learning rate warmup, weight decay, and batch normalization reparameterization to mitigate generalization gap.
  • Analyzes communication-efficient methods including gradient compression, quantization, and parameter server architectures to reduce inter-node communication overhead.
  • Examines memory-efficient techniques like ZeRO, which partitions optimizer states, gradients, and activations across devices to eliminate redundancy.
  • Introduces SM3 (Save Memory by Sharing Moments), a memory-efficient adaptive optimizer that reduces storage from Θ(mn) to Θ(m+n) by sharing moment statistics across rows and columns.
  • Proposes ZeRO’s three-stage optimization: partitioning optimizer states, gradients, and activations across devices, with additional support for CPU offloading and on-the-fly memory defragmentation.

Experimental results

Research questions

  • RQ1How can model accuracy be preserved or improved when training with very large mini-batches, despite the well-known generalization gap?
  • RQ2What are the most effective strategies to reduce communication overhead in distributed deep learning across thousands of devices?
  • RQ3How can memory footprint be minimized in large-scale distributed training without compromising convergence or model performance?
  • RQ4What are the trade-offs between different memory optimization techniques like ZeRO, Adafactor, and SM3 in terms of memory savings and computational overhead?
  • RQ5To what extent can algorithmic optimizations (e.g., adaptive methods) and system-level optimizations (e.g., ZeRO) be combined to accelerate large-scale training?

Key findings

  • Large-batch training often leads to a generalization gap, where model performance degrades beyond a certain batch size, but this can be mitigated with techniques like learning rate warmup and weight decay.
  • Communication overhead in distributed training becomes a major bottleneck as the number of devices increases, and can be reduced by gradient compression, quantization, and efficient synchronization schemes.
  • ZeRO reduces per-device memory consumption by partitioning optimizer states, gradients, and activations across devices, enabling training of models with up to 200 billion parameters.
  • SM3 reduces memory usage for adaptive optimizers from Θ(mn) to Θ(m+n) by sharing moment statistics across rows and columns, maintaining performance while cutting storage needs.
  • ZeRO enables up to 10× faster training of large models by combining model state partitioning, activation memory partitioning, CPU offloading, and on-the-fly memory defragmentation.
  • Memory and communication optimizations are not mutually exclusive; combining them with algorithmic improvements leads to synergistic gains in training speed and scalability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.