Spurious Privacy Leakage in Neural Networks

Chenxiang Zhang, Jun Pang, Sjouke Mauw · DOI

Introduction

Machine learning models are frequently plagued by two distinct challenges: bias and privacy vulnerabilities. Bias often manifests as a reliance on "spurious correlations"—non-causal associations in a dataset, such as identifying a duck based on a water background rather than the bird's physical features. Privacy vulnerabilities, on the other hand, involve the risk that an adversary can determine whether a specific individual's data was used to train a model, typically through Membership Inference Attacks (MIA).

While these issues have been studied extensively in isolation, their intersection remains a critical blind spot. This paper introduces the concept of spurious privacy leakage, demonstrating that data groups defined by these misleading correlations are significantly more vulnerable to privacy attacks. The research explores whether the statistical biases that lead to unfairness also create a "privacy disparity," making certain subgroups easier targets for data extraction.

Experimental Framework

To quantify privacy risks, the authors employ the Likelihood Ratio Attack (LiRA), the current state-of-the-art for membership inference. LiRA functions by training multiple "shadow models" to estimate the behavior of a target model on seen versus unseen data, allowing for a high-precision determination of membership.

The study evaluates these risks across five diverse benchmarks designed for spurious correlation research:

  • Waterbirds: Classifying birds where the background (water vs. land) is a spurious cue.
  • CelebA: Identifying gender where hair color often serves as a biased proxy.
  • FMoW (Functional Map of the World): Satellite imagery where geographical location introduces bias.
  • MultiNLI: A natural language inference dataset where negation words (e.g., "no") are spuriously linked to specific labels.
  • CivilComments: A toxicity detection dataset containing biases toward specific demographic identities.

Beyond standard training, the authors test two popular bias-mitigation techniques: Group Distributionally Robust Optimization (DRO), which minimizes loss for the worst-performing group, and Deep Feature Reweighting (DFR), which retrains the model's final layer on a balanced subset. Feature representations are further analyzed using Centered Kernel Alignment (CKA) and Principal Component Analysis (PCA) to understand the complexity of learned features.

The Spurious Privacy Gap

The core finding of the research is the existence of a significant spurious privacy gap. In datasets like Waterbirds, samples belonging to the "spurious" group (e.g., a land bird placed on a water background) are up to 10 times more vulnerable to privacy attacks than those in the majority groups. On the Waterbirds dataset specifically, the True Positive Rate (TPR) for the attack at a low False Positive Rate was approximately 30.9% for the spurious group, compared to a mere 3.1% for the non-spurious group.

Counterintuitively, the study finds that as a task becomes simpler—for instance, reducing the number of classes in a dataset—the privacy disparity actually increases. Simpler tasks tend to lead to simpler feature representations, which the model more easily memorizes, thereby increasing the success rate of membership inference for biased subgroups.

The Robustness Paradox

Perhaps the most surprising insight is that robustness does not equal privacy. While methods like DRO and DFR successfully improve the accuracy of the "worst-case" groups, they fail to mitigate privacy leakage.

Analysis reveals that while these robust models stop relying on spurious features for their final predictions, they still memorize those features during the training process. For example, when applying DFR to the CivilComments dataset, the worst-group accuracy improved significantly, yet the privacy leakage (TPR) remained nearly identical to a standard model (0.32% vs 0.44%). This suggests that current bias-mitigation strategies are insufficient for protecting the privacy of vulnerable subgroups.

Furthermore, while Differential Privacy (DP-SGD) can offer better protection for these groups, it often results in a steep decline in overall model utility, making it a difficult trade-off for practitioners working with biased datasets.

Conclusion and Future Directions

This research highlights a critical tension in machine learning: fixing a model's predictive bias does not automatically fix its privacy flaws. The fact that models continue to memorize spurious features even when they are trained to ignore them poses a significant risk to data subjects in minority or "spurious" subgroups.

Future research directions include:

  • Targeted Attacks: Investigating how adversaries might craft attacks specifically aimed at vulnerable subgroups.
  • Poisoning Risks: Exploring whether an attacker could intentionally strengthen a spurious correlation to make specific data easier to leak.
  • Label-Free Auditing: Developing methods to detect these privacy disparities without requiring explicit labels for the spurious groups.

By identifying the phenomenon of spurious privacy leakage, this work underscores the need for holistic approaches that address both fairness and privacy simultaneously.

Summary updated

BibTeX
@article{zhang2025spurious,
  author = {Chenxiang Zhang and Jun Pang and Sjouke Mauw},
  title = {{Spurious Privacy Leakage in Neural Networks}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=tRXDCIgvTT},
}
Figure