Supporting Software Maintenance with Dynamically Generated Document Hierarchies

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Dearstyne, Katherine R., Rodriguez, Alberto D., Cleland-Huang, Jane
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913465529008128
author Dearstyne, Katherine R.
Rodriguez, Alberto D.
Cleland-Huang, Jane
author_facet Dearstyne, Katherine R.
Rodriguez, Alberto D.
Cleland-Huang, Jane
contents Software documentation supports a broad set of software maintenance tasks; however, creating and maintaining high-quality, multi-level software documentation can be incredibly time-consuming and therefore many code bases suffer from a lack of adequate documentation. We address this problem through presenting HGEN, a fully automated pipeline that leverages LLMs to transform source code through a series of six stages into a well-organized hierarchy of formatted documents. We evaluate HGEN both quantitatively and qualitatively. First, we use it to generate documentation for three diverse projects, and engage key developers in comparing the quality of the generated documentation against their own previously produced manually-crafted documentation. We then pilot HGEN in nine different industrial projects using diverse datasets provided by each project. We collect feedback from project stakeholders, and analyze it using an inductive approach to identify recurring themes. Results show that HGEN produces artifact hierarchies similar in quality to manually constructed documentation, with much higher coverage of the core concepts than the baseline approach. Stakeholder feedback highlights HGEN's commercial impact potential as a tool for accelerating code comprehension and maintenance tasks. Results and associated supplemental materials can be found at https://zenodo.org/records/11403244
format Preprint
id arxiv_https___arxiv_org_abs_2408_05829
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Supporting Software Maintenance with Dynamically Generated Document Hierarchies
Dearstyne, Katherine R.
Rodriguez, Alberto D.
Cleland-Huang, Jane
Software Engineering
Software documentation supports a broad set of software maintenance tasks; however, creating and maintaining high-quality, multi-level software documentation can be incredibly time-consuming and therefore many code bases suffer from a lack of adequate documentation. We address this problem through presenting HGEN, a fully automated pipeline that leverages LLMs to transform source code through a series of six stages into a well-organized hierarchy of formatted documents. We evaluate HGEN both quantitatively and qualitatively. First, we use it to generate documentation for three diverse projects, and engage key developers in comparing the quality of the generated documentation against their own previously produced manually-crafted documentation. We then pilot HGEN in nine different industrial projects using diverse datasets provided by each project. We collect feedback from project stakeholders, and analyze it using an inductive approach to identify recurring themes. Results show that HGEN produces artifact hierarchies similar in quality to manually constructed documentation, with much higher coverage of the core concepts than the baseline approach. Stakeholder feedback highlights HGEN's commercial impact potential as a tool for accelerating code comprehension and maintenance tasks. Results and associated supplemental materials can be found at https://zenodo.org/records/11403244
title Supporting Software Maintenance with Dynamically Generated Document Hierarchies
topic Software Engineering
url https://arxiv.org/abs/2408.05829