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

TL;DR

This paper presents a comprehensive, independent benchmark of modern AI accelerators—including Intel CPUs, NVIDIA GPUs, AMD GPUs, and Google TPUs—evaluating both training throughput and energy efficiency. By analyzing both low-level operators and end-to-end deep learning models, the authors expose critical hardware and software bottlenecks, such as surprisingly low Tensor Core utilization in real-world training scenarios.

What Problem Does This Paper Address?

Training deep neural networks (DNNs) is incredibly compute-intensive and consumes massive amounts of energy. While hardware vendors frequently release specialized AI accelerators (like GPUs and TPUs) boasting impressive peak performance metrics, independent comparisons are rare. Furthermore, existing benchmarks typically focus solely on execution time, ignoring energy efficiency and omitting key competitors like AMD GPUs.

This paper addresses this gap by providing an objective, full-stack evaluation. It looks beyond raw hardware specifications to investigate how hardware architecture, vendor software libraries (e.g., CUDA vs. ROCm), and deep learning frameworks collectively impact both training speed and power consumption.

Methods

The authors designed a two-tiered benchmarking methodology:

  1. Operator-Level Evaluation: They isolated low-level, computation-intensive operations—specifically Matrix Multiplication (Matmul) and 2D Convolution (Conv2d)—using synthetic tensors to measure peak floating-point operations per second (FLOPS) and hardware utilization.
  2. End-to-End Model Training: They evaluated full-scale training performance across a diverse set of neural network architectures.

The hardware suite included an Intel Xeon CPU, three NVIDIA GPUs (Titan X, P100, V100), an AMD Radeon VII GPU, and Google TPU v2 and v3 instances. Performance was measured in samples processed per second. Energy consumption was tracked by sampling system power every 2 milliseconds using vendor-provided management interfaces (NVML for NVIDIA and ROCm SMI for AMD).

Figure 2: The structures of TPU v2 (left) and TPU v3 (right).

Datasets

The end-to-end benchmarks utilized standard, widely recognized machine learning datasets across different domains:

  • ImageNet: 1.2 million images used to train classical Convolutional Neural Networks (CNNs) including VGG16, ResNet-50, and Inception V3.
  • Penn Treebank (PTB): 42,000 words used for training a 2-Layer LSTM language model.
  • AN4: A speech dataset (948 utterances) used to train the Deep Speech 2 architecture.
  • WMT14 EN-DE: 36 million sentence pairs used for training the attention-based Transformer model.
Figure 1: Different Architecture of DNNs.

Key Insights and Ideas

  • The Tensor Core Utilization Gap: Although NVIDIA’s Tensor Cores offer massive theoretical performance leaps, their actual utilization during end-to-end training ranges from a meager 3% to 9%. This mismatch occurs because training pipelines remain bottlenecked by serial FP32 operations, data-fetching overhead, and memory bandwidth limitations.
  • TPU v3 Memory Bottleneck: Upgrading from TPU v2 to TPU v3 yields a 2.3× increase in raw compute capacity, but only a 1.5× increase in memory bandwidth. This scaling imbalance leaves memory-bound models unable to fully exploit the extra compute power.
  • Software Ecosystem Dominance: Raw hardware specs do not guarantee real-world performance. Despite the AMD Radeon VII having superior theoretical paper specs compared to older NVIDIA cards, NVIDIA's highly optimized software ecosystem (CUDA/cuDNN) allowed the older Titan X (Pascal) to outperform it in several workloads.
  • Server-Grade Energy Efficiency: Server-targeted GPUs (Tesla P100 and V100) are significantly more energy-efficient than desktop-grade cards. The V100, when utilizing Mixed Precision, achieved up to 5.2× lower energy consumption per sample compared to other GPUs, proving that higher throughput can drastically reduce total energy costs despite high instantaneous power draw.

Key Results

  • Throughput Leadership: Google TPUs consistently delivered the highest training throughput. On ResNet-50, TPU v3 achieved up to 1,882 samples/sec, drastically outperforming the Tesla V100, which maxed out at 334 samples/sec in FP32 and 680 samples/sec using Mixed Precision.
  • Transformer Performance: For non-recurrent translation models like the Transformer, TPU v3 reached 35,772 tokens/sec, outstripping the V100 Mixed Precision baseline of 20,152 tokens/sec.
  • Energy Metrics: NVIDIA’s V100 with Mixed Precision (MP) proved to be the greenest option for most workloads, dropping energy costs per sample to fractions of a Joule (e.g., 0.20 J/sample for the 2-Layer LSTM, compared to 0.40 J/sample on the AMD Radeon VII).

Limitations and Future Work

While comprehensive, the paper notes a few limitations:

  • Hardware Scope: The evaluation did not include Field Programmable Gate Arrays (FPGAs), which are becoming prominent alternatives in specialized AI acceleration.
  • Workload Scope: The study focused exclusively on AI training. The authors note that benchmarking deep learning inference tasks on both server and edge devices remains an open area for future work.
  • Software Gaps: Some software limitations prevented full cross-compatibility; for instance, the AMD GPU could not run Deep Speech 2 because the Connectionist Temporal Classification (CTC) loss operator was unsupported in the ROCm ecosystem at the time of testing.

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