Memory Bandwidth: The On-Device LLM Bottleneck

Hardware-aware pruning is crucial for on-device LLMs as memory bandwidth often dictates inference performance, especially during token-by-token generation. Pruning reduces model size, directly decreasing the amount of data transferred from slower main memory (DRAM) to faster processing units, thereby alleviating this primary bottleneck.

The top 3

  1. Top 3 Techniques to Ease LLM Memory Bottlenecks: Quantization (e.g., 4-bit, 8-bit) significantly reduces model memory footprint by 50-87.5% with minimal accuracy impact. KV cache optimizations like PagedAttention (by vLLM) drastically cut memory fragmentation, enabling 2-4x more concurrent requests. Sparse attention selectively fetches cached history, saving attention data transfers without substantial accuracy drops.
  2. Memory Bandwidth Kings: Top 3 Hardware Platforms for On-Device LLMs: AMD's MI300X leads with up to 5.3 TB/s HBM3 bandwidth, followed by NVIDIA's H100 (SXM5 variant) at 3.35 TB/s, and Apple's M-series SoCs offering up to 800 GB/s with unified memory for integrated on-device LLM inference.
  3. LLM Memory Showdown: HBM vs. LPDDR vs. DDR Bandwidth: HBM (e.g., HBM3/3E) offers the highest bandwidth (up to 1.2 TB/s per stack for HBM3E), crucial for large LLMs in data centers, but with higher cost and complexity. LPDDR (e.g., LPDDR5/5X) prioritizes power efficiency for mobile devices (up to 85.6 GB/s for LPDDR5X), making it ideal for on-device AI. DDR (e.g., DDR5) serves as general-purpose system memory, balancing bandwidth (up to 64-70 GB/s per DIMM for DDR5-8800), capacity, and cost.

Sources

Open the full topic