WIDE is a framework designed to improve the efficiency of Large Language Models (LLMs) by enabling token-level dynamic width pruning. While traditional pruning methods remove entire layers or submodules permanently, WIDE allows models to dynamically select specific attention-head groups and FFN-channel groups for each individual token during inference. This approach aims to provide finer-grained computation allocation, allowing models to maintain higher quality while reducing computational costs.
Fine-Grained Dynamic Pruning
Existing dynamic pruning methods often operate at a coarse level, deciding whether to execute or skip entire layers. WIDE moves beyond this by introducing a bottleneck router that makes decisions at the neuron-block level. Each token independently selects which attention heads and FFN channels to activate. This is achieved through a two-stage training pipeline: first, a router-only calibration phase optimizes the routing components while keeping base model parameters frozen; second, an optional LoRA recovery phase is used to restore model performance.
Pruning-Kernel Co-Design
To ensure that fine-grained pruning translates into actual speedups, the authors introduce a pruning-kernel co-design framework. A common challenge with dynamic sparsity is that irregular execution patterns can lead to overheads from gather-scatter operations and device-to-host synchronization. WIDE addresses this by using a mask-reordering process that packs active tokens into structured layouts. This allows the system to skip inactive computation at three levels:
CTA-level: Hardware-agnostic skipping of fully inactive blocks.
Load-level: Skipping inactive memory-loading packets.
MMA-level: Skipping inactive tensor-core computation fragments.
Performance Results
The researchers evaluated WIDE using Llama 3.1-8B and Llama 3.2-3B models. At 50% sparsity, the framework achieved a 55.1% performance boost compared to state-of-the-art dynamic depth pruning in calibration-only settings. In terms of end-to-end inference, WIDE demonstrated speedups of 1.68x for prefill and 1.55x for decoding. The authors report that the kernel-level design provides up to 1.98x speedup for prefill and 4.95x for decoding compared to baseline operations.
Considerations for Implementation
The effectiveness of WIDE relies on the balance between pruning flexibility and kernel efficiency, which is controlled by the group size (G). Smaller group sizes offer more flexibility for pruning but may reduce the potential for hardware acceleration, while larger group sizes align better with GPU tiling strategies. The framework is designed to be compatible with existing optimizations like Grouped-Query Attention (GQA), ensuring that the dynamic pruning process does not conflict with standard inference optimizations.
Comments (0)
to join the discussion
No comments yet
Be the first to share your thoughts!