重新审视大规模语言模型时代软件工程中的情感分析
Revisiting Sentiment Analysis for Software Engineering in the Era of Large Language Models
AI总结:
本文研究了大规模语言模型在解决软件工程任务中标注数据不足问题的效果,比较了大模型与微调小模型在零样本和少样本场景下的表现。
摘要:
软件开发涉及多方在不同平台上的互动,识别这些互动中的情感对于软件系统的有效开发和持续维护至关重要。对用户反馈进行情感分析可以提供用户满意度和改进区域的见解,从而指导未来更新和功能开发。然而,准确识别软件工程数据集中的情感仍具挑战性。本文研究了更大规模的语言模型(bLLMs)在解决标注数据不足问题上的效果,通过五个已建立的数据集评估了三个开源bLLMs在零样本和少样本场景下的表现,并将其与微调的小规模语言模型(sLLMs)进行比较。实验结果表明,bLLMs在训练数据有限和分布不平衡的数据集上表现出最先进的性能,在零样本设置下也能取得优异成绩。然而,当有充足训练数据或数据集分布更平衡时,微调的小规模语言模型仍能取得更优的结果。
英文摘要:
Software development involves collaborative interactions where stakeholders express opinions across various platforms. Recognizing the sentiments conveyed in these interactions is crucial for the effective development and ongoing maintenance of software systems. For software products, analyzing the sentiment of user feedback, e.g., reviews, comments, and forum posts can provide valuable insights into user satisfaction and areas for improvement. This can guide the development of future updates and features. However, accurately identifying sentiments in software engineering datasets remains challenging. This study investigates bigger large language models (bLLMs) in addressing the labeled data shortage that hampers fine-tuned smaller large language models (sLLMs) in software engineering tasks. We conduct a comprehensive empirical study using five established datasets to assess three open-source bLLMs in zero-shot and few-shot scenarios. Additionally, we compare them with fine-tuned sLLMs, using sLLMs to learn contextual embeddings of text from software platforms. Our experimental findings demonstrate that bLLMs exhibit state-of-the-art performance on datasets marked by limited training data and imbalanced distributions. bLLMs can also achieve excellent performance under a zero-shot setting. However, when ample training data is available or the dataset exhibits a more balanced distribution, fine-tuned sLLMs can still achieve superior results.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。