CFSP: An Efficient Structured Pruning Framework for LLMs with Coarse-to-Fine Activation Information

Yuxin Wang, Minghua Ma, Zekun Wang, Jingchang Chen, Liping Shan, Qing Yang, Dongliang Xu, Ming Liu, Bing Qin

Abstract

The colossal parameters and computational overhead of Large Language Models (LLMs) challenge their real-world applications. Network pruning, which targets unstructured or structured sparsity by removing redundant parameters, has recently been explored for LLM acceleration. Existing LLM pruning works focus on unstructured pruning, which typically requires special hardware support for a practical speed-up. In contrast, structured pruning can reduce latency on general devices. However, it remains a challenge to perform structured pruning efficiently and maintain performance, especially at high sparsity ratios. To this end, we introduce an efficient structured pruning framework named CFSP, which leverages both Coarse (interblock) and Fine-grained (intrablock) activation information as an importance criterion to guide pruning. The pruning is highly efficient, as it only requires one forward pass to compute feature activations. Specifically, we first allocate the sparsity budget across blocks based on their importance and then retain important weights within each block. In addition, we introduce a recovery fine-tuning strategy that adaptively allocates training overhead based on coarse-grained importance to further improve performance. Experimental results demonstrate that CFSP outperforms existing methods on diverse models across various sparsity budgets.

Introduction

As LLMs scale to hundreds of billions of parameters, their computational and memory costs become prohibitive for real-world deployment. While network pruning is a popular solution, it faces a significant "hardware-software gap." Unstructured pruning, which removes individual weights, can maintain high accuracy but requires specialized hardware or custom kernels to achieve actual speedups. Structured pruning, which removes entire rows or columns, is hardware-friendly but often suffers from high overhead during the search phase or performance collapse at high sparsity levels due to uniform budget allocation across layers.

Figure 5: Analysis of parameter distribution and sensitivity to pruning. The right plot shows that FFN layers are significantly more robust to pruning than Attention layers, justifying the focus on FFN structured pruning.

Empirical analysis reveals that not all components of a Transformer are equally redundant. As shown in Figure 5, Feed-Forward Networks (FFNs) are generally more robust to pruning than Attention mechanisms, maintaining lower perplexity (PPL) at higher sparsity ratios. CFSP leverages these insights to provide an efficient, hardware-aligned structured pruning framework.

Methodology: Coarse-to-Fine Structured Pruning

CFSP introduces a two-step approach that relies solely on feature activations from a single forward pass, making it extremely efficient compared to gradient-based methods.

1. Coarse-grained Importance (Inter-block)

Rather than assigning a uniform pruning budget, CFSP measures the functional contribution of each Transformer block. By calculating the angular distance between a block's input and output, the framework identifies "identity-like" blocks that contribute less to the final representation. These redundant blocks are assigned more aggressive pruning budgets, while critical blocks (often at the beginning and end of the model) are preserved.

2. Fine-grained Importance (Intra-block)

Within each block, CFSP targets the intermediate dimensions of the FFNs. It identifies which neurons to remove by analyzing the product of weight magnitudes and activation values. To ensure practical speedups on modern GPUs, CFSP includes a Dimension Adjustment step, rounding remaining dimensions to multiples of 128 to align with GPU Tensor Core requirements.

Figure 3: Overview of the CFSP framework. (a) Illustrates the coarse-to-fine evaluation and pruning process across blocks. (b) Shows the Importance-guided Recovery (IG-LoRA) strategy.

3. Importance-guided Recovery (IG-LoRA)

To recover performance after pruning, CFSP employs a modified Low-Rank Adaptation (LoRA) strategy. Instead of uniform ranks, it adaptively allocates more trainable parameters (higher ranks) to the "important" blocks identified during the coarse-grained evaluation phase. This ensures that training overhead is focused where it is most needed.

Experimental Results

The researchers evaluated CFSP on several prominent LLM families, including LLaMA2, LLaMA3, and Qwen2.5, using a mix of common-sense reasoning and knowledge-intensive benchmarks.

  • Efficiency: The entire pruning process requires only a single forward pass and completes in minutes on a single GPU.
  • Hardware Speedup: At 50% sparsity, CFSP achieves a 1.5x to 1.6x speedup on both CPU and GPU (NVIDIA A800) without specialized kernels.
  • Accuracy: CFSP significantly outperforms baselines at high sparsity. For example, on the MMLU benchmark with LLaMA3-8B at 50% sparsity, CFSP maintained 32.39% accuracy, while competing methods like Wanda-SP and FLAP collapsed to near-chance levels (~25%).

Conclusion

CFSP demonstrates that structured pruning can be both efficient and effective for LLMs by leveraging coarse-to-fine activation information. By moving away from uniform pruning budgets and aligning pruned dimensions with hardware requirements, CFSP bridges the gap between theoretical sparsity and practical deployment. Future work will explore extending this framework to attention head pruning and even more aggressive sparsity levels through integration with quantization.

Summary updated

BibTeX
@inproceedings{wang2025cfsp,
  author = {Yuxin Wang and Minghua Ma and Zekun Wang and Jingchang Chen and Liping Shan and Qing Yang and Dongliang Xu and Ming Liu and Bing Qin},
  title = {{CFSP: An Efficient Structured Pruning Framework for LLMs with Coarse-to-Fine Activation Information}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2025},
  url = {https://openreview.net/forum?id=OHkBBatwp3},
}
Figure