Investigating Membership Inference Attacks under Data Dependencies

Thomas Humphries, Simon Oya, Lindsey Tulloch, Matthew Rafuse, Ian Goldberg, Urs Hengartner, Florian Kerschbaum · DOI · OpenReview

TL;DR

Differential Privacy (DP) is often touted as a robust defense against Membership Inference Attacks (MIAs), but this paper reveals a major blind spot: the assumption that data points are independent. When data samples are correlated—as they almost always are in the real world—MIAs become significantly more effective, often blowing past the theoretical privacy bounds that researchers rely on.

What Problem Does This Paper Address?

A Membership Inference Attack (MIA) allows an adversary to determine if a specific individual's data was used to train a machine learning model. To defend against this, researchers use Differential Privacy (DP), which mathematically limits how much any single data point can influence the model's output.

However, most existing evaluations of DP assume that data is IID (Independent and Identically Distributed). In this "lab setting," every person's data is treated as an independent event. In reality, data is full of dependencies: people in the same hospital share similar diagnostic patterns, students in the same school have similar backgrounds, and census data curated by different researchers might contain overlapping biases.

The authors argue that if your data is correlated with other samples in the training set, DP’s protection "leaks." Even if the model doesn't memorize your specific record, it learns the patterns of the group you belong to, which an attacker can use to guess your membership with high accuracy.

Methods

The authors bridge the gap between theory and practice using three main approaches:

  1. A Tighter IID Bound: They derive a new, mathematically tighter upper bound for membership advantage in the standard IID setting, improving upon previous benchmarks.
  2. The Mixture Model (MM) Experiment: They propose a new framework for evaluating MIAs that accounts for subpopulations. Instead of sampling members and non-members from one giant pool, they sample from different "mixture components" (e.g., different hospitals or clusters) to simulate real-world dependencies.
  3. Empirical Stress-Testing: They test "off-the-shelf" MIAs (like Shokri’s shadow models and Yeom’s threshold attacks) against models trained with DP-SGD (Differentially Private Stochastic Gradient Descent). Crucially, the attacks they use are not customized to exploit dependencies—they are standard attacks, yet they still perform better on dependent data.

Datasets

The study utilizes a diverse array of real-world datasets to simulate different types of dependencies:

  • Standard Benchmarks: Adult (Census income), Compas (recidivism), and Texas (hospital procedures).
  • Multi-Source Data: The Heart dataset (collected from four different hospitals in the US and Europe) and the Students dataset (from two different Portuguese schools).
  • Curation Splits: Comparing the Adult dataset against the raw US Census data to see how different filtering rules by researchers create detectable dependencies.

Key Insights and Ideas

  • The "Group Privacy" Problem: DP is designed to protect individuals, but it struggles with groups. If 100 people in a training set share a unique correlation, the model will learn that correlation even under DP. If an attacker knows you share that correlation, they can infer you were likely in the training set.
  • Bias as a Vulnerability: The authors found that attribute bias (e.g., a training set that is 90% male) significantly increases MIA success. If a model is trained on biased data, it generalizes poorly to the "non-member" group, making it easy for an attacker to distinguish between the two.
  • DP is Not a Cure-All: The results show that in non-IID settings, the "privacy parameter" ($\epsilon$) effectively scales with the training set size. This means that for large, dependent datasets, DP provides much less protection than the $\epsilon$ value suggests.
  • Hidden Dependencies: Even when researchers think they are using "clean" data, the way data is curated (filtered, cleaned, or sampled) introduces dependencies that MIAs can exploit.

Key Results

  • Breaking the Bounds: In cluster-based experiments, the MIA "advantage" (a measure of attack success) reached nearly 1.0 (perfect accuracy) for $\epsilon$ values that were previously thought to be safe.
  • Real-World Impact: On the Heart dataset, training on data from one hospital and testing against non-members from other hospitals resulted in a significantly higher attack success rate compared to a shuffled (IID) version of the same data.
  • Tighter Theory: The authors' new theoretical bound for IID data is roughly 0.2 points tighter than previous bounds (like Erlingsson’s), providing a more accurate "best-case scenario" for privacy.

Limitations and Future Work

The authors acknowledge that their study focuses on black-box attacks, where the attacker only sees the model's outputs. They suggest that white-box attacks (where the attacker sees the model's internal weights) might find even more devastating vulnerabilities in dependent data.

A major takeaway is that the "random shuffling" typically used to evaluate privacy is misleading. Future work needs to develop dependency-aware DP mechanisms or at least standardize evaluation protocols that use realistic, non-IID splits to give a true picture of a model's privacy risks in the wild.

Summary updated

BibTeX
@inproceedings{humphries2023investigating,
  author = {Thomas Humphries and Simon Oya and Lindsey Tulloch and Matthew Rafuse and Ian Goldberg and Urs Hengartner and Florian Kerschbaum},
  title = {{Investigating Membership Inference Attacks under Data Dependencies}},
  booktitle = {CSF},
  year = {2023},
  url = {https://openreview.net/forum?id=vyHSVdESOc},
}
Figure