Wiki Home
Membership inference
Definition
A membership inference attack (MIA) takes a trained model and a candidate example and predicts whether the example was in the model’s training set. It is formalized as a security game: a challenger trains a model on a sampled dataset, then flips a coin and hands the adversary either a training-set member or a fresh point from the same distribution; the adversary, given query access to the model, must guess which it received (Yeom et al., 2018). Practical attacks output a confidence score that is thresholded into a member/non-member decision, so an attack defines a whole trade-off curve between true and false positives rather than a single accuracy number.
The attack class began outside machine learning, as tracing attacks on genomic data: an individual’s presence in a study cohort could be detected from published aggregate statistics, which is itself the privacy violation (Homer et al., 2008). It was brought to machine learning models with query access by Shokri et al. (2017). The simplest ML attack thresholds the model’s loss on the candidate, exploiting the fact that training drives down loss on training examples (Yeom et al., 2018).
Membership inference matters twice over. Directly, membership can be sensitive (presence in a medical dataset). Indirectly, it is the measurement instrument of training-data privacy: production privacy audits are built on MIA libraries, and stronger attacks such as training-data extraction use membership predictions as a building block (Carlini et al., 2021).
Papers that use this concept
- Membership Inference Attacks From First Principles — the attack class the paper re-derives as a hypothesis test and re-evaluates at low false-positive rates.
- Deep Learning with Differential Privacy — the canonical defense whose guarantee upper-bounds any membership inference attack.
- Extracting Training Data from Large Language Models — reduces training-data extraction to membership inference, ranking generated candidates by a calibrated membership signal.
- Knowledge Unlearning for Mitigating Privacy Risks in Language Models — measures privacy on targeted extraction rather than membership-inference recall, and contrasts the two as risk metrics.
- SoK: Unintended Interactions among Machine Learning Defenses and Risks — uses membership inference as a recurring risk and shows that many defenses, by changing overfitting or memorization, move susceptibility to it.
- Secure Transformer Inference Made Non-interactive — motivates the protocol’s encrypted argmax: returning only the top label, rather than the full logit vector, limits the membership-inference leakage of a secure-inference result.
- Unlocking the Power of Differentially Private Zeroth-order Optimization for Fine-tuning LLMs — the leakage its differentially private fine-tuning provably bounds for the fine-tuning dataset.
- No Privacy Left Outside: On the (In-)Security of TEE-Shielded DNN Partition for On-Device ML — the training-data privacy attack, paired with model stealing, used to test whether a TEE partition matches the shielding-whole-model baseline.
- ASGARD: Protecting On-Device Deep Neural Networks with Virtualization-Based Trusted Execution Environments — a stolen on-device model also enables membership inference, one of the privacy harms that motivate keeping the model confidential.
- Knockoff Nets: Stealing Functionality of Black-Box Models — names membership inference among the inference attacks that read properties of a model or its data off the same prediction interface its extraction attack queries.
Variants and traps
- Membership inference predicts a bit about a known candidate example. It is distinct from training-data extraction (recovering examples outright) and from inferring aggregate properties of the training set.
- An attack’s average accuracy and its ability to confidently identify any member are different quantities; an attack can excel at one and fail at the other.
- Predicting non-membership well is not the same as predicting membership well; the two error types have asymmetric value to a real adversary.
See also
References
- Carlini, N., Tramèr, F., Wallace, E., Jagielski, M., Herbert-Voss, A., Lee, K., Roberts, A., Brown, T., Song, D., Erlingsson, Ú., et al. “Extracting Training Data from Large Language Models.” USENIX Security Symposium, 2021.
- Homer, N., Szelinger, S., Redman, M., Duggan, D., Tembe, W., Muehling, J., Pearson, J. V., Stephan, D. A., Nelson, S. F., and Craig, D. W. “Resolving Individuals Contributing Trace Amounts of DNA to Highly Complex Mixtures Using High-Density SNP Genotyping Microarrays.” PLoS Genetics, 4(8), 2008.
- Shokri, R., Stronati, M., Song, C., and Shmatikov, V. “Membership Inference Attacks Against Machine Learning Models.” IEEE Symposium on Security and Privacy, 2017.
- Yeom, S., Giacomelli, I., Fredrikson, M., and Jha, S. “Privacy Risk in Machine Learning: Analyzing the Connection to Overfitting.” IEEE Computer Security Foundations Symposium (CSF), 2018.