cs.LGAug 26, 2025

The Sample Complexity of Membership Inference and Privacy Auditing

Authors: Mahdi Haghifam, Adam Smith, Jonathan Ullman

Organizations: Khoury College of Computer Sciences, Northeastern University. · Department of Computer Science, Boston University.

Abstract

A membership-inference attack gets the output of a learning algorithm, and a target individual, and tries to determine whether this individual is a member of the training data or an independent sample from the same distribution. A successful membership-inference attack typically requires the attacker to have some knowledge about the distribution that the training data was sampled from, and this knowledge is often captured through a set of independent reference samples from that distribution. In this work we study how much information the attacker needs for membership inference by investigating the sample complexity-the minimum number of reference samples required-for a successful attack. We study this question in the fundamental setting of Gaussian mean estimation where the learning algorithm is given nn samples from a Gaussian distribution N(μ,Σ)\mathcal{N}(μ,Σ) in dd dimensions, and tries to estimate μ^\hatμ up to some error E[∥μ^−μ∥Σ2]≤ρ2d\mathbb{E}[\|\hat μ- μ\|^2_Σ]\leq ρ^2 d. Our result shows that for membership inference in this setting, Ω(n+n2ρ2)Ω(n + n^2 ρ^2) samples can be necessary to carry out any attack that competes with a fully informed attacker. Our result is the first to show that the attacker sometimes needs many more samples than the training algorithm uses to train the model. This result has significant implications for practice, as all attacks used in practice have a restricted form that uses O(n)O(n) samples and cannot benefit from ω(n)ω(n) samples. Thus, these attacks may be underestimating the possibility of membership inference, and better attacks may be possible when information about the distribution is easy to obtain.

Figures & tables

Explore similar work

CardsList
  1. A Simple Presentation of Robust Membership Inference Attacks

    Oct 27, 2026Renaud Gaucher, Ephraim Linder, Adam Smith +2Membership Inference Attacks

  2. A Critical Review on the Effectiveness and Privacy Threats of Membership Inference Attacks

    Mar 24, 2026Najeeb Jebreel, David Sánchez, Josep Domingo-FerrerMembership Inference AttacksPrivacy-Preserving ML

  3. Membership Inference via Pairwise Likelihood Ratios

    Sep 11, 2026Shengjie Niu, Zebin Yun, Yeheng Ge +1Membership Inference AttacksLikelihood Ratio Testing