arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2209.12065cs.SEcs.CL
收藏

Transformer模型能否有效检测StackOverflow讨论中的软件方面?

Can Transformer Models Effectively Detect Software Aspects in StackOverflow Discussion?

Ahsanullah University of Science and Technology(阿萨努拉科技大学)

Nibir Chandra Mandal, Tashreef Muhammad, G. M. Shahariar

AI总结:

针对开发者难从社区讨论中快速定位软件关键特性的问题,本文用Opiner数据集测试多种Transformer模型的软件方面检测性能,发现多数场景下优于SVM基线,但部分方面检测效果差,且大架构表现不如小架构。

摘要:

目前有数十种新工具和技术被引入以辅助开发者,但这反而让他们陷入难以抉择的困扰:例如开发者至少有十种框架可用于Web应用开发,如何选出最符合自身需求的框架成了难题。因此开发者不断搜寻各类API、框架、工具等的全部优缺点,常用方法之一是通过官方文档和讨论梳理所有特性,但这种方法耗时较长,往往难以确定哪些方面对特定开发者最重要,也无法判断某个方面是否对整个社区重要。本文使用从StackOverflow帖子收集的基准API方面数据集Opiner,研究了Transformer模型(BERT、RoBERTa、DistilBERT和XLNet)在文本开发者讨论中检测软件方面的性能,并与基线支持向量机(SVM)模型进行对比。通过大量实验我们发现,对于大多数方面,即“性能(Performance)”“安全性(Security)”“可用性(Usability)”“文档(Documentation)”“缺陷(Bug)”“法律(Legal)”“仅情感(OnlySentiment)”和“其他(Others)”,Transformer模型的表现优于基线SVM。但模型无法准确识别部分方面(如“社区(Community)”和“可移植性(Potability)”),且其性能因方面不同而存在差异。此外,与DistilBERT这类较小架构相比,XLNet这类更大的架构在解读软件方面时效果不佳。

英文摘要:

Dozens of new tools and technologies are being incorporated to help developers, which is becoming a source of consternation as they struggle to choose one over the others. For example, there are at least ten frameworks available to developers for developing web applications, posing a conundrum in selecting the best one that meets their needs. As a result, developers are continuously searching for all of the benefits and drawbacks of each API, framework, tool, and so on. One of the typical approaches is to examine all of the features through official documentation and discussion. This approach is time-consuming, often makes it difficult to determine which aspects are the most important to a particular developer and whether a particular aspect is important to the community at large. In this paper, we have used a benchmark API aspects dataset (Opiner) collected from StackOverflow posts and observed how Transformer models (BERT, RoBERTa, DistilBERT, and XLNet) perform in detecting software aspects in textual developer discussion with respect to the baseline Support Vector Machine (SVM) model. Through extensive experimentation, we have found that transformer models improve the performance of baseline SVM for most of the aspects, i.e., `Performance', `Security', `Usability', `Documentation', `Bug', `Legal', `OnlySentiment', and `Others'. However, the models fail to apprehend some of the aspects (e.g., `Community' and `Potability') and their performance varies depending on the aspects. Also, larger architectures like XLNet are ineffective in interpreting software aspects compared to smaller architectures like DistilBERT.

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

↑