arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.02596cs.LGcs.AIcs.CL
收藏

随机掩码为参数高效微调找到中奖彩票

Random Masking Finds Winning Tickets for Parameter Efficient Fine-tuning

Institute for Interdisciplinary Information Sciences, Tsinghua University(清华大学交叉信息研究院);Shanghai Qizhi Institute(上海期智研究院);Shanghai AI Laboratory(上海人工智能实验室)

Jing Xu, Jingzhao Zhang

AI总结:

本文提出用随机掩码微调预训练模型,以极简方式突破参数高效微调的参数数量极限,并通过实证与理论分析表明掩码带来的平坦损失景观和更远解使其能以更少参数匹配LoRA等标准PEFT算法的性能。

摘要:

微调大型语言模型(LLM)可能成本高昂。参数高效微调(PEFT)通过只训练一小部分参数来解决这些问题,其成功揭示了预训练模型的表达能力和灵活性。本文研究PEFT的极限,通过进一步简化其设计并将可训练参数数量减少到标准设置以下。为此,我们使用随机掩码(Random Masking)来微调预训练模型。尽管方法简单,我们表明随机掩码出人意料地有效:在比预期更大的学习率下,随机掩码可以在各种任务上以更少的可训练参数达到标准PEFT算法(如LoRA)的性能。我们对随机掩码的成功进行了实证和理论探索。我们表明掩码会带来更平坦的损失景观和更远的解,这使得大学习率成为可能且必要。

英文摘要:

Fine-tuning large language models (LLM) can be costly. Parameter-efficient fine-tuning (PEFT) addresses the problems by training a fraction of the parameters, whose success reveals the expressiveness and flexibility of pretrained models. This paper studies the limit of PEFT, by further simplifying its design and reducing the number of trainable parameters beyond standard setups. To this end, we use Random Masking to fine-tune the pretrained model. Despite its simplicity, we show that Random Masking is surprisingly effective: with a larger-than-expected learning rate, Random Masking can match the performance of standard PEFT algorithms such as LoRA on various tasks, using fewer trainable parameters. We provide both empirical and theoretical explorations into the success of Random Masking. We show that masking induces a flatter loss landscape and more distant solutions, which allows for and necessitates large learning rates.

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

↑