paper-with-me

홈 › Papers

One Adapter for All Programming Languages? Adapter Tuning for Code Search and Summarization

2023-03-28 · Deze Wang, Boxing Chen, Shanshan Li, Wei Luo, Shaoliang Peng, Wei Dong, Xiangke Liao

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.

📄 PDF Abstract BibTeX arXiv:2303.15822

Code (1)

wangdeze18/multilingual-adapter-for-se 공식 구현 pytorch

Tasks

AllCode SearchCode Summarization

Methods 이 논문이 사용한 방법론

Gated Linear Unit A Gated Linear Unit, or GLU computes: $$ \mathrm{GLU}(a, b) = a \otimes \sigma(b) $$ It is used in natural language processing architectures, for example the Gated CNN,…
Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Residual Connection 설명 없음
Attention Dropout Attention Dropout is a type of dropout used in attention-based architectures, where elements are randomly dropped out of the…
Adafactor Adafactor is a stochastic optimization method based on Adam that reduces memory usage while retaining the empirical benefits of…

Similar Papers 제목 키워드 기반

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

2025-11-03 · Amirreza Esmaeili, Fahd Seddik, Yongyi Ji, Fatemeh Fard 외 arxiv

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 Generation

On The Cross-Modal Transfer from Natural Language to Code through Adapter Modules

2022-04-19 · Divyam Goel, Ramansh Grover, Fatemeh H. Fard

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 Learning

Prompting and Adapter Tuning for Self-supervised Encoder-Decoder Speech Model

2023-10-04 · Kai-Wei Chang, Ming-Hsin Chen, Yun-Ping Lin, Jing Neng Hsu 외

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 Filling

MAD-G: Multilingual Adapter Generation for Efficient Cross-Lingual Transfer

2021-11-01 · Findings (EMNLP) 2021 11 · Alan Ansell, Edoardo Maria Ponti, Jonas Pfeiffer, Sebastian Ruder 외

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+4

Exploiting Adapters for Cross-lingual Low-resource Speech Recognition

2021-05-18 · Wenxin Hou, Han Zhu, Yidong Wang, Jindong Wang 외

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