arXiv:2511.02869cs.SEcs.AI2025-11

提出AdvFusion,让代码大模型更好利用多语言知识提升性能。

Analysis of AdvFusion: Adapter-based Multilingual Learning for Code Large Language Models

  • 通过适配器融合机制,先学习多语言知识再适应目标任务。
  • 在代码生成任务中优于AdapterFusion,但在提交信息生成中表现更差。
  • 适合关注多语言迁移的代码大模型研究者,尤其在生成类任务中有效。

编程语言可通过代码大模型实现知识共享。以往的全微调和参数高效微调(PEFT)方法已用于多语言代码模型迁移。AdapterFusion是一种基于PEFT的架构,主要依赖目标语言提升任务性能。我们此前提出的AdvFusion则能在适配目标任务前,更有效地从其他编程语言中学习。先前实验显示AdvFusion优于AdapterFusion和LoRA,但仅在预训练代码模型上应用于代码摘要和方法名预测两个任务。本研究将AdvFusion扩展至代码大模型(Code-LLMs),新增代码生成、代码翻译与提交信息生成三项任务。结果发现不同模型/任务特性各异:在代码生成中,AdvFusion优于AdapterFusion,但不如LoRA、Compacter和TaskAdapter;在提交信息生成中,AdapterFusion表现更优,其他方法未见优势;在代码翻译中,AdvFusion整体表现劣于AdapterFusion,且随模型规模增大差距扩大,而其他方法表现更佳。

原文摘要 · Abstract (English)

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.

代码大模型多语言迁移参数高效微调

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。