一种面向软件工程聊天机器人的标注函数自动生成方法
An Approach for Auto Generation of Labeling Functions for Software Engineering Chatbots
AI总结:
本文提出从已标注用户查询中自动提取模式以生成标注函数(LFs)的方法,在四个SE数据集上实现AUC最高85.3%和NLU性能提升最高27.2%,从而减少聊天机器人查询标注的人工成本。
摘要:
软件工程(SE)聊天机器人因其在改进开发流程中的作用而日益受到关注。聊天机器人的核心是自然语言理解平台(NLU),它们使聊天机器人能够理解用户查询,但训练时需要标注数据。然而,为SE聊天机器人获取此类标注数据具有挑战性,因为高质量数据集十分稀缺,且训练需要典型语言数据集中不存在的专业词汇和短语。因此,开发人员往往不得不手动标注用户查询——这是一个耗时且资源密集的过程。以往的方法需要人工干预来生成规则,即标注函数(LFs),这些规则根据特定模式对查询进行分类。为解决这一问题,我们提出了一种通过从已标注的用户查询中提取模式来自动生成LFs的方法。我们在四个SE数据集上评估了该方法,并测量了使用生成的LFs所标注的查询来训练NLU所带来的性能提升。生成的LFs能够有效标注数据,AUC分数最高达到85.3%,NLU性能提升最高达到27.2%。此外,我们的结果表明LFs的数量会影响标注性能。我们相信,我们的方法可以在标注用户查询方面节省时间和资源,使从业者能够专注于聊天机器人的核心功能,而不是手动标注查询。
英文摘要:
Software engineering (SE) chatbots are increasingly gaining attention for their role in enhancing development processes. At the core of chatbots are Natural Language Understanding platforms (NLUs), which enable them to comprehend user queries but require labeled data for training. However, acquiring such labeled data for SE chatbots is challenging due to the scarcity of high-quality datasets, as training requires specialized vocabulary and phrases not found in typical language datasets. Consequently, developers often resort to manually annotating user queries -- a time-consuming and resource-intensive process. Previous approaches require human intervention to generate rules, called labeling functions (LFs), that categorize queries based on specific patterns. To address this issue, we propose an approach to automatically generate LFs by extracting patterns from labeled user queries. We evaluate our approach on four SE datasets and measure performance improvement from training NLUs on queries labeled by the generated LFs. The generated LFs effectively label data with AUC scores up to 85.3% and NLU performance improvements up to 27.2%. Furthermore, our results show that the number of LFs affects labeling performance. We believe that our approach can save time and resources in labeling users' queries, allowing practitioners to focus on core chatbot functionalities rather than manually labeling queries.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。