Myelin: An asynchronous, message-driven parallel framework for extreme-scale deep learning

Siddharth Singh, Abhinav Bhatele

Introduction

The rapid evolution of Large Language Models (LLMs), such as GPT-3, has pushed the boundaries of deep learning to hundreds of billions of parameters. This growth has led researchers to a "memory wall," where the memory requirements for model weights, gradients, and optimizer states far exceed the capacity of a single GPU's DRAM. To address this, the community has adopted "3D parallelism," which partitions workloads across data, layers, and tensors.

Despite these advancements, current state-of-the-art frameworks often suffer from inefficiencies due to synchronous communication. In these systems, GPUs frequently remain idle, waiting for data transfers to complete before proceeding to the next computational step. As training scales to thousands of GPUs, this synchronization overhead becomes a significant bottleneck, severely limiting hardware utilization and increasing training costs.

Methodology: The AxoNN Framework

AxoNN introduces a paradigm shift by replacing static, synchronous scheduling with an asynchronous, message-driven execution model. This approach is designed to maximize hardware efficiency by overlapping communication with computation.

Asynchronous Message-Driven Scheduling

Unlike traditional frameworks that rely on fixed execution schedules, AxoNN triggers GPU operations as soon as their specific data dependencies—represented as messages—are satisfied. This fine-grained control allows the system to hide communication latency effectively. To support this, AxoNN utilizes a CUDA-aware MPI backend rather than the industry-standard NCCL. The researchers found that while NCCL is optimized for collective operations, it often blocks GPUs during point-to-point handshakes. MPI, conversely, provides non-blocking primitives that are essential for true asynchrony and offers superior intra-node bandwidth for point-to-point transfers.

Hybrid Parallelism and Memory Management

AxoNN employs a hybrid parallelism strategy, combining data parallelism with inter-layer (pipeline) parallelism. The framework uses a mathematically derived proof to determine the optimal balance between these two modes, ensuring that communication overhead does not overwhelm computational gains as the number of GPUs increases.

AxoNN utilizes a hybrid approach, alternating between inter-layer and data parallel phases to optimize throughput.

To further mitigate the memory wall, AxoNN implements intelligent memory offloading. It maintains only the essential half-precision weights and gradients on the GPU. Bulkier components, such as optimizer states and master weights, are stored in CPU memory and fetched in small "buckets" only when required for computation. This strategy, combined with an optimized gradient checkpointing interval, significantly reduces the GPU's memory footprint.

Evaluation and Results

The framework was rigorously tested using the Wikitext-103 dataset, training GPT-style transformer models ranging from 12 billion to 100 billion parameters. The experiments were conducted on the Summit supercomputer using NVIDIA V100 GPUs.

Performance and Efficiency

AxoNN demonstrated substantial improvements over existing systems like DeepSpeed and Megatron-LM. It achieved between 49.4% and 54.78% of the theoretical peak performance on V100 GPUs, a notable increase over baseline configurations.

The asynchronous scheduling in AxoNN allows for significant overlap between computation and communication across multiple GPUs.

Key performance metrics include:

  • Memory Reduction: AxoNN reduced GPU memory consumption by 4x compared to standard implementations, enabling the training of larger models on existing hardware.
  • Throughput Gains: For a 100-billion parameter model distributed across 384 GPUs, AxoNN was 1.18x faster than DeepSpeed.
  • Time Savings: In a full-scale training run, this 18% speedup translates to saving approximately 22 to 37 days of compute time, representing a massive reduction in both cost and energy consumption.

Discussion and Future Work

While AxoNN represents a significant step forward in extreme-scale deep learning, there are areas for further development. Currently, the framework focuses on data and inter-layer parallelism; the integration of intra-layer (tensor) parallelism would allow for even more granular splitting of wide neural network layers. Additionally, while the results on V100 GPUs are promising, evaluating the framework on newer architectures like NVIDIA A100 or H100—which feature different interconnect technologies like NVSwitch—is a priority for future research.

Ultimately, the asynchronous, message-driven design of AxoNN provides a scalable foundation for the next generation of AI, potentially paving the way for the efficient training of trillion-parameter models on massive GPU clusters.

Summary updated

BibTeX
@inproceedings{singh2022myelin,
  author = {Siddharth Singh and Abhinav Bhatele},
  title = {{Myelin: An asynchronous, message-driven parallel framework for extreme-scale deep learning}},
  booktitle = {IPDPS},
  year = {2022},
  doi = {10.1109/ipdps53621.2022.00065},
}
Figure