AdvFusion:基于适配器的代码语言模型代码摘要知识迁移
AdvFusion: Adapter-based Knowledge Transfer for Code Summarization on Code Language Models
AI总结:
本文提出AdvFusion,一种基于PEFT的适配器知识迁移方法,通过在适应目标任务前学习其他语言,有效提升了代码语言模型在代码摘要和方法名预测上的性能。
摘要:
编程语言可以通过利用预训练模型在代码摘要和方法名预测等软件工程任务中相互受益。尽管已探索了代码语言模型(Code-LMs)的全量微调以实现多语言知识迁移,但针对此目的的参数高效微调(PEFT)研究仍然有限。AdapterFusion作为一种PEFT架构,旨在通过利用多种语言的信息来提升任务性能,但主要聚焦于目标语言。为解决此问题,我们提出了AdvFusion,这是一种新颖的基于PEFT的方法,能够在适应目标任务之前有效地从其他语言中学习。在代码摘要和方法名预测任务上的评估表明,AdvFusion比AdapterFusion高出多达1.7个百分点,并在Ruby、JavaScript和Go上分别以1.99、1.26和2.16的优势超越了LoRA。我们开源了脚本以供复现。
英文摘要:
Programming languages can benefit from one another by utilizing a pre-trained model for software engineering tasks such as code summarization and method name prediction. While full fine-tuning of Code Language Models (Code-LMs) has been explored for multilingual knowledge transfer, research on Parameter Efficient Fine-Tuning (PEFT) for this purpose is limited. AdapterFusion, a PEFT architecture, aims to enhance task performance by leveraging information from multiple languages but primarily focuses on the target language. To address this, we propose AdvFusion, a novel PEFT-based approach that effectively learns from other languages before adapting to the target task. Evaluated on code summarization and method name prediction, AdvFusion outperforms AdapterFusion by up to 1.7 points and surpasses LoRA with gains of 1.99, 1.26, and 2.16 for Ruby, JavaScript, and Go, respectively. We open-source our scripts for replication purposes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。