Code Documentation Generation With BART : A Fine Tuning Approach

This study investigates the application of the BART model, fine-tuned with LoRA+, for the automated generation of Python code documentation. We address the growing complexity of software systems and the critical role of code documentation in enhancing software comprehension and maintenance. We highlight the challenges of manual code commenting, such as its tediousness and error-prone nature, which often leads to incomplete or outdated documentation. To tackle these issues, the research explores the potential of automatic code documentation generation using pre-trained transformer models. However, the high computational resources required by many of these models pose a limitation for developers with constrained hardware. To mitigate this, we employ Low-Rank Adaptation (LoRA+), a technique designed to fine-tune large models efficiently and reduce computational overhead. The study evaluates the effectiveness of fine-tuning BART with LoRA+ for Python code documentation generation, comparing its performance with state-of-the-art models like CodeT5+ and StarCoder. The evaluation utilizes metrics such as BLEU and BERTScore to assess the quality of the generated documentation.

Authors

Institutions

Publication Details

Journal
Procedia Computer Science
Published
2025-01-01
DOI
https://doi.org/10.1016/j.procs.2025.09.073
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Code Documentation Generation With BART : A Fine Tuning Approach

Kenny Jingga, Jeklin Harefa, Tatang Herman, Graceila Natasya et al.
Procedia Computer Science
Software Engineering Research
article

Code Documentation Generation With BART : A Fine Tuning Approach

Kenny Jingga, Jeklin Harefa, Tatang Herman, Graceila Natasya, Stephen Christian Augustien
article en

Abstract

This study investigates the application of the BART model, fine-tuned with LoRA+, for the automated generation of Python code documentation. We address the growing complexity of software systems and the critical role of code documentation in enhancing software comprehension and maintenance. We highlight the challenges of manual code commenting, such as its tediousness and error-prone nature, which often leads to incomplete or outdated documentation. To tackle these issues, the research explores the potential of automatic code documentation generation using pre-trained transformer models. However, the high computational resources required by many of these models pose a limitation for developers with constrained hardware. To mitigate this, we employ Low-Rank Adaptation (LoRA+), a technique designed to fine-tune large models efficiently and reduce computational overhead. The study evaluates the effectiveness of fine-tuning BART with LoRA+ for Python code documentation generation, comparing its performance with state-of-the-art models like CodeT5+ and StarCoder. The evaluation utilizes metrics such as BLEU and BERTScore to assess the quality of the generated documentation.

Procedia Computer ScienceVol. 269
Binus University (ID)
Openalex Percentile: Top 53%
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.