A membership inference attack (MIA) is a privacy attack that infers whether a record was included in the set of data used to produce a given output, such as a machine learning model or some released statistics. This information can be valuable in itself: for example, if the dataset was a medical study of patients with a certain disease and one can confirm they are part of it, then they have the disease. There are two broad lines of research on MIAs. One focuses on published statistics about the dataset, asking whether a target individual is among the set of people over which the statistics were computed. For example, testing one's genotype against allele frequencies reported across single-nucleotide polymorphism sites to see if they contributed their DNA to the study. The other focuses on machine learning models, asking if a target example is among the records used to train the model, using either its prediction scores or its parameters. Attack performance is usually measured as true positive rate at a given false positive rate, or the area under the corresponding ROC curve, or the membership advantage, the true positive rate minus the false positive rate.
Attacks on aggregate statistics
Genomic data Many MIAs originated from the problem of determining individuals from aggregate genomic data. An early paper by Nils Homer et al. showed that one's genotype can be used, along with published allele frequency statistics across several SNPs, to determine whether they contributed their DNA to a study population with a similar genotype. This result had immediate practical consequences for storing genomic data, as the NIH and the Wellcome Trust subsequently decided to transition many datasets from public repositories to controlled access, such as dbGaP. Later papers generalized the result: for example, Dwork et al. showed that any number of statistics published about a database could be used to infer membership, and connected differential privacy and MIAs.
Other domains Similar techniques apply to data beyond SNPs and other genomics statistics. Knock Knock, Who's There?, a 2018 paper, formulated the problem as a binary classification task: train a classifier to distinguish between individuals that are members from those that are not and then apply it to a person that may be represented in an aggregate trace of locations published, for example, as a heat map. The paper demonstrated that such an attack can successfully determine individuals in trace data, even when no single trace is published. This principle can be generalized to any other type of aggregates, including simple counts over a sensitive population.
Attacks on machine learning models
Shadow models The attack by Shokri et al. was the first successful membership inference attack on an ML model. It was based on the observation that, for many models, the confidence score on a test record is higher when the record was part of the training set. To develop an attack, the authors used shadow models, ML models trained on similar data as the target one. Since the adversary knows which records were used to train them, they can be used to train another classifier to predict whether a record belongs to the target model's training set. Shadow models allow the adversary to approximate the target model's internal state without direct access, making membership inference possible without querying the model itself. In 2019, ML-Leaks showed that, for some models, a single shadow model is enough to launch an attack, and thus the danger was not limited to the specific architecture.
Other attacks Many subsequent attacks used similar ideas, but with modifications to reduce complexity or assumptions. The most important change was relaxing the requirements for the shadow model. In particular, there are two types of membership inference attacks: score-based and label-based. Score-based attacks such as those described in Yeom et al. or Carlini et al.'s LiRA use the model's confidence scores, while label-based attacks such as Choquette-Choo et al.'s Label Only Membership Inference use the predicted class directly. Label-based attacks are generally more powerful, especially when the adversary can influence the model input; for example, in natural language processing, a label-based attack can score the target record and several variations that differ by a few words to identify if it is in the training set based on whether these variations change the prediction. Another approach, model distillation, uses a simpler student model to replicate the behavior of a complex teacher model, allowing extraction of additional information about the training data. The effectiveness of such attacks varies depending on the dataset and the model. Overfitting is the most common source of model leakage, and standard techniques generally reduce it. For neural networks, techniques such as dropout and weight decay and early stopping mitigate overfitting. However, membership inference attacks are generally more effective when the model is large, the data is complex, and both the training and test sets are large, which is often the case for modern ML models.
Large language models Membership inference attacks are less effective against large language models, for both technical and practical reasons. An evaluation from 2024 suggested that on many tasks, these attacks perform only slightly better than random guessing, mostly due to the distribution of training data. Since the model typically encounters any particular piece of data only once, the overlap between the training and test sets is minimal. A related finding is that for many attacks, a simple baseline that had nothing to do with the model outperformed sophisticated membership inference attacks. This suggests that, if the train and test sets were sampled differently, for example, if the latter was taken from a different time period than the former, the attack might erroneously claim that the record comes from the training set simply because it is old. A similar issue affected the original genomic study: since the study samples were from homogeneous populations, testing a member of a different ethnic group might falsely identify them as part of the sample.
… excerpt ends here. Continue reading the full article.