Context-Aware Membership Inference Attacks against Pre-trained Large Language ModelsContext-Aware Membership Inference Attacks against Pre-trained Large Language Models
Translation in progress — untranslated text is omitted.
The researchers propose a context-aware membership inference attack against pretrained large language models, used to determine whether a data point belongs to the model's training set. Previous membership inference methods designed for classification models are ineffective because they ignore the generation characteristics of large language models over token sequences; the new method adapts the statistical test of membership inference to the perplexity dynamics of subsequences within a data point. The authors state that the attack is significantly more effective than previous methods and reveal context-dependent memorization patterns in pretrained large language models.
- Membership inference attacks (MIAs) designed for classification models are largely ineffective on pretrained LLMs because they ignore the LLM's token-by-token generation and the influence of the prefix on predictions; the authors believe memorization is context-dependent, and the model relies more on memorization when prefix information is insufficient.
- CAMIA extracts multiple types of context-aware signals from per-token loss (token diversity calibration, truncated loss, loss decline slope, low-loss count, fluctuation measures, repetition amplification), turns each signal into a hypothesis test using Monte Carlo empirical p-values, and then combines them with methods such as Edgington to decide membership.
- Evaluated on the MIMIR benchmark across three families, Pythia, Pythia-deduped, and GPT-Neo: Pythia-deduped 2.8B reaches TPR@1%FPR of 32.00% in the Arxiv domain (best baseline 20.11%); attack effectiveness correlates with the training-test loss gap and is not directly related to model size; on high-overlap splits all methods are close to random.
- The authors note: the evaluation is limited to the English-dominant Pile; LLaMA/GPT were not evaluated because their training sets are not public; the attack relies on per-token loss and non-member calibration data. The experiments cover only three open-source model families, and the Mathematics domain has only 178 evaluation points.
Related papers
Both use: MIMIR