MLPerf Inference Benchmark

Vijay Janapa Reddi, Christine Cheng, David Kanter, Peter Mattson, Guenther Schmuelling, Carole-Jean Wu, Brian Anderson, Maximilien Breughe, Mark Charlebois, William Chou, Ramesh Chukka, Cody Coleman, Sam Davis, Pan Deng, Greg Diamos, Jared Duke, Dave Fick, J. Scott Gardner, Itay Hubara, Sachin Idgunji, Thomas B. Jablin, Jeff Jiao, Tom St. John, Pankaj Kanwar, David Lee, Jeffery Liao, Anton Lokhmotov, Francisco Massa, Peng Meng, Paulius Micikevicius, Colin Osborne, Gennady Pekhimenko, Arun Tejusve Raghunath Rajan, Dilip Sequeira, Ashish Sirasao, Fei Sun, Hanlin Tang, Michael Thomson, Frank Wei, Ephrem Wu, Lingjie Xu, Koichi Yamada, Bing Yu, George Yuan, Aaron Zhong, Peizhao Zhang, Yuchen Zhou

TL;DR

MLPerf Inference is the first industry-standard benchmark suite designed to fairly evaluate machine learning inference across wildly diverse hardware and software stacks. By moving beyond simple throughput metrics and introducing four realistic deployment scenarios—Single-stream, Multistream, Server, and Offline—it provides a standardized "yardstick" for a field where performance can span five orders of magnitude.

What Problem Does This Paper Address?

The machine learning (ML) landscape is currently in a state of "Cambrian explosion." There are over 100 organizations building specialized inference chips, dozens of software frameworks (TensorFlow, PyTorch, etc.), and a massive variety of models.

Before MLPerf, comparing these systems was nearly impossible. A data center GPU might boast incredible throughput for batch processing, but how does it compare to a mobile NPU (Neural Processing Unit) trying to process a single voice command instantly? How do you ensure a system isn't "cheating" by sacrificing 5% accuracy to gain a 2x speedup? The authors tackle the challenge of creating a benchmark that is architecture-neutral, representative of real-world use, and reproducible.

Methods

The core innovation of MLPerf Inference is the LoadGen (Load Generator) and its four distinct Deployment Scenarios. Instead of just measuring "images per second," LoadGen simulates how queries actually arrive in the real world:

  1. Single-stream: One query at a time. It measures the 90th-percentile latency (how fast is the response?). Think: a voice assistant on a smartphone.
  2. Multistream: Multiple queries arriving at fixed intervals. Think: an autonomous vehicle processing feeds from multiple cameras simultaneously.
  3. Server: Queries arrive randomly (Poisson distribution) with a strict latency "budget." It measures the maximum queries-per-second (QPS) achievable within that budget. Think: a web-based translation service.
  4. Offline: All data is available at once. It measures pure throughput. Think: a cloud service indexing a massive photo library.

The benchmark also defines two divisions: Closed, where submitters must use the same model and weights to ensure a "fair fight," and Open, which allows for radical optimizations like model retraining or custom quantization.

Datasets

The benchmark utilizes industry-standard datasets to ensure broad relevance:

  • ImageNet (224x224): Used for heavy (ResNet-50) and light (MobileNet-v1) image classification.
  • COCO: Used for object detection, featuring both a heavy model (SSD-ResNet-34) and a light model (SSD-MobileNet-v1).
  • WMT16 EN-DE: Used for Neural Machine Translation (GNMT).

Key Insights and Ideas

  • The Latency Tax: One of the most striking "aha moments" is the performance degradation in the Server scenario. Because servers can't wait to "batch" queries to maximize efficiency (due to latency constraints), they often deliver significantly lower throughput than in Offline mode. Some systems lose over 50% of their potential throughput when forced to meet real-time demands.
  • Accuracy is Non-Negotiable: To prevent "gaming" the benchmark, MLPerf enforces strict quality targets (typically 98-99% of the FP32 reference model's accuracy). This ensures that performance gains are actually useful for production.
  • Model Complexity vs. Performance: The paper notes that while SSD-ResNet-34 requires 175x more operations than SSD-MobileNet-v1, the actual observed throughput difference is often only 50–60x. This highlights how hardware architecture and memory bandwidth can be just as important as raw FLOPs.

Key Results

The initial v0.5 round garnered over 600 submissions from 14 organizations, including giants like NVIDIA, Intel, Google, and Alibaba.

  • Massive Dynamic Range: Performance varied by four orders of magnitude across the systems tested, reflecting the spectrum from low-power edge devices to massive data center accelerators.
  • Hardware Diversity: Submissions covered CPUs, GPUs, DSPs, FPGAs, and specialized ASICs, proving the benchmark's architecture-neutrality.
  • Software Impact: The results showed that software optimization (compilers, libraries like TensorRT or OpenVINO) is just as critical as the underlying silicon.

Limitations and Future Work

The authors acknowledge several areas for growth:

  • Task Breadth: The initial suite focused heavily on vision and translation. Future versions aim to include recommendation systems (DLRM), speech-to-text, and time-series analysis.
  • Caching: To keep the benchmark simple and comparable, caching is currently disallowed. However, in real-world systems (like Google Translate), caching common queries is a major performance driver.
  • High-Resolution Data: There is a noted lack of high-quality, public datasets for high-resolution (e.g., 4K or 8MP) object detection, which is critical for fields like robotics and medical imaging.

MLPerf Inference has successfully moved ML benchmarking from "marketing numbers" to "engineering metrics," providing the transparency needed for the next phase of the AI hardware revolution.

Summary updated

BibTeX
@inproceedings{reddi2020mlperf,
  author = {Vijay Janapa Reddi and Christine Cheng and David Kanter and Peter Mattson and Guenther Schmuelling and Carole-Jean Wu and Brian Anderson and Maximilien Breughe and Mark Charlebois and William Chou and Ramesh Chukka and Cody Coleman and Sam Davis and Pan Deng and Greg Diamos and Jared Duke and Dave Fick and J. Scott Gardner and Itay Hubara and Sachin Idgunji and Thomas B. Jablin and Jeff Jiao and Tom St. John and Pankaj Kanwar and David Lee and Jeffery Liao and Anton Lokhmotov and Francisco Massa and Peng Meng and Paulius Micikevicius and Colin Osborne and Gennady Pekhimenko and Arun Tejusve Raghunath Rajan and Dilip Sequeira and Ashish Sirasao and Fei Sun and Hanlin Tang and Michael Thomson and Frank Wei and Ephrem Wu and Lingjie Xu and Koichi Yamada and Bing Yu and George Yuan and Aaron Zhong and Peizhao Zhang and Yuchen Zhou},
  title = {{MLPerf Inference Benchmark}},
  booktitle = {ISCA},
  year = {2020},
  doi = {10.1109/isca45697.2020.00045},
}
Figure