Uncovering Memorization Effect in the Presence of Spurious Correlations
- Published
- July 1, 2025
- Publication
- Nature Communications
- Discipline
- Areas of Study
- Document Control Number(s)
-
- ISPS 25-42
- Citation
- Abstract
-
Machine learning models often rely on simple spurious features – patterns in training data that correlate with targets but are not causally related to them, like image backgrounds in foreground classification. This reliance typically leads to imbalanced test performance across minority and majority groups. In this work, we take a closer look at the fundamental cause of such imbalanced performance through the lens of memorization, which refers to the ability to predict accurately on atypical examples (minority groups) in the training set but failing in achieving the same accuracy in the testing set. This paper systematically shows the ubiquitous existence of spurious features in a small set of neurons within the network, providing the first-ever evidence that memorization may contribute to imbalanced group performance. Through three experimental sources of converging empirical evidence, we find the property of a small subset of neurons or channels in memorizing minority group information. Inspired by these findings, we hypothesize that spurious memorization, concentrated within a small subset of neurons, plays a key role in driving imbalanced group performance. To further substantiate this hypothesis, we show that eliminating these unnecessary spurious memorization patterns via a novel framework during training can significantly affect the model performance on minority groups. Our experimental results across various architectures and benchmarks offer new insights on how neural networks encode core and spurious knowledge, laying the groundwork for future research in demystifying robustness to spurious correlation.
- Description
-
Supplemental:
Related Data:
The Waterbirds dataset is available at https://github.com/kohpangwei/group_DRO, formed from https://www.vision.caltech.edu/datasets/cub_200_2011/ and http://places2.csail.mit.edu/. And the CelebA dataset is available at http://mmlab.ie.cuhk.edu.hk/projects/CelebA.html/. All requests from institution-affiliated researchers for access to processed data for purposes of study validation will be considered and should be directed to C.Y. (chenyu.you@yale.edu), and will be handled within 1 month. Source data are provided with this paper.
The code that supports the findings of this study is available at https://github.com/aarentai/Silent-Majority.