Skip to main content
QUICK REVIEW

[Paper Review] TPU v4: An Optically Reconfigurable Supercomputer for Machine Learning with Hardware Support for Embeddings

Norman P. Jouppi, George Thomas Kurian|arXiv (Cornell University)|Apr 4, 2023
Photonic and Optical DevicesEngineering19 citations
TL;DR

TPU v4 introduces an optically reconfigurable interconnect using optical circuit switches, adds SparseCores for embedding-focused workloads, and scales to 4096 chips to boost ML performance and efficiency.

ABSTRACT

In response to innovations in machine learning (ML) models, production workloads changed radically and rapidly. TPU v4 is the fifth Google domain specific architecture (DSA) and its third supercomputer for such ML models. Optical circuit switches (OCSes) dynamically reconfigure its interconnect topology to improve scale, availability, utilization, modularity, deployment, security, power, and performance; users can pick a twisted 3D torus topology if desired. Much cheaper, lower power, and faster than Infiniband, OCSes and underlying optical components are <5% of system cost and <3% of system power. Each TPU v4 includes SparseCores, dataflow processors that accelerate models that rely on embeddings by 5x-7x yet use only 5% of die area and power. Deployed since 2020, TPU v4 outperforms TPU v3 by 2.1x and improves performance/Watt by 2.7x. The TPU v4 supercomputer is 4x larger at 4096 chips and thus ~10x faster overall, which along with OCS flexibility helps large language models. For similar sized systems, it is ~4.3x-4.5x faster than the Graphcore IPU Bow and is 1.2x-1.7x faster and uses 1.3x-1.9x less power than the Nvidia A100. TPU v4s inside the energy-optimized warehouse scale computers of Google Cloud use ~3x less energy and produce ~20x less CO2e than contemporary DSAs in a typical on-premise data center.

Motivation & Objective

  • Motivate the need for scalable, flexible ML supercomputing hardware in response to rapidly evolving ML models and workloads.
  • Describe the TPU v4 architecture, including optical circuit switches and the SparseCores embedding accelerator.
  • Quantify performance, power, and energy efficiency improvements over prior TPUs and relevant DSAs.
  • Highlight deployment implications for large language models and data-center energy footprints.

Proposed method

  • Utilize Optical Circuit Switches (OCSes) to dynamically reconfigure interconnect topology for scale, availability, utilization, modularity, deployment, security, power, and performance.
  • Integrate SparseCores, dataflow processors optimized for embedding-heavy models, achieving 5x-7x acceleration while using ~5% of die area and power.
  • Deploy TPU v4 as a 4x larger 4096-chip supercomputer, enabling up to ~10x faster overall performance compared to TPU v3.
  • Provide comparative performance and efficiency metrics against Graphcore IPU Bow and Nvidia A100 for similar system sizes.
  • Evaluate energy and CO2e implications in Google Cloud warehouse-scale deployments versus typical on-premise data centers.

Experimental results

Research questions

  • RQ1How does optical reconfigurability via OCSes impact interconnect performance, utilization, and reliability for ML workloads?
  • RQ2What is the effectiveness of SparseCores in accelerating embedding-centric models, and what is the resulting area and power footprint?
  • RQ3What are the performance, power, and CO2e benefits of TPU v4 relative to TPU v3, Graphcore IPU Bow, and Nvidia A100 in large-scale deployments?
  • RQ4How does TPU v4 influence deployment considerations for large language models and warehouse-scale data centers?

Key findings

  • TPU v4 with OCSes achieves dynamic interconnect topology choices (e.g., twisted 3D torus) to improve scale and utilization.
  • SparseCores deliver 5x-7x speedups for embedding-heavy models using ~5% of die area and power.
  • TPU v4 is 2.1x faster than TPU v3 and improves performance/Watt by 2.7x.
  • The 4096-chip TPU v4 is ~10x faster overall than TPU v3 and is ~4.3x-4.5x faster than Graphcore IPU Bow for similar sizes.
  • TPU v4 consumes less energy and emits less CO2 in Google Cloud warehouse-scale deployments compared with typical on-premise DSAs (roughly 3x less energy and ~20x less CO2e).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.