What Really is a Member? Discrediting Membership Inference via Poisoning

Neal Mangaokar, Ashish Hooda, Zhuohang Li, Bradley A. Malin, Kassem Fawaz, Somesh Jha, Atul Prakash, Amrita Roy Chowdhury

Abstract

Membership Inference (MI) tests serve as the primary mechanism for auditing Large Language Models (LLMs) to determine if specific copyrighted or private data was included in their training sets. This paper demonstrates that these tests are fundamentally unreliable by introducing PoisonM, a dataset poisoning attack designed to "flip" MI test results. We establish a mathematical link between a test's accuracy on clean data and its vulnerability to poisoning. Empirically, PoisonM reduces the Area Under the Curve (AUC) of state-of-the-art MI tests from typical levels (0.55–0.65) to near zero (0.02), effectively discrediting MI testing as a robust tool for legal or regulatory enforcement.

Introduction

The rapid expansion of Large Language Models (LLMs) trained on web-scale data has sparked significant legal and ethical debates regarding data ownership. Membership Inference (MI) tests are currently the industry standard for answering whether a specific sequence was part of a model's training corpus. These tests typically measure a model's "loss"—the degree of surprise the model exhibits when encountering a sequence. Recent advancements have proposed "neighborhood-based" MI, which considers semantic neighbors (paraphrases) as members to account for data variations.

However, this research argues that even these relaxed tests lack robustness. If an adversary can plant "poison" data in a training set to manipulate an auditor's MI results, the test loses its credibility as a tool for justice or compliance.

The PoisonM Attack

The authors propose PoisonM, a threat model where an adversary poisons the training or fine-tuning dataset to mislead an auditor. The attack identifies "worst-case" data points to subvert the MI test:

  1. Inducing False Positives: The attacker identifies a point outside the target's neighborhood that causes the model to produce a high membership score (low loss) for the target sequence.
  2. Inducing False Negatives: The attacker replaces a legitimate training point with a "poisoned neighbor" that satisfies the neighborhood definition but appears as a non-member to the MI test.
Visualization of misalignment and poisoning strategies. (a) shows the gap between neighborhood definitions and model loss superlevel sets. (b) and (c) illustrate the selection of worst-case non-neighbors and neighbors to manipulate MI scores.

The attack utilizes a greedy coordinate descent approach to iteratively swap tokens in a sequence, optimizing the MI score while maintaining neighborhood constraints across various metrics (n-gram overlap, embedding similarity, edit distance).

Theoretical Insights: The Accuracy-Robustness Trade-off

A key contribution of this work is the proof of a fundamental trade-off: a test’s advantage on clean data is mathematically linked to its vulnerability to poisoning. Using Youden’s J statistic, the authors show that the more effective a test is at detecting members, the more "signal" is available for an attacker to hijack.

This vulnerability stems from misalignment. MI tests do not measure "membership" in a human-interpretable sense; they measure "loss superlevel sets." The attack succeeds because the semantic "ball" of neighbors defined by humans does not align with the complex, jagged contours of the model's actual loss landscape.

Experimental Evaluation

The study evaluated the Pythia model family (2.7B to 12B parameters) using Wikitext-103 for fine-tuning and AI4Privacy/AGNews as "canary" datasets.

  • Performance Collapse: On the AI4Privacy dataset, the AUC for standard MI tests dropped from ~0.60 to as low as 0.02, significantly worse than random guessing (0.5).
  • Test Agnosticism: PoisonM proved effective even when the attacker did not know the specific MI test used by the auditor, as most tests (LOSS, zlib, Min-K%) rely on the same underlying model likelihoods.
  • Reference-Based Tests: Interestingly, reference-based tests—often considered the most robust—were the most vulnerable to PoisonM, confirming the theoretical accuracy-robustness trade-off.

Conclusion

The findings suggest that current MI tests are insufficient for high-stakes auditing or legal proof. The community must move toward "model-dependent" or "context-aware" definitions of membership that better reflect how LLMs process and store information. Future work remains to scale these attacks to massive pre-training datasets and refine the poisoning budget required for inducing false positives.

Summary updated

BibTeX
@inproceedings{mangaokar2025what,
  author = {Neal Mangaokar and Ashish Hooda and Zhuohang Li and Bradley A. Malin and Kassem Fawaz and Somesh Jha and Atul Prakash and Amrita Roy Chowdhury},
  title = {{What Really is a Member? Discrediting Membership Inference via Poisoning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=JQvx6rAqGr},
}
Figure