On the Foundations of Shortcut Learning
Katherine L. Hermann, Hossein Mobahi, Thomas Fel, Michael C. Mozer
TL;DR
This work investigates why deep nonlinear networks adopt shortcut features that are only spuriously predictive, introducing a generative framework with latent features $z_s$ (shortcut) and $z_c$ (core) whose predictivity $\rho_i$ and availability (via amplification $\alpha_i$ and nesting $\eta_i$) can be independently controlled. It demonstrates, through controlled synthetic data, synthetic-image experiments, and NTK-based theory, that linear nets are largely unbiased with respect to feature availability, while nonlinear networks exhibit a robust availability bias that can even dominate prediction when the shortcut is more available. The theory identifies the exact interaction between predictivity and availability, predicting that bias increases with depth and nonlinearity and that equal predictivity leads to a bias toward the more-available feature; empirical results on naturalistic datasets corroborate that non-core features like backgrounds can unduly influence vision models. Altogether, the paper argues that shortcut learning is a fundamental consequence of deep nonlinear architectures and provides a framework to analyze and potentially mitigate such biases in real-world data.
Abstract
Deep-learning models can extract a rich assortment of features from data. Which features a model uses depends not only on \emph{predictivity} -- how reliably a feature indicates training-set labels -- but also on \emph{availability} -- how easily the feature can be extracted from inputs. The literature on shortcut learning has noted examples in which models privilege one feature over another, for example texture over shape and image backgrounds over foreground objects. Here, we test hypotheses about which input properties are more available to a model, and systematically study how predictivity and availability interact to shape models' feature use. We construct a minimal, explicit generative framework for synthesizing classification datasets with two latent features that vary in predictivity and in factors we hypothesize to relate to availability, and we quantify a model's shortcut bias -- its over-reliance on the shortcut (more available, less predictive) feature at the expense of the core (less available, more predictive) feature. We find that linear models are relatively unbiased, but introducing a single hidden layer with ReLU or Tanh units yields a bias. Our empirical findings are consistent with a theoretical account based on Neural Tangent Kernels. Finally, we study how models used in practice trade off predictivity and availability in naturalistic datasets, discovering availability manipulations which increase models' degree of shortcut bias. Taken together, these findings suggest that the propensity to learn shortcut features is a fundamental characteristic of deep nonlinear architectures warranting systematic study given its role in shaping how models solve tasks.
