AdvFusion 分析:基于适配器的代码大语言模型多语言学习
Analysis of AdvFusion: Adapter-based Multilingual Learning for Code Large Language Models
AI总结:
本文扩展 AdvFusion 至代码大语言模型,在代码生成、代码翻译和提交信息生成三个任务上分析其与 AdapterFusion 及其他 PEFT 方法的性能差异,揭示不同模型与任务下多语言适配器融合方法的适用性。
摘要:
编程语言可以通过利用用于软件工程任务的语言模型相互受益。针对代码语言模型(Code-LMs)的全量微调和参数高效微调(PEFT)已被探索用于多语言知识迁移。AdapterFusion 是一种 PEFT 架构,旨在通过利用多种编程语言的信息来提升任务性能,但其主要关注目标编程语言。在我们之前的工作中,我们提出了 AdvFusion,这是一种新颖的基于 PEFT 的方法,能够在适应目标任务之前有效地从其他编程语言中学习。尽管先前实验表明 AdvFusion 优于 AdapterFusion 和 LoRA,但它仅应用于预训练的 Code-LMs,并且仅限于两个任务:代码摘要和方法名预测。在本研究中,我们扩展了工作范围,在代码大语言模型(Code-LLMs)上研究了 AdvFusion,并考虑了三个新任务:代码生成、代码翻译和提交信息生成。我们观察到不同的 Code-LLMs/任务表现出不同的特性。在代码生成中,AdvFusion 优于 AdapterFusion,但不优于其他 PEFT 方法(LoRA、Compacter 和 TaskAdapter)。在提交信息生成中,AdapterFusion 的表现优于 AdvFusion,并且与代码生成相反,我们发现其他 PEFT 方法并没有更好的性能。在代码翻译中,AdvFusion 整体表现不如 AdapterFusion,且随着模型规模增大,性能差距略有扩大。然而,与代码生成一致,其他 PEFT 方法表现出更好的性能。
英文摘要:
Programming languages can benefit from one another by utilizing a language model for software engineering tasks. Full fine-tuning and Parameter Efficient Fine-Tuning (PEFT) of Code Language Models (Code-LMs) has been explored for multilingual knowledge transfer. AdapterFusion is a PEFT architecture that aims to enhance task performance by leveraging information from multiple programming languages, but primarily focuses on the target programming language. In our previous work, we proposed AdvFusion, a novel PEFT-based approach that effectively learns from other programming languages before adapting to the target task. Though previous experiments showed that AdvFusion outperformed AdapterFusion and LoRA, it was applied on pre-trained Code-LMs and was limited to only two tasks, code summarization and method name prediction. In this study, we expanded our work and investigated AdvFusion on Code Large Language Models (Code-LLMs), considering three new tasks: code generation, code translation, and commit message generation. We observed that different Code-LLMs/tasks exhibit different characteristics. In code generation, AdvFusion outperformed AdapterFusion but not other PEFT methods (LoRA, Compacter, and TaskAdapter). In commit message generation, AdapterFusion performed better than AdvFusion, and contrary to code generation, we found that the other PEFT methods do not have better performance. In code translation, AdvFusion performed worse than AdapterFusion overall, with the performance gap marginally widening as the model size increases. However, consistent with code generation, other PEFT methods showed better performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。