NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Impact of Dataset Properties on Membership Inference Vulnerability of Deep Transfer Learning

Marlon Tobaben, Hibiki Ito, Joonas Jälkö, Yuan He, Antti Honkela

TL;DR

This paper reveals that the privacy risk of fine-tuned neural networks—specifically their vulnerability to membership inference attacks (MIAs)—decreases according to a predictable power law as you add more training examples per class. While more data helps, the authors demonstrate that protecting the most "unique" or vulnerable data points requires an impractically massive amount of data, highlighting why formal Differential Privacy (DP) remains essential.

What Problem Does This Paper Address?

Machine learning models often "memorize" specific details of their training data, making them susceptible to Membership Inference Attacks (MIAs), where an adversary tries to determine if a specific record was used to train the model.

While Differential Privacy (DP) provides a mathematical framework to bound this risk, its guarantees can sometimes feel overly conservative or difficult to translate into "real-world" attack success rates. Conversely, empirical MIA evaluations are often specific to one model or dataset. This paper bridges that gap by asking: How do fundamental dataset properties, like the number of classes and the number of samples per class, quantitatively impact a model's privacy vulnerability?

Methods

The researchers combined theoretical modeling with extensive empirical testing:

  1. Theoretical Analysis: They developed a simplified mathematical model of neural network fine-tuning (a linear "head" classifier). Within this model, they proved that the attacker's advantage (True Positive Rate minus False Positive Rate) follows a power law: it scales roughly with $1/\sqrt{S}$, where $S$ is the number of "shots" (examples per class).
  2. State-of-the-Art Attacks: They employed two powerful black-box attacks: LiRA (Likelihood Ratio Attack) and RMIA (Robust Membership Inference Attack). These attacks use "shadow models" to estimate how a model's loss distribution changes when a specific point is included in training.
  3. Predictive Regression: They proposed a simple linear regression model to predict vulnerability based on dataset size ($S$) and the number of classes ($C$): $$\log_{10}(\text{TPR} - \text{FPR}) = \beta_S \log_{10}(S) + \beta_C \log_{10}(C) + \beta_0$$

Datasets

The study focused on a transfer learning setting, fine-tuning pre-trained backbones (ViT-B and ResNet-50) on several image classification datasets:

  • VTAB (Visual Task Adaptation Benchmark) subset: Includes Patch Camelyon (medical imaging), EuroSAT (satellite), Oxford Flowers/Pets, and Resics45.
  • CIFAR-10 and CIFAR-100: Standard computer vision benchmarks.
  • ImageNet-21k: Used for pre-training the backbones.

Key Insights and Ideas

  • The $1/\sqrt{S}$ Rule: The most striking finding is the consistency of the power law. As shown in Figure 1, as the number of examples per class increases, the vulnerability drops linearly on a log-log scale. Figure 1: Power-law relation between MIA vulnerability and examples per class.

  • Average vs. Worst-Case Privacy: While average vulnerability drops quickly, the worst-case vulnerability (the risk to the most "outlier-ish" samples) decreases much more slowly.

  • The "Crowding" Effect: Increasing the number of classes ($C$) slightly increases vulnerability, likely because more classes lead to more complex decision boundaries that are easier for an attack to exploit (see Figure 2). Figure 2: Small effect of number of classes C on MIA vulnerability.

  • Generalization of Risk: The regression model trained on one architecture (ViT-B) could accurately predict the vulnerability of a completely different architecture (ResNet-50), suggesting that privacy risk is more a property of the data distribution than the specific model weights.

Figure 1: We observe a power-law relation be- tween MIA vulnerability and examples per class (denoted as S or shots) when attacking a fine-tuned ViT-B Head using LiRA. Each colored line denotes a different fine-tuning dataset where C specifies the number of classes. The solid line is median and the error bars the min/max bounds for the Clopper- Pearson CIs over six seeds.
Figure 2: Small effect of number of classes C (classes) on MIA vulnerability when attacking a fine-tuned ViT-B Head. The solid line is median and the error bars the min/max bounds for the Clopper-Pearson CIs over 12 seeds (S = 32).

Key Results

  • High Predictive Accuracy: The regression model achieved an $R^2$ of 0.930, meaning it can very accurately predict how much data you need to reach a certain privacy level.
  • Transferability: The model remained robust when changing the fine-tuning method (e.g., from just the "Head" to using FiLM adapters).
  • The "Safe" Dataset Size: To match a modest DP guarantee of $\epsilon=1$ for the most vulnerable points, the model predicts you would need roughly 7 million examples per class (for a 2-class problem). This quantitatively proves that "just adding more data" is not a viable substitute for formal privacy mechanisms like DP-SGD.
  • Attack Stability: While both LiRA and RMIA follow the power law, RMIA was found to be more "unstable" or noisy at lower false-positive rates compared to LiRA. Figure 3: Comparison of LiRA and RMIA vulnerability.
Figure 3: LiRA and RMIA vulnerability ((TPR −FPR) at FPR = 0.1) as a function of shots (S) when attacking a ViT-B Head fine-tuned on different datasets. For better visibility, we split the datasets into two panels. We observe the power-law for both attacks, but the RMIA is more unstable than LiRA. The lines display the median over six seeds.

Limitations and Future Work

  • Gaussian Assumption: The theoretical proofs rely on the assumption that model scores are normally distributed. While often true in practice, heavy-tailed distributions might break the power law.
  • From-Scratch Training: The authors noted that models trained from scratch are significantly more vulnerable than fine-tuned models, and their current power-law model underestimates this risk.
  • Adversary Knowledge: The study assumes a "realistic" adversary who knows the data distribution but not the specific private dataset. Stronger adversaries (e.g., those who know all but one point in the dataset) might invalidate these trends.
  • Future Direction: Investigating which specific properties of a class (e.g., intra-class variance) make it more vulnerable than others.

Summary updated

BibTeX
@inproceedings{tobaben2025impact,
  author = {Marlon Tobaben and Hibiki Ito and Joonas Jälkö and Yuan He and Antti Honkela},
  title = {{Impact of Dataset Properties on Membership Inference Vulnerability of Deep Transfer Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=SR6ivhZCQK},
}
Figure