[Paper Review] Practical Membership Inference Attacks against Fine-tuned Large Language Models via Self-prompt Calibration
The paper introduces SPV-MIA, a memorization-based membership inference attack for fine-tuned LLMs that uses self-prompted reference models to calibrate probabilistic variation, achieving higher AUC than baselines (about 23.6%–30% gains in reported comparisons).
Membership Inference Attacks (MIA) aim to infer whether a target data record has been utilized for model training or not. Existing MIAs designed for large language models (LLMs) can be bifurcated into two types: reference-free and reference-based attacks. Although reference-based attacks appear promising performance by calibrating the probability measured on the target model with reference models, this illusion of privacy risk heavily depends on a reference dataset that closely resembles the training set. Both two types of attacks are predicated on the hypothesis that training records consistently maintain a higher probability of being sampled. However, this hypothesis heavily relies on the overfitting of target models, which will be mitigated by multiple regularization methods and the generalization of LLMs. Thus, these reasons lead to high false-positive rates of MIAs in practical scenarios. We propose a Membership Inference Attack based on Self-calibrated Probabilistic Variation (SPV-MIA). Specifically, we introduce a self-prompt approach, which constructs the dataset to fine-tune the reference model by prompting the target LLM itself. In this manner, the adversary can collect a dataset with a similar distribution from public APIs. Furthermore, we introduce probabilistic variation, a more reliable membership signal based on LLM memorization rather than overfitting, from which we rediscover the neighbour attack with theoretical grounding. Comprehensive evaluation conducted on three datasets and four exemplary LLMs shows that SPV-MIA raises the AUC of MIAs from 0.7 to a significantly high level of 0.9. Our code and dataset are available at: https://github.com/tsinghua-fib-lab/NeurIPS2024_SPV-MIA
Motivation & Objective
- Motivate privacy risks in fine-tuned LLM pipelines and quantify membership risks beyond overfitting assumptions.
- Develop a robust MIA that relies on memorization rather than overfitting as the membership signal.
- Introduce a self-prompting technique to create a reference model from the target LLM itself for calibration.
- Evaluate SPV-MIA across multiple LLMs and datasets to demonstrate practical privacy leakage.
Proposed method
- Define probabilistic variation as a memorization-based signal around local probability maxima.
- Estimate probabilistic variation using paraphrased variants of the target text generated by a mask-fill model (e.g., T5).
- Calibrate the memorization signal by a self-prompt reference model trained on data generated by prompting the target LLM itself (self-prompting).
- Formulate the attack as A_our(x, θ, φ) = 1[ p̃_θ(x) - p̃_φ(x) ≤ τ ], where p̃ denotes probabilistic variation estimates on target and reference models.
- Incorporate a two-stage workflow: assess p̃_θ via paraphrase-based neighborhood sampling and calibrate with a φ fine-tuned on self-prompted data.
Experimental results
Research questions
- RQ1Does SPV-MIA outperform state-of-the-art MIAs on practical, memorization-driven LLMs?
- RQ2How does the quality of the self-prompt reference model affect attack performance?
- RQ3What is the impact of different fine-tuning techniques on SPV-MIA?
- RQ4Can privacy defenses withstand SPV-MIA attacks?
Key findings
- SPV-MIA consistently outperforms baselines across four LLMs and three datasets with an average AUC of 92.4%.
- Compared with the strongest baseline (LiRA-Candidate), SPV-MIA improves AUC by about 30% in the reported comparison.
- The paper reports an overall ~23.6% improvement in AUC for SPV-MIA over baselines in the abstract.
- A self-prompt reference model can be effectively calibrated without access to a matching reference dataset from the training distribution.
- Ablation studies show the contribution of each SPV-MIA module (probabilistic variation assessment and self-prompt calibration) to attack effectiveness.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.