[Paper Review] Parallax: Sparsity-aware Data Parallel Training of Deep Neural Networks
Parallax is a sparsity-aware data parallel training framework that dynamically combines Parameter Server and AllReduce architectures based on model parameter sparsity to minimize communication overhead. It achieves up to 6.02x speedup over Horovod and 2.8x over TensorFlow on 48 GPUs for NLP models, while matching or exceeding the performance of existing frameworks on dense models.
The employment of high-performance servers and GPU accelerators for training deep neural network models have greatly accelerated recent advances in deep learning (DL). DL frameworks, such as TensorFlow, MXNet, and Caffe2, have emerged to assist DL researchers to train their models in a distributed manner. Although current DL frameworks scale well for image classification models, there remain opportunities for scalable distributed training on natural language processing (NLP) models. We found that current frameworks show relatively low scalability on training NLP models due to the lack of consideration to the difference in sparsity of model parameters. In this paper, we propose Parallax, a framework that optimizes data parallel training by utilizing the sparsity of model parameters. Parallax introduces a hybrid approach that combines Parameter Server and AllReduce architectures to optimize the amount of data transfer according to the sparsity. Experiments show that Parallax built atop TensorFlow achieves scalable training throughput on both dense and sparse models while requiring little effort from its users. Parallax achieves up to 2.8x, 6.02x speedup for NLP models than TensorFlow and Horovod with 48 GPUs, respectively. The training speed for the image classification models is equal to Horovod and 1.53x faster than TensorFlow.
Motivation & Objective
- To address the poor scalability of existing deep learning frameworks in training natural language processing (NLP) models due to unoptimized handling of sparse model parameters.
- To reduce communication overhead in distributed data parallel training by exploiting the sparsity of model variables, especially in NLP models with large embedding layers.
- To design a hybrid communication architecture that selects the optimal communication pattern (Parameter Server or AllReduce) per variable based on sparsity, without requiring user intervention.
- To enable seamless, high-performance distributed training by automatically transforming single-GPU computation graphs into scalable distributed graphs with minimal user effort.
- To improve training throughput and scaling efficiency for both sparse (e.g., NLP) and dense (e.g., image classification) models in a unified framework.
Proposed method
- Parallax introduces a hybrid communication architecture that uses Parameter Server (PS) for sparse variables and AllReduce for dense variables, based on per-variable sparsity estimation.
- It performs automatic graph transformation on the computational graph to insert appropriate communication operations (e.g., allreduce, push/pull) at training time, tailored to variable sparsity.
- For sparse variables, Parallax partitions them into smaller chunks and uses PS-style push/pull operations to transfer only the accessed elements, minimizing network traffic.
- The framework estimates sparsity per variable during graph analysis and selects the optimal communication pattern—PS for sparse, AllReduce for dense—based on a cost model.
- It integrates with TensorFlow and supports synchronous SGD, maintaining compatibility with existing deep learning workflows while enabling scalable training.
- Parallax uses a novel partitioning strategy for sparse variables that maximizes parallelism and minimizes communication and computation overhead.
Experimental results
Research questions
- RQ1How can data parallel training be made more scalable for sparse models, particularly in NLP, where large embedding layers dominate communication costs?
- RQ2What communication architecture—Parameter Server or AllReduce—provides optimal performance for different types of model parameters (sparse vs. dense)?
- RQ3Can a hybrid communication model that selects the best architecture per variable achieve better overall scalability than monolithic approaches?
- RQ4To what extent can automatic graph transformation enable users to achieve high-performance distributed training without modifying their code?
- RQ5How does the performance of Parallax compare to state-of-the-art frameworks like Horovod and TensorFlow on both sparse and dense deep learning models?
Key findings
- Parallax achieves up to 6.02x speedup over Horovod and 2.8x over TensorFlow on 48 GPUs when training NLP models such as language models and neural machine translation models.
- For image classification models, Parallax matches Horovod’s performance and is 1.53x faster than TensorFlow on 48 GPUs, demonstrating strong scalability across model types.
- The framework improves scaling efficiency to 19.0% for NLP models on 48 GPUs, compared to only 7.0% for Horovod and 19.0% for TensorFlow, indicating significant gains in distributed training efficiency.
- Parallax reduces communication overhead by selectively using PS for sparse variables and AllReduce for dense ones, minimizing data transfer without sacrificing training accuracy.
- The automatic graph transformation mechanism enables users to train their existing single-GPU models in a distributed setting with minimal code changes, achieving near-optimal performance.
- Parallax is open-sourced and publicly available at https://github.com/snuspl/parallax, facilitating adoption and further research in sparsity-aware distributed training.
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.