On the transferability of pre-trained language models for low-resource programming languages
Authors:
Open Access
- 16 May 2022
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 401-412
Abstract
A recent study by Ahmed and Devanbu reported that using a corpus of code written in multilingual datasets to fine-tune multilingual Pre-trained Language Models (PLMs) achieves higher performance as opposed to using a corpus of code written in just one programming language. However, no analysis was made with respect to fine-tuning monolingual PLMs. Furthermore, some programming languages are inherently different and code written in one language usually cannot be interchanged with the others, i.e., Ruby and Java code possess very different structure. To better understand how monolingual and multilingual PLMs affect different programming languages, we investigate 1) the performance of PLMs on Ruby for two popular Software Engineering tasks: Code Summarization and Code Search, 2) the strategy (to select programming languages) that works well on fine-tuning multilingual PLMs for Ruby, and 3) the performance of the fine-tuned PLMs on Ruby given different code lengths. In this work, we analyze over a hundred of pre-trained and fine-tuned models. Our results show that 1) multilingual PLMs have a lower Performance-to-Time Ratio (the BLEU, METEOR, or MRR scores over the fine-tuning duration) as compared to monolingual PLMs, 2) our proposed strategy to select target programming languages to fine-tune multilingual PLMs is effective --- it reduces the time to fine-tune yet achieves higher performance in Code Summarization and Code Search tasks, and 3) our proposed strategy consistently shows good performance on different code lengths.Keywords
All Related Versions
Funding Information
- Natural Sciences and Engineering Research Council of Canada (RGPIN-2019-05175)
This publication has 19 references indexed in Scilit:
- Pre-trained models for natural language processing: A surveyScience China Technological Sciences, 2020
- Retrieval-based neural source code summarization2020
- BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension2020
- Incorporating External Knowledge through Pre-training for Natural Language to Code Generation2020
- Text Summarization with Pretrained Encoders2019
- Better Word Embeddings by Disentangling Contextual n-Gram Information2019
- DeepBugs: a learning approach to name-based bug detectionProceedings of the ACM on Programming Languages, 2018
- Newsroom: A Dataset of 1.3 Million Summaries with Diverse Extractive Strategies2018
- CCLearner: A Deep Learning-Based Clone Detection Approach2017
- Report on TREC-9ACM SIGIR Forum, 2000