mlsanityData to 7 Oct 2026

A Qualitative Investigation into LLM-Generated Multilingual Code Comments and Automatic Evaluation Metrics

arXiv 2505.15469 ↗First posted 21 May 2025cs.SE cs.AIcited by 2

Not on the map. Why?

Abstract (arXiv)

Large Language Models are essential coding assistants, yet their training is predominantly English-centric. In this study, we evaluate the performance of code language models in non-English contexts, identifying challenges in their adoption and integration into multilingual workflows. We conduct an open-coding study to analyze errors in code comments generated by five state-of-the-art code models, CodeGemma, CodeLlama, CodeQwen1.5, GraniteCode, and StarCoder2 across five natural languages: Chinese, Dutch, English, Greek, and Polish. Our study yields a dataset of 12,500 labeled generations, which we publicly release. We then assess the reliability of standard metrics in capturing comment textitcorrectness across languages and evaluate their trustworthiness as judgment criteria. Through our open-coding investigation, we identified a taxonomy of 26 distinct error categories in model-generated code comments. They highlight variations in language cohesion, informativeness, and syntax adherence across different natural languages. Our analysis shows that, while these models frequently produce partially correct comments, modern neural metrics fail to reliably differentiate meaningful completions from random noise. Notably, the significant score overlap between expert-rated correct and incorrect comments calls into question the effectiveness of these metrics in assessing generated comments.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 30 of its 58 references that are in the map. First posted on arXiv 21 May 2025.

Builds on

30 of 58 references.

References · 30

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  3. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  4. 2019BERTScore: Evaluating Text Generation with BERTcited by 5,462
  5. 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
  6. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  7. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  8. 2021BARTScore: Evaluating Generated Text as Text Generationcited by 719
  9. 2020SummEval: Re-evaluating Summarization Evaluationcited by 666
  10. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
  11. 2022Efficient Training of Language Models to Fill in the Middlecited by 248
  12. 2023Using an LLM to Help With Code Understandingcited by 222
18 more
  1. 2024Granite Code Models: A Family of Open Foundation Models for Code Intelligencecited by 116
  2. 2023Don't Trust ChatGPT when Your Question is not in English: A Study of Multilingual Abilities and Types of LLMscited by 103
  3. 2023CodeBERTScore: Evaluating Code Generation with Pretrained Models of Codecited by 101
  4. 2022Productivity Assessment of Neural Code Completioncited by 97
  5. 2022Reading Between the Lines: Modeling User Behavior and Costs in AI-Assisted Programmingcited by 91
  6. 2023A Large-Scale Survey on the Usability of AI Programming Assistants: Successes and Challengescited by 75
  7. 2024Bugs in Large Language Models Generated Code: An Empirical Studycited by 59
  8. 2023Large Language Models Only Pass Primary School Exams in Indonesia: A Comprehensive Test on IndoMMLUcited by 53
  9. 2021Perturbation CheckLists for Evaluating NLG Evaluation Metricscited by 49
  10. 2022CodeFill: Multi-token Code Completion by Jointly Learning from Structure and Naming Sequencescited by 49
  11. 2023Evaluating Evaluation Metrics: A Framework for Analyzing NLG Evaluation Metrics using Measurement Theorycited by 41
  12. 2024Can LLMs Replace Manual Annotation of Software Engineering Artifacts?cited by 40
  13. 2024Language Models for Code Completion: A Practical Evaluationcited by 38
  14. 2024Reproducibility in Machine Learning-based Research: Overview, Barriers and Driverscited by 34
  15. 2024Evaluating the Effectiveness of LLMs in Introductory Computer Science Education: A Semester-Long Field Studycited by 26
  16. 2024Exploring Multi-Lingual Bias of Large Code Models in Code Generationcited by 17
  17. 2022Chinese Idiom Paraphrasingcited by 5
  18. 2023On the Impact of Language Selection for Training and Evaluating Programming Language Modelscited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 2.

2 papers.