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

用于 API 方面分析的对比学习

Contrastive Learning for API Aspect Analysis

Ahsanullah University of Science and Technology(阿赫桑乌拉科技大学);Bangladesh University of Engineering and Technology(孟加拉国工程技术大学);York University(约克大学)

G. M. Shahariar, Tahmid Hasan, Anindya Iqbal, Gias Uddin

AI总结:

本文提出 CLAA,用有监督对比损失训练 transformer 以检测 API 评论方面,并在 Stack Overflow 数据和开发者研究中验证其优于 SOTA。

摘要:

我们提出了一种名为 CLAA 的新颖方法,用于 API 评论中的 API 方面检测,该方法利用以有监督对比损失目标函数训练的 transformer 模型。我们通过性能分析和影响分析评估 CLAA。在性能分析方面,我们使用了一个从 Stack Overflow 收集的开发者讨论基准数据集,并将结果与使用最先进 transformer 模型获得的结果进行比较。实验表明,对比学习能够显著提升 transformer 模型在检测 Performance、Security、Usability 和 Documentation 等方面时的性能。在影响分析方面,我们开展了实证研究和开发者研究。在随机选取并人工标注的 200 条在线评论上,CLAA 达到 92% 的准确率,而 SOTA 基线达到 81.5%。根据涉及 10 名参与者的开发者研究,使用“Stack Overflow + CLAA”提高了 API 选择过程中的准确率和信心。复现包:https://github.com/disa-lab/Contrastive-Learning-API-Aspect-ASE2023

英文摘要:

We present a novel approach - CLAA - for API aspect detection in API reviews that utilizes transformer models trained with a supervised contrastive loss objective function. We evaluate CLAA using performance and impact analysis. For performance analysis, we utilized a benchmark dataset on developer discussions collected from Stack Overflow and compare the results to those obtained using state-of-the-art transformer models. Our experiments show that contrastive learning can significantly improve the performance of transformer models in detecting aspects such as Performance, Security, Usability, and Documentation. For impact analysis, we performed empirical and developer study. On a randomly selected and manually labeled 200 online reviews, CLAA achieved 92% accuracy while the SOTA baseline achieved 81.5%. According to our developer study involving 10 participants, the use of 'Stack Overflow + CLAA' resulted in increased accuracy and confidence during API selection. Replication package: https://github.com/disa-lab/Contrastive-Learning-API-Aspect-ASE2023

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

↑