Skip to content

Bad Characters: Imperceptible NLP AttacksBad Characters: Imperceptible NLP Attacks

arXiv· arXiv:2106.09898· S&P 2022· Nicholas Boucher, Ilia Shumailov, Ross Anderson, Nicolas PapernotUniversity of Cambridge, Computer Science & Technology; University of Cambridge; Vector Institute; University of Edinburgh; University of TorontoIndexed by this site · 27 days ago· Originally publishedSelected AttacksSelectedAttention41

Translation in progress — untranslated text is omitted.

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

AI summaryResearchers 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.

Questions
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.
Methods
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.
Experiments and results
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.
Limitations and future work
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.
Why it was selectedThe 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.

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

Related papers

Read originalS&P 2022