On Robustness of Finetuned Transformer-based NLP Models
Not on the map. Why?
Abstract (arXiv)
Transformer-based pretrained models like BERT, GPT-2 and T5 have been finetuned for a large number of natural language processing (NLP) tasks, and have been shown to be very effective. However, while finetuning, what changes across layers in these models with respect to pretrained checkpoints is under-studied. Further, how robust are these models to perturbations in input text? Does the robustness vary depending on the NLP task for which the models have been finetuned? While there exists some work on studying the robustness of BERT finetuned for a few NLP tasks, there is no rigorous study that compares this robustness across encoder only, decoder only and encoder-decoder models. In this paper, we characterize changes between pretrained and finetuned language model representations across layers using two metrics: CKA and STIR. Further, we study the robustness of three language models (BERT, GPT-2 and T5) with eight different text perturbations on classification tasks from the General Language Understanding Evaluation (GLUE) benchmark, and generation tasks like summarization, free-form generation and question generation. GPT-2 representations are more robust than BERT and T5 across multiple types of input perturbation. Although models exhibit good robustness broadly, dropping nouns, verbs or changing characters are the most impactful. Overall, this study provides valuable insights into perturbation-specific weaknesses of popular Transformer-based models, which should be kept in mind when passing inputs. We make the code and models publicly available [https://github.com/PavanNeerudu/Robustness-of-Transformers-models].
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 28 of its 42 references that are in the map. First posted on arXiv 23 May 2023.
Builds on
28 of 42 references.
References · 28
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
- 2019Similarity of Neural Network Representations Revisitedcited by 1,755
- 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,317
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,059
- 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 1,001
- 2018Neural Network Acceptability Judgmentscited by 958
16 more
- 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 671
- 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 491
- 2019What do you learn from context? Probing for sentence structure in contextualized word representationscited by 438
- 2018Insights on representational similarity in neural networks with canonical correlationcited by 324
- 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
- 2021Adversarial GLUE: A Multi-Task Benchmark for Robustness Evaluation of Language Modelscited by 232
- 2021On the Effectiveness of Adapter-based Tuning for Pretrained Language Model Adaptationcited by 147
- 2019The Bottom-up Evolution of Representations in the Transformer: A Study with Machine Translation and Language Modeling Objectivescited by 139
- 2020What Happens To BERT Embeddings During Fine-tuning?cited by 113
- 2020Adv-BERT: BERT is not robust on misspellings! Generating nature adversarial samples on BERTcited by 69
- 2020Similarity Analysis of Contextual Word Representation Modelscited by 54
- 2021A Closer Look at How Fine-tuning Changes BERTcited by 42
- 2019Blackbox meets blackbox: Representational Similarity and Stability Analysis of Neural Language Models and Brainscited by 38
- 2022Robustness Analysis of Video-Language Models Against Visual and Language Perturbationscited by 23
- 2022RobustLR: Evaluating Robustness to Logical Perturbation in Deductive Reasoningcited by 22
- 2022Measuring Representational Robustness of Neural Networks Through Shared Invariancescited by 11
Built on by
Citing papers per year: 2024: 3; 2025: 4; 2026: 1.
8 papers.
- 2025Overcoming Sparsity Artifacts in Crosscoders to Interpret Chat-Tuningcited by 34
- 2025Learning to Interpret Weight Differences in Language Modelscited by 11
- 2024Characterizing stable regions in the residual stream of LLMscited by 5
- 2024Exploring Ordinality in Text Classification: A Comparative Study of Explicit and Implicit Techniquescited by 2
- 2024IndicSentEval: How Effectively do Multilingual Transformer Models encode Linguistic Properties for Indic Languages?cited by 2
- 2025SALMAN: Stability Analysis of Language Models Through the Maps Between Graph-based Manifoldscited by 2
- 2025A Representation Level Analysis of NMT Model Robustness to Grammatical Errorscited by 1
- 2026In Transformer We Trust? A Perspective on Transformer Architecture Failure Modescited by 1
- 2026In Transformer We Trust? A Perspective on Transformer Architecture Failure Modes15 Feb 2026
- 2025Learning to Interpret Weight Differences in Language Models6 Oct 2025
- 2025SALMAN: Stability Analysis of Language Models Through the Maps Between Graph-based Manifolds23 Aug 2025
- 2025A Representation Level Analysis of NMT Model Robustness to Grammatical Errors27 May 2025
- 2025Overcoming Sparsity Artifacts in Crosscoders to Interpret Chat-Tuning3 Apr 2025
- 2024IndicSentEval: How Effectively do Multilingual Transformer Models encode Linguistic Properties for Indic Languages?3 Oct 2024
- 2024Characterizing stable regions in the residual stream of LLMs25 Sep 2024
- 2024Exploring Ordinality in Text Classification: A Comparative Study of Explicit and Implicit Techniques20 May 2024