Impact of Comments on LLM Comprehension of Legacy Code
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) have been increasingly integrated into software engineering and maintenance tasks due to their high performance with software engineering tasks and robust understanding of modern programming languages. However, the ability of LLMs to comprehend code written with legacy languages remains a research gap challenged by real-world legacy systems lacking or containing inaccurate documentation that may impact LLM comprehension. To assess LLM comprehension of legacy languages, there is a need for objective LLM evaluation. In order to objectively measure LLM comprehension of legacy languages, we need an efficient, quantitative evaluation method. We leverage multiple-choice question answering (MCQA), an emerging LLM evaluation methodology, to evaluate LLM comprehension of legacy code and the impact of comment prevalence and inaccurate comments. In this work, we present preliminary findings on the impact of documentation on LLM comprehension of legacy code and outline strategic objectives for future work.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 12 of its 15 references that are in the map. First posted on arXiv 23 Apr 2025.
Builds on
12 of 15 references.
References · 12
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2023Using an LLM to Help With Code Understandingcited by 228
- 2023Large Language Models for Software Engineering: Survey and Open Problemscited by 181
- 2024DebugBench: Evaluating Debugging Capability of Large Language Modelscited by 76
- 2024Can multiple-choice questions really be useful in detecting the abilities of LLMs?cited by 69
- 2023Comparing Code Explanations Created by Students and Large Language Modelscited by 64
- 2022Automatic Code Documentation Generation Using GPT-3cited by 37
- 2024LLMs May Perform MCQA by Selecting the Least Incorrect Optioncited by 33
- 2024Multiple-Choice Questions are Efficient and Robust LLM Evaluatorscited by 28
- 2023A Comparative Analysis of Large Language Models for Code Documentation Generationcited by 24
- 2024Debugging with Open-Source Large Language Models: An Evaluationcited by 7
- 2024Leveraging LLMs for Legacy Code Modernization: Challenges and Opportunities for LLM-Generated Documentationcited by 6
Built on by
Citing papers per year: 2026: 1.
1 paper.