mlsanityData to 7 Oct 2026

Cross-lingual Transfer in Programming Languages: An Extensive Empirical Study

arXiv 2310.16937 ↗First posted 25 Oct 2023cs.CLcited by 4

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) have achieved state-of-the-art performance in various software engineering tasks, including error detection, clone detection, and code translation, primarily leveraging high-resource programming languages like Python and Java. However, many critical languages, such as COBOL, as well as emerging languages, such as Rust and Swift, remain low-resource due to limited openly available code. This scarcity hampers the training and effectiveness of LLMs for these languages, increasing software maintenance costs and stifling innovation. Addressing this gap, we investigate the potential of transfer learning to enhance LLM performance on low-resource programming languages by leveraging data from high-resource counterparts. Our extensive empirical study evaluates transferability across 10 to 41 programming languages and five key tasks: code generation, clone detection, code repair, solution domain classification, and error detection. Additionally, we develop a performance prediction model to guess the best source languages for a given target and task, and analyze the features that influence transfer performance. We further replicate a representative subset of experiments with a larger model to test the generalizability of our conclusions to contemporary large-scale LLMs. Our findings demonstrate that cross-lingual transfer significantly outperforms zero-shot learning, with effectiveness varying based on both source and target languages. Furthermore, our model reliably predicts successful transfer sources by considering linguistic and dataset-specific features, offering practical guidance for data acquisition and model training. This work contributes to the development of LLM-driven tools for low-resource programming languages and provides insights into the characteristics that facilitate transfer across language pairs.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 16 of its 26 references that are in the map. First posted on arXiv 25 Oct 2023.

Builds on

16 of 26 references.

References · 16

  1. 2017A Unified Approach to Interpreting Model Predictionscited by 6,488
  2. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  3. 2021Program Synthesis with Large Language Modelscited by 3,509
  4. 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
  5. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  6. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  7. 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 199
  8. 2022Multi-lingual Evaluation of Code Generation Modelscited by 158
  9. 2019Choosing Transfer Languages for Cross-Lingual Learningcited by 143
  10. 2023Knowledge Transfer from High-Resource to Low-Resource Programming Languages for Code LLMscited by 45
  11. 2021Multilingual training for Software Engineeringcited by 43
  12. 2022On the Transferability of Pre-trained Language Models for Low-Resource Programming Languagescited by 30
4 more
  1. 2022Multi Task Learning For Zero Shot Performance Prediction of Multilingual Modelscited by 20
  2. 2022CIRCLE: Continual Repair across Programming Languagescited by 17
  3. 2021Improving Code Autocompletion with Transfer Learningcited by 6
  4. 2022MetaTPTrans: A Meta Learning Approach for Multilingual Code Representation Learningcited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 0; 2026: 3.

4 papers.