Abstract
As machine learning shifts toward fine-tuning large foundation models, understanding privacy risks in transfer learning is crucial. This paper systematically evaluates various Membership Inference Attacks (MIAs) against fine-tuned models, revealing that while the Likelihood Ratio Attack (LiRA) is generally the most potent, no single attack captures all vulnerabilities. Notably, the white-box Inverse Hessian Attack (IHA) excels in high-data regimes with domain shifts, highlighting the need for multi-faceted privacy auditing.
Introduction
The standard paradigm for training AI models has shifted from training models from scratch to transfer learning—taking a massive, pre-trained foundation model and fine-tuning it on a smaller, domain-specific dataset. Because these downstream datasets are often sensitive (e.g., medical records, personal text), they are prime targets for Membership Inference Attacks (MIAs), which attempt to determine if a specific data point was used in a model's training set.
While MIAs are a standard tool for quantifying privacy leakage, the vast majority of MIA research evaluates models trained from scratch. This paper addresses the gap by conducting a massive empirical comparison of diverse score-based MIAs specifically in transfer learning settings, helping practitioners identify effective attacks for evaluating privacy risks when fine-tuning foundation models.
Methods and Attack Taxonomy
The authors evaluated eight different score-based MIAs, categorized by their requirements for target model access. These generally fall into two categories:
- Shadow-model-based MIAs: These require training surrogate "shadow" models to mimic the target model's behavior. The authors tested ML-Leaks, Trajectory-MIA, LiRA, and RMIA.
- Shadow-model-free MIAs: These are more computationally efficient and don't require training extra models. The authors tested LOSS, Attack-P, QMIA, and the Inverse Hessian Attack (IHA).
The experimental setup involved fine-tuning pre-trained Vision Transformers (ViT-B/16) and ResNets (BiT-M-R50x1) on datasets like CIFAR-10, CIFAR-100, and PatchCamelyon. Attack efficacy was measured using the True Positive Rate (TPR) at a very low False Positive Rate (FPR), representing realistic, high-confidence attack scenarios.
Key Insights and Results
The study reveals several critical findings regarding the vulnerability of fine-tuned models:
- Dataset Size and Vulnerability: For most attacks, efficacy consistently decreases as the number of training examples per class ("shots") increases. However, the Inverse Hessian Attack (IHA) defies this trend, performing better in high-shot regimes on out-of-distribution (OOD) datasets like PatchCamelyon.
- LiRA as the Baseline Champion: Across most low-to-medium data scenarios, LiRA consistently outperformed all other approaches, exhibiting the narrowest confidence intervals and highest TPR at low FPR.
- Fine-tuning Strategy Invariance: Whether fine-tuning just the classification head, using parameter-efficient FiLM adapters, or full fine-tuning, the strongest attacks (like LiRA) perform almost identically.
- Shadow Model Thresholds: For shadow-model-based attacks, performance stabilizes at around $M \ge 64$ shadow models, providing a cost-efficient threshold for auditing.
- Data Augmentation: Unlike in from-scratch training, data augmentation during fine-tuning produced negligible performance improvements for the attackers.
Conclusion
The empirical results demonstrate that no single "silver bullet" attack exists. Black-box attacks like LiRA dominate in low-data regimes but fail in high-data OOD regimes where white-box attacks like IHA succeed. Comprehensive privacy auditing therefore requires a multi-faceted approach. Future work should address imbalanced datasets and the computational constraints of scaling these evaluations.
Summary updated