- Home
- Image Attacks Lab
- Data Poisoning Lab
- Evasion Attacks Lab
- Defense Lab
- LLM Red Teaming Lab
- Model Privacy Lab
- Backdoor / Trojan Lab
- Robustness Evaluation Lab
- My experiments
- Scientific references
- Glossary and FAQ
Membership inference
Model Privacy Lab · privacy
Level 1: idea and analogy
The idea
An attack that decides whether a given sample was in the model's training data, usually from confidence/loss differences between members and non-members.
Analogy
Knows you read the book because you answer its questions with unusual confidence.
Level 2: how it works and when to use it
Steps
1) Train a shadow model on attacker data. 2) Produce scores for members and non-members. 3) Calibrate a threshold. 4) Apply it to the target.
When to use it
Auditing the risk of exposing sensitive data.
Strengths
Clearly measures the privacy impact of overfitting.
Level 3: mathematics, assumptions, limits
Mathematical form
\mathcal A(x,y)=\mathbb 1\big[\ell(f(x),y)<\tau\big];\quad \text{advantage}=\mathrm{TPR}-\mathrm{FPR}Assumptions
Access to model outputs; similarly distributed data; a target that memorises its training data.
Limitations
Accuracy alone is misleading; Carlini et al. recommend TPR at very low FPR, while this lab reports AUC and accuracy only.
Metrics
AUC, accuracy, generalisation gap, TPR@FPR.
Defenses
Reduce overfitting, regularise, differential privacy, reduce output detail.
Level 4: pitfalls and references for researchers
Common pitfalls
Judging the attack by balanced 50/50 accuracy only; forgetting the result concerns one model and one seed.
References
- Shokri, R.; Stronati, M.; Song, C.; Shmatikov, V. (2017). Membership Inference Attacks Against Machine Learning Models. IEEE Symposium on Security and Privacy (SP) 2017, pp. 3-18. doi:10.1109/sp.2017.41
- Yeom, S. et al. (2018). Privacy Risk in Machine Learning: Analyzing the Connection to Overfitting. IEEE Computer Security Foundations Symposium (CSF) 2018. Link
- Carlini, N. et al. (2022). Membership Inference Attacks From First Principles. IEEE Symposium on Security and Privacy (SP) 2022. Link
