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

一种基于Transformer的软件工程聊天机器人数据集增强方法

A Transformer-based Approach for Augmenting Software Engineering Chatbots Datasets

Ahmad Abdellatif, Khaled Badran, Diego Elias Costa, Emad Shihab

AI总结:

本文提出一种基于Transformer的自动化方法,结合传统NLP技术与BART模型,通过同义词替换和释义增强软件工程聊天机器人数据集,实验表明能提升Rasa NLU的性能和意图分类置信度。

摘要:

背景:由于成本降低和软件开发过程加速的优势,聊天机器人在软件开发任务中的采用在从业者中变得越来越流行。聊天机器人通过自然语言理解组件(NLU)来理解用户的查询。为了获得合理的性能,NLU必须使用大量高质量的数据集进行训练,这些数据集表达了用户与聊天机器人交互的多种方式。然而,先前的研究表明,为软件工程聊天机器人创建高质量的训练数据集在资源和时间方面都是昂贵的。目的:因此,在本文中,我们提出了一种自动化的基于Transformer的方法来增强软件工程聊天机器人数据集。方法:我们的方法将传统的自然语言处理技术与BART Transformer相结合,通过同义词替换和释义生成查询来增强数据集。我们使用三个软件工程数据集评估了使用增强方法对Rasa NLU性能的影响。结果:总体而言,增强方法在提高Rasa性能方面显示出有希望的结果,增强了具有不同句子结构的查询,同时保留了其原始语义。此外,它增加了Rasa对其正确分类意图的意图分类的信心。结论:我们相信我们的研究有助于从业者提高其聊天机器人的性能,并指导未来研究为SE聊天机器人提出增强技术。

英文摘要:

Background: The adoption of chatbots into software development tasks has become increasingly popular among practitioners, driven by the advantages of cost reduction and acceleration of the software development process. Chatbots understand users' queries through the Natural Language Understanding component (NLU). To yield reasonable performance, NLUs have to be trained with extensive, high-quality datasets, that express a multitude of ways users may interact with chatbots. However, previous studies show that creating a high-quality training dataset for software engineering chatbots is expensive in terms of both resources and time. Aims: Therefore, in this paper, we present an automated transformer-based approach to augment software engineering chatbot datasets. Method: Our approach combines traditional natural language processing techniques with the BART transformer to augment a dataset by generating queries through synonym replacement and paraphrasing. We evaluate the impact of using the augmentation approach on the Rasa NLU's performance using three software engineering datasets. Results: Overall, the augmentation approach shows promising results in improving the Rasa's performance, augmenting queries with varying sentence structures while preserving their original semantics. Furthermore, it increases Rasa's confidence in its intent classification for the correctly classified intents. Conclusions: We believe that our study helps practitioners improve the performance of their chatbots and guides future research to propose augmentation techniques for SE chatbots.

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

↑