LEAP: Efficient and Automated Test Method for NLP Software
Mingxuan Xiao, Yan Xiao, Hai Dong, Shunhui Ji, Pengcheng Zhang

TL;DR
LEAP is an automated testing method for NLP software that uses Levy flight-based optimization to generate adversarial test cases, significantly improving success rates and efficiency over existing methods.
Contribution
This paper introduces LEAP, a novel test method combining Levy flight and adaptive particle swarm optimization for more effective and faster adversarial test case generation in NLP.
Findings
LEAP achieves a 79.1% success rate in generating adversarial test cases.
LEAP reduces testing time by up to 147.6 seconds compared to other methods.
LEAP enhances the robustness of DNN-based NLP systems.
Abstract
The widespread adoption of DNNs in NLP software has highlighted the need for robustness. Researchers proposed various automatic testing techniques for adversarial test cases. However, existing methods suffer from two limitations: weak error-discovering capabilities, with success rates ranging from 0% to 24.6% for BERT-based NLP software, and time inefficiency, taking 177.8s to 205.28s per test case, making them challenging for time-constrained scenarios. To address these issues, this paper proposes LEAP, an automated test method that uses LEvy flight-based Adaptive Particle swarm optimization integrated with textual features to generate adversarial test cases. Specifically, we adopt Levy flight for population initialization to increase the diversity of generated test cases. We also design an inertial weight adaptive update operator to improve the efficiency of LEAP's global optimization…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Malware Detection Techniques · Software Testing and Debugging Techniques · Adversarial Robustness in Machine Learning
