Research map / Adversarial robustness and security / Attacks on text and graphs
On the Robustness of Language Encoders against Grammatical Errors
Fan Yin, Quanyu Long, Tao Meng, Kai-Wei Chang
Peking University · Shanghai Jiao Tong University · University of California, Los Angeles
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use worst-case (greedy) attack instead of probabilistic transformation | BERT · MRPC | attack success rate: 3.69 -> 31.25 | Hurt |
| use RoBERTa instead of BERT (more pre-training data) | encoder · downstream tasks (greedy) | attack success rate: 26.03 -> 20.28 (average) | Improved |
| replace pre-trained encoder with InferSent baseline | encoder · NLU tasks | attack success rate: 36.07 (InferSent) vs 20.28 (RoBERTa) average | Hurt |
| use genetic algorithm instead of greedy search (ablation) | BERT · MRPC | attack success rate: 31.25 -> 59.01 | Hurt |
| use beam search instead of greedy search (ablation) | BERT · MRPC | attack success rate: 31.25 -> 31.81 | No clear effect |
| increase allowed modifications from 15% to 45% of tokens (ablation) | greedy attack · MNLI-m | attack success rate: about 70 at ~20% error rate | Hurt |
| word-choice (Wchoice) errors vs other error types (ablation) | BERT/RoBERTa · MRPC, MNLI-m, SST-2 | times chosen in attacks: BERT MNLI 1129 vs Worder 62 | Hurt |
| use contextual encoder layers instead of input embeddings for error detection | probing classifier · sentence-level acceptability | accuracy: 64.7 -> 87.8 (BERT) | Improved |
| use contextual encoder layers instead of input embeddings for locating errors | probing classifier · token-level error location | accuracy: 48.6 -> 79.3 (BERT) | Improved |
| use middle layers (7-9) of BERT instead of lower or higher layers | probing classifier · acceptability | accuracy | Improved |
| add grammatical-error adversarial examples to training data (ablation) | BERT · MRPC corrupted dev | accuracy: 46 -> 82 | Improved |
| add adversarial augmentation (ablation) | BERT · MRPC original dev | accuracy | No clear effect |
Open problems in adversarial prompts for language models
Do adversarial-prompt attacks and defenses for language models hold on closed models, other languages, multi-turn use and adaptive opponents?
- The method needs white-box or logit access and cannot reach closed models. · 11 papers state it
- Evaluation is English-only, and other languages are untested. · 11 papers state it
- Models tested are open-weight and small, with frontier models left out. · 9 papers state it
Closest papers by meaning
- Robust Encodings: A Framework for Combating Adversarial Typos (ACL 2020 · similarity 0.90)
- Exploring the Capacity of a Large-scale Masked Language Model to Recognize Grammatical Errors (ACL 2022 · similarity 0.90)
- A Representation Level Analysis of NMT Model Robustness to Grammatical Errors (ACL 2025 · similarity 0.89)
- Evaluating the Robustness of Neural Language Models to Input Perturbations (EMNLP 2021 · similarity 0.89)
- Cross-Sentence Grammatical Error Correction (ACL 2019 · similarity 0.88)
- Revisiting Character-level Adversarial Attacks for Language Models (ICML 2024 · similarity 0.86)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.