BASFuzz: Toward Robustness Evaluation of LLM-based NLP Software via Automated Fuzz Testing

Fuzzing has shown great success in evaluating the robustness of intelligent natural language processing (NLP) software. As large language model (LLM)-based NLP software is widely deployed in critical industries, existing methods still face two main challenges: ① testing methods are insufficiently coupled with the behavioral patterns of LLM-based NLP software; ② fuzzing capability for the testing scenario of natural language generation (NLG) generally degrades. To address these issues, we propose BASFuzz, an efficient Fuzz testing method tailored for LLM-based NLP software. BASFuzz targets complete test inputs composed of prompts and examples, and uses a text consistency metric to guide mutations of the fuzzing loop, aligning with the behavioral patterns of LLM-based NLP software. A Beam-Annealing Search algorithm, which integrates beam search and simulated annealing, is employed to design an efficient fuzzing loop. In addition, information entropy-based adaptive adjustment and an elitism strategy further enhance fuzzing capability. We evaluate BASFuzz on seven datasets in representative scenarios of NLG and natural language understanding (NLU). Experimental results demonstrate that BASFuzz achieves a testing success rate of 90.335% while reducing the per-test-case time overhead by 2,163.852 seconds compared to the current best baseline, enabling more effective robustness evaluation prior to software deployment.

Authors

Institutions

Publication Details

Journal
ACM Transactions on Software Engineering and Methodology
Published
2026-08-27
DOI
https://doi.org/10.1145/3843770
Primary Topic
Software Testing and Debugging Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

BASFuzz: Toward Robustness Evaluation of LLM-based NLP Software via Automated Fuzz Testing

Yan Xiao, Pengcheng Zhang, Shunhui Ji, Mingxuan Xiao et al.
ACM Transactions on Software Engineering and Methodology
Software Testing and Debugging Techniques
article

BASFuzz: Toward Robustness Evaluation of LLM-based NLP Software via Automated Fuzz Testing

Yan Xiao, Pengcheng Zhang, Shunhui Ji, Mingxuan Xiao, Jiahe Tu
article en

Abstract

Fuzzing has shown great success in evaluating the robustness of intelligent natural language processing (NLP) software. As large language model (LLM)-based NLP software is widely deployed in critical industries, existing methods still face two main challenges: ① testing methods are insufficiently coupled with the behavioral patterns of LLM-based NLP software; ② fuzzing capability for the testing scenario of natural language generation (NLG) generally degrades. To address these issues, we propose BASFuzz, an efficient Fuzz testing method tailored for LLM-based NLP software. BASFuzz targets complete test inputs composed of prompts and examples, and uses a text consistency metric to guide mutations of the fuzzing loop, aligning with the behavioral patterns of LLM-based NLP software. A Beam-Annealing Search algorithm, which integrates beam search and simulated annealing, is employed to design an efficient fuzzing loop. In addition, information entropy-based adaptive adjustment and an elitism strategy further enhance fuzzing capability. We evaluate BASFuzz on seven datasets in representative scenarios of NLG and natural language understanding (NLU). Experimental results demonstrate that BASFuzz achieves a testing success rate of 90.335% while reducing the per-test-case time overhead by 2,163.852 seconds compared to the current best baseline, enabling more effective robustness evaluation prior to software deployment.

ACM Transactions on Software Engineering and Methodology
Sun Yat-sen University (CN), Hohai University (CN)
Openalex Percentile: Top 5%
Software Testing and Debugging Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

BASFuzz: Toward Robustness Evaluation of LLM-based NLP Software via Automated Fuzz Testing — Yan Xiao, Pengcheng Zhang, et al. · ACM Transactions on Software Engineering and Methodology (2026) | TGRS Research Map | TGRS