In and Out-of-Domain Text Adversarial Robustness via Label Smoothing
Not on the map. Why?
Abstract (arXiv)
Recently it has been shown that state-of-the-art NLP models are vulnerable to adversarial attacks, where the predictions of a model can be drastically altered by slight modifications to the input (such as synonym substitutions). While several defense techniques have been proposed, and adapted, to the discrete nature of text adversarial attacks, the benefits of general-purpose regularization methods such as label smoothing for language models, have not been studied. In this paper, we study the adversarial robustness provided by various label smoothing strategies in foundational models for diverse NLP tasks in both in-domain and out-of-domain settings. Our experiments show that label smoothing significantly improves adversarial robustness in pre-trained models like BERT, against various popular attacks. We also analyze the relationship between prediction confidence and robustness, showing that label smoothing reduces over-confident errors on adversarial examples.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 30 of its 50 references that are in the map. First posted on arXiv 20 Dec 2022.
Builds on
30 of 50 references.
References · 30
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2014Explaining and Harnessing Adversarial Examplescited by 7,364
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,475
- 2013Intriguing properties of neural networkscited by 5,155
- 2017On Calibration of Modern Neural Networkscited by 4,960
- 2016Towards Evaluating the Robustness of Neural Networkscited by 2,998
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
- 2015A large annotated corpus for learning natural language inferencecited by 1,847
18 more
- 2019When Does Label Smoothing Help?cited by 988
- 2014Deep Neural Networks are Easily Fooled: High Confidence Predictions for Unrecognizable Imagescited by 776
- 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 491
- 2018Generating Natural Language Adversarial Examplescited by 424
- 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
- 2020Calibration of Pre-trained Transformerscited by 315
- 2021Gradient-based Adversarial Attacks against Text Transformerscited by 234
- 2019Visualizing and Measuring the Geometry of BERTcited by 216
- 2020Contextualized Perturbation for Textual Adversarial Attackcited by 136
- 2016Towards better decoding and language model integration in sequence to sequence modelscited by 100
- 2020Delving Deep into Label Smoothingcited by 94
- 2020Intra Order-preserving Functions for Calibration of Multi-Class Neural Networkscited by 65
- 2022SemAttack: Natural Textual Attacks via Different Semantic Spacescited by 42
- 2020Improving Calibration through the Relationship with Adversarial Robustnesscited by 26
- 2022Query-Efficient and Scalable Black-Box Adversarial Attacks on Discrete Sequential Data via Bayesian Optimizationcited by 22
- 2019Label Smoothing and Logit Squeezing: A Replacement for Adversarial Training?cited by 18
- 2020Label Smoothing and Adversarial Robustnesscited by 10
- 2019Adversarial Robustness via Label-Smoothingcited by 5
Built on by
Citing papers per year: 2023: 1; 2024: 1; 2025: 3.
5 papers.
- 2024Evaluating and Safeguarding the Adversarial Robustness of Retrieval-Based In-Context Learningcited by 4
- 2025Tougher Text, Smarter Models: Raising the Bar for Adversarial Defence Benchmarkscited by 2
- 2025GenoArmory: A Unified Evaluation Framework for Adversarial Attacks on Genomic Foundation Modelscited by 2
- 2025Adversarial Defence without Adversarial Defence: Enhancing Language Model Robustness via Instance-level Principal Component Removalcited by 2
- 2023Revisiting the Role of Label Smoothing in Enhanced Text Sentiment Classificationcited by 0
- 2025Adversarial Defence without Adversarial Defence: Enhancing Language Model Robustness via Instance-level Principal Component Removal29 Jul 2025
- 2025GenoArmory: A Unified Evaluation Framework for Adversarial Attacks on Genomic Foundation Models16 May 2025
- 2025Tougher Text, Smarter Models: Raising the Bar for Adversarial Defence Benchmarks5 Jan 2025
- 2024Evaluating and Safeguarding the Adversarial Robustness of Retrieval-Based In-Context Learning24 May 2024
- 2023Revisiting the Role of Label Smoothing in Enhanced Text Sentiment Classification11 Dec 2023