Arithmetic Intensity
A metric that measures the ratio of computation to memory access, expressed in FLOPs/Byte. It is used to determine whether a computational task is compute-bound or memory-bandwidth-bound, and serves as a core concept in GPU performance analysis.
Timeline (last 90 days)
In actual HPC applications, arithmetic intensity is often far lower than in benchmarks, causing measured energy efficiency to be significantly lower than the rated value.
In the decode stage, only one token is generated at a time, and the attention computation scales linearly with the history length, but each step must read all model weights, so arithmetic intensity is extremely low, making it memory-bound.
Ternary weights improve arithmetic intensity by reducing weight bit width, thereby alleviating the memory bandwidth bottleneck, which is why they attract attention in edge and dedicated accelerator scenarios.
A commonly used metric for measuring the memory wall bottleneck is "arithmetic intensity," i.e., the number of floating-point operations per byte of memory access.
The autoregressive decoding phase of large models has low arithmetic intensity and is a typical memory-bandwidth-bound workload.
Arithmetic intensity refers to the ratio of floating-point operations to the number of memory-access bytes required in a computational task, determining whether a program is compute-bound or bandwidth-bound; above the hardware's turning point (peak compute divided by peak bandwidth) it is compute-bound, and below it is memory-bandwidth-bound.
The arithmetic intensity of the decoding stage in LLM autoregressive generation is extremely low: for a 7B-parameter FP16 model, one forward pass requires loading approximately 14 GB of weights but executes only about 14 GFLOPs of computation, resulting in an arithmetic intensity of approximately 1 FLOP/Byte, making it a bandwidth-bound workload.
All Facts (11)
Arithmetic intensity refers to the number of floating-point operations per byte of memory access, and too low an intensity leads to memory bandwidth bottlenecks.
60%UnverifiedIn actual HPC applications, arithmetic intensity is often far lower than in benchmarks, causing measured energy efficiency to be significantly lower than the rated value.
50%UnverifiedIn the decode stage, only one token is generated at a time, and the attention computation scales linearly with the history length, but each step must read all model weights, so arithmetic intensity is extremely low, making it memory-bound.
50%UnverifiedTernary weights improve arithmetic intensity by reducing weight bit width, thereby alleviating the memory bandwidth bottleneck, which is why they attract attention in edge and dedicated accelerator scenarios.
50%UnverifiedA commonly used metric for measuring the memory wall bottleneck is "arithmetic intensity," i.e., the number of floating-point operations per byte of memory access.
50%UnverifiedThe autoregressive decoding phase of large models has low arithmetic intensity and is a typical memory-bandwidth-bound workload.
50%UnverifiedArithmetic intensity refers to the ratio of floating-point operations to the number of memory-access bytes required in a computational task, determining whether a program is compute-bound or bandwidth-bound; above the hardware's turning point (peak compute divided by peak bandwidth) it is compute-bound, and below it is memory-bandwidth-bound.
50%UnverifiedThe arithmetic intensity of the decoding stage in LLM autoregressive generation is extremely low: for a 7B-parameter FP16 model, one forward pass requires loading approximately 14 GB of weights but executes only about 14 GFLOPs of computation, resulting in an arithmetic intensity of approximately 1 FLOP/Byte, making it a bandwidth-bound workload.
50%UnverifiedDuring autoregressive inference, the batch size is typically 1, each token generation performs only one matrix-vector multiplication, the arithmetic intensity is extremely low, leading to memory-bound issues, and GPU utilization in single-user scenarios is often below 10%.
50%UnverifiedAutoregressive inference is a memory-bound problem because arithmetic intensity is extremely low when batch size is typically 1, and the GPU spends most of its time waiting for data transfer.
50%Unverified单Token生成的算术强度约为1 FLOP/Byte,导致GPU计算单元利用率不到1%
50%