Scaling Up Membership Inference: When and How Attacks Succeed on Large Language Models
Haritz Puerto, Martin Gubri, Sangdoo Yun, Seong Joon Oh
TL;DR
This work reframes membership inference attacks as a scalable problem for large language models by introducing multiscale benchmarks that span sentences to collections. It extends Dataset Inference methods with a two-stage signal aggregation to enable binary membership detection across scales, validated on The Pile and Pythia models. The results show that MIAs are notably effective at document and collection levels, with AUROC reaching up to around $0.9$ in favorable settings, especially under continual learning and end-task fine-tuning. The study provides practical benchmarks and highlights the privacy and copyright implications of MIA in real-world LLM deployments, suggesting that robust defenses will need to consider large-scale data aggregation and fine-tuning regimes.
Abstract
Membership inference attacks (MIA) attempt to verify the membership of a given data sample in the training set for a model. MIA has become relevant in recent years, following the rapid development of large language models (LLM). Many are concerned about the usage of copyrighted materials for training them and call for methods for detecting such usage. However, recent research has largely concluded that current MIA methods do not work on LLMs. Even when they seem to work, it is usually because of the ill-designed experimental setup where other shortcut features enable "cheating." In this work, we argue that MIA still works on LLMs, but only when multiple documents are presented for testing. We construct new benchmarks that measure the MIA performances at a continuous scale of data samples, from sentences (n-grams) to a collection of documents (multiple chunks of tokens). To validate the efficacy of current MIA approaches at greater scales, we adapt a recent work on Dataset Inference (DI) for the task of binary membership detection that aggregates paragraph-level MIA features to enable MIA at document and collection of documents level. This baseline achieves the first successful MIA on pre-trained and fine-tuned LLMs.
