Skip to main content
QUICK REVIEW

[Paper Review] InferBench: Understanding Deep Learning Inference Serving with an Automatic Benchmarking System

Huaizheng Zhang, Yizheng Huang|arXiv (Cornell University)|Nov 4, 2020
Adversarial Robustness in Machine LearningComputer Science26 references6 citations
TL;DR

InferBench is an automatic, distributed benchmarking system that streamlines deep learning inference serving evaluation by automating workload generation, model variation, and performance analysis. It reduces average job completion time by 30% (1.43x speedup) via a two-tier scheduler and provides actionable guidelines for latency, cost, and resource trade-offs across hardware, software, and pipeline configurations.

ABSTRACT

Deep learning (DL) models have become core modules for many applications. However, deploying these models without careful performance benchmarking that considers both hardware and software's impact often leads to poor service and costly operational expenditure. To facilitate DL models' deployment, we implement an automatic and comprehensive benchmark system for DL developers. To accomplish benchmark-related tasks, the developers only need to prepare a configuration file consisting of a few lines of code. Our system, deployed to a leader server in DL clusters, will dispatch users' benchmark jobs to follower workers. Next, the corresponding requests, workload, and even models can be generated automatically by the system to conduct DL serving benchmarks. Finally, developers can leverage many analysis tools and models in our system to gain insights into the trade-offs of different system configurations. In addition, a two-tier scheduler is incorporated to avoid unnecessary interference and improve average job compilation time by up to 1.43x (equivalent of 30\% reduction). Our system design follows the best practice in DL clusters operations to expedite day-to-day DL service evaluation efforts by the developers. We conduct many benchmark experiments to provide in-depth and comprehensive evaluations. We believe these results are of great values as guidelines for DL service configuration and resource allocation.

Motivation & Objective

  • Address the lack of configurability and automation in existing deep learning inference benchmarking systems like MLPerf.
  • Reduce the manual, error-prone effort required for benchmarking by developers deploying DL models in production.
  • Enable comprehensive exploration of the design space across hardware, software, and inference pipeline configurations.
  • Provide actionable, data-driven guidelines for service configuration and resource allocation under real-world constraints.
  • Improve system efficiency through a novel two-tier scheduler that reduces average job completion time by 30%.

Proposed method

  • Deploy an automatic benchmarking system in DL clusters where developers submit only a configuration file.
  • Automatically generate diverse models with varying hyper-parameters (e.g., layer count, type) to explore the design space.
  • Distribute benchmark jobs via a leader-follower architecture, with the leader dispatching tasks to worker nodes.
  • Implement a two-tier scheduler combining queue-aware load balancing with Short-Job-First (SJF) to minimize job completion time.
  • Use standardized metrics (tail latency, cloud cost, resource usage) and analysis models (Roofline, heat maps) for performance profiling.
  • Simulate real-world inference pipelines using three networking technologies (e.g., 4G LTE) to evaluate end-to-end latency and transmission impact.

Experimental results

Research questions

  • RQ1How can deep learning inference benchmarking be automated to reduce developer effort and error rates?
  • RQ2What is the impact of varying hardware platforms, serving software, and network conditions on inference performance and cost?
  • RQ3How do hyper-parameters like batch size and model depth affect latency, throughput, and resource utilization?
  • RQ4Can a two-tier scheduler significantly improve job completion time in a distributed benchmarking environment?
  • RQ5What are the key trade-offs between latency, cost, and resource usage in real-world DL serving deployments?

Key findings

  • The two-tier scheduler (queue-aware with SJF) reduced average job completion time by 1.43x, equivalent to a 30% improvement.
  • Transmission time was comparable to inference time at small batch sizes, but inference time dominated as batch size increased.
  • 4G LTE introduced the highest end-to-end latency, indicating significant network overhead for mobile inference workloads.
  • Cold start times exceeded 10 seconds for small models like ResNet50, posing challenges for resource provisioning.
  • GPU utilization varied significantly across serving software, with TFS outperforming TrIS in both stability and efficiency.
  • The system enabled comprehensive analysis across three tiers—hardware, software, and pipeline—providing actionable insights for configuration and optimization.

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.