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

一种调查软件仓库中AI模式流行度的方法论

A Methodology for Investigating AI Patterns Prevalence in Software Repositories

WSO2;University of Stuttgart(斯图加特大学)

Srinath Perera, Hasinthaka Piyumal, Frank Leymann, Rania Khalaf

AI总结:

提出一种通过文献挖掘识别AI模式、利用主动学习验证其在代码仓库中流行度的方法论,在14个模式类中评估了最常见模式的流行度,分类准确率达56%。

摘要:

随着基于人工智能(AI)的应用兴起,对AI模式的清晰理解可以提升AI应用的质量。文献中提出了许多AI模式;然而,它们在真实代码中的流行度尚未得到验证。理解这些模式在实际中的使用情况可以澄清我们对这些模式重要性和实用性的理解。在本文中,我们提出了一种方法论:a) 通过挖掘文献来识别相关模式,然后b) 使用主动学习验证它们在实际代码仓库中的存在和流行度。为此,我们通过挖掘44个已发表的AI模式相关来源,识别出14个AI模式类。然后,我们使用主动学习方法来确定最常见模式类在100个GitHub开源AI仓库中的流行度。通过流行度估计,我们提出了出现次数的准确性界限。该模型在8分类任务中实现了56%的准确率和55%的召回率,显著优于11%的随机基线。此外,流行度估计为分析模式应用提供了可用的界限。该方法论为开始理解AI模式如何在实践中使用提供了坚实的基础,而这一领域目前缺乏经验数据。

英文摘要:

As Artificial Intelligence(AI)-based applications take off, a clear understanding of AI patterns can uplift the quality of AI applications. Many AI patterns have been proposed in the literature; however, their prevalence in real-life code has not yet been validated. Understanding the actual use of those patterns in practice can clarify our understanding both of the significance of these patterns and their utility. In this paper, we present a methodology to a) identify relevant patterns by mining the literature and then to b) validate their presence and prevalence in actual code repositories using active learning. To that end, we identify 14 AI pattern classes by mining 44 published AI pattern-related sources. Then we use an active learning approach to determine the prevalence of the most common pattern class across 100 GitHub open AI repositories. Using prevalence estimation, we propose bounds on the accuracy of the occurrences. The model achieves 56\% accuracy and 55\% recall in an 8-way classification task, significantly outperforming the 11\% random-chance baseline. Furthermore, the prevalence estimation offers usable bounds for analyzing pattern applications. This methodology provides a robust foundation to start understanding how AI patterns are used in practice, a field that currently lacks empirical data.

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

↑