[Paper Review] Text Processing Like Humans Do: Visually Attacking and Shielding NLP Systems
The paper introduces VIPER, a visual text perturber, shows that visual character perturbations drastically degrade NLP models across tasks, and evaluates shielding methods to improve robustness. Humans remain largely unaffected by such perturbations, highlighting a gap between human and machine text processing.
Visual modifications to text are often used to obfuscate offensive comments in social media (e.g., "!d10t") or as a writing style ("1337" in "leet speak"), among other scenarios. We consider this as a new type of adversarial attack in NLP, a setting to which humans are very robust, as our experiments with both simple and more difficult visual input perturbations demonstrate. We then investigate the impact of visual adversarial attacks on current NLP systems on character-, word-, and sentence-level tasks, showing that both neural and non-neural models are, in contrast to humans, extremely sensitive to such attacks, suffering performance decreases of up to 82\%. We then explore three shielding methods---visual character embeddings, adversarial training, and rule-based recovery---which substantially improve the robustness of the models. However, the shielding methods still fall behind performances achieved in non-attack scenarios, which demonstrates the difficulty of dealing with visual attacks.
Motivation & Objective
- Motivate and formalize visual perturbations of text as a realistic NLP threat model.
- Assess the impact of visual attacks on state-of-the-art NLP models across multiple tasks (character-, word-, sentence-level).
- Explore shielding techniques to improve robustness against visual perturbations.
- Compare human perceptual robustness to machine vulnerability under visual perturbations.
Proposed method
- Introduce VIPER, a Visual Perturber that replaces characters with visually similar neighbors in a visual embedding space.
- Define three character embedding spaces (ICES, DCES, ECES) to provide visual neighbors and perturbation grounds.
- Extend ELMo to SELMo (standard ELMo) and VELMo (visually-informed ELMo) to study visual information integration.
- Conduct human annotation experiments to measure recoverability of perturbed text.
- Evaluate NLP tasks (G2P, POS tagging, Chunking, Toxic Comment classification) under visual perturbations and shielding methods.
- Analyze shielding via adversarial training, visual embeddings, and rule-based recovery, and compare with clean baselines.
Experimental results
Research questions
- RQ1How do visual perturbations of text affect state-of-the-art NLP models across character-, word-, and sentence-level tasks?
- RQ2Are humans robust to visually perturbed text, and how does perturbation type influence recoverability?
- RQ3Do shielding methods (adversarial training, visual embeddings, rule-based recovery) improve robustness against visual attacks?
- RQ4What is the relative performance gap between attacked models and humans, and how do domain shifts influence shielding effectiveness?
Key findings
- NLP models experience substantial performance drops under VIPER attacks, with decreases up to 82% on some tasks.
- Humans are mildly affected or not affected by visual perturbations, showing strong robustness compared to machines.
- Adversarial training and visual character embeddings substantially improve robustness, with AT often enhancing the gains from CE, and combined AT+CE outperforming either alone.
- Rule-based recovery provides strong protection in some settings, particularly ECES perturbations, but no shielding fully restores performance to the clean-data level at high perturbation strength.
- G2P, POS tagging, and Chunking suffer more from visual perturbations than Toxic Comment classification, with character-level tasks most affected.
- DCES perturbations present more challenging realistic attacks than ECES, and shielding effectiveness varies by task and perturbation type.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.