预训练语言模型(Pretrained Language Models,PLMs)已成为下游任务微调的事实标准起点。然而,随着模型规模持续增大,对所有参数进行传统微调的难度不断提升。为解决这一问题,参数高效微调(Parameter-Efficient Fine-Tuning,PEFT)方法作为高效适配PLMs的手段得到广泛应用。与此同时,近期研究发现Transformer的多层感知机(multilayer perceptron,MLP)模块中间输出存在激活稀疏性,低激活密度可在支持稀疏计算的硬件上实现高效模型推理。基于这一洞见,本研究提出一种全新的密度损失函数,用于提升预训练模型的激活稀疏性(即降低激活密度)。我们通过QLoRA、LoRA、Adapter、Prompt/Prefix Tuning等主流PEFT技术验证了该方法的有效性,可支撑模型在多样下游任务上的高效适配。实验结果表明,与PEFT相比,本文提出的DEFT(Density-Efficient Fine-Tuning,密度高效微调)方法在GLUE基准测试的RoBERTa_Large模型上可稳定降低激活密度最高达44.94%;在SQuAD问答基准的Flan-T5_XXL(11B参数)模型上,编码器密度降低53.19%,解码器密度降低90.60%。我们还提出了DEFT的自适应变体ADA-DEFT,可在推理阶段显著节省内存与运行时间:例如在Flan-T5_XL模型上,ADA-DEFT可减少8.79%的运行时间与17.46%的内存占用;在Flan-T5_XXL模型上则分别减少2.79%与2.54%。此外,研究还证实DEFT可与量化模型、剪枝模型协同发挥作用。
英文摘要:
Pretrained Language Models (PLMs) have become the de facto starting point for fine-tuning on downstream tasks. However, as model sizes continue to increase, traditional fine-tuning of all the parameters becomes challenging. To address this, parameter-efficient fine-tuning (PEFT) methods have gained popularity as a means to adapt PLMs effectively. In parallel, recent studies have revealed the presence of activation sparsity within the intermediate outputs of the multilayer perceptron (MLP) blocks in transformers. Low activation density enables efficient model inference on sparsity-aware hardware. Building upon this insight, in this work, we propose a novel density loss that encourages higher activation sparsity (equivalently, lower activation density) in the pre-trained models. We demonstrate the effectiveness of our approach by utilizing mainstream PEFT techniques, including QLoRA, LoRA, Adapter, and Prompt/Prefix Tuning, to facilitate efficient model adaptation across diverse downstream tasks. Experiments show that our proposed method, \textbf{DEFT} (Density-Efficient Fine-Tuning), can consistently reduce activation density by up to \textbf{44.94\%} on RoBERTa$_\mathrm{Large}$ and by \textbf{53.19\%} (encoder density) and \textbf{90.60\%} (decoder density) on Flan-T5$_\mathrm{XXL}$ (\textbf{11B}) compared to PEFT, using GLUE and QA (SQuAD) benchmarks respectively. We also introduce \textbf{ADA-DEFT}, an adaptive variant of our DEFT approach, which achieves significant memory and runtime savings during inference. For instance, ADA-DEFT reduces runtime by \textbf{8.79\%}and memory usage by \textbf{17.46\%} in Flan-T5$_\mathrm{XL}$, and by \textbf{2.79\%} and \textbf{2.54\%} respectively in Flan-T5$_\mathrm{XXL}$. Additionally, we showcase that DEFT works complementarily with quantized and pruned models.
ETHER: Efficient Finetuning of Large-Scale Models with Hyperplane Reflections
Bosch IoC Lab(博世物联网实验室);University of Tübingen(蒂宾根大学);Helmholtz Munich(慕尼黑亥姆霍兹中心);Tübingen AI Center(蒂宾根人工智能中心);Technical University of Munich(慕尼黑工业大学);Munich Center for Machine Learning(慕尼黑机器学习中心);Bosch Center for Artificial Intelligence(博世人工智能中心)
DeLoRA: Decoupling Angles and Strength in Low-rank Adaptation
University of Tübingen(图宾根大学);Tübingen AI Center(图宾根人工智能中心);Helmholtz Munich(海德堡-穆恩医疗中心);Technical University of Munich(慕尼黑技术大学);Munich Center for Machine Learning(慕尼黑机器学习中心);MDSI(慕尼黑数据科学研究所)
Faculty of Information Technology, University of Jyväskylä(约赫斯库利亚大学信息科技学院);National University of Singapore(新加坡国立大学);School of Computer Science and Technology, Dalian University of Technology(大连理工大学计算机科学与技术学院)
OMoE: Diversifying Mixture of Low-Rank Adaptation by Orthogonal Finetuning
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);The Key Laboratory of Cognition and Decision Intelligence for Complex Systems, Institute of Automation, Chinese Academy of Sciences(复杂系统认知与决策智能重点实验室);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院)
Parameter-efficient Fine-tuning for improved Convolutional Baseline for Brain Tumor Segmentation in Sub-Saharan Africa Adult Glioma Dataset
Nepal Research and Collaboration Center (NRCC)(尼泊尔研究与合作中心);Birendra Multiple Campus, Tribhuvan University(特里布万大学比伦德拉多校区);Institute of Engineering, Purbanchal Campus, Tribhuvan University(特里布万大学普尔班查尔校区工程学院);Bhaktapur Multiple Campus, Tribhuvan University(特里布万大学巴克塔普尔多校区);Gandaki College of Engineering and Science, Pokhara University(博卡拉大学甘达基工程与科学学院);McGill University(麦吉尔大学);Lawson Health Research Institute(劳森健康研究所);Medical Artificial Intelligence Laboratory (MAI Lab), Lagos(拉各斯医学人工智能实验室);University of British Columbia(不列颠哥伦比亚大学);Montreal Neurological Institute, McGill University(麦吉尔大学蒙特利尔神经学研究所)
CORA: Per-Slice Coherent Orthogonal Rotation for SVD-based Low-Rank Adaptation
Purdue University(普渡大学);Shanghai Institute for Mathematics and Interdisciplinary Sciences / Fudan University(上海数学与交叉科学研究院 / 复旦大学);Futurewei Technologies, Inc.(未来科技有限公司)
All You Need is One: Capsule Prompt Tuning with a Single Vector
University of Missouri-Kansas City(密苏里大学堪萨斯城分校);U.S. Naval Research Laboratory(美国海军研究实验室);University of North Texas(北卡罗来纳州立大学);Lamar University(拉马尔大学);ByteDance(字节跳动);Case Western Reserve University(凯斯西储大学);University of California, Davis(加州大学戴维斯分校);Rochester Institute of Technology(罗切斯特理工学院);Meta AI