Shortcut Features as Top Eigenfunctions of NTK: A Linear Neural Network Case and More
Jinwoo Lim, Suhyun Kim, Soo-Mook Moon
TL;DR
This work analyzes shortcut learning through the Neural Tangent Kernel (NTK) lens, showing that shortcut features align with NTK eigenfunctions possessing large eigenvalues in imbalanced, clustered data. Through a linear network on a Gaussian Mixture Model and extensions to two-layer ReLU networks and ResNet-18, it demonstrates that shortcut features converge quickly and retain substantial influence on predictions, even when margins are debiased. It introduces predictability and availability metrics to quantify how learnable and NTK-aligned features are, and finds that shortcut labels exhibit higher availability and can persist across real-world datasets like Waterbirds and CelebA. The findings suggest that max-margin bias is not the sole driver of shortcut learning and highlight the role of data variance and NTK spectrum in shaping feature influence, with practical implications for debiasing strategies and evaluation metrics.
Abstract
One of the chronic problems of deep-learning models is shortcut learning. In a case where the majority of training data are dominated by a certain feature, neural networks prefer to learn such a feature even if the feature is not generalizable outside the training set. Based on the framework of Neural Tangent Kernel (NTK), we analyzed the case of linear neural networks to derive some important properties of shortcut learning. We defined a feature of a neural network as an eigenfunction of NTK. Then, we found that shortcut features correspond to features with larger eigenvalues when the shortcuts stem from the imbalanced number of samples in the clustered distribution. We also showed that the features with larger eigenvalues still have a large influence on the neural network output even after training, due to data variances in the clusters. Such a preference for certain features remains even when a margin of a neural network output is controlled, which shows that the max-margin bias is not the only major reason for shortcut learning. These properties of linear neural networks are empirically extended for more complex neural networks as a two-layer fully-connected ReLU network and a ResNet-18.
