paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Contrastive Learning for API Aspect Analysis

面向 API 方面分析的对比学习
ASE 2023 38th IEEE/ACM International Conference on Automated Software Engineering (ASE)2023匹配度 2/10 · 该论文将对比学习与 Transformer 用于 API 评论中的关注点检测,属于 NLP/开发者工具方向的 ML+PL 应用,但与用户关注的静态分析、Agentic 程序分析、LLM 辅助形式化验证、浮点程序分析及贝叶斯程序分析均无直接关系。其核心是提升文本分类效果,而非分析程序语义或验证程序性质。引用 2 inbox
G. M. Shahariar, Tahmid Hasan, Anindya Iqbal, Gias Uddin
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:提出 CLAA,用监督对比学习训练 Transformer,显著提升 API 评论中性能、安全、可用性、文档等关注点的检测效果。

论文针对 API 评论中自动识别开发者关注点(如性能、安全、可用性、文档)的任务,提出 CLAA 方法:以 Transformer 模型为基础,采用监督对比学习目标进行训练,使同一方面的表示更聚合、不同方面更可分。评估包括性能与影响分析:在 Stack Overflow 开发者讨论基准数据集上与 SOTA Transformer 比较,CLAA 在多个方面检测上显著提升;在随机抽取并人工标注的 200 条在线评论上达到 92% 准确率,而 SOTA 基线为 81.5%。10 名开发者参与的研究显示,Stack Overflow+CLAA 能提高 API 选择时的准确性与信心。

问题
如何从 API 评论或开发者讨论中自动检测性能、安全、可用性、文档等 API 方面,并辅助开发者选择 API。
方法
提出 CLAA,使用监督对比损失训练 Transformer 模型,使不同 API 方面的表示更具区分度。
评估
在 Stack Overflow 基准数据集上与 SOTA Transformer 比较,并在 200 条人工标注评论及 10 人开发者研究中评估准确率与 API 选择体验。
原文摘要(Abstract)

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.

链接与引用

DOI 原文 · arXiv · PDF(开放获取) · DBLP

BibTeX
@inproceedings{ShahariarHIU23,
  title = {Contrastive Learning for API Aspect Analysis},
  author = {G. M. Shahariar and Tahmid Hasan and Anindya Iqbal and Gias Uddin},
  booktitle = {ASE},
  year = {2023},
  doi = {10.1109/ase56229.2023.00064}
}