NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Can Out-of-Distribution Evaluations Uncover Reliance on Prediction Shortcuts? A Case Study in Question Answering

Michal Štefánik, Timothee Mickus, Michal Spiegel, Marek Kadlčík, James K. Kuchar2025

Abstract

A majority of recent work in AI assesses models' generalization capabilities through the lens of performance on out-of-distribution (OOD) datasets. Despite their practicality, such evaluations build upon a strong assumption: that OOD evaluations can capture and reflect upon possible failures in a real-world deployment. In this work, we challenge this assumption and confront the results obtained from OOD evaluations with a set of specific failure modes documented in existing question-answering (QA) models, referred to as a reliance on spurious features or prediction shortcuts. We find that different datasets used for OOD evaluations in QA provide an estimate of models' robustness to shortcuts that have a vastly different quality, some largely underperforming even a simple, in-distribution evaluation. We partially attribute this to the observation that spurious shortcuts are shared across ID+OOD datasets, but also find cases where a dataset's quality for training and evaluation is largely disconnected. Our work underlines limitations of commonly-used OOD-based evaluations of generalization, and provides methodology and recommendations for evaluating generalization within and beyond QA more robustly.

Introduction

The pursuit of generalization—the ability of a model to perform accurately on data beyond its training set—is central to modern machine learning. To measure this, researchers frequently employ Out-of-Distribution (OOD) evaluations, where a model trained on one dataset (e.g., SQuAD) is tested on another (e.g., TriviaQA). The underlying assumption is that success on OOD data signifies that the model has learned the fundamental task rather than "shortcuts"—spurious correlations or biases inherent in the training data that do not hold in general.

This paper investigates whether this assumption holds true. Specifically, do OOD evaluations actually uncover a model's reliance on prediction shortcuts? If OOD benchmarks fail to expose these vulnerabilities, we risk deploying models that appear robust but are merely exploiting hidden biases shared across different datasets.

Methodology

The study focuses on extractive Question Answering (QA) and utilizes a two-pronged evaluation strategy across 10 diverse models:

  1. OOD Performance: Measuring Exact Match (EM) accuracy across five OOD datasets: TriviaQA, AdversarialQA, NewsQA, SearchQA, and NaturalQuestions (NQ).
  2. Shortcut Reliance: Using the isbiased library, the authors subset SQuAD validation data into segments where specific shortcuts (e.g., shared words, answer length, keyword matching) are or are not applicable. Robustness is measured by the performance drop when these shortcuts are removed.

The researchers then calculated the Kendall $\tau$ correlation between model rankings on OOD performance and their rankings on shortcut robustness to determine the effectiveness of OOD datasets as proxies for generalization.

Key Insights: The Variance of OOD Benchmarks

A primary finding is that OOD datasets are not a monolith; their utility as proxies for shortcut robustness varies significantly. As shown in the correlation analysis, some datasets are highly effective while others are virtually useless for this purpose.

Correlation between OOD performance and shortcut reliance across different datasets.

For instance, TriviaQA and AdversarialQA show high correlations with shortcut robustness ($\tau \approx 0.8$). Conversely, NaturalQuestions and SearchQA exhibit near-zero or even negative correlations. This suggests that a model performing well on NaturalQuestions might still be heavily reliant on shortcuts, potentially even more so than a model evaluated only on in-distribution data.

Results: The Ranking Mismatch

The disconnect between OOD performance and true robustness is most visible when comparing model rankings. A model that ranks first on an OOD average might rank poorly on specific shortcut-reliance tests.

Model rankings across OOD datasets and shortcut reliance benchmarks.

This "Robustness Trap" implies that selecting models based on standard OOD benchmarks can be misleading. Furthermore, the study reveals that shortcuts are often universal; models trained on OOD data frequently learn the same spurious features as those trained on SQuAD, indicating that simply changing the training distribution does not automatically eliminate shortcut reliance.

Discussion and Conclusion

The research highlights a critical disconnect between evaluation and training quality. A dataset like TriviaQA may be excellent for evaluating robustness but poor for training robust models. This underscores the need for a more nuanced approach to benchmarking.

The authors call for the NLP community to move beyond "convenience" OOD benchmarks. Instead, evaluations should explicitly target known failure modes and shortcuts. While this study is limited to extractive QA and a specific set of known shortcuts, it provides a vital methodology for more robustly evaluating generalization in AI.

Summary updated

BibTeX
@misc{stefanik2025can,
  author = {Michal Štefánik and Timothee Mickus and Michal Spiegel and Marek Kadlčík and James K. Kuchar},
  title = {{Can Out-of-Distribution Evaluations Uncover Reliance on Prediction Shortcuts? A Case Study in Question Answering}},
  year = {2025},
  doi = {10.18653/v1/2025.findings-emnlp.1232},
}
Figure