arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2501.09949cs.LGcs.AI
收藏

MultiPruner:基础模型中的均衡结构移除

MultiPruner: Balanced Structure Removal in Foundation Models

Intel Labs(英特尔实验室);Intel Corporation(英特尔公司)

J. Pablo Muñoz, Jinjie Yuan, Nilesh Jain

AI总结:

本研究针对大型预训练模型免训练剪枝问题,在BlockPruner基础上提出MultiPruner,通过残差块、MLP通道、注意力头三维迭代细粒度剪枝恢复结构平衡,兼顾压缩率与下游零样本准确率,在多类模型上验证了优势。

摘要:

近期,针对大型预训练模型(LPMs)的前沿剪枝方法已证实,无需训练即可移除Transformer中非关键的残差块,以此缩减模型尺寸是可行的,其效果优于以往的免训练剪枝方法。受这些发现启发,我们对BlockPruner(Zhong等人,2024)进行扩展,提出MultiPruner——一种采用多维、迭代、细粒度剪枝策略的剪枝方法,性能超越了近期的免训练剪枝方法。在MultiPruner中,多维剪枝通过沿三个维度依次压缩,恢复块剪枝后模型的结构平衡:i)残差块,ii)多层感知器(MLP)的通道,iii)注意力头。该方案在提升模型压缩率的同时,相比其他技术提高了下游任务的零样本准确率,生成的压缩模型计算与内存需求更低。大量实验证明了所提方法在各类大型预训练模型上的优势。代码与剪枝配置可在https://github.com/IntelLabs/Hardware-Aware-Automated-Machine-Learning获取。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑