A systolic array is a regular grid of simple processing elements that each perform a multiply-accumulate operation and pass operands directly to their neighbors in lockstep, so data flows through the chip like blood pumped by a heart. In AI hardware, it is the core structure of many matrix multiply units, most famously in Google’s Tensor Processing Unit, because neural network workloads are dominated by dense matrix multiplication.
The design was described by H. T. Kung and Charles Leiserson in the late 1970s. Its key insight is that each value fetched from memory is reused many times as it travels across the array, which cuts memory traffic and energy per operation far below what a general-purpose processor needs for the same arithmetic.
How data moves through a systolic array
Each processing element (PE) holds a small register, a multiplier and an adder. On every clock cycle it receives inputs from its upstream neighbors, computes a multiply-accumulate (MAC), and forwards values downstream. There is no shared bus and no global memory access inside the array, only short local wires between adjacent cells.
For a matrix product C = A × B, rows of A enter from the left edge and columns of B enter from the top, each skewed by one cycle per row or column so that matching operands meet at the right PE at the right time. After a fill latency proportional to the array size, every PE performs useful work on every cycle until the data drains out.
Designers choose which operand stays fixed inside each PE. This choice, called the dataflow, determines what is reused and what moves, as the following table shows.
| Dataflow | What stays in each PE | What moves | Typical strength |
|---|---|---|---|
| Weight stationary | One weight value | Activations and partial sums | High weight reuse for inference |
| Output stationary | One partial sum | Weights and activations | Fewer partial-sum writes |
| Input stationary | One activation value | Weights and partial sums | Reuse of input features |
| Row stationary | A row of a convolution | Mixed | Balanced energy for convolutions |
Why systolic arrays suit neural network workloads
Fully connected layers, convolutions expressed as matrix products and the attention and feed-forward blocks of transformers all reduce to large general matrix multiplications. These operations have high arithmetic intensity, meaning many operations per byte loaded, which is exactly the regime where a systolic array outperforms designs limited by the memory wall.
An N × N array performs N² multiply-accumulates per cycle while only N new values enter on each edge. A 128 × 128 array therefore executes 16,384 MACs per cycle from roughly 256 incoming operands, a reuse ratio that general-purpose cores cannot match with caches alone. Short wires also let the array run at high clock rates with low energy per operation.
| Array size | MACs per cycle | Fill latency | Best fit |
|---|---|---|---|
| 32 × 32 | 1,024 | About 64 cycles | Edge NPUs, small models |
| 128 × 128 | 16,384 | About 256 cycles | Data-center inference and training |
| 256 × 256 | 65,536 | About 512 cycles | Very large batched matrices |
Systolic arrays compared with other accelerator designs
A systolic array is one of several ways to organize parallel arithmetic in a domain-specific accelerator. Data-center GPUs use many programmable cores with embedded tensor cores, while dataflow architectures and wafer-scale designs distribute computation differently. The table contrasts the main approaches.
| Design | Control model | Flexibility | Efficiency on dense matrices |
|---|---|---|---|
| Systolic array | Fixed, rhythmic dataflow | Low | Very high |
| GPU with tensor cores | Many threads, small matrix tiles | High | High |
| Spatial dataflow chip | Compiler-mapped graph | Medium | High |
| CPU vector units | Instruction stream | Very high | Moderate |
| In-memory computing | Analog or digital in memory cells | Low | Potentially very high |
Modern GPU tensor cores use small systolic-like structures internally, so the boundary is not strict. The distinction lies mainly in scale: a TPU-style chip dedicates a large monolithic array to matrix math, while a GPU spreads many small matrix engines across programmable streaming multiprocessors.
Design choices in practical accelerators
Engineers tune several parameters when building a systolic accelerator. Numeric format is central: arrays commonly operate on bfloat16, FP8 or INT8 inputs and accumulate in a wider format such as FP32 to limit rounding error. Lower precision shrinks each PE, so more PEs fit in the same silicon area and power budget.
- On-chip buffers must feed the array fast enough; undersized buffers leave PEs idle.
- High-bandwidth memory supplies weights and activations for large models.
- Compiler tiling splits big matrices into array-sized blocks and schedules them.
- Vector units beside the array handle activations, normalization and softmax.
Limitations and common pitfalls
The rigid structure that makes a systolic array efficient also limits it. Utilization drops sharply when a matrix dimension does not match the array size, because unused rows or columns still consume cycles. Small batches during inference, irregular sparsity and depthwise convolutions often achieve only a fraction of peak throughput.
| Symptom | Likely cause | Mitigation |
|---|---|---|
| Low utilization at batch size 1 | Matrix too narrow for the array | Batch requests or use smaller arrays |
| Idle cycles between tiles | Fill and drain latency | Overlap consecutive tiles |
| Stalls despite high peak TOPS | Memory bandwidth shortfall | Larger buffers, better data reuse |
| Poor gains from sparsity | Dense lockstep dataflow | Structured sparsity support |
A frequent mistake is to compare accelerators only by peak TOPS. Real performance depends on how well a workload maps onto the array, which is why benchmarks such as MLPerf and analysis with the roofline model are more informative than headline numbers.
Explained without jargon
Picture a large kitchen where cooks stand in a grid. Each cook does one small task and hands the dish to the next cook. Nobody walks to the pantry. Ingredients enter at the edges and move along the rows. Every cook stays busy at the same pace.
A systolic array works the same way inside a chip. Numbers flow from cell to cell, and each cell does a tiny calculation. Because data is reused as it travels, the chip spends little time and energy fetching it. That makes AI math fast and efficient.
A typical use case
A cloud provider serves a language model for customer support chat on accelerators built around 128 × 128 systolic arrays working in bfloat16. At first, each request is processed alone, and monitoring shows the arrays running at only about 15 percent utilization, because a single token produces a matrix far narrower than the array.
The engineering team enables dynamic batching, grouping up to 64 concurrent requests so that each matrix multiplication fills more rows of the array. Utilization rises above 60 percent, and the same hardware handles roughly three times more requests per second with only a small increase in latency. The team keeps the batching window short to protect response time for users.