paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Insights into the Generalizability and Robustness of AI-Driven Code Comment Generation: A Replication Study

AI 驱动代码注释生成的泛化性与鲁棒性洞察:一项复现研究
FSE Proceedings of the 33rd ACM International Conference on the Foundations of Software Engineering2025匹配度 2/10 · 该论文研究AI驱动的代码注释生成及其复现/泛化性,属于AI4SE方向,但并未涉及静态分析、Agentic程序、浮点程序分析或贝叶斯程序分析等用户核心方向,仅有LLM+软件工程的弱关联。引用 1 inbox
Eray Erer, Turgay Aytac, Aysun Bozanta, Ayse Basar
crossref: 2026-09-12

AI 速览

一句话:复现 LAMNER 代码注释生成实验,并通过新数据集与 Chatbot Arena 评估检验其泛化性与鲁棒性。

在软件开发中,清晰注释对可读性与可维护性至关重要,而基于大语言模型的自动注释生成虽具潜力,其可靠性与泛化性仍需严格复现验证。本文复现 LAMNER(基于字符语言模型与命名实体识别的代码注释生成)的主要实验,沿用原始实验设置,并扩展评估:在另一个代码摘要数据集上测试,并采用 Chatbot Arena 式方法进行补充评价,以考察模型的泛化能力。研究发现,复现结果与原文报告不一致,且性能随数据集选择而变化。该工作揭示了 AI 驱动代码文档生成技术的鲁棒性差异,并讨论了复现此类技术时面临的挑战。

问题
大语言模型在代码注释生成上表现良好,但已有方法(如 LAMNER)的可靠性、泛化性与鲁棒性缺乏独立复现验证。
方法
复现 LAMNER 原始实验,并在替代代码摘要数据集上测试,同时引入 Chatbot Arena 式评估方法。
评估
对比复现结果与原文报告,分析不同数据集下的性能变化,并讨论复现 AI 驱动代码文档技术的挑战。
原文摘要(Abstract)

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.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot8938,
  title = {Insights into the Generalizability and Robustness of AI-Driven Code Comment Generation: A Replication Study},
  author = {Eray Erer and Turgay Aytac and Aysun Bozanta and Ayse Basar},
  booktitle = {FSE},
  year = {2025},
  doi = {10.1145/3696630.3728722}
}