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

一种从问题日志中自动挖掘设计信息的新方法

A Novel Approach for Automated Design Information Mining from Issue Logs

Jiuang Zhao, Zitian Yang, Li Zhang, Xiaoli Lian, Donghao Yang

AI总结:

本文提出DRMiner方法,通过将问题分解为多个文本分类任务并利用语言模型提示微调,从开源社区问题日志中自动挖掘设计理由,F1分数达65%超越GPT-4.0,并显著提升自动程序修复效果。

摘要:

软件架构通常经过精心设计,以解决多个质量关注点并支持长期维护。然而,由于开发者记录设计理由(即做出或拒绝决策的设计备选方案及其背后论点)的成本与价值之间存在不平衡,这些理由往往过时甚至缺失。设计知识的缺乏促使近年来许多研究从各种平台中提取设计信息。遗憾的是,尽管开源社区等平台提供了与设计信息相关的丰富讨论记录,但由于讨论语义复杂以及缺乏设计理由提取的基准等挑战,现有研究往往忽略了备选方案背后的论点。在本文中,我们提出了一种名为DRMiner的新方法,用于从开源社区(即Jira中的问题日志)中开发者的实时讨论里自动挖掘潜在的设计理由。为了更好地识别解决方案及其支持论点,DRMiner巧妙地将问题分解为多个文本分类任务,并利用语言模型的提示微调以及定制的文本相关特征来解决这些任务。为了评估DRMiner,我们从Jira中的Cassandra、Flink和Solr仓库获取问题日志,然后在严格的方案下进行标注和处理,最终形成了一个用于设计理由挖掘的数据集。实验结果表明,DRMiner在挖掘设计理由方面达到了65%的F1分数,优于所有基线方法,比GPT-4.0提高了7%。此外,我们研究了DRMiner挖掘的设计理由对自动程序修复(APR)的有用性,发现设计理由显著增强了APR,平均实现了14倍的完全匹配修复。

英文摘要:

Software architectures are usually meticulously designed to address multiple quality concerns and support long-term maintenance. However, due to the imbalance between the cost and value for developers to document design rationales (i.e., the design alternatives and the underlying arguments for making or rejecting decisions), these rationales are often obsolete or even missing. The lack of design knowledge has motivated a number of studies to extract design information from various platforms in recent years. Unfortunately, despite the wealth of discussion records related to design information provided by platforms like open-source communities, existing research often overlooks the underlying arguments behind alternatives due to challenges such as the intricate semantics of discussions and the lack of benchmarks for design rationale extraction. In this paper, we propose a novel method, named by DRMiner, to automatically mine latent design rationales from developers' live discussion in open-source community (i.e., issue logs in Jira). To better identify solutions and the arguments supporting them, DRMiner skillfully decomposes the problem into multiple text classification tasks and tackles them using prompt tuning of language models and customized text-related features. To evaluate DRMiner, we acquire issue logs from Cassandra, Flink, and Solr repositories in Jira, and then annotate and process them under a rigorous scheme, ultimately forming a dataset for design rationale mining. Experimental results show that DRMiner achieves an F1 score of 65% for mining design rationales, outperforming all baselines with a 7% improvement over GPT-4.0. Furthermore, we investigate the usefulness of the design rationales mined by DRMiner for automated program repair (APR) and find that the design rationales significantly enhance APR, achieving 14 times higher full-match repairs on average.

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

↑