TL;DR
This paper introduces "contrast sets" as a novel evaluation paradigm for NLP models. By creating minimally perturbed versions of existing test data that change the gold label, contrast sets reveal how well models have truly learned intended linguistic phenomena, rather than just exploiting dataset artifacts. This approach leads to significantly lower performance on contrast sets compared to original test sets, highlighting a critical gap in current model evaluations.
What Problem Does This Paper Address?
Standard NLP evaluation benchmarks, while useful for assessing in-distribution generalization, often suffer from "systematic gaps." These gaps, arising from annotation artifacts or inherent biases in data collection, allow models to learn simple, superficial decision rules that achieve high accuracy on the test set but don't reflect genuine understanding of the task's intended linguistic phenomena. This leads to a misleading overestimation of model capabilities. For instance, a model might learn to associate specific keywords with a sentiment rather than truly understanding the nuances of the text. The paper aims to address this by providing a more rigorous evaluation method that probes a model's decision boundary locally.
Methods
The core contribution is the proposal and implementation of "contrast sets." The process involves dataset authors manually creating small, meaningful perturbations to existing test instances. These perturbations are designed to typically change the gold label while preserving the original example's lexical and syntactic characteristics. Crucially, these perturbations are created without a model in the loop to avoid biasing the contrast sets towards specific model failures.
The key idea is to create a "local view" of a model's decision boundary. By presenting a model with a set of these contrastive examples around a "pivot" instance, the authors can measure "contrast consistency"—how often a model's predictions remain consistent with the true label across these minimally altered inputs. This is contrasted with adversarial examples, which aim to fool a model without changing the gold label.
Datasets
The authors created contrast sets for 10 diverse NLP datasets, spanning various tasks:
- NLVR2: Natural Language Visual Reasoning
- IMDb: Sentiment Analysis
- MATRES: Temporal Relation Extraction
- English UD Parsing: Syntactic Parsing
- PERSPECTRUM: Reasoning about Perspectives
- DROP: Discrete Reasoning Over Paragraphs
- QUOREF: Reading Comprehension with Coreference Resolution
- ROPES: Reasoning Over Paragraph Effects in Situations
- BoolQ: Boolean Question Answering
- MC-TACO: Temporal Common-Sense Reasoning
These contrast sets are released as new evaluation benchmarks.
Key Insights and Ideas
- Dataset artifacts are a major problem: The paper strongly emphasizes that current benchmarks are often "gamed" by models exploiting unintended patterns, leading to inflated performance metrics.
- Contrast sets offer a local view of model understanding: By focusing on small, label-changing perturbations, contrast sets reveal whether a model has learned the underlying linguistic phenomenon or just memorized superficial cues.
- Human performance is robust on contrast sets: The authors demonstrate that humans perform comparably on both original and contrast sets, indicating that the difficulty lies in the linguistic phenomenon itself, not just the data's noisiness.
- Syntactic parsing is particularly vulnerable: The results for UD parsing show a dramatic drop in consistency, suggesting that even established linguistic tasks can be susceptible to subtle biases that standard evaluations miss.
- Contrast sets are not adversarial: While they reveal model weaknesses, they are designed to be model-agnostic and focus on the true decision boundary, unlike adversarial examples.
Key Results
- Significant performance degradation: State-of-the-art models showed a dramatic drop in performance on contrast sets compared to original test sets, with performance reductions of up to 25% in some cases.
- Low contrast consistency: For example, the UD parsing model achieved a contrast consistency of 17.3%, highlighting a significant gap between its learned behavior and the intended linguistic phenomena.
- Human performance remains high: On four tested datasets, human performance on contrast sets was comparable to original test sets (e.g., IMDb: 93.9% vs. 94.3%, PERSPECTRUM: 90.3% vs. 91.5%).
- Time investment is manageable: Creating contrast sets for approximately 1000 instances took about a person-week of effort, making it a feasible addition to dataset creation.
Limitations and Future Work
- Negative predictive power: Contrast sets can reveal if a model doesn't align with the correct decision boundary, but they cannot definitively confirm alignment because annotators cannot exhaustively label all inputs near a pivot. This limitation is shared with other evaluation methods like adversarial test sets.
- Dataset-specific instantiation: While the general principle is universal, experts must still characterize the specific phenomena to target for each dataset, requiring domain knowledge.
- Future work: The authors recommend that future dataset creation efforts incorporate contrast sets from the outset. They also suggest that automating the creation of simpler contrastive examples could be beneficial, while complex ones still require expert annotation. Further research into formalizing distance metrics for discrete NLP spaces and exploring more sophisticated contrast set construction methods is also encouraged.
Summary updated