PAT: Pruning-Aware Tuning for Large Language Models
School of Electronic Science and Engineering, Nanjing University(南京大学电子科学与工程学院);University of Arizona(亚利桑那大学);Samsung Electronic Research Centre of China(三星中国电子研究中心);Interdisciplinary Research Center for Future Intelligent Chips, Nanjing University(南京大学未来智能芯片交叉研究中心)
Yijiang Liu, Huanrui Yang, Youxin Chen, Rongyu Zhang, Miao Wang, Yuan Du, Li Du
Large language models (LLMs) excel in language tasks, especially with supervised fine-tuning after pre-training. However, their substantial memory and computational requirements hinder practical applications. Structural pruning, which reduces less significant weight dimensions, is one solution. Yet, traditional post-hoc pruning often leads to significant performance loss, with limited recovery from further fine-tuning due to reduced capacity. Since the model fine-tuning refines the general and chaotic knowledge in pre-trained models, we aim to incorporate structural pruning with the fine-tuning, and propose the Pruning-Aware Tuning (PAT) paradigm to eliminate model redundancy while preserving the model performance to the maximum extend. Specifically, we insert the innovative Hybrid Sparsification Modules (HSMs) between the Attention and FFN components to accordingly sparsify the upstream and downstream linear modules. The HSM comprises a lightweight operator and a globally shared trainable mask. The lightweight operator maintains a training overhead comparable to that of LoRA, while the trainable mask unifies the channels to be sparsified, ensuring structural pruning. Additionally, we propose the Identity Loss which decouples the transformation and scaling properties of the HSMs to enhance training robustness. Extensive experiments demonstrate that PAT excels in both performance and efficiency. For example, our Llama2-7b model with a 25\% pruning ratio achieves 1.33$\times$ speedup while outperforming the LoRA-finetuned model by up to 1.26\% in accuracy with a similar training cost. Code: https://github.com/kriskrisliu/PAT_Pruning-Aware-Tuning
All-in-One Tuning and Structural Pruning for Domain-Specific LLMs
Northeastern University(东北大学);George Mason University(乔治梅森大学);GE HealthCare(GE医疗);University of Pennsylvania(宾夕法尼亚大学);University of Pittsburgh(匹兹堡大学);University of Florida(佛罗里达大学);Florida State University(佛罗里达州立大学)
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(中国科学技术大学苏州高等研究院)
From Dense to Sparse: Contrastive Pruning for Better Pre-trained Language Model Compression
Alibaba(阿里巴巴);Peking University(北京大学)
预训练语言模型(Pre-trained Language Models,PLM)在预训练和微调的范式下在各种自然语言处理(Natural Language Processing,NLP)任务中取得了巨大的成功。PLM具有大量的参数,计算密集型和资源消耗型。因此,模型修剪已被引入到压缩大规模PLM。然而,大多数已有的方法在剪枝时只考虑任务相关的知识,而忽略了任务无关的基本知识,这可能会导致灾难性遗忘问题,从而导致泛化能力差。为了在我们的修剪模型中保持任务不可知和任务特定的知识,我们提出了预训练和微调范式下的主动修剪(CAP)。它被设计为一个通用框架,兼容结构化和非结构化修剪。CAP与对比学习相结合,使修剪后的模型能够从预训练的模型中学习任务不可知的知识,并对任务特定的知识进行微调。此外,为了更好地保持修剪模型的性能,快照(即,在每次修剪迭代的中间模型)也用作修剪的有效监督。我们广泛的实验表明,采用CAP一贯产生显着的改善,特别是在极高的稀疏性的情况下。仅保留3%的模型参数(即,97%稀疏性),CAP成功地实现了99.2%和96.3%的原始BERT性能在QQP和MNLI任务。此外,我们的探测实验表明,CAP修剪的模型倾向于实现更好的泛化能力。
Safe Pruning LoRA: Robust Distance-Guided Pruning for Safety Alignment in Adaptation of LLMs
School of Electronics and Computer Science, University of Southampton, UK(索姆塞特大学电子与计算机科学学院);Department of Computer Science, University of Liverpool, UK(利弗pool大学计算机科学系)
Dual-Priv Pruning : Efficient Differential Private Fine-Tuning in Multimodal Large Language Models
Southeast University(东南大学);Peking University(北京大学);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);Zhejiang University(浙江大学);Nanyang Technological University(南洋理工大学);Technische Universität Chemnitz(开姆尼茨工业大学);University of California, Los Angeles(加利福尼亚大学洛杉矶分校)
SPP: Sparsity-Preserved Parameter-Efficient Fine-Tuning for Large Language Models
Multimedia Laboratory (MMLab), The Chinese University of Hong Kong(香港中文大学多媒体实验室);Salesforce AI Research(Salesforce 人工智能研究院);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);CPII under InnoHK(InnoHK 创新香港研发平台旗下产品可靠性及系统安全研发中心)
The Structural Scalpel: Automated Contiguous Layer Pruning for Large Language Models
Institute of Cyberspace Security, College of Information Engineering, Zhejiang University of Technology(浙江工业大学信息工程学院网络安全研究所);Binjiang Institute of Artificial Intelligence, Zhejiang University of Technology(浙江工业大学滨江人工智能研究院);City College of New York, City University of New York(纽约市立大学城市学院);Australian AI Institute, Faculty of Engineering and Information Technology, University of Technology(澳大利亚人工智能研究院,技术大学工程与信息学院)
O1-Pruner: Length-Harmonizing Fine-Tuning for O1-Like Reasoning Pruning
China Agriculture University(中国农业大学);Tsinghua University(清华大学);University of Oxford(牛津大学);Didichuxing Co. Ltd(滴滴出行有限公司);Shenzhen Campus of Sun Yat-sen University(中山大学深圳校区);Nanyang Technological University(南洋理工大学)
MoPE-CLIP: Structured Pruning for Efficient Vision-Language Models with Module-wise Pruning Error Metric
School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);City University of Hong Kong(香港城市大学);Huawei Noah’s Ark Lab(华为诺亚方舟实验室);The Hong Kong University of Science and Technology(香港科技大学);Nanyang Technological University(南洋理工大学)
LEAP: Learnable Pruning for Transformer-based Models
Microsoft(微软);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);University of California, Berkeley(加州大学伯克利分校);International Computer Science Institute(国际计算机科学研究所)
CLOVER: Cross-Layer Orthogonal Vectors Pruning and Fine-Tuning
Institute for Artificial Intelligence, Peking University(北京大学人工智能研究院);State Key Laboratory of General Artificial Intelligence, Peking University(北京大学通用人工智能国家重点实验室)
Equivariant-Aware Structured Pruning for Efficient Edge Deployment: A Comprehensive Framework with Adaptive Fine-Tuning
Faculty of Computers and Information Technology, University of Tabuk(计算机与信息科技学院,塔布克大学);Artificial Intelligence and Sensing Technologies (AIST) Research Center, University of Tabuk(人工智能与传感技术(AIST)研究中心,塔布克大学)
Effective Fine-Tuning with Eigenvector Centrality Based Pruning
Texas A\&M University-Kingsville,TX,USA(德克萨斯A&M大学-国王城分校);Indian Institute of Technology Madras, India(印度理工学院马德拉斯分校);Research Intern at Delhi Technological University (DTU)(德里技术大学(DTU)研究员)