PAT: Pruning-Aware Tuning for Large Language Models

Yijiang Liu, Huanrui Yang, Youxin Chen, Rongyu Zhang, Miao Wang, Yuan Du, Li Du

Introduction

Deploying Large Language Models (LLMs) like Llama, Gemma, or Yi presents significant hardware challenges due to their immense parameter counts. Structural pruning—the removal of entire rows or columns from weight matrices—is a primary strategy for enhancing inference speed on standard GPUs. However, traditional workflows typically separate pruning and fine-tuning into distinct stages, leading to a "performance gap" where the model's knowledge architecture is damaged beyond full recovery.

Pruning-Aware Tuning (PAT) addresses this by integrating pruning directly into the fine-tuning process. This framework allows models to adapt their internal knowledge distribution as they are being sparsified, resulting in models that are not only faster but often more accurate than their unpruned counterparts.

The PAT Framework

PAT moves away from the "cut-then-retrain" approach by making pruning a "first-class citizen" during training. The architecture relies on three core components designed to maintain structural consistency and minimize computational overhead.

1. Hybrid Sparsification Modules (HSMs)

To avoid the prohibitive cost of pruning every linear layer individually, PAT strategically inserts HSMs between the Attention and Feed-Forward Network (FFN) blocks. These modules leverage the "zero-preservation" property of RMSNorm. Since RMSNorm lacks a bias term, a channel pruned to zero before the norm remains zero after it, allowing a single HSM to effectively "kill" channels across multiple subsequent layers.

2. Hybrid-Identity-Operator (HIO) and Unified Masking

To keep training overhead comparable to LoRA, the HSM uses a low-rank decomposition ($L_1 \cdot L_0$) added to an Identity matrix ($I$). This allows the model to learn how to redistribute knowledge from channels slated for removal into surviving channels without adding millions of parameters.

The PAT architecture integrates Hybrid Sparsification Modules (HSMs) and a Unified Sparsification Mask to ensure structural consistency across transformer blocks.

Furthermore, a Unified Sparsification Mask (USM) is shared globally across all HSMs. This ensures that the same channel indices are pruned throughout the entire model, solving the "alignment" problem in residual networks where mismatched pruning would break the mathematical integrity of skip connections.

Experimental Results

The authors evaluated PAT using the LaMini-instruction dataset for fine-tuning and tested zero-shot performance across 14 downstream benchmarks, including MMLU, ARC, and PIQA.

Accuracy and Regularization

One of the most striking findings is that at moderate pruning ratios (20-25%), PAT-pruned models frequently outperform unpruned models. For instance, on Llama2-7B with a 25% pruning ratio, PAT achieved 60.02% average accuracy, surpassing the unpruned LoRA baseline of 58.76%. This suggests that the pruning process acts as a form of structural regularization, forcing the model to concentrate its knowledge more efficiently.

Memory usage and accuracy for Llama 2 models at various pruning ratios. Note that 20% pruning actually improves accuracy over the 0% baseline.

Efficiency Gains

Beyond accuracy, PAT delivers tangible hardware benefits:

  • Speedup: A 30% pruned Llama2-7B model achieved a 1.33× speedup in token generation latency.
  • Memory Footprint: Pruned models significantly reduce VRAM usage. This efficiency allows for larger batch sizes during inference; for example, a pruned Llama2-13B can handle batch sizes that would trigger "Out-of-Memory" errors on the base model.

Conclusion and Future Work

PAT demonstrates that pruning should not be an afterthought but an integral part of model adaptation. By training the model to be sparse from the start, PAT avoids performance collapse and even improves generalization.

While highly effective for modern architectures using RMSNorm, future work is needed to extend this compatibility to models using standard LayerNorm (like GPT-2). Additionally, while current pruning ratios are fixed before training, future iterations of PAT may explore automated "discovery-based" pruning to determine the optimal sparsity level for a given task and hardware constraint.

Summary updated

BibTeX
@inproceedings{liu2025pat,
  author = {Yijiang Liu and Huanrui Yang and Youxin Chen and Rongyu Zhang and Miao Wang and Yuan Du and Li Du},
  title = {{PAT: Pruning-Aware Tuning for Large Language Models}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i23.34649},
}
Figure