Abstract
As state-of-the-art neural networks scale to billions of parameters, designing parallel algorithms that can train these networks efficiently on multi-GPU clusters has become critical. This paper presents Tensor3D, a novel three-dimensional (3D) approach to parallelize tensor computations, that strives to minimize the idle time incurred due to communication in parallel training of large multi-billion parameter models. First, we introduce an intelligent distribution of neural network parameters across GPUs that eliminates communication required for satisfying data dependencies of individual layers. Then, we propose a novel overdecomposition of the parallel training process, using which we achieve significant overlap of communication with computation, thereby reducing GPU idle time. Finally, we present a communication model, which helps users identify communication optimal decompositions of available hardware resources for a given neural network. For a 28B parameter CNN on 256 A100 GPUs, Tensor3D improves the training time by nearly 60% as compared to Megatron-LM.
Introduction
Training "foundation models" with hundreds of billions of parameters requires massive computational resources. While modern GPUs have seen explosive growth in compute power through specialized hardware like Tensor Cores, network bandwidth between nodes has not kept pace. This disparity creates a significant "communication bottleneck" in large-scale distributed training.
In existing frameworks, GPUs must constantly exchange data through collective operations like all-reduce or all-gather. These operations often force GPUs to sit idle while waiting for data to arrive. As we scale from dozens to thousands of GPUs, these overheads become so severe that adding more hardware yields diminishing returns. The AxoNN framework addresses this by combining smarter workload distribution with aggressive asynchronous execution.
Methodology: The AxoNN Framework
The core technical contribution of AxoNN is a 4D hybrid parallel algorithm that combines 3D tensor parallelism with data parallelism to scale training to thousands of GPUs.
1. 4D Hybrid Parallelism
AxoNN organizes GPUs into a virtual 4D grid ($G_x, G_y, G_z, G_{data}$). The first three dimensions implement a 3D tensor parallelism (Tensor3D) based on Agarwal’s matrix multiplication algorithm, which shards weights and activations across GPUs. The fourth dimension ($G_{data}$) handles traditional data parallelism.
2. Aggressive Asynchronous Overlap
Instead of waiting for a communication step to finish before starting the next math operation, AxoNN issues communication commands (like reduce-scatter and all-gather) asynchronously. This allows the GPU to perform matrix multiplications for one layer while the network hardware handles data transfer for another, effectively hiding communication latency.
3. Placement-aware Performance Model
Choosing the right values for $G_x, G_y, G_z,$ and $G_{data}$ is a complex optimization problem. The authors developed an analytical model that accounts for the physical topology of the cluster—recognizing that bandwidth inside a server (e.g., NVLink) is much higher than bandwidth between servers. This allows AxoNN to identify efficient configurations that simpler, placement-agnostic models would miss.
Evaluation and Results
The researchers evaluated AxoNN using GPT-style Transformers (up to 80B parameters) and U-Nets (up to 4B parameters) on the Perlmutter (NVIDIA A100) and Frontier (AMD MI250X) supercomputers.
- Speedup: When training an 80B parameter GPT model on 1024 GPUs, AxoNN was 26% faster than Megatron-LM and 32% faster than DeepSpeed-3D. For a 28B parameter CNN on 256 GPUs, it improved training time by nearly 60%.
- Hardware Utilization: AxoNN achieved 57% of the theoretical peak FLOP/s (182 PFLOP/s total) on Perlmutter. Most large-scale frameworks struggle to stay above 40-45% at this scale.
- Scaling Efficiency: In "strong scaling" tests, AxoNN maintained near-linear performance, whereas competing frameworks like ZeRO-3 saw performance degradation beyond 512 GPUs.
Conclusion
AxoNN demonstrates that communication latency in large-scale training can be mitigated through mathematical overdecomposition and topology-aware resource allocation. By overlapping nearly all major communication operations with computation, the framework achieves state-of-the-art hardware utilization. Future work includes integrating this 4D strategy with pipeline parallelism and optimizing the memory overhead associated with communication caching.
Summary updated