paper-with-me

홈 › Papers

LEAP: Efficient and Automated Test Method for NLP Software

2023-08-22 · Mingxuan Xiao, Yan Xiao, Hai Dong, Shunhui Ji, Pengcheng Zhang

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 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%, which is 6.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.

📄 PDF Abstract BibTeX arXiv:2308.11284

Code (1)

lumos-xiao/leap 공식 구현 pytorch

Tasks

global-optimization

Similar Papers 제목 키워드 기반

DeepHunter: Hunting Deep Neural Network Defects via Coverage-Guided Fuzzing

2018-09-04 · Xiaofei Xie, Lei Ma, Felix Juefei-Xu, Hongxu Chen 외

In company with the data explosion over the past decade, deep neural network (DNN) based software has experienced unprecedented leap and is becoming the key driving force of many novel industrial applications, including …

Autonomous DrivingQuantization

Trustworthy and Synergistic Artificial Intelligence for Software Engineering: Vision and Roadmaps

2023-09-08 · David Lo

For decades, much software engineering research has been dedicated to devising automated solutions aimed at enhancing developer productivity and elevating software quality. The past two decades have witnessed an unparall…

The Future of Scientific Publishing: Automated Article Generation

2024-04-11 · Jeremy R. Harper

This study introduces a novel software tool leveraging large language model (LLM) prompts, designed to automate the generation of academic articles from Python code a significant advancement in the fields of biomedical i…

ArticlesLanguage ModelingLanguage ModellingLarge Language Model

The Definitive Guide to Automated Regression Testing

2022-03-03 · bqurious 2022 3 · Govind

Software testing is one of the most important things you can do to protect your software from bugs and improve conversion rates. I’ve been using automated regression testing for several years and wanted to share these tr…

regressionsoftware testing

matLeap: A fast adaptive Matlab-ready tau-leaping implementation suitable for Bayesian inference

2016-08-25

Background: Species abundance distributions in chemical reaction network models cannot usually be computed analytically. Instead, stochas- tic simulation algorithms allow sample from the the system configuration. Althoug…

Bayesian Inference