Inferensys

Glossary

Tensor Processing Unit (TPU)

A Tensor Processing Unit (TPU) is an application-specific integrated circuit (ASIC) developed by Google, optimized to accelerate machine learning workloads, particularly those using the TensorFlow framework.
Developer using AI copilot for code completion, IDE visible on laptop screen, casual programming moment at desk.
EDGE AI HARDWARE

What is a Tensor Processing Unit (TPU)?

A specialized hardware accelerator designed by Google for high-performance machine learning workloads.

A Tensor Processing Unit (TPU) is an application-specific integrated circuit (ASIC) developed by Google and optimized to accelerate the matrix multiplication and other tensor operations fundamental to neural network inference and training. Unlike general-purpose CPUs or even GPUs, TPUs are designed from the ground up for the computational patterns of machine learning frameworks like TensorFlow, offering superior performance-per-watt for large-scale, batch-oriented workloads in data centers and, increasingly, for demanding edge computing applications.

Architecturally, TPUs employ a systolic array of thousands of multiply-accumulate (MAC) units to achieve massive parallelism for matrix computations. They are tightly integrated with high-bandwidth memory to minimize data movement bottlenecks. While initially deployed in Google's cloud infrastructure, subsequent generations like the Edge TPU are designed for on-device AI inference, providing a dedicated, power-efficient accelerator for computer vision and natural language processing models directly on sensors, cameras, and other edge devices within a constrained power envelope.

EDGE AI HARDWARE

Key Architectural Features of a TPU

The Tensor Processing Unit's (TPU) performance advantage stems from its specialized architecture, which is fundamentally different from general-purpose CPUs and even graphics-oriented GPUs. These features are designed to maximize throughput and efficiency for the dense linear algebra at the heart of neural network inference and training.

01

Systolic Array

The systolic array is the TPU's computational heart. It's a two-dimensional grid of Multiply-Accumulate (MAC) units connected in a pipelined, data-flow fashion. Unlike a GPU's many independent cores, data pulses through this fixed grid, with each cell performing a partial calculation and passing results to its neighbors. This design minimizes memory accesses by reusing data across the array, making it exceptionally efficient for the large matrix multiplications (matmuls) that dominate neural network workloads. The TPU v2/v3 uses a 128x128 systolic array for floating-point operations.

02

High-Bandwidth Memory (HBM)

TPUs integrate High-Bandwidth Memory (HBM) stacks directly on the same package as the processor die using 2.5D packaging. This provides a massive, dedicated memory channel with bandwidth far exceeding traditional GDDR memory used on GPUs. For example, TPU v4 offers over 1.2 TB/s of memory bandwidth. This is critical because neural networks are memory-bound; the ability to rapidly stream weights and activations from HBM into the systolic array is essential to keep the compute units saturated and avoid bottlenecks.

03

Unified Buffer (Activation Storage)

The Unified Buffer (UB) is a large, software-managed on-chip SRAM memory (e.g., 32 MiB in TPU v2/v3) that holds intermediate activations (the outputs of neural network layers). This acts as a staging area between the HBM and the systolic array. By caching activations on-chip, the TPU drastically reduces power-hungry trips to off-chip HBM. The compiler orchestrates data movement between HBM, the UB, and the systolic array, a key part of the model compiler optimization for TPUs.

04

Matrix Multiply Unit (MXU) & Vector Processing Unit (VPU)

The TPU core is partitioned into two main functional units that operate in parallel:

  • Matrix Multiply Unit (MXU): This is the physical implementation of the systolic array, dedicated to dense matrix/tensor operations.
  • Vector Processing Unit (VPU): Handles all other non-matrix operations, including activations (ReLU, sigmoid), normalization, pooling, and embedding lookups. This separation of concerns allows the MXU to remain focused on its primary task while the VPU handles element-wise and other functions, improving overall utilization and efficiency.
05

CISC-Style Instructions & VLIW

The TPU uses a Complex Instruction Set Computer (CISC) philosophy with Very Long Instruction Word (VLIW) encoding. A single TPU instruction, such as a matrix multiplication, can initiate a massive operation that runs for thousands of cycles on the systolic array. The VLIW format allows a single instruction word to contain multiple operations for the MXU, VPU, and memory units to execute in parallel. This reduces instruction fetch/decode overhead and aligns with the long-running, predictable nature of neural network computation graphs.

06

Chip-to-Chip Interconnect (ICI)

For scaling beyond a single chip, TPUs feature a dedicated, high-speed Chip-to-Chip Interconnect (ICI). This forms a high-bandwidth, low-lathy 2D toroidal mesh network that directly connects multiple TPU cores. This allows models to be partitioned across many chips (model parallelism) or for large batches of data to be processed in parallel (data parallelism) with efficient gradient synchronization. The ICI is fundamental to building TPU pods, which are supercomputer-scale clusters of thousands of interconnected TPUs for training massive models.

EDGE AI HARDWARE

How a Tensor Processing Unit Works

A Tensor Processing Unit (TPU) is an application-specific integrated circuit (ASIC) developed by Google, optimized to accelerate machine learning workloads, particularly those using the TensorFlow framework.

A Tensor Processing Unit (TPU) is a specialized hardware accelerator designed by Google to execute the massive matrix multiplication operations at the heart of neural network inference and training. Unlike a general-purpose central processing unit (CPU) or a flexible graphics processing unit (GPU), a TPU is an application-specific integrated circuit (ASIC) with a systolic array architecture. This design physically wires thousands of multiply-accumulate (MAC) units together to stream data through the computation, minimizing data movement and maximizing throughput for tensor operations.

The TPU's efficiency stems from its co-design with the TensorFlow software stack and its focus on lower-precision arithmetic, like 8-bit integers (INT8) or brain floating-point (bfloat16). A host CPU sends instructions to the TPU, which loads weights from its high-bandwidth memory (HBM) into the matrix multiply unit. Input data flows through the systolic array, and results are passed to the activation function and normalization units. This domain-specific architecture delivers superior performance per watt for large-scale AI workloads, making it a cornerstone of cloud and edge artificial intelligence infrastructure.

EDGE AI HARDWARE ACCELERATORS

TPU vs. GPU vs. NPU: A Comparison

A technical comparison of three primary hardware accelerators for artificial intelligence workloads, focusing on their architectural origins, optimization targets, and suitability for edge deployment.

Feature / MetricTensor Processing Unit (TPU)Graphics Processing Unit (GPU)Neural Processing Unit (NPU)

Primary Architectural Origin

Application-Specific Integrated Circuit (ASIC) for TensorFlow

Massively Parallel Processor for Graphics Rendering

Application-Specific Integrated Circuit (ASIC) for Neural Networks

Core Computational Unit

Systolic Array for Matrix Multiplication

Streaming Multiprocessors (SMs) with CUDA Cores / Tensor Cores

Highly Parallel Array of Multiply-Accumulate (MAC) Units

Optimization Target

High-Throughput, Low-Precision (bfloat16, int8) Inference & Training

High-Precision (FP32, FP64) General-Purpose Parallel Compute

Extreme Power Efficiency for Fixed-Point (int8, int4) Inference

Typical Deployment Context

Google Cloud, Large-Scale Data Centers

Data Centers (Training/Inference), Workstations, High-End Edge

Mobile SoCs, Embedded Systems, Ultra-Low-Power Edge Devices

Programmability / Flexibility

Low (Fixed, TensorFlow/XLA-centric pipeline)

High (CUDA, OpenCL, extensive general-purpose libraries)

Low to Medium (Vendor-specific compilers, model-level APIs)

Memory Architecture

High-Bandwidth Memory (HBM) on-package

GDDR6/HBM with large, dedicated VRAM

Shared System Memory (LPDDR) or small, dedicated SRAM

Power Efficiency (Performance per Watt)

Very High for target workloads

Moderate to High (varies with workload precision)

Extremely High for quantized inference

Latency Profile

Optimized for Batch Processing (higher latency, high throughput)

Low Latency (with optimizations), excels at parallel tasks

Ultra-Low Latency for single-sample inference

Primary Use Case in Edge AI

Edge Server / Data Center Gateway Inference

High-Performance Edge Box / Autonomous Vehicle

Smartphone, IoT Sensor, Always-On Wearable

Thermal Design Power (TDP) Range

75W (Cloud), ~10-30W (Edge TPU)

150W - 700W (Data Center), 30W - 150W (Edge)

< 5W (Integrated), 5W - 30W (Discrete Edge)

Model Framework Support

TensorFlow (Native), Others via ONNX/Converters

Universal (PyTorch, TensorFlow, JAX, etc.)

Vendor-Specific (TFLite, ONNX via proprietary compilers)

Compilation Requirement

Mandatory (XLA compilation to TPU instructions)

Optional (Kernels compiled Just-In-Time or AOT)

Mandatory (Model must be compiled for target NPU ISA)

Industry Example(s)

Google Cloud TPU, Coral Edge TPU

NVIDIA A100 / H100, NVIDIA Jetson, AMD Instinct

Apple Neural Engine, Qualcomm Hexagon, Intel NPU (Meteor Lake)

GOOGLE'S AI ACCELERATOR EVOLUTION

TPU Generations and Primary Use Cases

Google's Tensor Processing Unit (TPU) has evolved through distinct generations, each optimized for specific phases of the machine learning lifecycle and deployment environments, from cloud-scale training to on-device inference.

01

TPU v1 & v2: Cloud Training Pioneers

The first two TPU generations established Google's cloud AI infrastructure. The TPU v1 (2016) was designed solely for inference, accelerating services like Google Search and Street View. The TPU v2 (2017) introduced the ability for training, featuring a modular pod architecture where thousands of chips could be interconnected for massive-scale model training.

  • Key Innovation: High-bandwidth 2D toroidal mesh network for fast chip-to-chip communication.
  • Primary Use: Training large-scale models (e.g., early BERT, Transformer variants) within Google's data centers.
  • Precision: Mixed-precision computation (bfloat16) for efficient training.
02

TPU v3 & v4: Scale and Liquid Cooling

These generations pushed the limits of dense, scalable AI compute. The TPU v3 (2018) doubled the memory and compute of v2. The TPU v4 (2021) represented a major leap, becoming Google's workhorse for training its largest models, including PaLM and Gemini.

  • Key Innovation: TPU v4 introduced optical circuit switching for dynamic, reconfigurable pod connections and employed liquid cooling to manage the intense thermal load of dense 4096-chip pods.
  • Primary Use: Training state-of-the-art large language models (LLMs) and multimodal foundation models.
  • Performance: A TPU v4 pod delivers over 1 exaflop of peak performance in bfloat16.
> 1 Exaflop
Peak Performance (v4 Pod)
90%
Lower CO2e vs Typical Infrastructure
03

Edge TPU: On-Device Inference

The Edge TPU is a separate lineage of application-specific integrated circuits (ASICs) designed for executing trained models at the network edge. It is a small, low-power coprocessor optimized for TensorFlow Lite models.

  • Key Innovation: Extreme power efficiency for always-on AI in constrained environments.
  • Primary Use: High-speed, low-latency inference on IoT devices, cameras, and embedded systems. Common tasks include object detection, anomaly detection, and keyword spotting.
  • Deployment: Often integrated into System-on-Chip (SoC) designs or available as a discrete USB or PCIe accelerator.
04

TPU v5e: Cost-Efficient Cloud Inference & Training

Announced in 2023, TPU v5e is optimized for cost-effective large-scale inference and efficient mid-range training. It balances high performance with lower cost per accelerator, making powerful AI more accessible.

  • Key Innovation: Architectural refinements for better performance-per-dollar across inference and training workloads.
  • Primary Use: Serving and fine-tuning large models for production applications, and training medium-sized models. It is the backbone of Google Cloud's AI-optimized infrastructure.
  • Scalability: Supports smaller, more flexible pod slices than v4, allowing customers to right-size their clusters.
05

TPU v5p: Peak Training Performance

The TPU v5p, announced in late 2023, is Google's most powerful TPU for cutting-edge model training. It focuses on maximizing raw performance and scalability for the largest AI research and development workloads.

  • Key Innovation: Significant improvements in inter-chip interconnect bandwidth (up to 4800 GB/s per chip) and HBM memory bandwidth compared to v4.
  • Primary Use: Training the next generation of frontier multimodal and reasoning models where time-to-train is critical.
  • Comparison: Roughly 2x faster for LLM training compared to TPU v4.
459 TFLOPS
BF16 Performance per Chip
4800 GB/s
Interchip Interconnect Bandwidth
06

Axion: The Arm-Based CPU for AI Infrastructure

While not a TPU, Google Axion is a critical related processor. It is a custom-designed Arm-based central processing unit (CPU) optimized to run the general compute workloads of AI data centers, including the supporting services for TPU pods.

  • Key Innovation: Delivers up to 50% better performance and 60% better energy-efficiency than comparable x86-based instances for scale-out workloads.
  • Primary Use: Running the web servers, databases, logging, and analytics services that surround and support TPU-based AI training and inference clusters. It represents Google's full-stack vertical integration for AI infrastructure.
TENSOR PROCESSING UNIT (TPU)

Frequently Asked Questions

A Tensor Processing Unit (TPU) is a specialized hardware accelerator designed by Google to execute machine learning workloads with extreme efficiency. These FAQs address its architecture, use cases, and how it compares to other processors for edge AI deployment.

A Tensor Processing Unit (TPU) is an application-specific integrated circuit (ASIC) developed by Google, optimized to accelerate machine learning workloads, particularly those using the TensorFlow framework. It works by implementing a systolic array architecture—a grid of Multiply-Accumulate (MAC) units connected in a mesh—that is exceptionally efficient at performing the massive matrix multiplications that form the core of neural network inference and training. Data flows through this array in a rhythmic, pipelined fashion, minimizing data movement and maximizing computational throughput. Unlike a general-purpose Central Processing Unit (CPU) or even a Graphics Processing Unit (GPU), the TPU's architecture is hardwired for tensor operations, offering superior performance-per-watt for its target workloads, a critical metric for edge AI deployments where power and thermal budgets are constrained.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.