Finding Dataset Shortcuts with Grammar Induction
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
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,070
- 2017Axiomatic Attribution for Deep Networkscited by 3,384
- 2020Shortcut Learning in Deep Neural Networkscited by 1,969
- 2015A large annotated corpus for learning natural language inferencecited by 1,847
- 2017Understanding Black-box Predictions via Influence Functionscited by 1,741
- 2019Right for the Wrong Reasons: Diagnosing Syntactic Heuristics in Natural Language Inferencecited by 876
- 2018Annotation Artifacts in Natural Language Inference Datacited by 671
- 2021Just Train Twice: Improving Group Robustness without Training Group Informationcited by 523
- 2019Learning the Difference that Makes a Difference with Counterfactually-Augmented Datacited by 439
18 more
- 2019PAWS: Paraphrase Adversaries from Word Scramblingcited by 402
- 2018Hypothesis Only Baselines in Natural Language Inferencecited by 295
- 2019Probing Neural Network Comprehension of Natural Language Argumentscited by 214
- 2020Explaining Black Box Predictions and Unveiling Data Artifacts through Influence Functionscited by 144
- 2019Towards Debiasing Fact Verification Modelscited by 143
- 2019Unlearn Dataset Bias in Natural Language Inference by Fitting the Residualcited by 119
- 2020Explaining NLP Models via Minimal Contrastive Editing (MiCE)cited by 106
- 2021Competency Problems: On Finding and Removing Artifacts in Language Datacited by 91
- 2019Compound Probabilistic Context-Free Grammars for Grammar Inductioncited by 76
- 2021Identifying and Mitigating Spurious Correlations for Improving Robustness in NLP Modelscited by 76
- 2021"Will You Find These Shortcuts?" A Protocol for Evaluating the Faithfulness of Input Salience Methods for Text Classificationcited by 66
- 2020Identifying Spurious Correlations for Robust Text Classificationcited by 59
- 2020Torch-Struct: Deep Structured Prediction Librarycited by 40
- 2021Combining Feature and Instance Attribution to Detect Artifactscited by 38
- 2021Sequence-to-Sequence Learning with Latent Neural Grammarscited by 30
- 2022Informativeness and Invariance: Two Perspectives on Spurious Correlations in Natural Languagecited by 21
- 2020Exposing Shallow Heuristics of Relation Extraction Models with Challenge Datacited by 20
- 2021Finding Variants for Construction-Based Dialectometry: A Corpus-Based Approach to Regional CxGscited by 11
Built on by
Citing papers per year: 2022: 1; 2023: 8; 2024: 2; 2025: 3; 2026: 1.
15 papers.
Sort:
By area:
- 2023Grammar Prompting for Domain-Specific Language Generation with Large Language Modelscited by 58
- 2023Exploring the Landscape of Machine Unlearning: A Comprehensive Survey and Taxonomycited by 51
- 2023Explore Spurious Correlations at the Concept Level in Language Models for Text Classificationcited by 48
- 2023It Takes Two to Tango: Navigating Conceptualizations of NLP Tasks and Measurements of Performancecited by 26
- 2023Understanding and Mitigating Spurious Correlations in Text Classification with Neighborhood Analysiscited by 11
- 2023Robust Natural Language Understanding with Residual Attention Debiasingcited by 10
- 2026What do Language Models Learn and When? The Implicit Curriculum Hypothesiscited by 10
- 2024CoDa: Constrained Generation based Data Augmentation for Low-Resource NLPcited by 9
- 2024Leaving the barn door open for Clever Hans: Simple features predict LLM benchmark answerscited by 9
- 2022Unsupervised Discontinuous Constituency Parsing with Mildly Context-Sensitive Grammarscited by 7
- 2025Short-circuiting Shortcuts: Mechanistic Investigation of Shortcuts in Text Classificationcited by 5
- 2023Simple Hardware-Efficient PCFGs with Independent Left and Right Productionscited by 3
3 more
- 2025Detecting and Pruning Prominent but Detrimental Neurons in Large Language Modelscited by 2
- 2025KSHSeek: Data-Driven Approaches to Mitigating and Detecting Knowledge-Shortcut Hallucinations in Generative Modelscited by 1
- 2023Arithmetics-Based Decomposition of Numeral Words -- Arithmetic Conditions give the Unpacking Strategycited by 0
- 2026What do Language Models Learn and When? The Implicit Curriculum Hypothesis9 Apr 2026
- 2025Detecting and Pruning Prominent but Detrimental Neurons in Large Language Models12 Jul 2025
- 2025Short-circuiting Shortcuts: Mechanistic Investigation of Shortcuts in Text Classification9 May 2025
- 2025KSHSeek: Data-Driven Approaches to Mitigating and Detecting Knowledge-Shortcut Hallucinations in Generative Models25 Mar 2025
- 2024Leaving the barn door open for Clever Hans: Simple features predict LLM benchmark answers15 Oct 2024
- 2024CoDa: Constrained Generation based Data Augmentation for Low-Resource NLP30 Mar 2024
- 2023Arithmetics-Based Decomposition of Numeral Words -- Arithmetic Conditions give the Unpacking Strategy14 Dec 2023
- 2023Explore Spurious Correlations at the Concept Level in Language Models for Text Classification15 Nov 2023
- 2023Simple Hardware-Efficient PCFGs with Independent Left and Right Productions23 Oct 2023
- 2023Grammar Prompting for Domain-Specific Language Generation with Large Language Models30 May 2023
- 2023Robust Natural Language Understanding with Residual Attention Debiasing28 May 2023
- 2023Understanding and Mitigating Spurious Correlations in Text Classification with Neighborhood Analysis23 May 2023
3 more
- 2023It Takes Two to Tango: Navigating Conceptualizations of NLP Tasks and Measurements of Performance15 May 2023
- 2023Exploring the Landscape of Machine Unlearning: A Comprehensive Survey and Taxonomy10 May 2023
- 2022Unsupervised Discontinuous Constituency Parsing with Mildly Context-Sensitive Grammars18 Dec 2022
- 2023Grammar Prompting for Domain-Specific Language Generation with Large Language Modelscited by 58
- 2023Explore Spurious Correlations at the Concept Level in Language Models for Text Classificationcited by 48
- 2023It Takes Two to Tango: Navigating Conceptualizations of NLP Tasks and Measurements of Performancecited by 26
- 2023Understanding and Mitigating Spurious Correlations in Text Classification with Neighborhood Analysiscited by 11
- 2023Robust Natural Language Understanding with Residual Attention Debiasingcited by 10
- 2026What do Language Models Learn and When? The Implicit Curriculum Hypothesiscited by 10
- 2024CoDa: Constrained Generation based Data Augmentation for Low-Resource NLPcited by 9
- 2024Leaving the barn door open for Clever Hans: Simple features predict LLM benchmark answerscited by 9
- 2022Unsupervised Discontinuous Constituency Parsing with Mildly Context-Sensitive Grammarscited by 7
- 2025Short-circuiting Shortcuts: Mechanistic Investigation of Shortcuts in Text Classificationcited by 5
- 2023Simple Hardware-Efficient PCFGs with Independent Left and Right Productionscited by 3
- 2025Detecting and Pruning Prominent but Detrimental Neurons in Large Language Modelscited by 2
12 most cited of 14 All 14 (JSON)
- 2026What do Language Models Learn and When? The Implicit Curriculum Hypothesis9 Apr 2026
- 2025Detecting and Pruning Prominent but Detrimental Neurons in Large Language Models12 Jul 2025
- 2025Short-circuiting Shortcuts: Mechanistic Investigation of Shortcuts in Text Classification9 May 2025
- 2025KSHSeek: Data-Driven Approaches to Mitigating and Detecting Knowledge-Shortcut Hallucinations in Generative Models25 Mar 2025
- 2024Leaving the barn door open for Clever Hans: Simple features predict LLM benchmark answers15 Oct 2024
- 2024CoDa: Constrained Generation based Data Augmentation for Low-Resource NLP30 Mar 2024
- 2023Arithmetics-Based Decomposition of Numeral Words -- Arithmetic Conditions give the Unpacking Strategy14 Dec 2023
- 2023Explore Spurious Correlations at the Concept Level in Language Models for Text Classification15 Nov 2023
- 2023Simple Hardware-Efficient PCFGs with Independent Left and Right Productions23 Oct 2023
- 2023Grammar Prompting for Domain-Specific Language Generation with Large Language Models30 May 2023
- 2023Robust Natural Language Understanding with Residual Attention Debiasing28 May 2023
- 2023Understanding and Mitigating Spurious Correlations in Text Classification with Neighborhood Analysis23 May 2023
12 newest of 14 All 14 (JSON)