arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2312.15614cs.SEcs.AIcs.CL
收藏

软件工程任务上参数高效微调的综合评估

A Comprehensive Evaluation of Parameter-Efficient Fine-Tuning on Software Engineering Tasks

National Key Laboratory for Novel Software Technology at Nanjing University(南京大学计算机软件新技术国家重点实验室);Eastern Institute for Advanced Study(东方理工高等研究院);Southern Methodist University(南卫理公会大学)

Wentao Zou, Qi Li, Jidong Ge, Chuanyi Li, Xiaoyu Shen, Liguo Huang, Bin Luo

AI总结:

本文综合评估了五种参数高效微调方法在八个预训练模型和四个软件工程任务上的有效性,探讨了模型类型、规模与架构的影响,并分析了效率,旨在为PEFT在软件工程中的应用提供深入理解。

摘要:

预训练模型(PTMs)在遵循“预训练然后微调”范式的各种软件工程(SE)下游任务中取得了巨大成功。由于对预训练模型的所有参数进行全面微调在计算上可能代价高昂,一种广泛使用的解决方案是参数高效微调(PEFT),它冻结预训练模型,同时引入额外参数。尽管已有工作在软件工程领域测试了PEFT方法,但仍缺乏全面的评估。本文旨在通过评估五种PEFT方法在八个预训练模型和四个软件工程下游任务上的有效性来填补这一空白。针对不同的任务和PEFT方法,我们寻求以下研究问题的答案:1)使用专门在源代码上训练的预训练模型是否更有效,还是使用在自然语言文本上训练的预训练模型就足够了?2)不同模型规模的影响是什么?3)模型架构如何影响性能?除了有效性之外,我们还讨论了PEFT方法的效率,涉及所需训练时间和GPU资源消耗的成本。我们希望我们的发现能够提供对PEFT方法在各种预训练模型和软件工程下游任务上更深入的理解。所有代码和数据可在https://github.com/zwtnju/PEFT.git获取。

英文摘要:

Pre-trained models (PTMs) have achieved great success in various Software Engineering (SE) downstream tasks following the ``pre-train then fine-tune'' paradigm. As fully fine-tuning all parameters of PTMs can be computationally expensive, a widely used solution is parameter-efficient fine-tuning (PEFT), which freezes PTMs while introducing extra parameters. Though work has been done to test PEFT methods in the SE field, a comprehensive evaluation is still lacking. This paper aims to fill in this gap by evaluating the effectiveness of five PEFT methods on eight PTMs and four SE downstream tasks. For different tasks and PEFT methods, we seek answers to the following research questions: 1) Is it more effective to use PTMs trained specifically on source code, or is it sufficient to use PTMs trained on natural language text? 2) What is the impact of varying model sizes? 3) How does the model architecture affect the performance? Besides effectiveness, we also discuss the efficiency of PEFT methods, concerning the costs of required training time and GPU resource consumption. We hope that our findings can provide a deeper understanding of PEFT methods on various PTMs and SE downstream tasks. All the codes and data are available at \url{https://github.com/zwtnju/PEFT.git}.

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

↑