Bad Characters: Imperceptible NLP AttacksBad Characters: Imperceptible NLP Attacks
Translation in progress — untranslated text is omitted.
Researchers from the University of Cambridge and other institutions proposed a class of imperceptible encoding adversarial attacks against NLP systems, which manipulate model outputs without changing the text visible to humans by injecting invisible characters, homoglyphs, Bidi reordering, and deletion control characters; a single injection can significantly degrade model performance, and three injections can make most models functionally fail. The attacks are generated in black-box settings using differential evolution algorithms; across eight open-source and commercial models on five task types—machine translation, toxicity detection, textual entailment, named entity recognition, and sentiment analysis—non-targeted attacks reduced performance to near zero, targeted attacks achieved a maximum success rate of 90.2%, and sponge examples at least doubled inference time. The attacks are also effective against deployed Google Translate, Microsoft Azure ML, and Google Perspective API, and can also interfere with search engines' retrieval and indexing.
- Existing NLP adversarial attacks leave traces visible to the human eye or change the semantics. The authors focus on exploiting the difference between text encoding and visual rendering to conduct adversarial attacks on NLP models that are imperceptible to the human eye under black-box conditions.
- Proposes four types of imperceptible perturbations: invisible characters, homoglyphs, reorderings based on Bidi control characters, and deletion control characters; uses differential evolution, a gradient-free genetic algorithm, to optimize injection positions and contents under a black box according to the task objective function.
- On 5 open-source models and 3 commercial MLaaS (Google, Microsoft, IBM, etc.), untargeted attacks reduce performance to near zero, targeted attacks mostly succeed (e.g., 80.0% on MNLI with budget=5), and sponge attacks at least double inference time; invisible characters are ineffective against the three models for toxicity detection, NER, and sentiment analysis.
- The authors note that deletion attacks usually require submitting the encoded bytes directly and are hard to trigger via copy-paste; reordering attacks depend on each platform's Bidi implementation and may vary by platform; the OCR defense lowers the baseline BLEU by 6.2%. The MLaaS experiments use only 20–50 sentences, and the paper does not report statistical significance tests.
The original source gives the success rates of four types of imperceptible encoding attacks on eight models and commercial services and the cost of OCR defenses, which teams handling user text can use to design input sanitization.
Related events and news
0 events · 1 news mentions
News that mentions this paper
- Checkmatecites the paper's id or linkPIChef:一款受 CyberChef 启发的提示注入工具
Invisible characters, homoglyphs, and character reordering: Bad Characters: Imperceptible NLP Attacks — Nicholas Boucher, Ilia Shumailov, Ross Anderson, and Nicolas Papernot.