[Paper Review] Understanding Rare Spurious Correlations in Neural Networks
This paper investigates how neural networks learn rare spurious correlations—patterns appearing in only a few training examples—and demonstrates that even one such example can induce strong, harmful correlations. It shows these correlations degrade privacy and test accuracy, and proposes mitigation via input noise and ℓ₂ regularization, which significantly reduce spurious learning without assumptions on data or model structure.
Neural networks are known to use spurious correlations such as background information for classification. While prior work has looked at spurious correlations that are widespread in the training data, in this work, we investigate how sensitive neural networks are to rare spurious correlations, which may be harder to detect and correct, and may lead to privacy leaks. We introduce spurious patterns correlated with a fixed class to a few training examples and find that it takes only a handful of such examples for the network to learn the correlation. Furthermore, these rare spurious correlations also impact accuracy and privacy. We empirically and theoretically analyze different factors involved in rare spurious correlations and propose mitigation methods accordingly. Specifically, we observe that $\ell_2$ regularization and adding Gaussian noise to inputs can reduce the undesirable effects. Code available at https://github.com/yangarbiter/rare-spurious-correlation.
Motivation & Objective
- To understand whether and how neural networks learn spurious correlations when they appear in only a small number of training examples.
- To investigate the impact of rare spurious correlations on model privacy (via membership inference attacks) and test accuracy under distribution shift.
- To develop and evaluate general-purpose mitigation strategies that do not rely on assumptions about data or model structure.
- To bridge insights from membership inference attacks and adversarial robustness to rare spurious patterns.
- To provide theoretical and empirical evidence that even minimal exposure to rare spurious patterns can lead to significant model vulnerabilities.
Proposed method
- Introduce spurious patterns (e.g., colored backgrounds) to a small number of training images from a target class, creating 'spurious examples'.
- Train a neural network on the modified dataset and measure spurious correlation strength using a defined spurious score.
- Use a theoretical toy model to analyze the phase transition in spurious correlation learning based on spurious example fraction and signal-to-noise ratio.
- Evaluate privacy risks using membership inference attacks, measuring the adversary’s ability to distinguish spurious training samples from test data.
- Assess test accuracy under distribution shift by measuring both clean test accuracy and spurious test accuracy (with pattern added to test set).
- Test mitigation strategies: input Gaussian noise injection, ℓ₂ regularization (weight decay), and gradient clipping, comparing their effectiveness.
Experimental results
Research questions
- RQ1At what threshold of spurious examples (e.g., 1 out of 60k) does a neural network begin to learn and exhibit strong spurious correlations?
- RQ2How do rare spurious correlations affect model privacy, as measured by vulnerability to membership inference attacks?
- RQ3How do rare spurious correlations impact test accuracy, especially under distribution shifts favoring spurious patterns?
- RQ4Which regularization techniques effectively mitigate the negative effects of rare spurious correlations without relying on application-specific assumptions?
Key findings
- A neural network trained with just one spurious example out of 60,000 can develop a spurious score significantly higher than the baseline, indicating strong correlation learning.
- Spurious examples are substantially more vulnerable to membership inference attacks, confirming that rare spurious patterns can lead to privacy leaks.
- Clean test accuracy remains largely stable, but spurious test accuracy drops sharply under distribution shift, indicating that spurious correlations degrade performance when such patterns become common.
- Input Gaussian noise injection and ℓ₂ regularization effectively reduce spurious correlation strength and improve privacy and robustness, while gradient clipping does not show significant benefit.
- Theoretical analysis reveals a sharp phase transition in spurious correlation learning as the fraction of spurious examples increases from zero, indicating a critical threshold for model memorization.
- Different spurious patterns and model architectures show varying susceptibility, suggesting that the effectiveness of spurious correlation induction depends on dataset and model characteristics.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.