Order of Magnitude Speedups for LLM Membership Inference

Rongting Zhang, Martín Bertrán, Aaron Roth · DOI

Abstract

Membership Inference Attacks (MIAs) are critical for auditing the privacy of Large Language Models (LLMs), yet current state-of-the-art methods like LiRA are computationally prohibitive, requiring the training of multiple "shadow models" of equivalent size to the target. This paper discusses a novel approach using Quantile Regression Ensembles that achieves comparable or superior detection accuracy at approximately 6% of the computational cost. By utilizing ensembles of small, architecture-agnostic models to estimate null distributions, this method enables routine privacy auditing for large-scale models.

1. Introduction

As Large Language Models (LLMs) are increasingly fine-tuned on sensitive, proprietary data—ranging from medical records to private communications—the risk of data memorization becomes a primary security concern. A Membership Inference Attack (MIA) serves as the standard tool for privacy auditing, attempting to determine if a specific data point was included in a model's training set.

The current gold standard for MIAs is the Likelihood Ratio Attack (LiRA). However, LiRA presents a significant "Catch-22": it requires training several "shadow models" that mirror the target model's architecture and scale. For a 7-billion parameter model, this necessitates training multiple 7B models, effectively doubling or tripling the total training budget just for a privacy audit. This research introduces a more efficient alternative that replaces these heavy shadow models with lightweight quantile regression ensembles.

2. Methodology: Quantile Regression Ensembles

The core innovation lies in moving away from full-scale model replication. Instead of training a shadow LLM to mimic the target, the researchers propose using Quantile Regression Ensembles.

2.1 Distribution Prediction

The method trains small models to directly predict the distribution (mean and variance) of the log-likelihood scores that a model would assign to unseen data. This "null distribution" provides a baseline for what a non-member's score should look like.

2.2 Ensembles of Weak Learners

To ensure robustness and stability, the attack employs an ensemble of small models (e.g., five Pythia-160m models). These are treated as a uniformly weighted mixture. By averaging the predictions of these "weak learners," the attacker obtains a stable estimate of the null distribution without the need for high-parameter shadow models.

2.3 Difficulty Calibration

Privacy auditing is essentially an outlier detection task. By comparing the target model's actual log-likelihood score for a specific document against the predicted distribution from the ensemble, the attack can identify "outliers"—documents that the model treats with unexpected familiarity, indicating likely membership in the training set.

3. Experimental Results

The researchers evaluated the approach using datasets including AG News, WikiText-103, and XSum, targeting models such as OPT (up to 6.7B), Pythia (up to 6.9B), and Llama-7b.

3.1 Computational Efficiency

The most striking result is the reduction in compute requirements. The ensemble method requires only 6% of the compute budget compared to traditional shadow model approaches. For instance, while a single shadow model for Pythia-6.9b required approximately 53 hours of training, the proposed ensemble approach required only 0.64 hours per small model.

3.2 Detection Accuracy

The method is particularly effective in the "low false-positive" regime, which is critical for practical auditing where false accusations of data leakage must be minimized. On the WikiText dataset with a Llama-7b target, the ensemble method achieved a 17.96% True Positive Rate (TPR) at a 0.1% False Positive Rate (FPR). In contrast, the best LiRA variant achieved only a 1.94% TPR under the same conditions.

3.3 Architecture Agnosticism

Unlike LiRA, which typically requires matching architectures, this method is architecture-agnostic. An ensemble of OPT-based models can successfully audit a Llama-based target. This flexibility suggests that the "difficulty" of a document is a property that generalizes across different tokenizers and model structures.

4. Discussion and Implications

The findings suggest a shift in how we view LLM privacy. The ability of a 160-million parameter model to effectively "interrogate" a 7-billion parameter model demonstrates that attacker models do not need to match the scale of their targets.

The authors advocate for MIAs to be treated as "privacy unit tests." While they do not offer the formal guarantees of Differential Privacy, their low cost and high accuracy make them a practical "red-flag" warning system that organizations can deploy after every fine-tuning session to detect memorization.

5. Conclusion

By drastically reducing the computational overhead of Membership Inference Attacks, this research removes a major hurdle to responsible AI development. The transition from expensive shadow models to efficient quantile regression ensembles allows for scalable, frequent, and cross-platform privacy auditing of the world's most powerful language models.

Summary updated

BibTeX
@inproceedings{zhang2024order,
  author = {Rongting Zhang and Martín Bertrán and Aaron Roth},
  title = {{Order of Magnitude Speedups for LLM Membership Inference}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.253},
}
Figure