Into AI

Into AI

Arithmetic Intensity, Simply Explained

A no-jargon breakdown of Arithmetic Intensity and the Roofline model, and how they are used to optimize LLM inference.

Dr. Ashish Bamania's avatar
Dr. Ashish Bamania
Jul 06, 2026
∙ Paid

Arithmetic Intensity is a concept that will instantly help you understand what the performance bottlenecks in LLM training and serving are. Unfortunately, it is not discussed as much as it should be. So here is a no-jargon lesson to fix that.


What is Arithmetic Intensity?

Arithmetic Intensity (AI) is the ratio of arithmetic operations/computations performed to the data moved to and from memory.

\(\text{Arithmetic Intensity} = \frac{\text{Arithmetic operations / FLOPS}}{\text{Bytes of data moved to and from memory}}\)


It indicates how much computation is performed per unit of data transferred from memory. If a workload/kernel performs very few arithmetic operations but requires massive data reading and writing from memory, it has low arithmetic intensity, and vice versa.

Note that:

  • FLOP is a floating-point operation (a single arithmetic operation on floating-point numbers).

  • FLOPs is the plural form of FLOP or the total number of floating-point operations.

  • FLOPS is floating-point operations per second.


How is it used in the Roofline model?

In a GPU, HBM is the slowest but the largest, while registers are extremely fast but the smallest units of memory.

User's avatar

Continue reading this post for free, courtesy of Dr. Ashish Bamania.

Or purchase a paid subscription.
© 2026 Dr. Ashish Bamania · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture