Papers › Membership Inference Attacks against Machine Learning Models

Membership Inference Attacks against Machine Learning Models

18 Oct 2016arXiv:1610.05820archive 2025-07-28

Reza Shokri, Marco Stronati, Congzheng Song, Vitaly Shmatikov

We quantitatively investigate how machine learning models leak information about the individual data records on which they were trained. We focus on the basic membership inference attack: given a data record and black-box access to a model, determine if the record was in the model's training dataset. To perform membership inference against a target model, we make adversarial use of machine learning and train our own inference model to recognize differences in the target model's predictions on the inputs that it trained on versus the inputs that it did not train on. We empirically evaluate our inference techniques on classification models trained by commercial "machine learning as a service" providers such as Google and Amazon. Using realistic datasets and classification tasks, including a hospital discharge dataset whose membership is sensitive from the privacy perspective, we show that these models can be vulnerable to membership inference attacks. We then investigate the factors that influence this leakage and evaluate mitigation strategies.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1610.05820")

Code

Syntology Ran 2 of 14 code samples harvested from 5 repositories linked to this paper; 12 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 1 ran · fixture could not drive it.

By repository: community (archive-listed): 11 samples from 4 repositories, 2 ran; found in paper text by Syntology: 3 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Koukyosyumei/AIJack mentioned on GitHubpytorch report
PrivPkt/PrivPkt mentioned on GitHubtfMIT report
awslabs/sagemaker-privacy-for-nlp mentioned on GitHubpytorchNOASSERTION report
spring-epfl/mia mentioned on GitHubpytorch report
yonsei-cysec/Membership_Inference_Attack mentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 2 ran; 0 honoured the contract we drafted; 12 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
1ran · fixture could not drive it
12unverified

Licence: 0 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 5 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

accuracy yonsei-cysec/Membership_Inference_Attack/utils/metric.py community (archive-listed) ran · fixture could not drive it MIT (permissive) · b0f936d4d6ae3b8c · report
prepare_attack_data spring-epfl/mia/mia/estimators.py community (archive-listed) ran · our draft was wrong MIT (permissive) · f399cccee25a4712 · report
force_length PrivPkt/PrivPkt/ISCX-preproc/kabab/utils/gen.py community (archive-listed) unverified MIT (permissive) · 5ec7cc132db252da · report
get_base_pkt PrivPkt/PrivPkt/ISCX-preproc/kabab/flow.py community (archive-listed) unverified MIT (permissive) · 9a16013f7255867e · report
get_model_prediction_scores ml-research/do-not-trust-prediction-scores-for-membership-inference-attacks/utils/model_utils.py community (archive-listed) unverified MIT (permissive) · af19edeb92a0ce40 · report
get_pcaps PrivPkt/PrivPkt/ISCX-preproc/kabab/utils/general.py community (archive-listed) unverified MIT (permissive) · d16121d6ebb3bc1c · report
give_me_results PrivPkt/PrivPkt/mia/mia.py community (archive-listed) unverified MIT (permissive) · d54e16609e4cd4a4 · report
lira_metrics yonsei-cysec/Membership_Inference_Attack/utils/metric.py community (archive-listed) unverified MIT (permissive) · 7731cfa4bb088988 · report
load_config yonsei-cysec/Membership_Inference_Attack/utils/load_config.py community (archive-listed) unverified MIT (permissive) · ddfeb2a10eaefde7 · report
load_pcap PrivPkt/PrivPkt/ISCX-preproc/kabab/utils/general.py community (archive-listed) unverified MIT (permissive) · 21786ee5f33906cd · report
make_member_nonmember yonsei-cysec/Membership_Inference_Attack/shadow/make_data.py community (archive-listed) unverified MIT (permissive) · d697fc8dd59df530 · report
convert_back Lasagne/Recipes/modelzoo/c3d.py found in paper text by Syntology unverified MIT (permissive) · 1ed624f64c635c68 · report
load_dataset Lasagne/Recipes/papers/densenet/cifar10.py found in paper text by Syntology unverified MIT (permissive) · 5206fe60bb83055f · report
preprocess Lasagne/Recipes/modelzoo/inception_v3.py found in paper text by Syntology unverified MIT (permissive) · 1dff06f483218f63 · report

Tasks

BIG-bench Machine LearningGeneral ClassificationInference AttackMembership Inference Attack

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections