Contrastive Learning for API Aspect Analysis

G. M. Shahariar, Tahmid Hasan, Anindya Iqbal, Gias Uddin
7/31/2023
cs.SEcs.AIcs.CL

No confident code implementation found for this paper.

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

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{shahariar2023contrastive,
  title  = {Contrastive Learning for API Aspect Analysis},
  author = {G. M. Shahariar and Tahmid Hasan and Anindya Iqbal and Gias Uddin},
  year   = {2023},
  eprint = {2307.16878},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.16878v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.16878.svg)](https://codeofpaper.com/paper/2307.16878)

Discussion