Robust Encodings: A Framework for Combating Adversarial Typos
Not on the map. Why?
Abstract (arXiv)
Despite excellent performance on many tasks, NLP systems are easily fooled by small adversarial perturbations of inputs. Existing procedures to defend against such perturbations are either (i) heuristic in nature and susceptible to stronger attacks or (ii) provide guaranteed robustness to worst-case attacks, but are incompatible with state-of-the-art models like BERT. In this work, we introduce robust encodings (RobEn): a simple framework that confers guaranteed robustness, without making compromises on model architecture. The core component of RobEn is an encoding function, which maps sentences to a smaller, discrete space of encodings. Systems using these encodings as a bottleneck confer guaranteed robustness with standard training, and the same encodings can be used across multiple tasks. We identify two desiderata to construct robust encoding functions: perturbations of a sentence should map to a small set of encodings (stability), and models using encodings should still perform well (fidelity). We instantiate RobEn to defend against a large family of adversarial typos. Across six tasks from GLUE, our instantiation of RobEn paired with BERT achieves an average robust accuracy of 71.3% against all adversarial typos in the family considered, while previous work using a typo-corrector achieves only 35.3% accuracy against a simple greedy attack.
Key facts. Cited by 58 papers in the map (data through 7 Oct 2026). First posted on arXiv 4 May 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 17; 2022: 19; 2023: 12; 2024: 3; 2025: 5; 2026: 2.
58 papers.
Sort:
By area:
- 2023Exploiting Programmatic Behavior of LLMs: Dual-Use Through Standard Security Attackscited by 268
- 2022Why Should Adversarial Perturbations be Imperceptible? Rethink the Research Paradigm in Adversarial NLPcited by 99
- 2021Evaluating the Robustness of Neural Language Models to Input Perturbationscited by 87
- 2022VALUE: Understanding Dialect Disparity in NLUcited by 45
- 2022SemAttack: Natural Textual Attacks via Different Semantic Spacescited by 42
- 2021LM-Critic: Language Models for Unsupervised Grammatical Error Correctioncited by 33
- 2022Detection of Word Adversarial Examples in Text Classification: Benchmark and Baseline via Robust Density Estimationcited by 32
- 2021RockNER: A Simple Method to Create Adversarial Examples for Evaluating the Robustness of Named Entity Recognition Modelscited by 28
- 2021Achieving Model Robustness through Discrete Adversarial Trainingcited by 23
- 2022Phrase-level Textual Adversarial Attack with Label Preservationcited by 23
- 2021P-Adapters: Robustly Extracting Factual Information from Language Models with Diverse Promptscited by 22
- 2021Understanding the Generalization Benefit of Model Invariance from a Data Perspectivecited by 22
38 more
- 2022A Survey of Adversarial Defences and Robustness in NLPcited by 22
- 2021Improving Zero-Shot Cross-Lingual Transfer Learning via Robust Trainingcited by 21
- 2021Multi-granularity Textual Adversarial Attack with Behavior Cloningcited by 21
- 2021BERT-Defense: A Probabilistic Model Based on BERT to Combat Cognitively Inspired Orthographic Adversarial Attackscited by 17
- 2021On the Robustness of Reading Comprehension Models to Entity Renamingcited by 17
- 2021Adversarial Reinforced Instruction Attacker for Robust Vision-Language Navigationcited by 15
- 2022On Robust Prefix-Tuning for Text Classificationcited by 15
- 2022AEON: A Method for Automatic Evaluation of NLP Test Casescited by 15
- 2022Adversarial Training for Improving Model Robustness? Look at Both Prediction and Interpretationcited by 12
- 2023Evoke: Evoking Critical Thinking Abilities in LLMs via Reviewer-Author Prompt Editingcited by 11
- 2021A Differentiable Language Model Adversarial Attack on Text Classifierscited by 9
- 2021Know Thy Strengths: Comprehensive Dialogue State Tracking Diagnosticscited by 9
- 2021Empirical Error Modeling Improves Robustness of Noisy Neural Sequence Labelingcited by 8
- 2021Detecting Textual Adversarial Examples through Randomized Substitution and Votecited by 8
- 2023TextShield: Beyond Successfully Detecting Adversarial Sentences in Text Classificationcited by 8
- 2022ER-Test: Evaluating Explanation Regularization Methods for Language Modelscited by 6
- 2021Virtual Data Augmentation: A Robust and General Framework for Fine-tuning Pre-trained Modelscited by 5
- 2022Data-Driven Mitigation of Adversarial Text Perturbationcited by 5
- 2022Adversarial Text Normalizationcited by 5
- 2023How Fragile is Relation Extraction under Entity Replacements?cited by 5
- 2022Identifying Adversarial Attacks on Text Classifierscited by 4
- 2022Improving robustness of language models from a geometry-aware perspectivecited by 4
- 2022Preserving Semantics in Textual Adversarial Attackscited by 4
- 2024Revisiting Character-level Adversarial Attacks for Language Modelscited by 4
- 2023The Best Defense is Attack: Repairing Semantics in Textual Adversarial Examplescited by 3
- 2023Toward Stronger Textual Attack Detectorscited by 3
- 2025Misspellings in Natural Language Processing: A surveycited by 3
- 2022Detecting Textual Adversarial Examples Based on Distributional Characteristics of Data Representationscited by 2
- 2022Identifying Human Strategies for Generating Word-Level Adversarial Examplescited by 2
- 2022TCAB: A Large-Scale Text Classification Attack Benchmarkcited by 2
- 2023Wavelets Beat Monkeys at Adversarial Robustnesscited by 2
- 2024MaskPure: Improving Defense Against Text Adversaries with Stochastic Purificationcited by 2
- 2025Statistical Runtime Verification for LLMs via Robustness Estimationcited by 2
- 2025Robustness in Both Domains: CLIP Needs a Robust Text Encodercited by 2
- 2025Guided Perturbation Sensitivity (GPS): Detecting Adversarial Text via Embedding Stability and Word Importancecited by 2
- 2023READIN: A Chinese Multi-Task Benchmark with Realistic and Diverse Input Noisescited by 1
- 2023Alert-ME: An Explainability-Driven Defense Against Adversarial Examples in Transformer-Based Text Classificationcited by 1
- 2024Learning Robust Named Entity Recognizers From Noisy Data With Retrieval Augmentationcited by 1
50 most cited of 58 All 58 (JSON)
- 2026Unsure but Certain: Uncovering the Representation-Confidence Gap in Diffusion Language Models9 Aug 2026
- 2026MELD: Multi-Task Equilibrated Learning Detector for AI-Generated Text7 May 2026
- 2025RobustMask: Certified Robustness against Adversarial Neural Ranking Attack via Randomized Masking29 Dec 2025
- 2025Guided Perturbation Sensitivity (GPS): Detecting Adversarial Text via Embedding Stability and Word Importance6 Aug 2025
- 2025Robustness in Both Domains: CLIP Needs a Robust Text Encoder3 Jun 2025
- 2025Statistical Runtime Verification for LLMs via Robustness Estimation24 Apr 2025
- 2025Misspellings in Natural Language Processing: A survey28 Jan 2025
- 2024Learning Robust Named Entity Recognizers From Noisy Data With Retrieval Augmentation26 Jul 2024
- 2024MaskPure: Improving Defense Against Text Adversaries with Stochastic Purification18 Jun 2024
- 2024Revisiting Character-level Adversarial Attacks for Language Models7 May 2024
- 2023Finite-context Indexing of Restricted Output Space for NLP Models Facing Noisy Input21 Oct 2023
- 2023Toward Stronger Textual Attack Detectors21 Oct 2023
38 more
- 2023Evoke: Evoking Critical Thinking Abilities in LLMs via Reviewer-Author Prompt Editing20 Oct 2023
- 2023What Learned Representations and Influence Functions Can Tell Us About Adversarial Examples19 Sep 2023
- 2023SCAT: Robust Self-supervised Contrastive Learning via Adversarial Training for Text Classification4 Jul 2023
- 2023Alert-ME: An Explainability-Driven Defense Against Adversarial Examples in Transformer-Based Text Classification3 Jul 2023
- 2023How Fragile is Relation Extraction under Entity Replacements?22 May 2023
- 2023The Best Defense is Attack: Repairing Semantics in Textual Adversarial Examples6 May 2023
- 2023Wavelets Beat Monkeys at Adversarial Robustness19 Apr 2023
- 2023READIN: A Chinese Multi-Task Benchmark with Realistic and Diverse Input Noises14 Feb 2023
- 2023Exploiting Programmatic Behavior of LLMs: Dual-Use Through Standard Security Attacks11 Feb 2023
- 2023TextShield: Beyond Successfully Detecting Adversarial Sentences in Text Classification3 Feb 2023
- 2022Preserving Semantics in Textual Adversarial Attacks8 Nov 2022
- 2022TCAB: A Large-Scale Text Classification Attack Benchmark21 Oct 2022
- 2022Identifying Human Strategies for Generating Word-Level Adversarial Examples20 Oct 2022
- 2022Why Should Adversarial Perturbations be Imperceptible? Rethink the Research Paradigm in Adversarial NLP19 Oct 2022
- 2022MockingBERT: A Method for Retroactively Adding Resilience to NLP Models21 Aug 2022
- 2022Adversarial Text Normalization8 Jun 2022
- 2022ER-Test: Evaluating Explanation Regularization Methods for Language Models25 May 2022
- 2022Phrase-level Textual Adversarial Attack with Label Preservation22 May 2022
- 2022AEON: A Method for Automatic Evaluation of NLP Test Cases13 May 2022
- 2022SemAttack: Natural Textual Attacks via Different Semantic Spaces3 May 2022
- 2022Detecting Textual Adversarial Examples Based on Distributional Characteristics of Data Representations29 Apr 2022
- 2022Improving robustness of language models from a geometry-aware perspective28 Apr 2022
- 2022VALUE: Understanding Dialect Disparity in NLU6 Apr 2022
- 2022Adversarial Training for Improving Model Robustness? Look at Both Prediction and Interpretation23 Mar 2022
- 2022On Robust Prefix-Tuning for Text Classification19 Mar 2022
- 2022A Survey of Adversarial Defences and Robustness in NLP12 Mar 2022
- 2022Detection of Word Adversarial Examples in Text Classification: Benchmark and Baseline via Robust Density Estimation3 Mar 2022
- 2022Data-Driven Mitigation of Adversarial Text Perturbation19 Feb 2022
- 2022Identifying Adversarial Attacks on Text Classifiers21 Jan 2022
- 2021Know Thy Strengths: Comprehensive Dialogue State Tracking Diagnostics15 Dec 2021
- 2021Understanding the Generalization Benefit of Model Invariance from a Data Perspective10 Nov 2021
- 2021On the Robustness of Reading Comprehension Models to Entity Renaming16 Oct 2021
- 2021P-Adapters: Robustly Extracting Factual Information from Language Models with Diverse Prompts14 Oct 2021
- 2021SEPP: Similarity Estimation of Predicted Probabilities for Defending and Detecting Adversarial Text12 Oct 2021
- 2021LM-Critic: Language Models for Unsupervised Grammatical Error Correction14 Sep 2021
- 2021Virtual Data Augmentation: A Robust and General Framework for Fine-tuning Pre-trained Models13 Sep 2021
- 2021Detecting Textual Adversarial Examples through Randomized Substitution and Vote13 Sep 2021
- 2021RockNER: A Simple Method to Create Adversarial Examples for Evaluating the Robustness of Named Entity Recognition Models12 Sep 2021
50 newest of 58 All 58 (JSON)
- 2023Exploiting Programmatic Behavior of LLMs: Dual-Use Through Standard Security Attackscited by 268
- 2022Why Should Adversarial Perturbations be Imperceptible? Rethink the Research Paradigm in Adversarial NLPcited by 99
- 2021Evaluating the Robustness of Neural Language Models to Input Perturbationscited by 87
- 2022VALUE: Understanding Dialect Disparity in NLUcited by 45
- 2022SemAttack: Natural Textual Attacks via Different Semantic Spacescited by 42
- 2021LM-Critic: Language Models for Unsupervised Grammatical Error Correctioncited by 33
- 2022Detection of Word Adversarial Examples in Text Classification: Benchmark and Baseline via Robust Density Estimationcited by 32
- 2021RockNER: A Simple Method to Create Adversarial Examples for Evaluating the Robustness of Named Entity Recognition Modelscited by 28
- 2021Achieving Model Robustness through Discrete Adversarial Trainingcited by 23
- 2022Phrase-level Textual Adversarial Attack with Label Preservationcited by 23
- 2021Understanding the Generalization Benefit of Model Invariance from a Data Perspectivecited by 22
- 2022A Survey of Adversarial Defences and Robustness in NLPcited by 22
12 most cited of 54 All 54 (JSON)
- 2026MELD: Multi-Task Equilibrated Learning Detector for AI-Generated Text7 May 2026
- 2025Guided Perturbation Sensitivity (GPS): Detecting Adversarial Text via Embedding Stability and Word Importance6 Aug 2025
- 2025Robustness in Both Domains: CLIP Needs a Robust Text Encoder3 Jun 2025
- 2025Statistical Runtime Verification for LLMs via Robustness Estimation24 Apr 2025
- 2025Misspellings in Natural Language Processing: A survey28 Jan 2025
- 2024Learning Robust Named Entity Recognizers From Noisy Data With Retrieval Augmentation26 Jul 2024
- 2024MaskPure: Improving Defense Against Text Adversaries with Stochastic Purification18 Jun 2024
- 2024Revisiting Character-level Adversarial Attacks for Language Models7 May 2024
- 2023Finite-context Indexing of Restricted Output Space for NLP Models Facing Noisy Input21 Oct 2023
- 2023Toward Stronger Textual Attack Detectors21 Oct 2023
- 2023What Learned Representations and Influence Functions Can Tell Us About Adversarial Examples19 Sep 2023
- 2023SCAT: Robust Self-supervised Contrastive Learning via Adversarial Training for Text Classification4 Jul 2023
12 newest of 54 All 54 (JSON)