Abstract
Large Language Models (LLMs) face significant deployment challenges due to their immense size. While structured pruning offers hardware-friendly acceleration, it often suffers from substantial accuracy loss due to rigid importance metrics. This paper introduces HyWIA (Hybrid-grained Weight Importance Assessment), a novel framework that adaptively fuses fine-grained and coarse-grained importance scores using a training-free attention mechanism. By dynamically adjusting pruning granularity across layers, HyWIA achieves superior performance, outperforming state-of-the-art methods like LLM-Pruner by 2.82% on LLaMA-7B at a 50% pruning rate.
Introduction
Pruning is essential for deploying massive LLMs on consumer hardware, yet researchers typically face a "granularity dilemma." Fine-grained (unstructured) pruning evaluates individual weights, maintaining high accuracy but creating irregular sparse matrices that are difficult for standard hardware to accelerate. Conversely, coarse-grained (structured) pruning removes entire rows or blocks, offering immediate speedups but often causing a massive drop in model intelligence because it lacks the nuance to identify vital specific weights within a group.
HyWIA addresses this by observing that different parts of an LLM prefer different pruning styles: shallow layers benefit from fine-grained preservation to capture intricate token characteristics, while deep layers, handling abstract semantics, are better suited for coarse-grained assessment. HyWIA adaptively blends these metrics to optimize the pruning process.
Methodology
HyWIA utilizes a three-stage framework designed to maintain architectural validity while maximizing performance recovery.
- Grouping Step: The model's dependency structure is mapped to ensure that pruning a "group" results in a mathematically valid remaining architecture.
- Hybrid-grained Assessment: Instead of selecting a single granularity, HyWIA calculates importance scores for both individual weights (fine) and weight groups (coarse) using Taylor expansion gradients.
- Attention Fusion Model: The core innovation is a training-free attention mechanism. Fine-grained and coarse-grained gradients act as Query, Key, and Value inputs to adaptively calculate a weighting factor ($\alpha$) for every sub-component. This allows the system to decide on-the-fly how much to prioritize holistic versus individual weight importance.
Following the removal of the least important structures, the model undergoes a brief recovery phase using Low-Rank Adaptation (LoRA) to regain lost accuracy.
Experimental Results
The researchers evaluated HyWIA across a diverse suite of models, including LLaMA-V1/V2, Vicuna, Baichuan, and BLOOM. Performance was measured across seven downstream classification tasks (e.g., BoolQ, PIQA, HellaSwag) and language modeling perplexity tests.
Performance Comparison
As shown in the table below, HyWIA consistently outperforms existing structured pruning methods. On LLaMA-7B with a 50% pruning rate, HyWIA achieved an average accuracy of 51.80%, significantly higher than LLM-Pruner (48.98%) and LoRAPrune (49.71%).
Key Insights
- The Granularity Gap: Adaptive fusion is roughly 1.4% better than a fixed 50/50 split, validating the need for layer-specific granularity.
- Training-Free Adaptivity: By using gradients from a few input samples, HyWIA achieves high efficiency without the need for expensive training to learn weighting factors.
- Perplexity Preservation: HyWIA consistently achieved the lowest perplexity (PPL) on WikiText2 at high pruning rates, indicating superior preservation of fundamental language capabilities.
Conclusion
HyWIA successfully bridges the gap between fine-grained accuracy and coarse-grained efficiency. By leveraging a training-free attention mechanism to adaptively fuse importance metrics, it sets a new state-of-the-art for structured LLM pruning. Future work will explore scaling this approach to 70B+ parameter models and investigating its synergy with other compression techniques like quantization.
Summary updated