Benchmarking the Performance and Energy Efficiency of AI Accelerators for AI Training

Yuxin Wang, Qiang Wang, Shaohuai Shi, Xin He, Zhenheng Tang, Kaiyong Zhao, Xiaowen Chu · DOI

Abstract

Deep learning has become widely used in complex AI applications. Yet, training a deep neural network (DNNs) model requires a considerable amount of calculations, long running time, and much energy. Nowadays, many-core AI accelerators (e.g., GPUs and TPUs) are designed to improve the performance of AI training. However, processors from different vendors perform dissimilarly in terms of performance and energy consumption. To investigate the differences among several popular off-the-shelf processors (i.e., Intel CPU, NVIDIA GPU, AMD GPU, and Google TPU) in training DNNs, we carry out a comprehensive empirical study on the performance and energy efficiency of these processors by benchmarking a representative set of deep learning workloads, including computation-intensive operations, classical convolutional neural networks (CNNs), recurrent neural networks (LSTM), Deep Speech 2, and Transformer. Different from the existing end-to-end benchmarks which only present the training time, We try to investigate the impact of hardware, vendor's software library, and deep learning framework on the performance and energy consumption of AI training. Our evaluation methods and results not only provide an informative guide for end-users to select proper AI accelerators, but also expose some opportunities for the hardware vendors to improve their software library.

Introduction

Training deep neural networks (DNNs) is incredibly resource-intensive, consuming vast amounts of time, money, and electricity. While hardware vendors frequently release "peak performance" specs, these numbers rarely translate directly to real-world training speeds. This study addresses a gap in existing benchmarks, which often focus solely on training throughput while ignoring energy consumption. Furthermore, few independent studies compare the emerging Google TPU and AMD’s ROCm ecosystem directly against the dominant NVIDIA CUDA stack. This paper provides a "buyer's guide" for researchers and engineers to choose the right accelerator based on their specific model and budget.

Methodology

The study utilized a multi-level empirical approach:

  1. Micro-benchmarking: Testing fundamental operations like Matrix Multiplication (Matmul) and 2D Convolution (Conv2d) to evaluate proximity to theoretical peak FLOPS.
  2. End-to-End Training: Measuring throughput (samples per second) and energy consumption (Joules per sample) across popular DNN architectures.
  3. Software Stack Analysis: Investigating the impact of libraries such as NVIDIA’s cuDNN, AMD’s ROCm, Intel’s MKL, and Google’s TensorFlow.

Hardware and Software Environment

The benchmarks were conducted on the following hardware:

  • CPU: Intel Xeon Platinum 8163.
  • NVIDIA GPUs: Tesla V100, P100, and Titan X (Pascal).
  • AMD GPU: Radeon VII.
  • Google TPUs: TPU v2-8 and TPU v3-8.

Benchmarked Models and Datasets

The evaluation covered a representative set of deep learning workloads:

  • ImageNet: For CNNs (VGG16, ResNet-50, Inception V3).
  • Penn Treebank (PTB): For RNNs (2-Layer LSTM).
  • AN4: For speech recognition (Deep Speech 2).
  • WMT14 EN-DE: For machine translation (Transformer).
Overview of the deep learning model architectures used in the benchmark study.

Key Insights and Performance Analysis

The "Tensor Core" Gap and Software Maturity

While NVIDIA’s Tensor Cores offer massive theoretical speedups, their actual utilization during end-to-end training is surprisingly low (3% to 9%). Memory bandwidth and non-convolutional layers often bottleneck the system before Tensor Cores reach full potential. Furthermore, hardware specs aren't everything; the NVIDIA Titan X (Pascal) often outperformed the AMD Radeon VII despite the latter's superior raw specs, highlighting the importance of NVIDIA's mature and highly optimized software libraries.

TPU Architectural Evolution

Moving from TPU v2 to v3 saw a 2.3x increase in computing power but only a 1.5x increase in memory bandwidth. This "unbalance" means that while some models see huge gains on v3, others are limited by data movement speeds.

Architectural comparison between Google TPU v2 and TPU v3, highlighting the increase in MXU units and HBM capacity.

Energy Efficiency and Throughput Results

  • Throughput: Google TPUs generally led in raw speed. TPU v3 was roughly 1.7x faster than the NVIDIA V100 on the Transformer model and up to 2.7x faster on certain CNNs.
  • NVIDIA vs. AMD: The NVIDIA V100 consistently achieved 1.5x to 2x higher performance than the AMD Radeon VII across most tasks.
  • Energy Efficiency: Server-grade GPUs (V100, P100) are significantly more energy-efficient than consumer-grade cards. The V100 can be up to 5.2x more energy-efficient per sample. Notably, using Mixed Precision (FP16) training on the V100 not only speeds up training but also halves energy consumption per sample.

Conclusion

This comprehensive benchmark reveals that software maturity and memory bandwidth are often more critical bottlenecks than raw theoretical computing power. While TPUs offer superior throughput for specific models, NVIDIA's ecosystem remains highly competitive due to software optimization and energy efficiency. Future work will extend this study to include FPGAs and edge devices to provide a more complete picture of the AI hardware landscape.

Summary updated

BibTeX
@inproceedings{wang2020benchmarking,
  author = {Yuxin Wang and Qiang Wang and Shaohuai Shi and Xin He and Zhenheng Tang and Kaiyong Zhao and Xiaowen Chu},
  title = {{Benchmarking the Performance and Energy Efficiency of AI Accelerators for AI Training}},
  booktitle = {CCGRID},
  year = {2020},
  doi = {10.1109/ccgrid49817.2020.00-15},
}
Figure