Sentiment analysis for software engineering: How far can zero-shot learning (ZSL) go?
Not on the map. Why?
Abstract (arXiv)
Sentiment analysis in software engineering focuses on understanding emotions expressed in software artifacts. Previous research highlighted the limitations of applying general off-the-shelf sentiment analysis tools within the software engineering domain and indicated the need for specialized tools tailored to various software engineering contexts. The development of such tools heavily relies on supervised machine learning techniques that necessitate annotated datasets. Acquiring such datasets is a substantial challenge, as it requires domain-specific expertise and significant effort. Objective: This study explores the potential of ZSL to address the scarcity of annotated datasets in sentiment analysis within software engineering Method:} We conducted an empirical experiment to evaluate the performance of various ZSL techniques, including embedding-based, NLI-based, TARS-based, and generative-based ZSL techniques. We assessed the performance of these techniques under different labels setups to examine the impact of label configurations. Additionally, we compared the results of the ZSL techniques with state-of-the-art fine-tuned transformer-based models. Finally, we performed an error analysis to identify the primary causes of misclassifications. Results: Our findings demonstrate that ZSL techniques, particularly those combining expert-curated labels with embedding-based or generative-based models, can achieve macro-F1 scores comparable to fine-tuned transformer-based models. The error analysis revealed that subjectivity in annotation and polar facts are the main contributors to ZSL misclassifications. Conclusion: This study demonstrates the potential of ZSL for sentiment analysis in software engineering. ZSL can provide a solution to the challenge of annotated dataset scarcity by reducing reliance on annotated dataset.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 14 of its 41 references that are in the map. First posted on arXiv 15 Apr 2026.
Builds on
14 of 41 references.
References · 14
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Benchmarking Zero-shot Text Classification: Datasets, Evaluation and Entailment Approachcited by 308
- 2018The Impact of Automated Parameter Optimization on Defect Prediction Modelscited by 38
- 2018A Benchmark Study on Sentiment Analysis for Software Engineering Researchcited by 14
- 2023Revisiting Sentiment Analysis for Software Engineering in the Era of Large Language Modelscited by 13
- 2017Sentiment Polarity Detection for Software Developmentcited by 12
- 2021BERT-Based Sentiment Analysis: A Software Engineering Perspectivecited by 9
- 2023Zero-Shot Learning for Requirements Classification: An Exploratory Studycited by 9
- 2020Can We Use SE-specific Sentiment Analysis Tools in a Cross-Platform Setting?cited by 7
- 2022Data Augmentation for Improving Emotion Recognition in Software Engineering Communicationcited by 5
- 2021Development and Application of Sentiment Analysis Tools in Software Engineering: A Systematic Literature Reviewcited by 3
- 2021An Empirical Study of the Effectiveness of an Ensemble of Stand-alone Sentiment Detection Tools for Software Engineering Datasetscited by 3
Built on by
Not cited yet.