Skip to main content
QUICK REVIEW

[Paper Review] Parallax: Automatic Data-Parallel Training of Deep Neural Networks.

Soojeong Kim, Gyeong-In Yu|arXiv (Cornell University)|Aug 8, 2018
Advanced Neural Network ApplicationsComputer Science21 references3 citations
TL;DR

Parallax is a data-parallel training framework that enhances scalability for deep neural networks by exploiting parameter sparsity in NLP models. It combines Parameter Server and AllReduce architectures to minimize communication overhead, achieving up to 6.02x speedup over Horovod and 2.8x over TensorFlow on 48 GPUs for NLP tasks, with near-optimal performance on image classification models.

ABSTRACT

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

  • Address the limited scalability of existing deep learning frameworks in training natural language processing (NLP) models due to inefficient handling of parameter sparsity.
  • Improve data-parallel training throughput for both sparse (NLP) and dense (image classification) models without requiring significant user effort.
  • Optimize communication efficiency by dynamically adapting between Parameter Server and AllReduce communication patterns based on model sparsity.
  • Achieve high performance across diverse model types while maintaining compatibility with popular frameworks like TensorFlow.

Proposed method

  • Introduce a hybrid communication architecture that selects between Parameter Server and AllReduce based on the sparsity level of model parameters.
  • Dynamically partition model parameters into sparse and dense components to route communication via the most efficient protocol.
  • Use sparsity-aware scheduling to minimize data transfer volume during parameter synchronization across workers.
  • Integrate seamlessly with TensorFlow by extending its existing data-parallel training pipeline with minimal code changes.
  • Leverage model structure analysis to estimate sparsity per layer and guide communication strategy selection.
  • Balance communication load and reduce idle time by prioritizing sparse parameter updates with lower bandwidth requirements.

Experimental results

Research questions

  • RQ1How can data-parallel training frameworks be optimized for the inherent sparsity in NLP model parameters to improve scalability?
  • RQ2What communication strategy—Parameter Server or AllReduce—yields better performance for different levels of model sparsity?
  • RQ3To what extent can a hybrid communication approach reduce communication overhead in distributed DNN training?
  • RQ4How does Parallax compare to state-of-the-art frameworks like Horovod and TensorFlow in terms of training throughput across diverse model types?

Key findings

  • Parallax achieves up to 6.02x speedup over Horovod and 2.8x over TensorFlow on 48 GPUs for NLP models, demonstrating significant scalability improvements.
  • For image classification models, Parallax matches Horovod's performance and is 1.53x faster than TensorFlow, showing strong generalization across model types.
  • The hybrid communication strategy effectively reduces communication overhead by adapting to parameter sparsity, leading to improved training throughput.
  • Parallax requires minimal user effort to deploy, as it extends TensorFlow with transparent sparsity-aware communication routing.
  • The framework maintains high scalability across both sparse and dense models, outperforming existing frameworks in mixed-architecture training scenarios.
  • Sparsity-aware communication routing leads to measurable performance gains, especially in models with highly variable parameter sparsity.

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.