AI accelerator

An AI accelerator is a processor or circuit built to speed up the arithmetic of machine learning, chiefly very large matrix multiplications, far more efficiently than a general-purpose CPU.

Training or running a neural network comes down mostly to multiplying large grids of numbers together, billions of times over. A CPU is built to run any program, with a few powerful cores and a lot of circuitry for handling branches and decisions. An AI accelerator gives up that flexibility. It packs in large numbers of simple arithmetic units that work in parallel, uses lower-precision number formats such as 8-bit integers or 16-bit floating point, and keeps fast memory close by. The Center for Security and Emerging Technology lists those same features, plus programming tools written for the hardware, as what separates AI chips from CPUs.

Google's Tensor Processing Unit is the textbook case. Google's 2017 paper on its first TPU, in its data centres since 2015, described a matrix unit of 65,536 8-bit multiply-accumulate circuits with a peak of 92 trillion operations per second. On Google's own workloads it was on average 15 to 30 times faster than the GPUs and CPUs of the day, and 30 to 80 times better in operations per watt. Google's current documentation describes the TPU's matrix unit as a 128 by 128 systolic array, a grid in which numbers flow from one multiplier to the next without returning to memory at each step.

The term covers hardware of very different sizes. Data centre accelerators include Nvidia and AMD GPUs with dedicated matrix units, Google's TPUs, and Amazon's Trainium and Inferentia chips. At the other end, the neural processing units inside phone and laptop chips from Apple, Qualcomm, Intel and others are accelerators too, built to run small models on little power.

Accelerators are usually compared in TOPS, trillions of operations per second, often counted in 8-bit integer arithmetic. Peak figures assume every unit is busy all the time with the lowest supported precision, which real workloads rarely manage. Google's own TPU paper noted low utilisation on some applications, and its documentation warns that programs dominated by operations other than matrix maths will not keep the matrix unit busy.

The payoff is large. CSET's 2020 report found AI chips tens or even thousands of times faster and more efficient than CPUs for training and inference, and calculated that a 1,000-fold efficiency gain equals about 26 years of Moore's law improvement in CPUs. That is why AI spending flows to accelerator makers, and why software that makes an accelerator easy to program matters as much as the silicon.

Common questions

Is a GPU an AI accelerator?

Yes, in practice. GPUs were designed for graphics, but their many parallel cores suit neural network maths, and modern data centre GPUs from Nvidia and AMD add dedicated units for low-precision matrix multiplication. They are the most widely used AI accelerators for training, alongside purpose-built chips such as Google's TPU.

Is an NPU an AI accelerator?

Yes. A neural processing unit is the name usually given to a small, power-efficient AI accelerator built into a phone, laptop or other device chip. It runs features such as image processing and on-device assistants without using the main CPU or GPU, but it is far less powerful than a data centre accelerator.

What does TOPS mean?

TOPS stands for trillions of operations per second, usually counted using 8-bit integer arithmetic. It is a peak figure that assumes the chip is fully busy, so it says little about how fast a particular model will actually run. Comparisons are only fair when the number format and workload are the same.

Why not just use CPUs for AI?

CPUs can run AI models, and small ones run acceptably. For large models they are far slower and use much more energy per calculation, because they spend circuitry on flexibility that matrix maths does not need. CSET found AI chips tens to thousands of times more efficient than CPUs for training and inference.

Finding more

Search for "AI accelerator architecture", "systolic array", "TPU paper" or "MLPerf results" to compare designs. Trust peer-reviewed papers, chipmakers' technical documentation and independent benchmark results such as MLPerf over launch-day marketing, which tends to quote peak figures at the lowest precision. Policy research groups such as CSET explain the economics in plain language.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.