Hardware-Aware Pruning's 3 Key Resource Targets

The core optimization focus of hardware-aware pruning is on specific hardware characteristics: memory bandwidth, computational unit utilization, and the efficiency of data movement and organization.

The top 3

  1. 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.
  2. Computational Efficiency: Beyond Raw FLOPs Reduction: Hardware-aware pruning optimizes computational efficiency by aligning sparsity patterns with specific hardware accelerators, ensuring that FLOPs reduction translates into actual speedups. Traditional FLOPs metrics can misestimate real hardware latency, making it critical to design pruning strategies that leverage underlying hardware primitives and avoid inefficient irregular sparsity.
  3. 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.

Sources

Open the full topic