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: Marwan Omar and  Luay Albtosh  
Open Access
|Dec 2025

Figures & Tables

Fig. 1

Illustration of LOF.
Illustration of LOF.

Fig. 2

Pipeline for generating adversarial examples.
Pipeline for generating adversarial examples.

Fig. 3

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

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

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

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

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
Language: English
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.

AHEAD OF PRINT