Texas Tech University
Dual-Track Generation for Software Requirements and Developer Documentation from Source Code
Abstract
dc:description.abstractAutomated software documentation generation has become an important problem in software engineering due to the increasing scale and complexity of modern codebases. While recent advances in large language models have significantly improved the fluency of generated documentation, existing approaches often struggle to maintain structural correctness. Most code-to-text systems produce a single narrative output that combines interface-level information with descriptive explanations, which frequently leads to omitted parameters, hallucinated identifiers, and inconsistencies with the source code. This thesis proposes a model-agnostic Dual-Track Generation framework for reliable documentation generation from source code. Instead of producing a single textual artifact, the framework generates two coordinated outputs: a structured specification that captures interface-level details such as parameters, return values, and exceptions, and a developer-oriented narrative that describes functionality and usage. The framework integrates three components: Context-Aware Context Packing (CACP+), which selects relevant code spans under token constraints; an Iterative Validator–Refiner (IVR), which validates and corrects structural information; and a Cross-View Consistency Filter (CVF), which enforces agreement between the generated artifacts. The approach is evaluated on Java datasets derived from CodeSearchNet using multiple pretrained models. Results demonstrate improvements in both lexical quality and structural reliability, including higher interface coverage and reduced contradiction rates. These findings indicate that separating structural fidelity from narrative fluency, combined with validation and consistency enforcement, provides a more robust foundation for automated software documentation systems.
Degree
thesis:*- Name thesis:degree_name
- Master of Science
- Discipline thesis:degree_discipline
- Computer Science
- Department thesis:degree_department
- Computer Science
- Grantor
- Texas Tech University
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Saxena, Priyanka
- Chair dc:contributor.committeechair
-
- Sheng, Victor
- Committee member dc:contributor.committeemember
-
- Tiomkin, Stas
- ORCID person:identifier.orcid
Subjects
dc:subject × 9Rights
- Language dc:language.iso
- English
Identifiers
dc:identifier.*- Handle dc:identifier.uri
- https://hdl.handle.net/2346/109272