Scaling Up Membership Inference: When and How Attacks Succeed on Large Language Models

Haritz Puerto, Martin Gubri, Sangdoo Yun, Seong Joon Oh
10/31/2024
cs.CLcs.AIcs.LG

No official code found. Best implementation: parameterlab/mia-scaling (16 stars, MIT, last commit 2025-12-16).

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.

View on arXivView PDF

Code Implementations(1)

MIT

Source code of NAACL 2025 Findings "Scaling Up Membership Inference: When and How Attacks Succeed on Large Language Models"

164PythonOct 30, 202410 months agoMIT

Similar Papers

Cite this paper

@article{puerto2024scaling,
  title  = {Scaling Up Membership Inference: When and How Attacks Succeed on Large Language Models},
  author = {Haritz Puerto and Martin Gubri and Sangdoo Yun and Seong Joon Oh},
  year   = {2024},
  eprint = {2411.00154},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.00154v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.00154.svg)](https://codeofpaper.com/paper/2411.00154)

Discussion