arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.13826cs.SEcs.AI
收藏

软件工程中的情感分析:零样本学习(ZSL)能走多远?

Sentiment analysis for software engineering: How far can zero-shot learning (ZSL) go?

Reem Alfayez;Manal Binkhonain

Reem Alfayez, Manal Binkhonain

AI总结:

本研究探讨了零样本学习在软件工程情感分析中的潜力,通过实验评估不同ZSL技术的效果,并发现结合专家标注标签与嵌入或生成模型的方法可达到与微调Transformer模型相当的性能。

摘要:

软件工程中的情感分析旨在理解软件制品中表达的情绪。先前研究指出,将通用情感分析工具应用于软件工程领域存在局限,并需开发针对不同软件工程情境的专用工具。此类工具的开发严重依赖于监督机器学习技术,需要标注数据集。获取此类数据集是一个重大挑战,因为需要领域专业知识和大量努力。本研究探讨了零样本学习(ZSL)在解决软件工程情感分析中标注数据集稀缺问题的潜力。方法:我们进行了实证实验,评估了各种ZSL技术,包括基于嵌入、自然语言推理、TARS和生成式ZSL技术的性能。我们评估了这些技术在不同标签设置下的表现,以考察标签配置的影响。此外,我们还比较了ZSL技术与最先进的微调Transformer模型的结果。最后,我们进行了错误分析以确定主要的误分类原因。结果:我们的发现表明,ZSL技术,特别是结合专家标注标签与嵌入或生成模型的方法,可以达到与微调Transformer模型相当的宏F1分数。错误分析揭示了标注中的主观性和极性事实是ZSL误分类的主要原因。结论:本研究展示了ZSL在软件工程情感分析中的潜力。ZSL可以通过减少对标注数据集的依赖,为解决标注数据集稀缺问题提供解决方案。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑