On-Chip Memory & Cache Utilization for Low Latency

By reducing model size, hardware-aware pruning enables more of an LLM to fit into faster on-chip memory (SRAM/cache), drastically cutting latency. This improves cache hit rates and minimizes reliance on slower off-chip memory transfers, which is critical for achieving low-latency inference on resource-constrained edge devices.

The top 3

  1. Top 3 KV Cache Optimization Techniques for LLMs: Quantization (e.g., INT8/INT4) reduces KV cache memory footprint by 2-4x, significantly increasing concurrent sessions. PagedAttention optimizes memory by allocating attention tensors in non-contiguous blocks, improving GPU utilization and reducing fragmentation. Prefix and semantic caching reuse pre-computed attention states for repeated or similar prompts, dramatically cutting latency and cost by achieving high cache hit rates up to 87%.
  2. LLM Inference: The Memory-Bound Bottleneck: Unlike training, LLM inference is predominantly memory-bound, not compute-bound. Each token generation requires reading billions of model parameters from slower DRAM to fast on-chip memory, creating a "memory wall" where the GPU spends more time waiting for data than performing calculations. This bottleneck is especially critical during the decode phase of autoregressive generation.
  3. LLM Inference: The Memory-Bound Bottleneck Explained: LLM inference, particularly the decode phase, is predominantly memory-bandwidth bound rather than compute-bound. This occurs because single-token generation involves frequent memory accesses to model weights and KV data, leading to processors waiting for data rather than performing calculations due to low arithmetic intensity.

Sources

Open the full topic