Multiobjective Simulated Annealing-Based Stopwords Substitution for Rubbish Text Attack.

Li, Chen; Yang, Xinghao; Wang, Ao; Gong, Yongshun; Liu, Baodi; Liu, Weifeng · IEEE Trans Neural Netw Learn Syst · 2026

basic_science · Level V

Where this comes from

Abstract

Modern natural language processing (NLP) models exhibit extreme sensitivity toward text adversarial examples, while their opposite insensitivity to text rubbish examples is greatly underestimated. Text rubbish examples usually refer to highly modified sentences that appear nonsensical to humans but can keep the model's prediction unchanged, which are significant in model robustness evaluation, improvement, and interpretation. Existing methods usually design a single objective optimization method to simultaneously maximize the modification rate and the model confidence (MC) with some text modification strategies, such as word deletion and preposition substitution. However, the single objective optimization easily falls into local optima due to the conflicting objectives, and the simple text modification strategies greatly limit the diversity of rubbish examples. To address these problems, we propose a multiobjective simulated annealing-based stopword substitution (MOSA-S2) algorithm with three major merits. First, the MOSA-S2 replaces the input words with meaningless stopwords and employs importance-based composite perturbation to simulate word substitution, enhancing the quality and diversity of the rubbish sample generation. Second, we formulate a multiobjective simulated annealing method to adaptively determine the priority of word replacements, which can escape local optima with a controlled probability and balance multiple objectives via Pareto dominance. Third, we design a grammatically constrained variant to enhance the readability of rubbish text, while maximizing its semantic deviation from the original to mislead human judgment. We evaluate the effectiveness and efficiency of our method on six text datasets by attacking seven popular neural models. Extensive experimental results demonstrate the superiority of our MOSA-S2 and reveal the fact that modern NLP models may not fully comprehend the textual semantics, as they make the same prediction with even higher confidence for nonsensical text sequences.