Skip to main content
QUICK REVIEW

[Paper Review] Designing a Micro-Benchmark Suite to Evaluate gRPC for TensorFlow: Early Experiences

Rajarshi Biswas, Xiaoyi Lu|arXiv (Cornell University)|Apr 3, 2018
Advanced Neural Network ApplicationsComputer Science14 references7 citations
TL;DR

This paper proposes TF-gRPC-Bench, a micro-benchmark suite designed to evaluate gRPC's performance in TensorFlow workloads by modeling real-world communication patterns. The suite includes three targeted benchmarks derived from profiling popular deep learning models, and evaluation across Ethernet, IPoIB, and RDMA networks reveals significant performance differences, especially under low-latency, high-throughput conditions, highlighting gRPC's sensitivity to network stack choices.

ABSTRACT

Remote procedure call (RPC) is the backbone of many modern distributed systems. Google's gRPC is one of the most popular open source RPC frameworks available in the community. gRPC is the main communication engine for Google's Deep Learning framework TensorFlow. TensorFlow primarily uses gRPC for communicating tensors and administrative tasks among different processes. Tensor updates during the training phase are communication intensive and thus TensorFlow's performance is heavily dependent on the underlying network and the efficacy of the communication engine. Training deep learning models on TensorFlow can take significant time ranging from several minutes to several hours, even several days. Thus system researchers need to devote a lot of time to understand the impact of communication on the overall performance. Clearly, there is lack of benchmarks available for system researchers. Therefore, we propose TF-gRPC-Bench micro-benchmark suite that enables system researchers to quickly understand the impact of the underlying network and communication runtime on deep learning workloads. To achieve this, we first analyze the characteristics of TensorFlow workload over gRPC by training popular deep learning models. Then, we propose three micro-benchmarks that take account these workload characteristics. In addition, we comprehensively evaluate gRPC with TF-gRPC-Bench micro-benchmark suite on different clusters over Ethernet, IPoIB, and RDMA, and present the results.

Motivation & Objective

  • To address the lack of specialized benchmarks for evaluating gRPC's impact on distributed deep learning workloads in TensorFlow.
  • To identify and model the key communication characteristics of TensorFlow training workloads over gRPC.
  • To design a set of targeted micro-benchmarks that isolate and reproduce representative communication patterns in TensorFlow.
  • To evaluate gRPC performance across different network technologies (Ethernet, IPoIB, RDMA) using the proposed benchmark suite.
  • To provide system researchers with a reproducible, efficient tool to study communication stack performance in distributed ML systems.

Proposed method

  • The authors first profiled training workloads of popular deep learning models (e.g., ResNet, Inception) in TensorFlow to extract communication characteristics such as message size, frequency, and data type.
  • Based on these characteristics, they designed three micro-benchmarks: one for small, frequent messages (e.g., gradients), one for large, infrequent messages (e.g., model weights), and one for mixed workloads reflecting real training phases.
  • The benchmarks simulate gRPC communication patterns using TensorFlow's internal RPC mechanisms, focusing on tensor serialization and transport overhead.
  • The suite was evaluated on multiple clusters using three network types: standard Ethernet, IPoIB (InfiniBand), and RDMA, with controlled configurations to isolate performance differences.
  • Performance metrics included end-to-end latency, throughput, and scalability across varying message sizes and network conditions.
  • The evaluation used standardized, repeatable configurations to ensure reproducibility and fairness across network and hardware platforms.

Experimental results

Research questions

  • RQ1How do different network technologies (Ethernet, IPoIB, RDMA) affect gRPC performance in TensorFlow communication workloads?
  • RQ2What are the dominant communication patterns in TensorFlow training workloads that influence gRPC performance?
  • RQ3Can a micro-benchmark suite accurately reflect the performance characteristics of real deep learning training workloads on gRPC?
  • RQ4How does gRPC performance vary with message size and frequency in distributed TensorFlow training?
  • RQ5To what extent does the choice of network stack impact end-to-end training latency in gRPC-based distributed ML systems?

Key findings

  • gRPC performance varied significantly across network types, with RDMA delivering the lowest latency and highest throughput, especially for small messages.
  • IPoIB showed better performance than standard Ethernet, particularly in low-latency scenarios, due to lower kernel overhead and better interrupt handling.
  • The micro-benchmarks successfully captured the performance bottlenecks of real TensorFlow training workloads, particularly in gradient synchronization phases.
  • Small-message communication (e.g., gradients) was the most sensitive to network stack choice, with RDMA reducing latency by up to 50% compared to Ethernet.
  • Throughput scaled well with message size on all networks, but RDMA maintained superior performance across all sizes, especially in high-frequency, low-latency regimes.
  • The benchmark suite enabled consistent, repeatable performance measurements, making it suitable for system-level evaluation of communication stacks in distributed ML.

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.