一句话:提出首个 RNN 驱动对话系统自动化测试工具 DialTest,通过保 oracle 的数据变换与 Gini 不纯度引导生成测试,高效检出错误。
RNN 驱动的对话系统(如 Siri、Google Home、Alexa)虽性能优异,但本质仍是软件,可能产生错误行为并带来巨大损失;而 RNN 模型的复杂与不可解释性使其测试颇具挑战。本文设计并实现了首个 RNN 驱动对话系统测试工具 DialTest:它采用一系列变换算子对种子数据做贴近真实的修改,同时恰当保留其 oracle 信息,以保证变异数据的标注正确;为进一步提升错误检出效率,还引入 Gini 不纯度来引导测试生成过程。作者在自然语言理解的两个基础任务(意图识别与槽填充)上开展实验,结果表明 DialTest 能为不同 RNN 驱动的 NLU 模块检出数百个错误行为,并可用生成数据重训练提升准确率;此外在一个工业对话系统上的案例研究显示,DialTest 能在真实使用场景下有效发现错误并提升系统鲁棒性。
With the tremendous advancement of recurrent neural networks(RNN), dialogue systems have achieved significant development. Many RNN-driven dialogue systems, such as Siri, Google Home, and Alexa, have been deployed to assist various tasks. However, accompanying this outstanding performance, RNN-driven dialogue systems, which are essentially a kind of software, could also produce erroneous behaviors and result in massive losses. Meanwhile, the complexity and intractability of RNN models that power the dialogue systems make their testing challenging. In this paper, we design and implement DialTest, the first RNN-driven dialogue system testing tool. DialTest employs a series of transformation operators to make realistic changes on seed data while preserving their oracle information properly. To improve the efficiency of detecting faults, DialTest further adopts Gini impurity to guide the test generation process. We conduct extensive experiments to validate DialTest. We first experiment it on two fundamental tasks, i.e., intent detection and slot filling, of natural language understanding. The experiment results show that DialTest can effectively detect hundreds of erroneous behaviors for different RNN-driven natural language understanding (NLU) modules of dialogue systems and improve their accuracy via retraining with the generated data. Further, we conduct a case study on an industrial dialogue system to investigate the performance of DialTest under the real usage scenario. The study shows DialTest can detect errors and improve the robustness of RNN-driven dialogue systems effectively.
DOI 原文 ·
@inproceedings{paperbot6684,
title = {DialTest: automated testing for recurrent-neural-network-driven dialogue systems},
author = {Zixi Liu and Yang Feng and Zhenyu Chen},
booktitle = {ISSTA},
year = {2021},
doi = {10.1145/3460319.3464829}
}