Dynamic Sparse No Training: Training-Free Fine-tuning for Sparse LLMs
Huawei Technologies(华为技术有限公司);University of Oxford(牛津大学);University of Texas at Austin(德克萨斯大学奥斯汀分校);Eindhoven University of Technology(埃因霍温理工大学);Xiamen University(厦门大学);Tencent Youtu Lab(腾讯优图实验室);Institute of Artificial Intelligence, Xiamen University(厦门大学人工智能研究所)
Yuxin Zhang, Lirui Zhao, Mingbao Lin, Yunyun Sun, Yiwu Yao, Xingjia Han, Jared Tanner, Shiwei Liu, Rongrong Ji
规模不断增长的大语言模型(LLMs)虽然为即将到来的人工通用智能开辟了潜在路径,但遗憾的是,在其端侧部署的道路上投下了一道艰巨的障碍。作为在预训练大语言模型时代之前最成熟的降低模型复杂度方法之一,网络剪枝在LLMs时代似乎落后了,主要原因在于面对海量模型参数和训练数据时,其昂贵的微调(或重新训练)需求。为弥合这一产业与学术界之间的差距,我们提出了Dynamic Sparse No Training(DSnoT),这是一种免训练微调方法,能够在不进行昂贵的反向传播和任何权重更新的情况下轻微更新稀疏LLMs。受动态稀疏训练(Dynamic Sparse Training)的启发,DSnoT通过在稀疏LLMs之上执行迭代式权重剪枝与生长,以最小化稠密与稀疏LLMs之间的重构误差。为实现这一目标,DSnoT特别考虑了剪枝和生长时重构误差的预期减少量,以及不同输入数据对于每个权重生长的方差。由于该方法避免了为微调LLMs而进行反向传播的需要,因此可以在线性时间内高效执行。在LLaMA-V1/V2、Vicuna和OPT上跨多个基准的广泛实验证明了DSnoT在提升稀疏LLMs性能方面的有效性,尤其是在高稀疏度水平下。例如,在LLaMA-7B上70%稀疏度时,DSnoT能够以26.79的困惑度优势超越当前最先进的Wanda方法。我们的论文为如何以高效的免训练方式微调稀疏LLMs提供了新的见解,并为将稀疏性的巨大潜力扩展到LLMs开辟了新的途径。代码可在https://github.com/zyxxmu/DSnoT获取。
英文摘要:
The ever-increasing large language models (LLMs), though opening a potential path for the upcoming artificial general intelligence, sadly drops a daunting obstacle on the way towards their on-device deployment. As one of the most well-established pre-LLMs approaches in reducing model complexity, network pruning appears to lag behind in the era of LLMs, due mostly to its costly fine-tuning (or re-training) necessity under the massive volumes of model parameter and training data. To close this industry-academia gap, we introduce Dynamic Sparse No Training (DSnoT), a training-free fine-tuning approach that slightly updates sparse LLMs without the expensive backpropagation and any weight updates. Inspired by the Dynamic Sparse Training, DSnoT minimizes the reconstruction error between the dense and sparse LLMs, in the fashion of performing iterative weight pruning-and-growing on top of sparse LLMs. To accomplish this purpose, DSnoT particularly takes into account the anticipated reduction in reconstruction error for pruning and growing, as well as the variance w.r.t. different input data for growing each weight. This practice can be executed efficiently in linear time since its obviates the need of backpropagation for fine-tuning LLMs. Extensive experiments on LLaMA-V1/V2, Vicuna, and OPT across various benchmarks demonstrate the effectiveness of DSnoT in enhancing the performance of sparse LLMs, especially at high sparsity levels. For instance, DSnoT is able to outperform the state-of-the-art Wanda by 26.79 perplexity at 70% sparsity with LLaMA-7B. Our paper offers fresh insights into how to fine-tune sparse LLMs in an efficient training-free manner and open new venues to scale the great potential of sparsity to LLMs. Codes are available at https://github.com/zyxxmu/DSnoT.
Leave it to the Specialist: Repair Sparse LLMs with Sparse Fine-Tuning via Sparsity Evolution
Eindhoven University of Technology(埃因霍温理工大学);University of Cambridge(剑桥大学);University of Luxembourg(卢森堡大学);University of Twente(埃因霍温理工大学);University of Surrey(萨里大学);Tübingen AI Center(图宾根人工智能中心);Max Planck Institute for Intelligent Systems(智能系统马克斯·普朗克研究所);ELLIS Institute Tübingen(图宾根ELLIS研究所)
ReLU$^2$ Wins: Discovering Efficient Activation Functions for Sparse LLMs
Tsinghua University(清华大学);Shanghai Jiao Tong University(上海交通大学);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);Renmin University of China(中国人民大学)
L-TUNING: Synchronized Label Tuning for Prompt and Prefix in LLMs
Stevens Institute of Technology(史蒂文斯理工学院);Hajee Mohammad Danesh Science & Technology University(哈吉·穆罕默德·达内什科学技术大学);Noakhali Science & Technology University(诺阿卡利科学技术大学);Amazon(亚马逊)
When MOE Meets LLMs: Parameter Efficient Fine-tuning for Multi-task Medical Applications
City University of Hong Kong(香港城市大学);Jarvis Research Center(贾维斯研究中心);Tencent YouTu Lab(腾讯优图实验室);Southern University of Science and Technology(南方科技大学);University of Science and Technology of China(中国科学技术大学)
Sparse is Enough in Fine-tuning Pre-trained Large Language Models
National Engineering Research Center for Multimedia Software(国家多媒体软件工程技术研究中心);School of Computer Science, Wuhan University(武汉大学计算机学院);Hubei Luojia Laboratory(湖北珞珈实验室);Department of Computer Science and Engineering, Shanghai Jiao Tong University(上海交通大学计算机科学与工程系)
Zeroth-Order Fine-Tuning of LLMs with Extreme Sparsity
Princeton University(普林斯顿大学);Stevens Institute of Technology(史蒂文斯理工学院);University of Pennsylvania(宾夕法尼亚大学);Rice University(莱斯大学);Carnegie Mellon University(卡内基梅隆大学);Cornell University(康奈尔大学)
Towards Understanding the Fragility of Multilingual LLMs against Fine-Tuning Attacks
Meta;University of Pisa(比萨大学);University of Modena and Reggio Emilia(摩德纳与雷焦艾米利亚大学);Brown University(布朗大学);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)
Farther the Shift, Sparser the Representation: Analyzing OOD Mechanisms in LLMs
Rutgers University(罗格斯大学);Northwestern University(西北大学);UKP Lab, TU Darmstadt(德累斯顿技术大学UKP实验室);New Jersey Institute of Technology(新泽西理工学院);NEC Lab American(美国NEC实验室);University of North Carolina at Chapel Hill(北卡罗来纳大学教堂山分校)
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(佛罗里达州立大学)
CurvZO: Adaptive Curvature-Guided Sparse Zeroth-Order Optimization for Efficient LLM Fine-Tuning
Department of Computer Science and Engineering, Southern University of Science and Technology, Shenzhen, China.(计算机科学与工程系,南方科技大学,深圳,中国);Department of Mathematics, Southern University of Science and Technology, Shenzhen, China.(数学系,南方科技大学,深圳,中国)
Zeroth-Order Fine-Tuning of LLMs in Random Subspaces
Beijing Normal University(北京师范大学);Singapore Management University(新加坡国立大学);TAL Education Group(TAL教育集团);Engineering Research Center of Intelligent Technology and Educational Application (MOE)(智能技术与教育应用工程研究中心(教育部))