GPUs' Fixed-Width Design: The Core Bottleneck

Modern GPUs and NPUs employ fixed-width SIMD vector and tensor instruction sets, meaning optimal performance is achieved only when LLM input shapes precisely align, preventing memory fragmentation and maximizing compute unit utilization.

The top 3

  1. GPU's Fixed-Width Origins: Optimized for Uniform Graphics: Early GPUs were architected for highly parallel, uniform operations essential for graphics rendering, such as processing pixels and vertices. This led to a Single Instruction, Multiple Data (SIMD) design with fixed-width execution units, which is highly efficient for predictable, repetitive computational workloads.
  2. Dynamic LLM Inputs: Up to 2x Slower Due to Fixed-Width GPU: When Large Language Models (LLMs) process dynamic input lengths, GPUs' fixed-width design can lead to significant core underutilization and wasted memory bandwidth. Changing input sizes in inference can cause performance degradation, sometimes doubling the inference time, as GPUs struggle with padding tokens or inefficient memory re-allocation.
  3. GPU Evolution: Specialized Cores for AI Workloads: To overcome the limitations of general-purpose fixed-width designs for AI, modern GPUs have evolved to include specialized hardware like NVIDIA's Tensor Cores. These cores are specifically engineered to accelerate matrix multiplications, which are fundamental to deep learning, offering significantly higher throughput for AI tasks compared to traditional execution units.

Sources

Open the full topic