CLOct 20, 2022

Finding Dataset Shortcuts with Grammar Induction

Princeton
arXiv:2210.11560v1301 citationsh-index: 55
Originality Incremental advance
AI Analysis

This work addresses the challenge of detecting dataset shortcuts for NLP researchers, offering a method that goes beyond low-level features to improve model robustness, though it is incremental by building on prior shortcut detection techniques.

The paper tackles the problem of automatically discovering shortcuts in NLP datasets by using probabilistic grammars to model patterns, revealing both simple and high-level features and identifying test examples where conventional classifiers fail. The result includes generating diagnostic contrast examples and improving worst-group accuracy through robust optimization methods.

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.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes