mlsanityData to 14 Oct 2026

Sentiment Analysis in Software Engineering: Evaluating Generative Pre-trained Transformers

arXiv 2505.14692 ↗First posted 22 Apr 2025cs.SE cs.CL cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Sentiment analysis plays a crucial role in understanding developer interactions, issue resolutions, and project dynamics within software engineering (SE). While traditional SE-specific sentiment analysis tools have made significant strides, they often fail to account for the nuanced and context-dependent language inherent to the domain. This study systematically evaluates the performance of bidirectional transformers, such as BERT, against generative pre-trained transformers, specifically GPT-4o-mini, in SE sentiment analysis. Using datasets from GitHub, Stack Overflow, and Jira, we benchmark the models' capabilities with fine-tuned and default configurations. The results reveal that fine-tuned GPT-4o-mini performs comparable to BERT and other bidirectional models on structured and balanced datasets like GitHub and Jira, achieving macro-averaged F1-scores of 0.93 and 0.98, respectively. However, on linguistically complex datasets with imbalanced sentiment distributions, such as Stack Overflow, the default GPT-4o-mini model exhibits superior generalization, achieving an accuracy of 85.3% compared to the fine-tuned model's 13.1%. These findings highlight the trade-offs between fine-tuning and leveraging pre-trained models for SE tasks. The study underscores the importance of aligning model architectures with dataset characteristics to optimize performance and proposes directions for future research in refining sentiment analysis tools tailored to the SE domain.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 11 of its 24 references that are in the map. First posted on arXiv 22 Apr 2025.

Builds on

11 of 24 references.

References · 11

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  3. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
  4. 2020Pre-trained Models for Natural Language Processing: A Surveycited by 505
  5. 2018A Benchmark Study on Sentiment Analysis for Software Engineering Researchcited by 14
  6. 2017Sentiment Polarity Detection for Software Developmentcited by 12
  7. 2017EmoTxt: A Toolkit for Emotion Recognition from Textcited by 9
  8. 2020Can We Use SE-specific Sentiment Analysis Tools in a Cross-Platform Setting?cited by 7
  9. 2018A Gold Standard for Emotion Annotation in Stack Overflowcited by 4
  10. 2018Expressions of Sentiments During Code Reviews: Male vs. Femalecited by 3
  11. 2025Sentiment Analysis Tools in Software Engineering: A Systematic Mapping Studycited by 2

Built on by

Not cited yet.