Analyzing Semantic Faithfulness of Language Models via Input Intervention on Question Answering
Not on the map. Why?
Abstract (arXiv)
Transformer-based language models have been shown to be highly effective for several NLP tasks. In this paper, we consider three transformer models, BERT, RoBERTa, and XLNet, in both small and large versions, and investigate how faithful their representations are with respect to the semantic content of texts. We formalize a notion of semantic faithfulness, in which the semantic content of a text should causally figure in a model's inferences in question answering. We then test this notion by observing a model's behavior on answering questions about a story after performing two novel semantic interventions: deletion intervention and negation intervention. While transformer models achieve high performance on standard question answering tasks, we show that they fail to be semantically faithful once we perform these interventions for a significant number of cases (~50% for deletion intervention, and ~20% drop in accuracy for negation intervention). We then propose an intervention-based training regime that can mitigate the undesirable effects for deletion intervention by a significant margin (from ~ 50% to ~6%). We analyze the inner-workings of the models to better understand the effectiveness of intervention-based training for deletion intervention. But we show that this training does not attenuate other aspects of semantic unfaithfulness such as the models' inability to deal with negation intervention or to capture the predicate-argument structure of texts. We also test InstructGPT, via prompting, for its ability to handle the two interventions and to capture predicate-argument structure. While InstructGPT models do achieve very high performance on predicate-argument structure task, they fail to respond adequately to our deletion and negation interventions.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 36 of its 70 references that are in the map. First posted on arXiv 21 Dec 2022.
Builds on
36 of 70 references.
References · 36
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,059
- 2019How Can We Know What Language Models Know?cited by 959
- 2020A Primer in BERTology: What we know about how BERT workscited by 815
- 2017Counterfactual Fairnesscited by 804
- 2020How Much Knowledge Can You Pack Into the Parameters of a Language Model?cited by 719
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 713
24 more
- 2018CoQA: A Conversational Question Answering Challengecited by 683
- 2019Designing and Interpreting Probes with Control Taskscited by 640
- 2017Adversarial Examples for Evaluating Reading Comprehension Systemscited by 571
- 2019Learning the Difference that Makes a Difference with Counterfactually-Augmented Datacited by 439
- 2019What do you learn from context? Probing for sentence structure in contextualized word representationscited by 438
- 2019Linguistic Knowledge and Transferability of Contextual Representationscited by 383
- 2017Synthetic and Natural Noise Both Break Neural Machine Translationcited by 306
- 2019Negated and Misprimed Probes for Pretrained Language Models: Birds Can Talk, But Cannot Flycited by 243
- 2019Causality for Machine Learningcited by 243
- 2018Stress Test Evaluation for Natural Language Inferencecited by 213
- 2020Information-Theoretic Probing for Linguistic Structurecited by 207
- 2021Constrained Language Models Yield Few-Shot Semantic Parserscited by 163
- 2019oLMpics -- On what Language Model Pre-training Capturescited by 161
- 2020Finding Universal Grammatical Relations in Multilingual BERTcited by 110
- 2021Understanding by Understanding Not: Modeling Negation in Language Modelscited by 73
- 2020Adv-BERT: BERT is not robust on misspellings! Generating nature adversarial samples on BERTcited by 69
- 2020Universal Adversarial Attacks with Natural Triggers for Text Classificationcited by 51
- 2021Few-Shot Semantic Parsing with Language Models Trained On Codecited by 50
- 2019A Multi-Type Multi-Span Network for Reading Comprehension that Requires Discrete Reasoningcited by 41
- 2021Are Larger Pretrained Language Models Uniformly Better? Comparing Performance at the Instance Levelcited by 34
- 2019Technical report on Conversational Question Answeringcited by 19
- 2020What's in a Name? Are BERT Named Entity Representations just as Good for any other Name?cited by 17
- 2020F1 is Not Enough! Models and Evaluation Towards User-Centered Explainable Question Answeringcited by 11
- 2021What's in your Head? Emergent Behaviour in Multi-Task Transformer Modelscited by 9
Built on by
Citing papers per year: 2024: 3; 2025: 3.
6 papers.
- 2024Strong hallucinations from negation and how to fix themcited by 6
- 2024Exploring Failure Cases in Multimodal Reasoning About Physical Dynamicscited by 5
- 2025Semantic Mastery: Enhancing LLMs with Advanced Natural Language Understandingcited by 4
- 2024Learning Semantic Structure through First-Order-Logic Translationcited by 2
- 2025Rewrite-to-Rank: Optimizing Ad Visibility via Retrieval-Aware Text Rewritingcited by 2
- 2025SSA: Improving Performance With a Better Scoring Functioncited by 1
- 2025SSA: Improving Performance With a Better Scoring Function20 Aug 2025
- 2025Rewrite-to-Rank: Optimizing Ad Visibility via Retrieval-Aware Text Rewriting3 Jul 2025
- 2025Semantic Mastery: Enhancing LLMs with Advanced Natural Language Understanding1 Apr 2025
- 2024Learning Semantic Structure through First-Order-Logic Translation4 Oct 2024
- 2024Exploring Failure Cases in Multimodal Reasoning About Physical Dynamics24 Feb 2024
- 2024Strong hallucinations from negation and how to fix them16 Feb 2024