On the Impact of Language Selection for Training and Evaluating Programming Language Models
Authors:
- 2 October 2023
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 271-276
Abstract
The recent advancements in Transformer-based Language Models have demonstrated significant potential in enhancing the multilingual capabilities of these models. The remarkable progress made in this domain not only applies to natural language tasks but also extends to the domain of programming languages. Despite the ability of these models to learn from multiple languages, evaluations typically focus on particular combinations of the same languages. In this study, we evaluate the similarity of programming languages by analyzing their representations using a CodeBERT-based model. Our experiments reveal that token representation in languages such as C++, Python, and Java exhibit proximity to one another, whereas the same tokens in languages such as Mathematica and R display significant dissimilarity. Our findings suggest that this phenomenon can potentially result in performance challenges when dealing with diverse languages. Thus, we recommend using our similarity measure to select a diverse set of programming languages when training and evaluating future models.Keywords
All Related Versions
This publication has 12 references indexed in Scilit:
- Enriching Source Code with Contextual Data for Code Completion Models: An Empirical Study2023
- Extending Source Code Pre-Trained Language Models to Summarise Decompiled Binaries2023
- A systematic evaluation of large language models of code2022
- CodeFill2022
- On the transferability of pre-trained language models for low-resource programming languages2022
- UniXcoder: Unified Cross-Modal Pre-training for Code Representation2022
- CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation2021
- IntelliCode compose: code generation using transformer2020
- CodeBERT: A Pre-Trained Model for Programming and Natural Languages2020
- How Multilingual is Multilingual BERT?2019