mlsanityData to 14 Oct 2026

Analyzing Semantic Faithfulness of Language Models via Input Intervention on Question Answering

arXiv 2212.10696 ↗First posted 21 Dec 2022cs.CL cs.LGcited by 6

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2022Training language models to follow instructions with human feedbackcited by 15,971
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  5. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
  6. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
  7. 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,059
  8. 2019How Can We Know What Language Models Know?cited by 959
  9. 2020A Primer in BERTology: What we know about how BERT workscited by 815
  10. 2017Counterfactual Fairnesscited by 804
  11. 2020How Much Knowledge Can You Pack Into the Parameters of a Language Model?cited by 719
  12. 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 713
24 more
  1. 2018CoQA: A Conversational Question Answering Challengecited by 683
  2. 2019Designing and Interpreting Probes with Control Taskscited by 640
  3. 2017Adversarial Examples for Evaluating Reading Comprehension Systemscited by 571
  4. 2019Learning the Difference that Makes a Difference with Counterfactually-Augmented Datacited by 439
  5. 2019What do you learn from context? Probing for sentence structure in contextualized word representationscited by 438
  6. 2019Linguistic Knowledge and Transferability of Contextual Representationscited by 383
  7. 2017Synthetic and Natural Noise Both Break Neural Machine Translationcited by 306
  8. 2019Negated and Misprimed Probes for Pretrained Language Models: Birds Can Talk, But Cannot Flycited by 243
  9. 2019Causality for Machine Learningcited by 243
  10. 2018Stress Test Evaluation for Natural Language Inferencecited by 213
  11. 2020Information-Theoretic Probing for Linguistic Structurecited by 207
  12. 2021Constrained Language Models Yield Few-Shot Semantic Parserscited by 163
  13. 2019oLMpics -- On what Language Model Pre-training Capturescited by 161
  14. 2020Finding Universal Grammatical Relations in Multilingual BERTcited by 110
  15. 2021Understanding by Understanding Not: Modeling Negation in Language Modelscited by 73
  16. 2020Adv-BERT: BERT is not robust on misspellings! Generating nature adversarial samples on BERTcited by 69
  17. 2020Universal Adversarial Attacks with Natural Triggers for Text Classificationcited by 51
  18. 2021Few-Shot Semantic Parsing with Language Models Trained On Codecited by 50
  19. 2019A Multi-Type Multi-Span Network for Reading Comprehension that Requires Discrete Reasoningcited by 41
  20. 2021Are Larger Pretrained Language Models Uniformly Better? Comparing Performance at the Instance Levelcited by 34
  21. 2019Technical report on Conversational Question Answeringcited by 19
  22. 2020What's in a Name? Are BERT Named Entity Representations just as Good for any other Name?cited by 17
  23. 2020F1 is Not Enough! Models and Evaluation Towards User-Centered Explainable Question Answeringcited by 11
  24. 2021What's in your Head? Emergent Behaviour in Multi-Task Transformer Modelscited by 9

Built on by

Cited by year

Citing papers per year: 2024: 3; 2025: 3.

6 papers.