Top 3 Obstacles Hindering Real Speedup from FLOPs Reduction
LLM inference is often memory-bound, especially during the decode phase, meaning GPUs spend more time moving data (weights, KV-cache) than computing, limiting actual speedup from FLOPs reduction. Irregular sparsity from unstructured pruning typically fails to yield speedup on standard GPUs due to inefficient hardware support for scattered zeros. Furthermore, fixed overheads like CPU preprocessing, tokenization, and communication in distributed systems can dominate execution time, making FLOPs savings less impactful.
The top 3
- Memory Wall: Data Movement Dominates: LLM inference, particularly the token-by-token decode phase, is often memory-bandwidth bound, with GPUs spending over 90% of time waiting for model weights and KV-cache data from slower DRAM rather than executing FLOPs.
- Unstructured Sparsity's Hardware Mismatch: Modern GPUs are optimized for dense computations, making it challenging to efficiently exploit fine-grained or unstructured sparsity from pruning; theoretical FLOPs savings often don't translate to real speedups because hardware still processes many "zero" operations.
- Compiler & Runtime Overheads Negate Gains: The additional complexity in software for managing sparse data, coupled with compiler and runtime overheads for transformation and scheduling, can consume the theoretical FLOPs reduction, hindering actual inference speedup.
Open the full topic