计算机科学 > 软件工程
[提交于 2023年8月25日]
标题:On the Impact of Language Selection for Training and Evaluating Programming Language Models
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Jonathan Katzy[v1] 2023年8月25日 星期五 12:57:59 UTC