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

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

Marlon Tobaben, Gauri Pradhan, Yuan He, Joonas Jälkö, Antti Honkela · DOI

Abstract

Membership inference attacks (MIAs) are used to test practical privacy of machine learning models. MIAs complement formal guarantees from differential privacy (DP) under a more realistic adversary model. We analyse MIA vulnerability of fine-tuned neural networks both empirically and theoretically, the latter using a simplified model of fine-tuning. We show that the vulnerability of non-DP models when measured as the attacker advantage at a fixed false positive rate reduces according to a simple power law as the number of examples per class increases. A similar power-law applies even for the most vulnerable points, but the dataset size needed for adequate protection of the most vulnerable points is very large.

Introduction

Membership inference attacks (MIAs) represent a significant threat to the privacy of individuals whose data is used to train machine learning models. While Differential Privacy (DP) offers formal mathematical guarantees, MIAs provide a practical assessment of vulnerability under realistic adversarial conditions. This study investigates how dataset properties, specifically the number of examples per class, influence the success of MIAs in the context of deep transfer learning.

Methodology

The research employs a dual approach. Theoretically, the authors model the fine-tuning process of a neural network's classification head as a linear classifier operating on Gaussian-distributed features. This analytical framework predicts a power-law relationship between the number of training examples per class ($S$) and the attacker's advantage.

Empirically, the study validates this model using state-of-the-art MIAs, including the Likelihood Ratio Attack (LiRA) and the Robust Membership Inference Attack (RMIA). These attacks were tested on Vision Transformer (ViT-B) and ResNet-50 architectures fine-tuned on diverse datasets from the Visual Task Adaptation Benchmark (VTAB), such as Patch Camelyon, EuroSAT, and CIFAR-100. The primary metric for vulnerability is the True Positive Rate (TPR) at a fixed low False Positive Rate (FPR).

The Power-Law of Privacy

A key finding is that MIA vulnerability follows a predictable decay. The relationship can be expressed as $\log(\text{TPR} - \text{FPR}) \approx -0.5 \log(S) + \text{constant}$. This implies that quadrupling the number of examples per class approximately halves the attacker's advantage.

The power-law relationship between the number of examples per class (S) and MIA vulnerability across different numbers of classes (C).

The empirical results closely match the theoretical prediction, with a measured slope of approximately -0.506, compared to the theoretical -0.5.

Predictive Accuracy and Model Comparison

The regression model based on this power law demonstrates high predictive accuracy, achieving an $R^2$ score of 0.93. Furthermore, the study highlights a significant difference in vulnerability between fine-tuned models and those trained from scratch. Fine-tuned models appear more resilient, likely because the pre-training data acts as a buffer against overfitting to the fine-tuning set.

Observed vs. predicted TPR for models fine-tuned with FiLM versus those trained from scratch.

The Challenge of Outliers

While average privacy improves with dataset size, protecting the most vulnerable "outlier" data points remains a significant challenge. The study suggests that to achieve privacy levels comparable to strong DP ($\epsilon = 0.25$) for these points, datasets would need to be prohibitively large—potentially billions of examples per class. This highlights why dataset size alone is rarely enough to guarantee "universal" privacy.

Conclusion

This work quantifies the relationship between dataset size and membership inference vulnerability in transfer learning. While the discovery of a consistent power law provides a framework for estimating privacy risks, the results also underscore the difficulty of ensuring universal privacy for all individuals in a dataset through scale alone. Future research should explore the factors making specific classes or data points more vulnerable and the role of pre-training data in shaping these privacy dynamics.

Summary updated

BibTeX
@inproceedings{tobaben2025impact,
  author = {Marlon Tobaben and Gauri Pradhan and Yuan He and Joonas Jälkö 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