Robustifying Language Models with Test-Time Adaptation
Not on the map. Why?
Abstract (arXiv)
Large-scale language models achieved state-of-the-art performance over a number of language tasks. However, they fail on adversarial language examples, which are sentences optimized to fool the language models but with similar semantic meanings for humans. While prior work focuses on making the language model robust at training time, retraining for robustness is often unrealistic for large-scale foundation models. Instead, we propose to make the language models robust at test time. By dynamically adapting the input sentence with predictions from masked words, we show that we can reverse many language adversarial attacks. Since our approach does not require any training, it works for novel tasks at test time and can adapt to novel adversarial corruptions. Visualizations and empirical results on two popular sentence classification datasets demonstrate that our method can repair adversarial language attacks over 65% o
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 14 of its 21 references that are in the map. First posted on arXiv 29 Oct 2023.
Builds on
14 of 21 references.
References · 14
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2019Natural Adversarial Examplescited by 1,408
- 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 671
- 2018Universal Sentence Encodercited by 489
- 2021A Survey of Data Augmentation Approaches for NLPcited by 409
- 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 381
- 2016Counter-fitting Word Vectors to Linguistic Constraintscited by 140
- 2022Understanding Zero-Shot Adversarial Robustness for Large-Scale Modelscited by 117
- 2021Adversarial Attacks are Reversible with Natural Supervisioncited by 47
- 2020Comparing BERT against traditional machine learning text classificationcited by 46
- 2022Robust Perception through Equivariancecited by 9
2 more
Built on by
Citing papers per year: 2025: 2.
2 papers.
- 2025Agent Identity Evals: Measuring Agentic Identity23 Jul 2025
- 2025Position: Stop Acting Like Language Model Agents Are Normal Agents4 Feb 2025