MultiPruner: Balanced Structure Removal in Foundation Models
J. Pablo Muñoz, Jinjie Yuan, Nilesh Jain
TL;DR
MultiPruner introduces a training-free, multidimensional pruning framework for foundation models that balances depth and width by sequentially pruning residual blocks, MLP channels, and attention heads. By using fixed targets and, where appropriate, evolutionary search (NSGA-II), it achieves competitive or superior zero-shot downstream performance while yielding smaller, faster models. The approach demonstrates strong results across multiple LLMs and pruning ratios, with ablations and sensitivity analyses underscoring the importance of the pruning order and weight reordering. Recovery tuning further enhances performance, making pruned models viable for deployment on resource-constrained hardware with notable inference speedups.
Abstract
Recently, state-of-the-art approaches for pruning large pre-trained models (LPMs) have demonstrated that the training-free removal of non-critical residual blocks in Transformers is viable for reducing model size, achieving results that outperform previous training-free pruning approaches. Motivated by these findings, we extend BlockPruner (Zhong et al., 2024) and propose MultiPruner, a pruning approach that surpasses recent training-free pruning methods by adopting a multidimensional, iterative, fine-grained pruning strategy. In MultiPruner, multidimensional pruning reinstates the structural balance in block-pruned models by sequentially compressing along three dimensions: i) residual blocks, ii) channels of multilayer perceptrons (MLP), and iii) attention heads. This solution enhances zero-shot accuracy on downstream tasks compared to other techniques while improving model compression ratios, producing compressed models with fewer computing and memory requirements. Extensive experiments demonstrate the advantages of the proposed method across various large pre-trained models. The code and pruning configurations are available at https://github.com/IntelLabs/Hardware-Aware-Automated-Machine-Learning.
