Saved in:
Bibliographic Details
Main Authors: Arockiaraj, Benedict Florance, Feng, Alexander, Cai, Jianxiong, Cheng, Xiaoyu
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2605.17936
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914577342529536
author Arockiaraj, Benedict Florance
Feng, Alexander
Cai, Jianxiong
Cheng, Xiaoyu
author_facet Arockiaraj, Benedict Florance
Feng, Alexander
Cai, Jianxiong
Cheng, Xiaoyu
contents Recent works have illustrated that modern NLP models trained for diverse tasks ranging from sentiment analysis to language generation succumb to universal adversarial attacks, a class of input-agnostic attacks where a common trigger sequence is used to attack the model. Although these attacks are successful, the triggers generated by such attacks are ungrammatical and unnatural. Our work proposes a novel technique combining parts-of-speech filtering and perplexity based loss function to generate sensible triggers that are closer to natural phrases. For the task of sentiment analysis on the SST dataset, the method produces sensible triggers that achieve accuracies as low as 0.04 and 0.12 for flipping positive to negative predictions and vice-versa. To build robust models, we also perform adversarial training using the generated triggers that increases the accuracy of the model from 0.12 to 0.48. We aim to illustrate that adversarial attacks can be made difficult to detect by generating sensible triggers, and to facilitate robust model development through relevant defenses.
format Preprint
id arxiv_https___arxiv_org_abs_2605_17936
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Universal Adversarial Triggers
Arockiaraj, Benedict Florance
Feng, Alexander
Cai, Jianxiong
Cheng, Xiaoyu
Computation and Language
Machine Learning
Recent works have illustrated that modern NLP models trained for diverse tasks ranging from sentiment analysis to language generation succumb to universal adversarial attacks, a class of input-agnostic attacks where a common trigger sequence is used to attack the model. Although these attacks are successful, the triggers generated by such attacks are ungrammatical and unnatural. Our work proposes a novel technique combining parts-of-speech filtering and perplexity based loss function to generate sensible triggers that are closer to natural phrases. For the task of sentiment analysis on the SST dataset, the method produces sensible triggers that achieve accuracies as low as 0.04 and 0.12 for flipping positive to negative predictions and vice-versa. To build robust models, we also perform adversarial training using the generated triggers that increases the accuracy of the model from 0.12 to 0.48. We aim to illustrate that adversarial attacks can be made difficult to detect by generating sensible triggers, and to facilitate robust model development through relevant defenses.
title Universal Adversarial Triggers
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2605.17936