mlsanityData to 14 Oct 2026

Leveraging LLMs for Legacy Code Modernization: Challenges and Opportunities for LLM-Generated Documentation

arXiv 2411.14971 ↗First posted 22 Nov 2024cs.LG cs.SEcited by 6

Not on the map. Why?

Abstract (arXiv)

Legacy software systems, written in outdated languages like MUMPS and mainframe assembly, pose challenges in efficiency, maintenance, staffing, and security. While LLMs offer promise for modernizing these systems, their ability to understand legacy languages is largely unknown. This paper investigates the utilization of LLMs to generate documentation for legacy code using two datasets: an electronic health records (EHR) system in MUMPS and open-source applications in IBM mainframe Assembly Language Code (ALC). We propose a prompting strategy for generating line-wise code comments and a rubric to evaluate their completeness, readability, usefulness, and hallucination. Our study assesses the correlation between human evaluations and automated metrics, such as code complexity and reference-based metrics. We find that LLM-generated comments for MUMPS and ALC are generally hallucination-free, complete, readable, and useful compared to ground-truth comments, though ALC poses challenges. However, no automated metrics strongly correlate with comment quality to predict or measure LLM performance. Our findings highlight the limitations of current automated measures and the need for better evaluation metrics for LLM-generated documentation in legacy systems.

Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 11 of its 64 references that are in the map. First posted on arXiv 22 Nov 2024.

Builds on

11 of 64 references.

References · 11

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  2. 2021On the Opportunities and Risks of Foundation Modelscited by 4,033
  3. 2024Parameter-Efficient Fine-Tuning for Large Models: A Comprehensive Surveycited by 656
  4. 2023Reasoning or Reciting? Exploring the Capabilities and Limitations of Language Models Through Counterfactual Taskscited by 246
  5. 2024Leveraging Large Language Models for NLG Evaluation: Advances and Challengescited by 37
  6. 2023Evaluating Code Summarization Techniques: A New Metric and an Empirical Characterizationcited by 21
  7. 2019Automatic Code Summarization: A Systematic Literature Reviewcited by 18
  8. 2019Towards Neural Decompilationcited by 15
  9. 2024Verified Code Transpilation with LLMscited by 15
  10. 2023Neural Machine Translation for Code Generationcited by 3
  11. 2019A Neural-based Program Decompilercited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 5; 2026: 1.

6 papers.