arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.11005cs.SE
收藏

开源软件中开发者设计理由的自动化提取与分析

Automated Extraction and Analysis of Developer's Rationale in Open Source Software

Mouna Dhaouadi, Bentley Oakes, Michalis Famelis

AI总结:

本研究基于Kantara架构实例化,结合预训练模型与大语言模型提出开源软件开发者设计理由的自动化提取分析方法,可检测推理冲突与设计退化问题,经Linux内核OOM-Killer模块及五个高活项目验证具备可行性与泛化潜力,助力开发者规避变更冲突。

摘要:

开源软件的贡献者必须深入理解项目的历史,才能做出与过往推理不冲突的连贯决策。然而,检查拟议贡献的所有相关变更需要大量人工工作,且此前的研究尚未提出能够揭示和分析这些冲突的自动化机制。在本文中,我们基于Kantara(一种现有的高层理由提取与管理架构)的实例化,提出了这样一种用于理由分析的自动化方法。我们的实现利用了预训练模型和大语言模型(Large Language Models),并包含基于结构的机制,用于检测可能随时间导致项目设计退化的推理冲突和问题。我们使用Linux Kernel项目的OOM-Killer模块验证了我们的提取和分析方法的可行性,并研究了该方法向其他五个高活跃度开源项目的泛化性。结果证实,我们的自动化方法能够以合理的性能支持理由分析,可发现有价值的关联并检测潜在冲突和推理问题。我们还验证了决策句和理由句自动化提取的有效性,以及将其推广到其他开源项目的前景。因此,开源软件开发者可以使用这种自动化方法主动解决隐藏问题,确保新变更不会与过往决策冲突。

英文摘要:

Contributors to open source software must deeply understand a project's history to make coherent decisions which do not conflict with past reasoning. However, inspecting all related changes to a proposed contribution requires intensive manual effort, and previous research has not yet produced an automated mechanism to expose and analyze these conflicts. In this article, we propose such an automated approach for rationale analyses, based on an instantiation of Kantara, an existing high-level rationale extraction and management architecture. Our implementation leverages pre-trained models and Large Language Models, and includes structure-based mechanisms to detect reasoning conflicts and problems which could cause design erosion in a project over time. We show the feasibility of our extraction and analysis approach using the OOM-Killer module of the Linux Kernel project, and investigate the approach's generalization to five other highly active open source projects. The results confirm that our automated approach can support rationale analyses with reasonable performance, by finding interesting relationships and to detect potential conflicts and reasoning problems. We also show the effectiveness of the automated extraction of decision and rationale sentences and the prospects for generalizing this to other open source projects. This automated approach could therefore be used by open source software developers to proactively address hidden issues and to ensure that new changes do not conflict with past decisions.

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

↑