arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.00489cs.SE
收藏

我的 README 文件需要更新吗?探索基于 LLM 的 README 维护

Does My README File Need To Be Updated? Exploring LLM-Based README Maintenance

University of Melbourne(墨尔本大学);Chalmers University of Technology(查尔姆斯理工大学);University of Gothenburg(哥德堡大学);Singapore Management University(新加坡管理大学)

Haoyu Gao, Hong Yi Lin, Christoph Treude, Gregory Gay, Mansooreh Zahedi

AI总结:

本文提出了一种基于 LLM 的轻量级方法,用于在人机协作流程中精准更新 README 文件,以解决文档过时问题,并通过实验验证其有效性。

摘要:

README 文件是获取开源软件(OSS)项目概览和帮助开发人员上手的关键信息源。然而,文档问题依然存在;特别是「过时」的文档被开发人员视为获取项目理解中最频繁且严重的挑战。尽管之前的研究所旨在缓解这一问题,但通常要么依赖于高度工程化的解决方案,专注于特定的代码组件,要么采用生成方法,这些方法在渐进式维护中效果不佳。在本研究中,我们提出了一种轻量级的大型语言模型(LLM)驱动的方法,以在人机协作的工作流中实现精确的、局部化的 README 文件更新。具体而言,给定一个拉取请求(PR),我们的流程确定是否需要更新;如果需要,则确定应应用更新的具体位置,并基于触发事件提供理由。我们对 27,772 个拉取请求在 714 个流行仓库中的评估显示了高精度和实用性。此外,我们进行了定性失败案例分析,以提供更深入的见解和改进方向。我们还对 20 个采样仓库进行了回顾研究,并辅以一个大型 OSS 项目的开发人员案例研究。这些评估表明,该工具能够有效识别需要 README 更新的被忽视的拉取请求,从而帮助缓解过时文档的风险。最后,我们为实践者和研究人员提供了具体的启示,强调需要进一步探索有效的交互模式,以将文档更新工具纳入 OSS 开发工作流中。

英文摘要:

README files are critical for understanding and onboarding contributors to open-source software, yet they frequently become outdated. We formulate surgical documentation update recommendation as a task and present a Large Language Model-driven framework for use in a human-in-the-loop workflow. Given a pull request, the framework determines whether a README update is needed, identifies where changes should be made, and explains the triggering events. We evaluate the framework on 25,511 pull requests from 714 popular repositories. Its best configuration recovers half of the pull requests historically accompanied by README updates and achieves 28% user-facing accuracy under the observed prevalence of such updates. A qualitative failure analysis further identifies opportunities for improvement. We also conduct a retrospective study of 20 sampled repositories and a case study with a developer from a large open-source project. Manual annotation shows that 21.5% of temporally matched recommendations identify updates overlooked by developers, or 6.1% under the most conservative interpretation. These results suggest that the reported user-facing accuracy is a lower bound on likely deployment performance. Finally, we discuss implications for integrating documentation update tools into open-source development workflows.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑