TL;DR
MLPerf Training is the first industry-standard benchmark suite designed to fairly evaluate machine learning (ML) system performance. By measuring the "time-to-train" a model to a specific quality target rather than simple hardware throughput, it addresses the unique challenges of ML, such as stochasticity and the complex trade-offs between speed and model accuracy.
What Problem Does This Paper Address?
Benchmarking machine learning training is notoriously difficult compared to traditional compute tasks. The authors identify three primary hurdles:
- The Speed-Accuracy Trade-off: Optimizations that increase "throughput" (e.g., images processed per second) can sometimes hurt the model's ability to learn, actually increasing the total time needed to reach a target accuracy.
- Stochasticity: ML training is inherently random. Two identical runs with different random seeds can take significantly different amounts of time to converge, making single-run comparisons unreliable.
- System Diversity: The ML ecosystem is a "wild west" of hardware (CPUs, GPUs, TPUs, ASICs) and software frameworks (TensorFlow, PyTorch, MXNet). Comparing them fairly requires strict rules to ensure one system isn't "cheating" by using a simpler model or lower-quality math.
Methods
MLPerf introduces several novel benchmarking mechanisms:
- Time-to-Train Metric: The primary metric is the wall-clock time required to reach a predefined "quality target" (e.g., 74.9% Top-1 accuracy on ImageNet).
- Closed vs. Open Divisions: The Closed division enforces strict equivalence—same model, same math—to allow for "apples-to-apples" hardware and software stack comparisons. The Open division encourages innovation by allowing any model or optimization.
- Reference Implementations: The consortium provides "gold standard" code for each benchmark to define the task precisely.
- Statistical Rigor: To handle variance, MLPerf requires multiple runs (5 or 10 depending on the task). It discards the fastest and slowest results and reports the mean of the rest.
- Hyperparameter Rules: It allows tuning only a specific subset of hyperparameters (like batch size and learning rate) to accommodate different system scales while preventing "over-tuning" that wouldn't generalize to real-world tasks.
Datasets
The suite consists of seven benchmarks representing diverse, commercially relevant ML motifs:
- Vision: ImageNet (Classification), COCO 2017 (Object Detection & Instance Segmentation).
- Language: WMT16/WMT17 English-to-German (Translation).
- Recommendation: MovieLens-20M (Collaborative Filtering).
- Reinforcement Learning: Go 9x9 Board (MiniGo).
Key Insights and Ideas
- Throughput is a Trap: Traditional metrics like "FLOPS" or "images/sec" are insufficient for ML. A system might be 2x faster at processing data but take 3x more data to reach the same accuracy.
-
Stochasticity is a First-Class Citizen: The paper demonstrates that even with identical hyperparameters, the number of epochs to reach a quality target varies significantly. Bar charts showing the high variability in training epochs across different random seeds for NCF and MiniGo benchmarks.
-
The "Scale-Up" Penalty: Increasing the minibatch size to utilize more hardware often increases the total number of epochs needed to reach target quality, a phenomenon MLPerf captures and penalizes if it leads to longer training times.
- Hyperparameter "Borrowing": During the peer-review phase, submitters can adopt better hyperparameters discovered by competitors. This ensures the competition stays focused on system performance rather than who has the most researchers to run a grid search.
Key Results
The paper analyzes results across two rounds (v0.5 and v0.6), showing that MLPerf is successfully driving industry progress:
- Rapid Performance Gains: In just six months, the best performance for a 16-chip system increased by an average of 1.3x, despite higher quality targets in the second round.
- Massive Scaling: The number of chips used to achieve the "fastest time" increased by an average of 5.5x between rounds, demonstrating that the benchmark is effectively pushing the boundaries of large-scale distributed training.
- Software Maturity: Much of the observed improvement came from better benchmark implementations and software stack optimizations rather than hardware changes alone.
Limitations and Future Work
- Suite Breadth: While representative, the seven benchmarks are a "compact" set. The authors acknowledge the need to continuously add new tasks (like speech or GANs) to keep pace with the field.
- Power Metrics: The current version focuses on time; future iterations aim to include power consumption to evaluate energy efficiency.
- Dataset Realism: Early versions used an NCF dataset that was small enough to fit entirely in memory, which didn't test the memory subsystem realistically. This was addressed in later versions.
- Inference: This paper focuses strictly on training; MLPerf Inference is a separate, complementary effort.
Summary updated