arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.09731cs.SE
收藏

使用零样本大语言模型揭示软件开发者沟通中的情绪成因

Uncovering the Causes of Emotions in Software Developer Communication Using Zero-shot LLMs

Mia Mohammad Imran, Preetha Chatterjee, Kostadin Damevski

AI总结:

针对软件工程领域情绪成因识别数据集构建成本高的问题,探究零样本LLM在该任务的表现,验证其识别有效性并通过开源项目案例揭示挫败感相关成因。

摘要:

理解并识别开发者情绪背后的成因(例如由「拉取请求合并延迟」导致的挫败感),对于找到问题解决方案、促进开源社区协作至关重要。要在聊天、邮件、issue评论等不同项目渠道的海量沟通信息中有效识别这类内容,需要自动化的情绪及其成因识别能力。实现这类自动化需要可用于训练精准机器学习模型的大规模软件工程专属数据集,但由于软件项目沟通渠道的多样性与非正式性,构建这类数据集的成本极高。\n本文探究了在海量数据集上预训练、但未针对软件工程领域的情绪成因检测任务做专门微调的零样本LLM:ChatGPT、GPT-4和flan-alpaca。评估结果显示,当提供详细的情绪定义时,这些近期推出的模型可以识别情绪类别,不过表现不及排名顶尖的模型。在情绪成因识别方面,结果表明零样本LLM能够有效识别正确的情绪成因,BLEU-2得分为0.598。为展现这类技术的应用潜力,我们针对一个热门开源项目近一年开发周期内的挫败感成因开展了案例研究,揭示了若干有意思的发现。

英文摘要:

Understanding and identifying the causes behind developers' emotions (e.g., Frustration caused by `delays in merging pull requests') can be crucial towards finding solutions to problems and fostering collaboration in open-source communities. Effectively identifying such information in the high volume of communications across the different project channels, such as chats, emails, and issue comments, requires automated recognition of emotions and their causes. To enable this automation, large-scale software engineering-specific datasets that can be used to train accurate machine learning models are required. However, such datasets are expensive to create with the variety and informal nature of software projects' communication channels. In this paper, we explore zero-shot LLMs that are pre-trained on massive datasets but without being fine-tuned specifically for the task of detecting emotion causes in software engineering: ChatGPT, GPT-4, and flan-alpaca. Our evaluation indicates that these recently available models can identify emotion categories when given detailed emotions, although they perform worse than the top-rated models. For emotion cause identification, our results indicate that zero-shot LLMs are effective at recognizing the correct emotion cause with a BLEU-2 score of 0.598. To highlight the potential use of these techniques, we conduct a case study of the causes of Frustration in the last year of development of a popular open-source project, revealing several interesting insights.

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

↑