Skip to main content
QUICK REVIEW

[Paper Review] Scaling GRPC Tensorflow on 512 nodes of Cori Supercomputer

Amrita Mathuriya, Thorsten Kurth|arXiv (Cornell University)|Dec 26, 2017
Advanced Neural Network ApplicationsComputer Science3 references10 citations
TL;DR

This paper evaluates the scalability of GRPC-based distributed TensorFlow on up to 512 Intel Xeon Phi nodes of the Cori supercomputer using ResNet-50 and HEP-CNN models. It identifies communication bottlenecks due to inefficient GRPC usage, parameter server load imbalance, and suboptimal interconnect utilization, achieving only 23% scaling efficiency at 512 workers despite high-bandwidth interconnects.

ABSTRACT

We explore scaling of the standard distributed Tensorflow with GRPC primitives on up to 512 Intel Xeon Phi (KNL) nodes of Cori supercomputer with synchronous stochastic gradient descent (SGD), and identify causes of scaling inefficiency at higher node counts. To our knowledge, this is the first exploration of distributed GRPC Tensorflow scalability on a HPC supercomputer at such large scale with synchronous SGD. We studied scaling of two convolution neural networks - ResNet-50, a state-of-the-art deep network for classification with roughly 25.5 million parameters, and HEP-CNN, a shallow topology with less than 1 million parameters for common scientific usages. For ResNet-50, we achieve >80% scaling efficiency on up to 128 workers, using 32 parameter servers (PS tasks) with a steep decline down to 23% for 512 workers using 64 PS tasks. Our analysis of the efficiency drop points to low network bandwidth utilization due to combined effect of three factors. (a) Heterogeneous distributed parallelization algorithm which uses PS tasks as centralized servers for gradient averaging is suboptimal for utilizing interconnect bandwidth. (b) Load imbalance among PS tasks hinders their efficient scaling. (c) Underlying communication primitive GRPC is currently inefficient on Cori high-speed interconnect. The HEP-CNN demands less interconnect bandwidth, and shows >80% weak scaling efficiency for up to 256 nodes with only 1 PS task. Our findings are applicable to other deep learning networks. Big networks with millions of parameters stumble upon the issues discussed here. Shallower networks like HEP-CNN with relatively lower number of parameters can efficiently enjoy weak scaling even with a single parameter server.

Motivation & Objective

  • To assess the weak scaling behavior of GRPC-based distributed TensorFlow on a large-scale HPC system like Cori supercomputer.
  • To identify performance bottlenecks in distributed training at scale, particularly related to communication protocols and parameter server architecture.
  • To compare the scalability of deep networks (ResNet-50) versus lightweight networks (HEP-CNN) under identical conditions.
  • To analyze the impact of parameter server count and load imbalance on interconnect utilization and training efficiency.

Proposed method

  • Used the tf_cnn_benchmarking scripts for ResNet-50 and modified code to use tf.train.Supervisor API for HEP-CNN to enable distributed training on Cori.
  • Configured all workers and parameter servers (PS) on separate KNL nodes with optimized thread affinity and MKL-optimized TensorFlow compiled from source.
  • Employed dummy data to eliminate I/O bottlenecks and focused solely on communication and synchronization overhead.
  • Used synchronous stochastic gradient descent with fixed mini-batch size per worker (128) to evaluate weak scaling efficiency.
  • Measured scaling efficiency relative to single-node performance, varying number of workers and PS tasks.
  • Analyzed communication patterns, load distribution across PS tasks, and interconnect utilization to isolate performance bottlenecks.

Experimental results

Research questions

  • RQ1What is the weak scaling efficiency of GRPC-based distributed TensorFlow on 512-node Cori supercomputer with synchronous SGD?
  • RQ2How do parameter server count and load imbalance affect communication efficiency and overall scaling at scale?
  • RQ3Why does scaling efficiency degrade significantly beyond 128 workers for ResNet-50 despite high interconnect bandwidth?
  • RQ4Why does HEP-CNN maintain high efficiency with only one parameter server even at 256 workers?
  • RQ5To what extent does the GRPC communication protocol limit bandwidth utilization compared to optimal all-reduce implementations?

Key findings

  • ResNet-50 achieved >80% scaling efficiency with up to 128 workers using 32 parameter servers, but dropped to 23% at 512 workers with 64 PS tasks.
  • The performance drop at scale was primarily due to low network bandwidth utilization caused by GRPC inefficiency on Cori’s high-speed interconnect.
  • Load imbalance among parameter servers became a major bottleneck when PS count exceeded 54, as 99% of ResNet-50’s parameters were in 54 large tensors.
  • HEP-CNN maintained >80% weak scaling efficiency up to 256 workers with only one parameter server, due to lower communication volume.
  • Increasing PS count from 32 to 64 provided negligible performance gain for ResNet-50, indicating diminishing returns due to load imbalance and protocol limits.
  • Crude estimates suggest a 5–6× gap between actual and peak achievable communication performance for ResNet-50, indicating significant room for optimization in the communication stack.

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.