[Paper Review] The Case for Strong Scaling in Deep Learning: Training Large 3D CNNs with Hybrid Parallelism
This paper proposes an end-to-end hybrid-parallel training framework that enables strong scaling for large 3D convolutional neural networks (3D CNNs) by combining data parallelism with spatial parallelism to distribute individual samples across multiple GPUs. By extending parallelism beyond mini-batch size and optimizing I/O with spatial partitioning, the approach achieves high performance and enables training on full-resolution 512³ cosmological data, resulting in a 10x improvement in prediction accuracy for CosmoFlow compared to lower-resolution training.
We present scalable hybrid-parallel algorithms for training large-scale 3D convolutional neural networks. Deep learning-based emerging scientific workflows often require model training with large, high-dimensional samples, which can make training much more costly and even infeasible due to excessive memory usage. We solve these challenges by extensively applying hybrid parallelism throughout the end-to-end training pipeline, including both computations and I/O. Our hybrid-parallel algorithm extends the standard data parallelism with spatial parallelism, which partitions a single sample in the spatial domain, realizing strong scaling beyond the mini-batch dimension with a larger aggregated memory capacity. We evaluate our proposed training algorithms with two challenging 3D CNNs, CosmoFlow and 3D U-Net. Our comprehensive performance studies show that good weak and strong scaling can be achieved for both networks using up 2K GPUs. More importantly, we enable training of CosmoFlow with much larger samples than previously possible, realizing an order-of-magnitude improvement in prediction accuracy.
Motivation & Objective
- To address the memory and computational bottlenecks in training large 3D CNNs on high-dimensional scientific data such as cosmological simulations and 3D medical images.
- To overcome the limitations of traditional data parallelism, which cannot scale effectively due to per-GPU memory pressure from large samples.
- To enable strong scaling—reducing training time without increasing mini-batch size—by introducing spatial parallelism that partitions individual samples across GPUs.
- To scale the I/O pipeline end-to-end by applying the same hybrid-parallel techniques to data loading, minimizing I/O bottlenecks for large samples.
- To demonstrate that full-resolution training significantly improves model accuracy, particularly for scientific tasks requiring long-range feature learning.
Proposed method
- Introduces a hybrid-parallel algorithm that combines data parallelism with spatial parallelism, distributing a single 3D sample across multiple GPUs to reduce per-GPU memory usage.
- Applies spatial partitioning to 3D convolutions by dividing the spatial dimensions (e.g., height, width, depth) of feature maps across processing elements, enabling strong scaling beyond mini-batch limits.
- Optimizes the I/O pipeline using spatial partitioning of large data samples, enabling collective and asynchronous I/O that scales with the number of GPUs.
- Extends the LBANN deep learning framework with custom kernels and communication patterns to support hybrid-parallel training and I/O, ensuring low communication overhead.
- Employs halo exchanges for gradient communication between spatial partitions, minimizing data movement compared to full tensor communication used in channel/feature parallelism.
- Uses model-based performance analysis to identify and mitigate scaling bottlenecks in both computation and I/O for 3D CNNs.
Experimental results
Research questions
- RQ1Can strong scaling be achieved in 3D CNN training by extending parallelism beyond data parallelism to include spatial partitioning of individual samples?
- RQ2Does hybrid-parallel training with spatial and data parallelism enable efficient scaling on up to 2,048 GPUs while maintaining high throughput and low communication overhead?
- RQ3Can the I/O pipeline be scaled effectively for large 3D data samples by applying the same hybrid-parallel techniques used in computation?
- RQ4Does training with full-resolution 3D data (e.g., 512³) lead to significantly better model accuracy than training with lower-resolution data, despite higher memory and computational demands?
- RQ5What are the performance characteristics and scaling efficiencies of 3D CNNs like CosmoFlow and 3D U-Net when using hybrid-parallel training and I/O?
Key findings
- Training CosmoFlow on 512³ full-resolution samples achieved a mean squared error (MSE) of 0.0018, representing a 10x improvement in prediction accuracy compared to training on 128³ samples (MSE = 0.0289).
- The CosmoFlow model trained with 64 mini-batch size achieved a 1.77x speedup when scaling from 512 to 2048 GPUs, demonstrating strong scaling without increasing mini-batch size.
- The 3D U-Net model achieved a 1.42x speedup when scaling from 256 to 512 GPUs, confirming strong scaling behavior across different architectures and workloads.
- Both CosmoFlow and 3D U-Net showed good weak and strong scaling up to 2,048 GPUs, with performance analysis revealing high scaling efficiency across compute and I/O components.
- The hybrid-parallel I/O pipeline successfully scaled with the number of GPUs, minimizing I/O bottlenecks even for gigabyte-sized samples, which are common in scientific 3D data.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.