JA EN
LearnAccelerators
·★ MEMBER·PAPER·8 min read

How AI Accelerators Are Designed — What Actually Separates GPUs, NPUs, and TPUs

GPUs, TPUs, and NPUs are three different answers to one question: how much generality do you trade away for matrix multiplication? A from-scratch tour of systolic arrays, dataflow design, and the co-evolution of hardware and quantization.

ModalitytextTaskhardware

In-Datacenter Performance Analysis of a Tensor Processing Unit

Primary source — what this article is built on

undefined2026-08-13

In-Datacenter Performance Analysis of a Tensor Processing UnitarXiv:1704.04760Paper page·PDF

Why "AI-specific chips" exist at all

A ChatGPT reply and a smartphone unlocking with your face are, under the hood, doing almost the same thing: multiplying large matrices. Neural network inference is layer after layer of "weight matrix times input," and that is where the vast majority of compute time goes.

A CPU is a Swiss Army knife. To handle branch-heavy programs, operating systems, and everything in between, it spends most of its silicon on overhead — instruction decoding, branch prediction, caches. Matrix multiplication is the exact opposite kind of work: the same trivial operation, repeated an absurd number of times. Worse, the arithmetic cost of matrix multiplication grows roughly with the cube of the matrix size. As models grew, the well-organized generalist stopped being worth its price.

FIG 1Drag n and watch the cubic curve take off. Matrix multiplication scales along curves like this, which is why "just run it on a general-purpose CPU" quietly stopped being an option as models grew

Enter the accelerator. The differences between GPU, TPU, and NPU come down to one trade-off: how much generality each design throws away in exchange for matrix-multiply performance.

An analogy: the genius chef, the hundred-cook kitchen, and the conveyor belt

The TPU's style is called a systolic array. "Systolic" refers to the heartbeat — data pulses through the chip one beat at a time, which is exactly where the name comes from.

The core intuition: everything reduces to "multiply, then add"

A single neural network output is computed like this:

yj=iWijxiy_j = \sum_{i} W_{ij}\, x_i
(1)

Read it in words: take each input value xix_i, multiply it by a weight WijW_{ij}, and add everything up to get the output yjy_j. With the symbols dropped entirely, it says that every incoming number casts a vote, the weight decides how loudly that vote counts, and the output is just the tally. This "multiply, then accumulate" pair is called a MAC (Multiply-ACcumulate) operation, and a matrix multiplication is nothing more than an enormous bundle of MACs.

So accelerator design boils down to exactly two questions: (1) how many MAC units do you tile onto the chip, and (2) how do you feed data to them? In modern silicon, question (2) is the real battlefield — because moving data costs far more than computing with it.

FIG 2The dot product — multiply and add — is the atomic operation every AI chip hammers out each cycle. Rotate the vectors and watch how alignment changes the value

How each architecture answers those two questions is precisely what separates the three families. GPUs hide the cost of data movement with sheer parallelism; TPUs eliminate it through wiring; NPUs shrink it to fit a power budget. Three very different philosophies for running the exact same matrix multiply — and once you see them side by side, every spec sheet starts making sense. Let's open each one up in turn.

The GPU's design philosophy is SIMT (Single Instruction, Multiple Threads): one instruction is applied simultaneously by bundles of threads (NVIDIA groups them 32 at a time into "warps"), each working on different data. While one warp waits for memory, the scheduler simply switches to another — latency isn't reduced, i

What's behind this

§

Members-only from here

371 walkthroughs, 26 textbook chapters, 48 student units and 6 close readings — all included for $4.99/mo, with three new explainers every day. Cancel any time; access runs to the end of the period.

Already a member? Sign in to keep reading

References

  1. In-Datacenter Performance Analysis of a Tensor Processing Unit. arXiv:1704.04760Paper page·PDF

This article is written from the source paper above. Where they differ, the original is authoritative.

Comments

Sign in to comment