In-Datacenter Performance Analysis of a Tensor Processing Unit

TL;DR

This paper evaluates Google's TPU, a custom ASIC with 65,536 8-bit MAC units achieving 92 TOPS, demonstrating superior inference performance and efficiency over CPUs and GPUs.

cs.AR 🔴 Advanced 2017-04-16 61 views
Norman P. Jouppi Cliff Young Nishant Patil David Patterson Gaurav Agrawal Raminder Bajwa Sarah Bates Suresh Bhatia Nan Boden Al Borchers Rick Boyle Pierre-luc Cantin Clifford Chao Chris Clark Jeremy Coriell Mike Daley Matt Dau Jeffrey Dean Ben Gelb Tara Vazir Ghaemmaghami Rajendra Gottipati William Gulland Robert Hagmann C. Richard Ho Doug Hogberg John Hu Robert Hundt Dan Hurt Julian Ibarz Aaron Jaffey Alek Jaworski Alexander Kaplan Harshit Khaitan Andy Koch Naveen Kumar Steve Lacy James Laudon James Law Diemthu Le Chris Leary Zhuyuan Liu Kyle Lucke Alan Lundin Gordon MacKean Adriana Maggiore Maire Mahony Kieran Miller Rahul Nagarajan Ravi Narayanaswami Ray Ni Kathy Nix Thomas Norrie Mark Omernick Narayana Penukonda Andy Phelps Jonathan Ross Matt Ross Amir Salek Emad Samadiani Chris Severn Gregory Sizikov Matthew Snelham Jed Souter Dan Steinberg Andy Swing Mercedes Tan Gregory Thorson Bo Tian Horia Toma Erick Tuttle Vijay Vasudevan Richard Walter Walter Wang Eric Wilcox Doe Hyun Yoon
AI hardware neural networks ASIC performance analysis energy efficiency

Key Findings

Methodology

Using a custom ASIC—the TPU—with a core matrix multiply unit of 65,536 8-bit MACs, reaching 92 TOPS peak throughput. Comparative analysis was performed against server-class Intel Haswell CPUs and Nvidia K80 GPUs, deploying production neural network models (MLPs, CNNs, LSTMs) within Google data centers. Performance metrics included throughput, latency, and power consumption, evaluated via Roofline models and hardware counters. The TPU’s architecture emphasizes deterministic execution, avoiding complex control features, to meet strict 99th percentile latency requirements.

Key Results

  • On inference workloads, TPU outperforms GPU and CPU by 15-30x in speed, with TOPS/Watt efficiency 30-80x higher. Even at low utilization, TPU maintains high performance. Using GPU’s GDDR5 memory in the TPU triples throughput and nearly triples TOPS/Watt, reaching near 70x GPU and 200x CPU efficiency.
  • TPU’s deterministic model ensures strict latency bounds, crucial for user-facing applications. Despite fewer transistors and lower power, it delivers high throughput, validating the benefits of domain-specific hardware.
  • Memory bandwidth remains a bottleneck for some models; replacing TPU’s memory with GPU’s GDDR5 significantly boosts performance, highlighting future directions for memory system optimization.

Significance

This work demonstrates that domain-specific hardware like TPU can surpass general-purpose processors in both latency and energy efficiency for neural network inference. It addresses industry needs for real-time AI services, enabling scalable, low-cost deployment in data centers. The TPU’s architecture exemplifies how simplifying hardware—focusing on core operations—can unlock substantial performance gains, influencing future AI hardware design and deployment strategies.

Technical Contribution

The paper introduces a systolic matrix multiply architecture optimized for 8-bit integer operations, integrated with a software-managed 28 MiB on-chip memory. It employs a CISC instruction set for flexible control, enabling overlapping execution and efficient data flow. The design avoids complex features like caches and out-of-order execution, emphasizing simplicity and determinism. Performance analysis via Roofline models guides hardware optimization, establishing a new paradigm for domain-specific accelerators.

Novelty

First large-scale deployment of a dedicated neural network inference ASIC with a focus on deterministic, low-latency execution. The systolic matrix multiply architecture and minimalist microarchitecture differentiate it from GPU-based solutions, achieving high efficiency with simplified control logic. This represents a significant shift from general-purpose to specialized hardware in AI acceleration.

Limitations

  • The current architecture primarily supports dense matrix operations; sparse or irregular models are less efficiently handled, limiting flexibility.
  • Memory bandwidth remains a bottleneck; future improvements require advanced memory hierarchies or off-chip memory technologies.
  • TPU is optimized for inference; training support is limited, necessitating additional hardware or software solutions for training workloads.

Future Work

Future efforts will focus on supporting sparse models, integrating higher bandwidth memory technologies, and extending TPU capabilities to training. Exploring hardware support for model compression and quantization will further improve efficiency. Additionally, developing more flexible architectures to handle diverse neural network topologies will broaden applicability.

AI Executive Summary

Deep neural networks have revolutionized AI, but their deployment in real-time applications faces challenges in latency and energy consumption. Traditional hardware like CPUs and GPUs, while powerful, struggle to meet the stringent response-time requirements of user-facing services, especially at scale. To address this, Google developed the Tensor Processing Unit (TPU), a custom ASIC designed specifically for neural network inference. The TPU’s core features 65,536 8-bit MAC units capable of 92 TOPS, coupled with a large, software-controlled on-chip memory of 28 MiB. Its architecture emphasizes simplicity and determinism, avoiding complex control features like caches and out-of-order execution, which are common in CPUs and GPUs. This minimalist design ensures predictable latency, crucial for applications like speech recognition, image search, and language translation.

The performance evaluation involved deploying the TPU alongside server-class Intel Haswell CPUs and Nvidia K80 GPUs within Google data centers. Using a suite of representative models—MLPs, CNNs, and LSTMs—the TPU demonstrated a 15 to 30-fold speed advantage over its counterparts. Its energy efficiency, measured in TOPS/Watt, was 30 to 80 times higher. Notably, replacing the TPU’s internal memory with GPU’s GDDR5 memory could triple throughput and nearly triple energy efficiency, indicating significant potential for future hardware enhancements.

These results underscore the transformative potential of domain-specific accelerators. The TPU’s high performance, low latency, and energy efficiency make it ideal for large-scale cloud inference workloads, enabling faster, cheaper, and more reliable AI services. Its design philosophy—focused on core matrix operations and minimal control logic—sets a new standard for AI hardware, emphasizing simplicity and purpose-built architecture. Looking ahead, ongoing research aims to support sparse models, improve memory bandwidth, and extend capabilities to training, promising even broader impact across AI applications and industries.

Deep Dive

Abstract

Many architects believe that major improvements in cost-energy-performance must now come from domain-specific hardware. This paper evaluates a custom ASIC---called a Tensor Processing Unit (TPU)---deployed in datacenters since 2015 that accelerates the inference phase of neural networks (NN). The heart of the TPU is a 65,536 8-bit MAC matrix multiply unit that offers a peak throughput of 92 TeraOps/second (TOPS) and a large (28 MiB) software-managed on-chip memory. The TPU's deterministic execution model is a better match to the 99th-percentile response-time requirement of our NN applications than are the time-varying optimizations of CPUs and GPUs (caches, out-of-order execution, multithreading, multiprocessing, prefetching, ...) that help average throughput more than guaranteed latency. The lack of such features helps explain why, despite having myriad MACs and a big memory, the TPU is relatively small and low power. We compare the TPU to a server-class Intel Haswell CPU and an Nvidia K80 GPU, which are contemporaries deployed in the same datacenters. Our workload, written in the high-level TensorFlow framework, uses production NN applications (MLPs, CNNs, and LSTMs) that represent 95% of our datacenters' NN inference demand. Despite low utilization for some applications, the TPU is on average about 15X - 30X faster than its contemporary GPU or CPU, with TOPS/Watt about 30X - 80X higher. Moreover, using the GPU's GDDR5 memory in the TPU would triple achieved TOPS and raise TOPS/Watt to nearly 70X the GPU and 200X the CPU.

cs.AR cs.LG cs.NE