Skip to main content
QUICK REVIEW

[Paper Review] Distributed TensorFlow with MPI

Abhinav Vishnu, Charles Siegel|arXiv (Cornell University)|Mar 7, 2016
Parallel Computing and Optimization TechniquesComputer Science8 references34 citations
TL;DR

This paper proposes a minimal-extension approach to run TensorFlow on large-scale distributed clusters using Message Passing Interface (MPI), enabling efficient parallel training across multiple nodes without modifying the TensorFlow runtime. The method achieves strong scaling with up to 64 cores, demonstrating 3.37x speedup on CIFAR-10-DNN and 2.6x on Higgs data, proving its efficiency and scalability for large-scale machine learning workloads.

ABSTRACT

Machine Learning and Data Mining (MLDM) algorithms are becoming increasingly important in analyzing large volume of data generated by simulations, experiments and mobile devices. With increasing data volume, distributed memory systems (such as tightly connected supercomputers or cloud computing systems) are becoming important in designing in-memory and massively parallel MLDM algorithms. Yet, the majority of open source MLDM software is limited to sequential execution with a few supporting multi-core/many-core execution. In this paper, we extend recently proposed Google TensorFlow for execution on large scale clusters using Message Passing Interface (MPI). Our approach requires minimal changes to the TensorFlow runtime -- making the proposed implementation generic and readily usable to increasingly large users of TensorFlow. We evaluate our implementation using an InfiniBand cluster and several well knowndatasets. Our evaluation indicates the efficiency of our proposed implementation.

Motivation & Objective

  • To extend TensorFlow’s capability beyond single-node execution to support large-scale distributed training on clusters.
  • To address the limitation of TensorFlow’s single-node restriction when handling increasingly large datasets from simulations and experiments.
  • To leverage MPI as a communication backbone for distributed memory systems, ensuring efficient inter-node coordination.
  • To maintain backward compatibility by requiring no changes to the TensorFlow runtime.
  • To evaluate the scalability and performance of the proposed MPI-based extension on real-world datasets.

Proposed method

  • Integrate MPI as the communication layer between worker nodes in a distributed TensorFlow setup, enabling inter-node synchronization and parameter exchange.
  • Use TensorFlow’s existing computational graph and session model, preserving its native execution semantics while extending it for distributed operation.
  • Implement parameter server and worker roles using MPI for efficient model parameter distribution and gradient aggregation.
  • Minimize changes to the TensorFlow runtime by abstracting distributed coordination through MPI, avoiding deep integration into core components.
  • Use control dependencies and variable synchronization via MPI to maintain training consistency across nodes.
  • Leverage TensorFlow’s C++ backend and optimized linear algebra libraries to maximize performance on each node.

Experimental results

Research questions

  • RQ1Can TensorFlow be effectively scaled to large-scale clusters using a lightweight, minimal-change approach?
  • RQ2Does using MPI as the communication layer preserve TensorFlow’s performance characteristics while enabling distributed training?
  • RQ3How does the proposed MPI-based extension scale with increasing numbers of cores and nodes on real-world machine learning datasets?
  • RQ4What is the performance overhead and speedup of the distributed implementation compared to single-node TensorFlow?
  • RQ5Can the extension efficiently handle diverse ML workloads, including DNNs, CNNs, and tabular data, across datasets like MNIST, CIFAR-10, Higgs, and Adult?

Key findings

  • The proposed MPI-based extension achieves a 3.37x speedup on CIFAR-10 using a DNN with 64 cores, demonstrating strong scaling efficiency.
  • On the Higgs dataset, the implementation achieves a 2.6x speedup when scaling from 20 to 80 cores.
  • Relative speedup on MNIST reaches 3.0x with 16 cores, indicating effective load distribution and communication overhead control.
  • The method maintains high training accuracy—achieving approximately 55% on CIFAR-10-DNN within one hour—confirming model fidelity despite distribution.
  • The implementation requires no changes to the TensorFlow runtime, making it highly reusable and deployable across existing TensorFlow workflows.
  • Evaluation on multiple datasets confirms the method’s generality and efficiency, with consistent performance gains across supervised learning tasks.

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.