Abstract
Adversarial examples pose a significant challenge to deep neural networks (DNNs) across both image and text domains, with the intent to degrade model performance through meticulously altered inputs. Adversarial texts, however, are distinct from adversarial images due to their requirement for semantic similarity and the discrete nature of the textual contents. This study delves into the concept of human suspiciousness, a quality distinct from the traditional focus on imperceptibility found in image-based adversarial examples. Unlike images, where adversarial changes are meant to be indistinguishable to the human eye, textual adversarial content must often remain undetected or non-suspicious to human readers, even when the text's purpose is to deceive NLP systems or bypass filters. In this research, we expand the study of human suspiciousness by analyzing how individuals perceive adversarial texts. We gather and publish a novel dataset of Likert-scale human evaluations on the suspiciousness of adversarial sentences, crafted by four widely used adversarial attack methods and assess their correlation with the human ability to detect machine-generated alterations. Additionally, we develop a regression-based model to quantify suspiciousness and establish a baseline for future research in reducing the suspiciousness in adversarial text generation. We also demonstrate how the regressor-generated suspicious scores can be incorporated into adversarial generation methods to produce texts that are less likely to be perceived as computer-generated.
Introduction
In the field of computer vision, adversarial attacks often involve changing a few pixels so subtly that a human cannot distinguish the altered image from the original. In Natural Language Processing (NLP), however, this "imperceptibility" is rarely achievable. Because language is discrete, swapping a word for a synonym or introducing a typo is immediately visible to a reader.
This research shifts the focus from binary imperceptibility to "graded suspiciousness." A successful adversarial text should look like something a human might actually write—perhaps slightly sloppy or using an unusual word choice—rather than appearing obviously machine-altered. By quantifying this suspiciousness on a spectrum, researchers can build more realistic attack simulations and more robust defenses.
Methodology
The researchers developed a multi-stage approach to study and model human suspiciousness:
1. Human Annotation and Dataset Creation
The authors collected 3,715 annotations via Amazon Mechanical Turk using the Rotten Tomatoes Movie Review (MOVIEREVIEW) dataset. Participants rated sentences on a 1–5 Likert scale, ranging from "Very confident it's human-written" to "Very confident it's computer-altered."
2. Attack Comparison
The study analyzed four popular adversarial attack methods: PRUTHI (character-level typos), ALZANTOT and TEXTFOOLER (word-level synonym swapping), and BAE (word-level swaps using a Masked Language Model to insert contextually relevant synonyms).
3. Predictive Modeling
To automate the scoring of suspiciousness, the researchers built several regression models. The most successful architecture, TEXT+NUM, combined a BERT language model with 322 numerical features, including perturbation rates, word embeddings, and grammaticality scores.
Results and Discussion
The study's findings highlight the complexity of human perception in the context of adversarial text.
Suspiciousness vs. Semantic Similarity
A striking result is that traditional NLP metrics like BLEU, ROUGE, or BERTScore have almost zero correlation with human suspiciousness. A sentence can be semantically identical to the original but still trigger human "red flags" due to unnatural phrasing.
The "Human Typo" Pass
Character-level attacks (PRUTHI) were often rated as less suspicious than certain word-level attacks. Humans are accustomed to seeing typos in online reviews and often attribute them to human error rather than a malicious algorithm. Conversely, BAE, while effective at fooling classifiers, often produced highly "unnatural" word choices that humans found suspicious.
Model Performance
The best regression model (BERT + RandomForest) achieved a Pearson’s $r$ of 0.515 and a Spearman’s $\rho$ of 0.585. When this model was used as a constraint during text generation, humans preferred the "suspicion-constrained" versions in 18 out of 23 cases ($p = 0.0106$).
Conclusion
This research establishes "graded suspiciousness" as a vital metric for evaluating adversarial text. While humans only recognized 27% of adversarial texts as definitely computer-altered, they felt some level of suspicion for 69% of them. Future work will extend this framework to more formal contexts, additional languages, and phrase-level attacks generated by Large Language Models.
Summary updated