DialTest‐EA: An Enhanced Fuzzing Approach With Energy Adjustment for Dialogue Systems via Metamorphic Testing
ABSTRACT Deep neural networks (DNNs) possess potent feature learning capability, enabling them to comprehend natural language, which strongly support developing dialogue systems. However, dialogue systems usually perform incorrect behaviours in some corner cases, which may cause misunderstanding or economic loss. To test and debug dialogue systems, a popular fuzzing framework by metamorphic testing with Gini impurity guidance is proposed, namely, DialTest . However, DialTest treats all seeds (the initial test inputs to generate the mutated test inputs) equally during the fuzzing process and does not differentiate seeds, resulting in a certain limitation to its incorrect behaviour detection capability. In this paper, we propose to enhance the DialTest by applying a lightweight energy adjustment strategy called DialTest with Energy Adjustment (DialTest‐EA). DialTest‐EA employs the ant colony optimization algorithm (ACO) to adjust the mutation energy of each seed adaptively, ensuring that potential seeds have more opportunities to generate subsequent test inputs. To evaluate the effectiveness of the proposed DialTest‐EA, we conduct a series of comparisons with the original DialTest and random mutation strategy. The experimental results show that the proposed DialTest‐EA outperforms the compared methods both in the intent detection and slot filling tasks. Compared with the original DialTest, the intent detection accuracy of generated test cases by the proposed method is reduced by more than 14%, and the slot filling accuracy is reduced by more than 8%.
Authors
- Shengran Wang
- Rubing Huang (ORCID: https://orcid.org/0000-0002-1769-6126)
- Jinfu Chen (ORCID: https://orcid.org/0000-0002-3124-5452)
- Saihua Cai (ORCID: https://orcid.org/0000-0003-0743-1156)
- Chi Zhang (ORCID: https://orcid.org/0000-0002-0179-3386)
- Bilal Ahmad (ORCID: https://orcid.org/0000-0003-4484-2771)
- Yucheng Wu
- Haibo Chen (ORCID: https://orcid.org/0000-0002-3284-9143)
Institutions
- Macau University of Science and Technology (MO)
- Jiangsu University (CN)
Publication Details
- Journal
- Software Testing Verification and Reliability
- Published
- 2024-10-10
- DOI
- https://doi.org/10.1002/stvr.1897
- Citations
- 1
- Primary Topic
- Software Testing and Debugging Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.49
Funders
- National Natural Science Foundation of China
- Natural Science Foundation of Jiangsu Province
- Qinglan Project of Jiangsu Province of China
- National Key Research and Development Program of China