[Paper Review] In-Datacenter Performance Analysis of a Tensor Processing Unit
This paper evaluates Google's custom Tensor Processing Unit (TPU), a domain-specific ASIC designed for neural network inference in datacenters. By leveraging a 65,536-parallel 8-bit MAC array and a deterministic execution model, the TPU achieves 15–30× higher performance and 30–80× better TOPS/Watt than contemporary CPUs and GPUs, with potential for up to 70× TOPS/Watt if GDDR5 memory is used.
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.
Motivation & Objective
- To evaluate the performance, efficiency, and scalability of a custom ASIC—Tensor Processing Unit (TPU)—deployed in production datacenters since 2015.
- To address the growing need for domain-specific hardware that improves cost, energy, and performance in machine learning inference workloads.
- To compare the TPU’s performance and efficiency against contemporaneous server-class CPUs and GPUs using real production workloads.
- To demonstrate that deterministic execution and software-managed memory offer better low-latency guarantees than cache-based, time-varying optimizations in general-purpose processors.
Proposed method
- Design of a domain-specific ASIC with a 65,536-parallel 8-bit multiply-accumulate (MAC) unit, achieving a peak throughput of 92 TOPS.
- Implementation of a large (28 MiB), software-managed on-chip memory to reduce off-chip memory bandwidth and latency.
- Adoption of a deterministic execution model that avoids time-varying optimizations like caching, out-of-order execution, and multithreading.
- Evaluation using production workloads from the TensorFlow framework, including MLPs, CNNs, and LSTMs, representing 95% of datacenter inference demand.
- Benchmarking against Intel Haswell CPUs and Nvidia K80 GPUs under identical datacenter conditions and workload configurations.
- Analysis of performance and energy efficiency using metrics like TOPS, TOPS/Watt, and 99th-percentile response time.
Experimental results
Research questions
- RQ1How does the TPU’s performance and energy efficiency compare to contemporary CPUs and GPUs for neural network inference workloads?
- RQ2To what extent does the TPU’s deterministic execution model improve 99th-percentile response time compared to CPUs and GPUs with dynamic optimizations?
- RQ3What performance gains are achievable by replacing the TPU’s HBM2 memory with GDDR5, and how does this affect TOPS and TOPS/Watt?
- RQ4Why does the TPU achieve high throughput and efficiency despite having relatively low utilization in some applications?
- RQ5How does the software-managed 28 MiB on-chip memory contribute to performance and energy efficiency in the TPU architecture?
Key findings
- The TPU achieves 15–30× higher performance than a contemporary Intel Haswell CPU and Nvidia K80 GPU on production neural network inference workloads.
- The TPU delivers 30–80× better TOPS/Watt than the CPU and GPU, demonstrating superior energy efficiency.
- Using GDDR5 memory instead of the TPU’s HBM2 would triple the achieved TOPS and increase TOPS/Watt to nearly 70× that of the GPU and 200× that of the CPU.
- The deterministic execution model of the TPU provides better 99th-percentile response time guarantees than the time-varying optimizations of CPUs and GPUs.
- Despite low utilization in some workloads, the TPU’s specialized architecture and memory hierarchy enable consistent high performance for inference workloads.
- The 28 MiB on-chip memory significantly reduces off-chip memory access, contributing to low latency and high energy efficiency.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.