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

Executive Summary

This paper investigates how dataset size and properties affect a model's vulnerability to Membership Inference Attacks (MIAs) during deep transfer learning. The authors discover a mathematical power-law relationship: as the number of training examples per class increases, MIA vulnerability predictably decreases. However, relying solely on dataset size for privacy is insufficient; protecting the most vulnerable individual data points requires impractically massive datasets, highlighting the continued need for formal Differential Privacy (DP).

Introduction: The Privacy vs. Utility Dilemma

Machine learning models can inadvertently memorize their training data, making them susceptible to Membership Inference Attacks (MIAs)—where an adversary tries to determine if a specific data point was used to train the model. While Differential Privacy (DP) provides mathematical guarantees against this, it assumes a worst-case adversary and can sometimes degrade model utility. MIAs, on the other hand, test practical privacy against more realistic adversaries.

We generally know that larger datasets help models generalize better and might reduce privacy risks. However, the exact quantitative relationship between dataset properties (like the number of examples per class) and MIA vulnerability isn't well understood, especially for modern deep transfer learning (fine-tuning pre-trained models). This paper aims to bridge that gap by mathematically and empirically quantifying how dataset size and the number of classes impact a fine-tuned vision model's vulnerability to state-of-the-art MIAs.

Methods and Datasets

The authors tackle the problem from both a theoretical and empirical angle:

  • Theoretical Framework: They formulate a simplified mathematical model of fine-tuning (sampling vectors on a high-dimensional sphere and classifying them by inner product with class means). Within this model, they prove that the optimal attack follows a specific power-law relationship between vulnerability and the number of examples per class ($S$).
  • Empirical Setup: They fine-tune pre-trained vision models (ViT-B and ResNet-50) on various sensitive downstream datasets. The experiments utilize a subset of the VTAB (Visual Task Adaptation Benchmark) and CIFAR datasets, specifically chosen because they achieve >80% test accuracy when fine-tuned. These include Patch Camelyon, CIFAR10, CIFAR100, EuroSAT, Oxford-IIIT Pets, and Resisc45.
  • Attack Evaluation: They evaluate vulnerability using two state-of-the-art, score-based MIAs: the Likelihood Ratio Attack (LiRA) and the Robust Membership Inference Attack (RMIA). They measure vulnerability as the attacker's advantage (True Positive Rate minus False Positive Rate) at a fixed, low False Positive Rate (FPR).
  • Predictive Modeling: They fit a linear regression model to predict the log of the attacker's advantage using the log of the number of shots ($S$) and the log of the number of classes ($C$).

Key Insights and Ideas

Power-law relationship between examples per class and MIA vulnerability.
  • The Power-Law of Privacy: There is a strict, predictable power-law relationship between the number of examples per class ($S$) and average MIA vulnerability. Specifically, the log of the vulnerability decreases linearly with the log of $S$ (with a theoretical slope of $-0.5$).
  • Classes vs. Shots: Increasing the number of classes ($C$) slightly increases vulnerability, but this effect is much weaker than the protective effect of adding more examples per class ($S$).
  • Vulnerability is Predictable: You can accurately predict a fine-tuned model's MIA vulnerability just by knowing $S$ and $C$. Remarkably, a regression model trained on ViT-B vulnerability data successfully generalizes to predict the vulnerability of a completely different architecture (ResNet-50).
  • The "Long Tail" of Vulnerability: While average vulnerability drops nicely with more data, the maximum individual vulnerability (the worst-case, most exposed data points) decreases at a much slower rate.
  • Data Size is Not a DP Replacement: To achieve empirical privacy comparable to meaningful Differential Privacy bounds (e.g., $\epsilon \le 1$) purely through dataset size, you would need an astronomically large dataset. "Hiding in the crowd" works for the average data point, but fails the outliers.

Key Results

Observed vs. Predicted TPR showing high predictive accuracy for fine-tuned models.
  • High Predictive Accuracy: The linear regression model predicting vulnerability fits the empirical data extremely well, achieving an $R^2 = 0.930$ for an FPR of 0.001 on the ViT-B models.
  • Matching Theory and Practice: The theoretical coefficient for $\log(S)$ is $-0.5$. The empirical coefficients closely matched this, ranging from $-0.506$ to $-0.627$ depending on the FPR evaluated.
  • Worst-Case Slopes: For the worst-case individual vulnerability, the slope of the power law is much shallower ($-0.2695$) compared to the average case ($-0.5$).
  • Extrapolating to DP: To match a DP bound of $\epsilon=1.0$ at an FPR of 0.001, the models predict you would need roughly 19,000 examples per class to protect the average case, and a staggering 7.0 million examples per class to protect the worst-case individual.

Limitations and Future Work

The theoretical model is simplified (assuming normally distributed data around class centers) and might not hold for heavy-tailed distributions. Furthermore, the empirical focus is strictly on transfer learning (fine-tuning). Models trained entirely from scratch are likely more vulnerable and might deviate from this specific power law. Finally, the evaluation relies on current MIAs (LiRA, RMIA); future, stronger attacks could shift these baselines.

The authors suggest investigating what specific properties of classes (e.g., intra-class variance, separability) make them more or less vulnerable. Another promising direction is exploring the impact of the pre-training data on the vulnerability of the fine-tuning data, as well as extending this power-law analysis to Large Language Models (LLMs).

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