Fluctuation-based Adaptive Structured Pruning for Large Language Models
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);University of Chinese Academy of Sciences(中国科学院大学);Wuhan AI Research(武汉人工智能研究院);Objecteye Inc.(Objecteye公司)
Yongqi An, Xu Zhao, Tao Yu, Ming Tang, Jinqiao Wang
网络剪枝是解决大语言模型(Large Language Models, LLMs)部署与推理阶段海量计算资源需求的一种极具潜力的方法。无需重训练对LLMs剪枝方法而言至关重要,但现有几乎所有面向LLMs的免重训练剪枝方法都聚焦于非结构化剪枝,这类剪枝需要特定硬件支持才能实现加速。本文提出了一种面向LLMs的新型免重训练结构化剪枝框架,名为FLAP(基于波动的自适应结构化剪枝,FLuctuation-based Adaptive Structured Pruning),它通过有效降低存储开销、提升推理速度,具备硬件友好特性。为实现LLMs的高效结构化剪枝,我们明确了三个需重点关注的核心要素:构建结构化重要性度量指标、自适应搜索全局压缩模型、引入补偿机制以缓解性能损失。首先,FLAP基于波动剪枝度量指标,判断移除一列权重后输出特征图是否易于恢复;随后对重要性得分进行标准化处理,以自适应确定全局压缩模型的结构;最后,FLAP添加额外偏置项,利用基线值恢复输出特征图。我们在多种语言基准上对所提方法进行了全面评估,在无需任何重训练的条件下,该方法的性能显著优于当前最优方法,包括LLM-Pruner以及Wanda的结构化剪枝扩展版本。代码已发布于https://github.com/CASIA-IVA-Lab/FLAP。
英文摘要:
Network Pruning is a promising way to address the huge computing resource demands of the deployment and inference of Large Language Models (LLMs). Retraining-free is important for LLMs' pruning methods. However, almost all of the existing retraining-free pruning approaches for LLMs focus on unstructured pruning, which requires specific hardware support for acceleration. In this paper, we propose a novel retraining-free structured pruning framework for LLMs, named FLAP (FLuctuation-based Adaptive Structured Pruning). It is hardware-friendly by effectively reducing storage and enhancing inference speed. For effective structured pruning of LLMs, we highlight three critical elements that demand the utmost attention: formulating structured importance metrics, adaptively searching the global compressed model, and implementing compensation mechanisms to mitigate performance loss. First, FLAP determines whether the output feature map is easily recoverable when a column of weight is removed, based on the fluctuation pruning metric. Then it standardizes the importance scores to adaptively determine the global compressed model structure. At last, FLAP adds additional bias terms to recover the output feature maps using the baseline values. We thoroughly evaluate our approach on a variety of language benchmarks. Without any retraining, our method significantly outperforms the state-of-the-art methods, including LLM-Pruner and the extension of Wanda in structured pruning. The code is released at https://github.com/CASIA-IVA-Lab/FLAP.
$\rm SP^3$: Enhancing Structured Pruning via PCA Projection
School of Information, Renmin University of China(中国人民大学信息学院);Tencent AI Lab, Tencent(腾讯AI实验室);School of Computer Science and Technology, Xi’an Jiaotong University(西安交通大学计算机科学与技术学院)
Iterative Structured Pruning for Large Language Models with Multi-Domain Calibration
Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学);School of Advanced Interdisciplinary Sciences, University of Chinese Academy of Sciences(中国科学院大学先进交叉学科学院)
Lightweight and Post-Training Structured Pruning for On-Device Large Lanaguage Models
School of Computer Science and Technology, University of Science and Technology of China(中国科学技术大学计算机科学与技术学院);Suzhou Institute for Advanced Research, University of Science and Technology of China(中国科学技术大学苏州高等研究院)
Efficient Transformer-based Large Scale Language Representations using Hardware-friendly Block Structured Pruning
University of Connecticut(康涅狄格大学);Northeastern University(东北大学);Syracuse University(雪城大学);Microsoft Corporation(微软公司);Stevens Institute of Technology(史蒂文斯理工学院)
CoCurve: Cross-Module Co-Pruning Curvature for Structured LLM Pruning
College of Computing and Data Science, Nanyang Technological University(南洋理工大学计算与数据科学学院);Interdisciplinary Graduate Programme, Nanyang Technological University(南洋理工大学跨学科研究生项目);School of Electrical and Electronic Engineering, Nanyang Technological University(南洋理工大学电气与电子工程学院)
GPrune-LLM: Generalization-Aware Structured Pruning for Large Language Models
Department of Computing, The Hong Kong Polytechnic University, Hong Kong(香港理工大学计算机系);School of Artificial Intelligence and Data Science, IIT Jodhpur(IIT朱罗浦人工智能与数据科学学院)