Preprint
Computer Vision

Benchmarking NN Training Algorithms (AlgoPerf)

G. Dahl, Frank Schneider, Zachary Nado, Naman Agarwal, Chandramouli Shama Sastry, Philipp Hennig, Sourabh Medapati, Runa Eschenhagen, Priya Kasimbeg, Daniel Suo, Juhan Bae, J. Gilmer, A. Peirson, B. Khan, Rohan Anil, Michael G. Rabbat, Shankar Krishnan, Daniel Snider, Ehsan Amid, Kong-Tao Chen, Chris J. Maddison, R. Vasudev, Michal Baďura, Ankush Garg, Peter R. Mattson
June 12, 2023arXiv.org67 citations

67

Citations

2

Influential Citations

arXiv.org

Venue

2023

Year

Abstract

Training algorithms, broadly construed, are an essential part of every deep learning pipeline. Training algorithm improvements that speed up training across a wide variety of workloads (e.g., better update rules, tuning protocols, learning rate schedules, or data selection schemes) could save time, save computational resources, and lead to better, more accurate, models. Unfortunately, as a community, we are currently unable to reliably identify training algorithm improvements, or even determine the state-of-the-art training algorithm. In this work, using concrete experiments, we argue that real progress in speeding up training requires new benchmarks that resolve three basic challenges faced by empirical comparisons of training algorithms: (1) how to decide when training is complete and precisely measure training time, (2) how to handle the sensitivity of measurements to exact workload details, and (3) how to fairly compare algorithms that require hyperparameter tuning. In order to address these challenges, we introduce a new, competitive, time-to-result benchmark using multiple workloads running on fixed hardware, the AlgoPerf: Training Algorithms benchmark. Our benchmark includes a set of workload variants that make it possible to detect benchmark submissions that are more robust to workload changes than current widely-used methods. Finally, we evaluate baseline submissions constructed using various optimizers that represent current practice, as well as other optimizers that have recently received attention in the literature. These baseline results collectively demonstrate the feasibility of our benchmark, show that non-trivial gaps between methods exist, and set a provisional state-of-the-art for future benchmark submissions to try and surpass.

Analysis

Why This Paper Matters

Training algorithms are the engine of deep learning, determining how quickly and effectively models learn from data. Despite their importance, the field lacks a reliable way to compare different training algorithms. This paper argues that without standardized benchmarks, we cannot identify genuine improvements or even determine the state-of-the-art. The authors highlight three challenges: measuring training time accurately, handling sensitivity to workload details, and fairly comparing algorithms that require hyperparameter tuning. These issues have led to inconsistent and often irreproducible results, slowing progress.

The introduction of AlgoPerf addresses these challenges by providing a competitive benchmark that measures time-to-result across multiple workloads on fixed hardware. This is crucial because it enables researchers to objectively evaluate new training algorithms and ensures that reported improvements are robust and reproducible. By setting a provisional state-of-the-art, the benchmark establishes a clear target for future work, fostering healthy competition and accelerating innovation in training efficiency.

Moreover, AlgoPerf's design includes workload variants that test robustness to changes in workload characteristics. This is particularly important because algorithms that perform well on one workload may fail on another. By requiring submissions to be robust, the benchmark encourages the development of general-purpose training algorithms that can be applied across a wide range of tasks, from computer vision to natural language processing.

Technical Contributions

  • Identification of key challenges: The paper systematically outlines the three main obstacles in comparing training algorithms: defining training completion and measuring time, handling workload sensitivity, and fair comparison with hyperparameter tuning.
  • AlgoPerf benchmark: A new time-to-result benchmark with multiple workloads running on fixed hardware, designed to be competitive and reproducible.
  • Workload variants: The benchmark includes variants of workloads to detect submissions that are more robust to workload changes than current methods.
  • Baseline evaluation: The authors evaluate baseline submissions using various optimizers, including current practice and recent literature, demonstrating the feasibility of the benchmark and setting a provisional state-of-the-art.

Results

The paper presents baseline results that show non-trivial gaps between different optimizers, indicating that the benchmark can distinguish between methods. While specific metrics are not detailed in the abstract, the authors state that the results collectively demonstrate the feasibility of the benchmark and establish a provisional state-of-the-art. This provides a starting point for future submissions to surpass. The benchmark's ability to detect robust algorithms is a key outcome, as it ensures that improvements are not overfit to specific workloads.

Significance

AlgoPerf has the potential to significantly impact the AI field by providing a standardized, fair, and robust benchmark for training algorithms. This can lead to faster training times, reduced computational resources, and better model accuracy. By enabling reliable comparisons, it encourages the development of novel training algorithms and helps practitioners choose the best methods for their tasks. Furthermore, the benchmark's emphasis on robustness ensures that algorithms generalize well, which is essential for real-world applications. As the field continues to grow, benchmarks like AlgoPerf will be crucial for maintaining progress and reproducibility in deep learning research.