Insights into the Generalizability and Robustness of AI-Driven Code Comment Generation: A Replication Study
In the software development life cycle (SDLC), clear and comprehensive code comments play a critical role in improving code readability, maintainability, and collaboration among developers. As software complexity increases, automated code comment generation is one of the solutions to reduce the burden of documentation while ensuring code understandability. With the rise of generative AI, large language models (LLMs) have demonstrated significant potential in generating high-quality context-sensitive code comments. However, validating the reliability and generalizability of these models requires rigorous replication studies. In this paper, we replicate the results of LAMNER: Code Comment Generation Using Character Language Model and Named Entity Recognition [17]. We replicate the main experiment using the original research setup and extend the evaluation by testing on an alternative code summarization dataset and employing an additional evaluation method that is Chatbox Arena methodology to assess generalizability. Our study provides insights into the robustness of the LAMNER model, compares replicated results with the original reported findings, and highlights challenges in replicating AI-driven code documentation techniques. We observed results that differ from those reported in the original article, with performance varying depending on the choice of data set.
Authors
- Aysun Bozanta (ORCID: https://orcid.org/0000-0002-1768-6278)
- Ayşe Bener (ORCID: https://orcid.org/0000-0003-4934-8326)
- Eray Erer
- Turgay Aytac
Institutions
- Türkisch-Deutsche Universität (TR)
- Boğaziçi University (TR)
- Toronto Metropolitan University (CA)
Publication Details
- Published
- 2025-06-23
- DOI
- https://doi.org/10.1145/3696630.3728722
- Citations
- 1
- Primary Topic
- Topic Modeling
- Type
- article
- Field-Weighted Citation Impact
- 2.48