One Adapter for All Programming Languages? Adapter Tuning for Code Search and Summarization
As pre-trained models automate many code intelligence tasks, a widely used paradigm is to fine-tune a model on the task dataset for each programming language. A recent study reported that multilingual fine-tuning benefits a range of tasks and models. However, we find that multilingual fine-tuning leads to performance degradation on recent models UniXcoder and CodeT5. To alleviate the potentially catastrophic forgetting issue in multilingual models, we fix all pre-trained model parameters, insert the parameter-efficient structure adapter, and fine-tune it. Updating only 0.6\% of the overall parameters compared to full-model fine-tuning for each programming language, adapter tuning yields consistent improvements on code search and summarization tasks, achieving state-of-the-art results. In addition, we experimentally show its effectiveness in cross-lingual and low-resource scenarios. Multilingual fine-tuning with 200 samples per programming language approaches the results fine-tuned with the entire dataset on code summarization. Our experiments on three probing tasks show that adapter tuning significantly outperforms full-model fine-tuning and effectively overcomes catastrophic forgetting.
Code (1)
Tasks
AllCode SearchCode SummarizationMethods 이 논문이 사용한 방법론
Similar Papers 제목 키워드 기반
Analysis of AdvFusion: Adapter-based Multilingual Learning for Code Large Language Models
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 exp…
Method name predictionCode TranslationCode GenerationOn The Cross-Modal Transfer from Natural Language to Code through Adapter Modules
Pre-trained neural Language Models (PTLM), such as CodeBERT, are recently used in software engineering as models pre-trained on large source code corpora. Their knowledge is transferred to downstream tasks (e.g. code clo…
Clone DetectionCloze TestTransfer LearningPrompting and Adapter Tuning for Self-supervised Encoder-Decoder Speech Model
Prompting and adapter tuning have emerged as efficient alternatives to fine-tuning (FT) methods. However, existing studies on speech prompting focused on classification tasks and failed on more complex sequence generatio…
Cross-Lingual ASRDecoderslot-fillingSlot FillingMAD-G: Multilingual Adapter Generation for Efficient Cross-Lingual Transfer
Adapter modules have emerged as a general parameter-efficient means to specialize a pretrained encoder to new domains. Massively multilingual transformers (MMTs) have particularly benefited from additional training of la…
Cross-Lingual TransferDependency Parsingnamed-entity-recognitionNamed Entity Recognition+4Exploiting Adapters for Cross-lingual Low-resource Speech Recognition
Cross-lingual speech adaptation aims to solve the problem of leveraging multiple rich-resource languages to build models for a low-resource target language. Since the low-resource language has limited training data, spee…
Cross-Lingual ASRGeneral KnowledgeMeta-Learningspeech-recognition+1