mlsanityData to 14 Oct 2026

Finding Dataset Shortcuts with Grammar Induction

arXiv 2210.11560 ↗First posted 20 Oct 2022cs.CLcited by 15

Not on the map. Why?

Abstract (arXiv)

Many NLP datasets have been found to contain shortcuts: simple decision rules that achieve surprisingly high accuracy. However, it is difficult to discover shortcuts automatically. Prior work on automatic shortcut detection has focused on enumerating features like unigrams or bigrams, which can find only low-level shortcuts, or relied on post-hoc model interpretability methods like saliency maps, which reveal qualitative patterns without a clear statistical interpretation. In this work, we propose to use probabilistic grammars to characterize and discover shortcuts in NLP datasets. Specifically, we use a context-free grammar to model patterns in sentence classification datasets and use a synchronous context-free grammar to model datasets involving sentence pairs. The resulting grammars reveal interesting shortcut features in a number of datasets, including both simple and high-level features, and automatically identify groups of test examples on which conventional classifiers fail. Finally, we show that the features we discover can be used to generate diagnostic contrast examples and incorporated into standard robust optimization methods to improve worst-group accuracy.

Key facts. Cited by 15 papers in the map (data through 14 Oct 2026). Builds on 30 of its 53 references that are in the map. First posted on arXiv 20 Oct 2022.

Builds on

30 of 53 references.

References · 30

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  3. 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
  4. 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,070
  5. 2017Axiomatic Attribution for Deep Networkscited by 3,384
  6. 2020Shortcut Learning in Deep Neural Networkscited by 1,969
  7. 2015A large annotated corpus for learning natural language inferencecited by 1,847
  8. 2017Understanding Black-box Predictions via Influence Functionscited by 1,741
  9. 2019Right for the Wrong Reasons: Diagnosing Syntactic Heuristics in Natural Language Inferencecited by 876
  10. 2018Annotation Artifacts in Natural Language Inference Datacited by 671
  11. 2021Just Train Twice: Improving Group Robustness without Training Group Informationcited by 523
  12. 2019Learning the Difference that Makes a Difference with Counterfactually-Augmented Datacited by 439
18 more
  1. 2019PAWS: Paraphrase Adversaries from Word Scramblingcited by 402
  2. 2018Hypothesis Only Baselines in Natural Language Inferencecited by 295
  3. 2019Probing Neural Network Comprehension of Natural Language Argumentscited by 214
  4. 2020Explaining Black Box Predictions and Unveiling Data Artifacts through Influence Functionscited by 144
  5. 2019Towards Debiasing Fact Verification Modelscited by 143
  6. 2019Unlearn Dataset Bias in Natural Language Inference by Fitting the Residualcited by 119
  7. 2020Explaining NLP Models via Minimal Contrastive Editing (MiCE)cited by 106
  8. 2021Competency Problems: On Finding and Removing Artifacts in Language Datacited by 91
  9. 2019Compound Probabilistic Context-Free Grammars for Grammar Inductioncited by 76
  10. 2021Identifying and Mitigating Spurious Correlations for Improving Robustness in NLP Modelscited by 76
  11. 2021"Will You Find These Shortcuts?" A Protocol for Evaluating the Faithfulness of Input Salience Methods for Text Classificationcited by 66
  12. 2020Identifying Spurious Correlations for Robust Text Classificationcited by 59
  13. 2020Torch-Struct: Deep Structured Prediction Librarycited by 40
  14. 2021Combining Feature and Instance Attribution to Detect Artifactscited by 38
  15. 2021Sequence-to-Sequence Learning with Latent Neural Grammarscited by 30
  16. 2022Informativeness and Invariance: Two Perspectives on Spurious Correlations in Natural Languagecited by 21
  17. 2020Exposing Shallow Heuristics of Relation Extraction Models with Challenge Datacited by 20
  18. 2021Finding Variants for Construction-Based Dialectometry: A Corpus-Based Approach to Regional CxGscited by 11

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2022: 1; 2023: 8; 2024: 2; 2025: 3; 2026: 1.

15 papers.

Sort:

By area:

  1. 2023Grammar Prompting for Domain-Specific Language Generation with Large Language Modelscited by 58
  2. 2023Exploring the Landscape of Machine Unlearning: A Comprehensive Survey and Taxonomycited by 51
  3. 2023Explore Spurious Correlations at the Concept Level in Language Models for Text Classificationcited by 48
  4. 2023It Takes Two to Tango: Navigating Conceptualizations of NLP Tasks and Measurements of Performancecited by 26
  5. 2023Understanding and Mitigating Spurious Correlations in Text Classification with Neighborhood Analysiscited by 11
  6. 2023Robust Natural Language Understanding with Residual Attention Debiasingcited by 10
  7. 2026What do Language Models Learn and When? The Implicit Curriculum Hypothesiscited by 10
  8. 2024CoDa: Constrained Generation based Data Augmentation for Low-Resource NLPcited by 9
  9. 2024Leaving the barn door open for Clever Hans: Simple features predict LLM benchmark answerscited by 9
  10. 2022Unsupervised Discontinuous Constituency Parsing with Mildly Context-Sensitive Grammarscited by 7
  11. 2025Short-circuiting Shortcuts: Mechanistic Investigation of Shortcuts in Text Classificationcited by 5
  12. 2023Simple Hardware-Efficient PCFGs with Independent Left and Right Productionscited by 3
3 more
  1. 2025Detecting and Pruning Prominent but Detrimental Neurons in Large Language Modelscited by 2
  2. 2025KSHSeek: Data-Driven Approaches to Mitigating and Detecting Knowledge-Shortcut Hallucinations in Generative Modelscited by 1
  3. 2023Arithmetics-Based Decomposition of Numeral Words -- Arithmetic Conditions give the Unpacking Strategycited by 0