Contrastive Learning for API Aspect Analysis
Not on the map. Why?
Abstract (arXiv)
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
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 23 of its 43 references that are in the map. First posted on arXiv 31 Jul 2023.
Builds on
23 of 43 references.
References · 23
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,040
- 2020Supervised Contrastive Learningcited by 2,803
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
- 2017Supervised Learning of Universal Sentence Representations from Natural Language Inference Datacited by 428
- 2020Contrastive Code Representation Learningcited by 76
- 2021SynCoBERT: Syntax-Guided Multi-Modal Contrastive Pre-Training for Code Representationcited by 63
- 2020PyTorch Metric Learningcited by 57
11 more
- 2020Self-Supervised Contrastive Learning for Code Retrieval and Summarization via Semantic-Preserving Transformationscited by 49
- 2020Code and Named Entity Recognition in StackOverflowcited by 39
- 2022CODE-MVP: Learning to Represent Source Code from Multiple Views with Contrastive Pre-Trainingcited by 15
- 2021VarCLR: Variable Semantic Representation Pre-training via Contrastive Learningcited by 11
- 2021Understanding How and Why Developers Seek and Analyze API-related Opinionscited by 4
- 2022HELoC: Hierarchical Contrastive Learning of Source Code Representationcited by 4
- 2022Aspect-Based API Review Classification: How Far Can Pre-Trained Transformer Model Go?cited by 3
- 2022Evaluating few shot and Contrastive learning Methods for Code Clone Detectioncited by 3
- 2022Contrastive Learning for Multi-Modal Automatic Code Reviewcited by 2
- 2022CLeBPI: Contrastive Learning for Bug Priority Inferencecited by 2
- 2022Can Transformer Models Effectively Detect Software Aspects in StackOverflow Discussion?cited by 1
Built on by
Not cited yet.