LEAP: Efficient and Automated Test Method for NLP Software

08/22/2023
by   Mingxuan Xiao, et al.
0

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 24.6 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 of high-dimensional text examples and a mutation operator based on the greedy strategy to reduce the search time. We conducted a series of experiments to validate LEAP's ability to test NLP software and found that the average success rate of LEAP in generating adversarial test cases is 79.1 higher than the next best approach (PSOattack). While ensuring high success rates, LEAP significantly reduces time overhead by up to 147.6s compared to other heuristic-based methods. Additionally, the experimental results demonstrate that LEAP can generate more transferable test cases and significantly enhance the robustness of DNN-based systems.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/13/2022

AEON: A Method for Automatic Evaluation of NLP Test Cases

Due to the labor-intensive nature of manual test oracle construction, va...
research
11/01/2022

ActGraph: Prioritization of Test Cases Based on Deep Neural Network Activation Graph

Widespread applications of deep neural networks (DNNs) benefit from DNN ...
research
10/14/2021

Identifying Similar Test Cases That Are Specified in Natural Language

Software testing is still a manual process in many industries, despite t...
research
10/07/2021

HABCSm: A Hamming Based t-way Strategy Based on Hybrid Artificial Bee Colony for Variable Strength Test Sets Generation

Search-based software engineering that involves the deployment of meta-h...
research
07/30/2023

Measuring Software Testability via Automatically Generated Test Cases

Estimating software testability can crucially assist software managers t...
research
02/11/2023

MTTM: Metamorphic Testing for Textual Content Moderation Software

The exponential growth of social media platforms such as Twitter and Fac...
research
10/15/2018

Finding a boundary between valid and invalid regions of the input space

In the context of robustness testing, the boundary between the valid and...

Please sign up or login with your details

Forgot password? Click here to reset