AI Chips and Advanced Computing
0%
What makes an AI chip different
Why neural networks favour chips with thousands of simple multiply-accumulate units, low-precision arithmetic and huge memory bandwidth.
Before this: How a processor runs an instruction
Explanation
Beginner
Most of the work in a neural network is the same simple operation repeated billions of times: multiply two numbers and add the result to a running total.
AI chips put thousands of small multiply-and-add units side by side so they can all work at the same time.
They also need to feed those units with data very quickly, so memory close to the chip matters as much as the arithmetic.
Intermediate
Neural-network layers boil down to matrix multiplications and convolutions, which are dominated by multiply-accumulate (MAC) operations and are highly parallel.
Graphics processors (GPUs) run these on thousands of parallel cores with specialised matrix units; dedicated accelerators such as Google's TPU use large arrays of MAC units arranged as a systolic array, where data flows between neighbouring units (Jouppi et al., 2017).
Inference often uses lower precision (8-bit integers or 16-bit and 8-bit floating point) because the networks tolerate it; smaller numbers need less silicon area, energy and memory bandwidth per operation.
Training and serving large models need very high memory bandwidth, which is why many accelerators sit next to stacks of high-bandwidth memory (HBM) on a silicon interposer.
Advanced
The roofline model relates attainable performance to arithmetic intensity (operations per byte moved): low-intensity layers are limited by memory bandwidth, high-intensity ones by compute (Hennessy and Patterson).
Data movement usually costs much more energy than arithmetic: fetching an operand from off-chip DRAM costs orders of magnitude more than a MAC (Sze et al., 2017). Dataflow choices (weight-stationary, output-stationary and so on) aim to maximise on-chip reuse.
Large accelerators are now reticle-limited or built from several chiplets, and depend on advanced packaging (2.5D interposers, HBM) and high-speed chip-to-chip links. Specific product specifications change rapidly; check vendors' current documentation.
Find the HBM stacks next to the processor
High-bandwidth memory placed beside the compute die on an interposer.
Try this: Find the HBM stacks and the interposer they sit on. Why are they placed so close to the compute die?
Open the Inside a Chip →Check your understanding
A quick self-check. Nothing is recorded.
Key terms
Key takeaways
- Neural networks are mostly multiply-accumulate operations, which parallelise very well.
- AI chips use many simple MAC units, lower precision and lots of on-chip memory.
- Memory bandwidth and advanced packaging are as important as raw compute.
Quiz · 4 questions
AI chips check →
Compute, memory and packaging for AI.
References
- N. P. Jouppi et al., In-datacenter performance analysis of a tensor processing unit (Proceedings of the 44th International Symposium on Computer Architecture (ISCA), 2017)
- V. Sze, Y.-H. Chen, T.-J. Yang and J. S. Emer, Efficient processing of deep neural networks: a tutorial and survey (Proceedings of the IEEE, vol. 105, no. 12, 2017)
- J. L. Hennessy and D. A. Patterson, Computer Architecture: A Quantitative Approach, 6th ed. (Morgan Kaufmann, 2017)
The 3D models and simulations are simplified teaching aids. Proportions, colours and some thicknesses are not to scale; each lab says what it simplifies.
My notes
Private to you. They also appear on your dashboard.
Continue learning
What makes an AI chip different
Up next
The memory wall and high-bandwidth memory
AI Chips and Advanced Computing
Why processors wait for memory, and how stacking DRAM next to the processor (HBM) widens the path.
Continue learning →
Start of this learning path
Next topic →
The memory wall and high-bandwidth memory
AI Chips and Advanced Computing