Why Memory Bandwidth Dominates LLM Inference Latency

For on-device LLM inference, particularly during autoregressive token generation, performance is often limited by the speed at which model weights and Key-Value (KV) cache data can be transferred from slower main memory (like DRAM or HBM) to faster on-chip compute units, a phenomenon known as the "memory wall."

The top 3

  1. LLM Inference: Memory Bandwidth Outpaces Compute as Latency Bottleneck: During the autoregressive decode phase of LLM inference, GPUs often spend more time fetching model weights and Key-Value (KV) cache data from memory than on actual computations, making memory bandwidth the primary latency bottleneck.
  2. Top 3 Memory-Intensive Operations in LLM Inference: The most memory-intensive operations during LLM inference are consistently identified as loading large model weights, accessing the Key-Value (KV) cache for self-attention, and performing embedding lookups.
  3. HBM vs. GDDR: Memory Tech for LLM Latency Reduction: High Bandwidth Memory (HBM), exemplified by HBM3, delivers significantly higher memory bandwidth (e.g., up to 5.3 TB/s on AMD MI300X GPUs) compared to GDDR, making it a critical technology for mitigating memory bottlenecks and reducing LLM inference latency on modern accelerators.

Sources

Open the full topic