A Statistical and Multi-Perspective Revisiting of the Membership Inference Attack in Large Language Models

Bowen Chen, Namgi Han, Yusuke Miyao

Abstract

Membership Inference Attacks (MIA) aim to determine whether a specific text sequence was included in a large language model's (LLM) training data. Despite their importance for privacy and data leakage detection, research findings on MIA effectiveness remain highly inconsistent. This paper presents a comprehensive statistical re-audit of 11 MIA methods across thousands of experimental settings. Our results reveal that while larger models exhibit increased vulnerability, most current attack methods barely outperform random guessing and are significantly influenced by domain-specific factors and text length.

Introduction

As Large Language Models (LLMs) are trained on increasingly massive datasets, the risk of "data leakage"—the inadvertent inclusion of private information or evaluation benchmarks in training sets—has become a critical concern. Membership Inference Attacks serve as the primary diagnostic tool for identifying such leaks. However, the existing literature presents a contradictory landscape: some studies report high success rates, while others find performance comparable to a coin flip.

Overview of the large-scale statistical analysis framework for MIA methods across diverse experimental settings.

This inconsistency stems from the narrow scope of previous evaluations. This study addresses this gap by conducting a large-scale statistical analysis to determine the true reliability of MIA methods across various models, sizes, and data domains.

Methodology

The researchers benchmarked 11 distinct MIA methods, categorized into two primary groups:

  1. Gray-Box Methods: These leverage internal model signals, including token loss, gradients, or probability distributions (e.g., Min-k% Prob, Zlib, and RECALL).
  2. Black-Box Methods: These rely solely on the model's generated text outputs (e.g., SaMIA and CDD).

To ensure statistical robustness, thousands of experiments were conducted using the Pythia and OLMo model families, with sizes ranging from 160M to 13B parameters. The evaluation spanned diverse datasets, including WikiMIA, The Pile (arXiv, GitHub, FreeLaw), and Dolma. The study also utilized embedding probing and decoding entropy analysis to investigate how internal model states differ between member and non-member sequences.

Key Insights and Results

Generally Low and Inconsistent Performance

The most striking finding is that the majority of MIA methods yield ROC-AUC scores between 0.50 and 0.58. While statistically better than random guessing (0.50), these scores indicate that current attacks are not yet reliable for high-stakes privacy auditing. Furthermore, no single method emerged as a universal "winner"; performance varied drastically depending on the dataset and model configuration.

Probability Density Functions (PDF) of ROC-AUC scores across different split methods, model sizes, domains, and MIA methods for Pythia and OLMo models.

The Impact of Model Scale and Domain

Our analysis confirms that larger models are more vulnerable to MIA. As models scale, they exhibit higher "separability" in their internal embeddings, making it easier to distinguish between trained and untrained data. However, this vulnerability is highly domain-sensitive; attacks performed significantly better on natural language (Wikipedia, legal text) than on highly structured data like source code or mathematical formulas.

The Threshold and Layer Challenges

A major practical hurdle for MIA is the selection of a decision threshold. The study found that optimal thresholds shift wildly based on model size and domain, making "universal" attack parameters nearly impossible to define. Additionally, while most attacks focus on the final output layer, the researchers discovered that member/non-member differences are actually most distinct in the middle layers of the network. By the final layer, the model often "smooths out" these signals, reducing attack efficacy.

Conclusion

While Membership Inference Attacks provide a theoretical framework for privacy auditing, their current practical utility is limited by low average performance and extreme sensitivity to experimental settings. Future research should move away from seeking a single "best" attack and instead explore multi-layer integration—combining signals from various depths of the neural network to build a more robust signature of data membership. As models continue to grow in size, understanding these emergent vulnerabilities will be essential for maintaining data privacy and integrity.

Summary updated

BibTeX
@inproceedings{chen2025statistical,
  author = {Bowen Chen and Namgi Han and Yusuke Miyao},
  title = {{A Statistical and Multi-Perspective Revisiting of the Membership Inference Attack in Large Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure