Skip to main content
Have a personal or library account? Click to login
TextGuard: Identifying and neutralizing adversarial threats in textual data Cover

TextGuard: Identifying and neutralizing adversarial threats in textual data

By:  and    
Open Access
|Dec 2025

Figures & Tables

Fig. 1

Illustration of LOF.

Fig. 2

Pipeline for generating adversarial examples.

Table 1

Datasets.

Dataset NameDataset DescriptionAtributes
YELP [40]Large Yelp Review DatasetSet of 560,000 for training, and 38,000 for testing
MR [41]Movie Review DatasetSet of 5,331 for training, and 5,331 for testing
AG NEWS [42]News Topic ClassificationSet of 12000 for training and 7600 for testing
Table 2

Performance of the classifiers against adversarial attacks before the implementation of the LOF technique.

DatasetModelAccuracy (%)
AG NEWSBERT21.09
AG NEWSWordCNN13.68
AG NEWSLSTM11.56
MRBERT12.97
MRWordCNN20.59
MRLSTM19.29
YelpBERT9.98
YelpWordCNN9.64
YelpLSTM7.88
Table 3

Performance of the classifiers against adversarial attacks after the implementation of the LOF technique.

DatasetModelAccuracy (%)
AG NEWSBERT85.12
AG NEWSWordCNN72.47
AG NEWSLSTM65.78
MRBERT88.39
MRWordCNN74.83
MRLSTM68.55
YelpBERT92.59
YelpWordCNN81.34
YelpLSTM78.45
Table 4

Illustrates the performance of our three classifiers against the Deepwordbug attack technique prior to the implementation of LOF technique.

DatasetModelAccuracy
AG NEWSBERT21.09
AG NEWSWordCNN13.68
AG NEWSLSTM11.56
MRBERT12.97
MRWordCNN20.59
MRLSTM19.29
YelpBERT9.98
YelpWordCNN9.64
YelpLSTM7.88
Fig. 3

ROC curves for BERT under Deepwordbug (DWB) and Textbugger (TB) attacks.

Language: English
Page range: 405 - 416
Submitted on: Nov 26, 2023
Accepted on: Sep 1, 2024
Published on: Dec 14, 2025
Published by: Harran University
In partnership with: Paradigm Publishing Services
Publication frequency: 2 issues per year

© 2025 Marwan Omar, Luay Albtosh, published by Harran University
This work is licensed under the Creative Commons Attribution 4.0 License.