Detecting Training Data of Large Language Models via Expectation Maximization

Gyuwan Kim, Yang Li, Evangelia Spiliopoulou, Jie Ma, William Yang Wang
10/10/2024
cs.CLcs.AIcs.CR

No official code found. Best implementation: gyuwankim/em-mia (7 stars, Apache-2.0, last commit 2024-10-11).

Abstract

Membership inference attacks (MIAs) aim to determine whether a specific example was used to train a given language model. While prior work has explored prompt-based attacks such as ReCALL, these methods rely heavily on the assumption that using known non-members as prompts reliably suppresses the model's responses to non-member queries. We propose EM-MIA, a new membership inference approach that iteratively refines prefix effectiveness and membership scores using an expectation-maximization strategy without requiring labeled non-member examples. To support controlled evaluation, we introduce OLMoMIA, a benchmark that enables analysis of MIA robustness under systematically varied distributional overlap and difficulty. Experiments on WikiMIA and OLMoMIA show that EM-MIA outperforms existing baselines, particularly in settings with clear distributional separability. We highlight scenarios where EM-MIA succeeds in practical settings with partial distributional overlap, while failure cases expose fundamental limitations of current MIA methods under near-identical conditions. We release our code and evaluation pipeline to encourage reproducible and robust MIA research.

View on arXivView PDF

Code Implementations(1)

gyuwankim/em-miaCommunity100%
Apache-2.0

[EACL 2026] Detecting Training Data of Large Language Models via Expectation Maximization

70PythonJul 9, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{kim2024detecting,
  title  = {Detecting Training Data of Large Language Models via Expectation Maximization},
  author = {Gyuwan Kim and Yang Li and Evangelia Spiliopoulou and Jie Ma and William Yang Wang},
  year   = {2024},
  eprint = {2410.07582},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.07582v3}
}

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/2410.07582.svg)](https://codeofpaper.com/paper/2410.07582)

Discussion