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

Colin Diggs, Michael Doyle, Amit Madan, Siggy Scott, Emily Escamilla +16 more
11/22/2024
cs.LGcs.SE

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{diggs2024leveraging,
  title  = {Leveraging LLMs for Legacy Code Modernization: Challenges and Opportunities for LLM-Generated Documentation},
  author = {Colin Diggs and Michael Doyle and Amit Madan and Siggy Scott and Emily Escamilla and Jacob Zimmer and Naveed Nekoo and Paul Ursino and Michael Bartholf and Zachary Robin and Anand Patel and Chris Glasz and William Macke and Paul Kirk and Jasper Phillips and Arun Sridharan and Doug Wendt and Scott Rosen and Nitin Naik and Justin F. Brunelle and Samruddhi Thaker},
  year   = {2024},
  eprint = {2411.14971},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.14971v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.14971.svg)](https://codeofpaper.com/paper/2411.14971)

Discussion