Skip to content
Semitree

AI Chips and Advanced Computing

0%

J · AI Chips and Advanced ComputingWritten lessonInteractive 3D modelDiagramKnowledge checkQuiz

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

Explain it at
Simple explanations and analogies.

Explanation

Beginner

Think of it like this: A general-purpose processor is like a skilled chef who can cook anything, one dish at a time. An AI accelerator is like a factory line of thousands of workers who can only do one simple step, multiply and add, but all at once.

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.

Interactive 3D modelInside a Chip · 3D

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 →
logic dieHBMsilicon interposersubstrate
A 2.5D package: dies side by side on a silicon interposer.

Check your understanding

A quick self-check. Nothing is recorded.

Question 1

Multiple choice

Which operation dominates the computation in a neural network?

Question 2

True or false

Moving data from off-chip memory usually costs more energy than the arithmetic itself.

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

  1. 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)
  2. 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)
  3. 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 →