arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.05901cs.CLcs.LGcs.SE
收藏

用于Source Code的Transformers的参数有效微调

Parameter-Efficient Finetuning of Transformers for Source Code

HSE University(高等经济大学);Naver Labs Europe(Naver欧洲实验室)

Shamil Ayupov, Nadezhda Chirkova

摘要:

预训练的Transformers在各种代码处理任务中实现了最先进的性能,但可能太大而无法部署。由于软件开发工具通常包含用于各种目的的模块,这些模块可能潜在地使用预训练模型的单个实例,因此似乎与针对代码的预训练模型利用参数高效微调相关。在这项工作中,我们测试了两种广泛使用的方法,适配器和LoRA,这是最初测试的NLP任务,四个代码处理任务。我们发现,虽然有效的微调方法可能会实现可比或更高的性能比标准的,完整的,微调的代码理解任务,他们表现不佳的代码生成任务的全面微调。这些结果强调了在NLP之外的其他领域测试有效微调方法的重要性,并激励了未来对源代码进行有效微调的研究。

英文摘要:

Pretrained Transformers achieve state-of-the-art performance in various code-processing tasks but may be too large to be deployed. As software development tools often incorporate modules for various purposes which may potentially use a single instance of the pretrained model, it appears relevant to utilize parameter-efficient fine-tuning for the pretrained models of code. In this work, we test two widely used approaches, adapters and LoRA, which were initially tested on NLP tasks, on four code-processing tasks. We find that though the efficient fine-tuning approaches may achieve comparable or higher performance than the standard, full, fine-tuning in code understanding tasks, they underperform full fine-tuning in code-generative tasks. These results underline the importance of testing efficient fine-tuning approaches on other domains than NLP and motivate future research in efficient fine-tuning for source code.

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

↑