How Much Does Each Datapoint Leak Your Privacy? Quantifying the Per-datum Membership Leakage

Achraf Azize, Debabrota Basu · OpenReview

Abstract

We study per-datum Membership Inference Attacks (MIAs), where an attacker aims to infer whether a fixed target datum was included in an algorithm's training set. We define membership leakage as the advantage of an optimal adversary and quantify it for the empirical mean, showing it depends on the Mahalanobis distance between the target and the data-generating distribution. We assess defenses like Gaussian noise and sub-sampling, demonstrating exactly how they reduce leakage. Our analysis, using Edgeworth expansions and the Lindeberg-Feller CLT, connects existing attacks and justifies canary selection strategies. Experiments validate our theory on synthetic and real-world datasets.

Introduction

Membership Inference (MI) attacks pose a significant privacy risk by allowing attackers to determine if a specific individual's data was used to train a model. While traditional research focuses on average-case privacy metrics, empirical evidence suggests that privacy leakage is not uniform across a dataset. Some individuals—often outliers—are much more vulnerable than others. This paper provides a rigorous mathematical framework to move beyond "average" privacy, quantifying leakage on a per-datum basis.

Quantifying Per-Datum Leakage

The authors formalize a fixed-target MI game centered on a specific target point $z^*$. By analyzing the Likelihood Ratio (LR) test—the statistically optimal attack strategy—they derive closed-form "leakage scores." Their technical approach utilizes Edgeworth expansions and the Lindeberg-Feller Central Limit Theorem to characterize attack score distributions as dataset size and dimensionality increase.

The Role of Mahalanobis Distance

A central finding is that a target point's vulnerability is directly tied to its Mahalanobis distance from the general population. Points located far from the distribution's "center" are statistically easier to identify.

Geometric representation of the membership inference attack, where the vulnerability of target $z^*$ is determined by its position relative to the distribution mean $\mu$ and the data geometry.

This geometric perspective explains the "privacy onion" effect: as the most outlying points are removed or protected, the next layer of points becomes the new outliers with high Mahalanobis scores, becoming the next easiest targets.

The Covariance Attack

Building on this geometric insight, the authors propose the Covariance Attack. While standard "scalar product attacks" merely look at the correlation between a target and model output, the Covariance Attack "corrects" for the data's shape using the inverse covariance matrix. This allows the attacker to exploit the specific correlations between features, significantly boosting success rates.

Defenses and Auditing

The framework also quantifies the impact of common privacy defenses:

  • Gaussian Noise: Adding noise acts as a contraction on the leakage score, reducing the attacker's advantage.
  • Sub-sampling: Sub-sampling by a factor $\rho$ reduces the effective leakage score by exactly that factor.

Furthermore, the authors introduce Mahalanobis Canary Selection, a strategy to identify "in-distribution" canaries. These are points that are naturally hard for a model to learn and highly sensitive to membership, making them ideal for auditing privacy without degrading model performance.

Experimental Results

The theory was validated using synthetic data, Fashion MNIST (FMNIST), and CIFAR10. In synthetic tests, theoretical ROC curves predicted by the mathematical framework matched empirical results almost perfectly.

ROC curves comparing the proposed Covariance Attack against the standard Scalar Product attack across easy, medium, and hard targets.

On FMNIST, the Covariance Attack demonstrated clear superiority, achieving an AUC of 1.00 for "easy" targets compared to 0.71 for the scalar product attack. On CIFAR10, "easy" targets were found to be visually distinct or unusual examples (e.g., an atypical "frog"), while "hard" targets were generic, well-classifiable examples.

Conclusion

This work provides a precise theoretical foundation for understanding why some data points leak more privacy than others. By identifying Mahalanobis distance as the key driver of per-datum leakage, the authors enable more effective attacks, better defenses, and more accurate privacy auditing. Future work aims to extend these proofs to highly non-linear deep network layers and a broader class of statistical estimators.

Summary updated

Abstract

We study the per-datum Membership Inference Attacks (MIAs), where an attacker aims to infer whether a fixed target datum has been included in the input dataset of an algorithm and thus, violates privacy. First, we define the membership leakage of a datum as the advantage of the optimal adversary targeting to identify it. Then, we quantify the per-datum membership leakage for the empirical mean, and show that it depends on the Mahalanobis distance between the target datum and the data-generating distribution. We further assess the effect of two privacy defences, i.e. adding Gaussian noise and sub-sampling. We quantify exactly how both of them decrease the per-datum membership leakage. Our analysis builds on a novel proof technique that combines an Edgeworth expansion of the likelihood ratio test and a Lindeberg-Feller central limit theorem. Our analysis connects the existing likelihood ratio and scalar product attacks, and also justifies different canary selection strategies used in the privacy auditing literature. Finally, our experiments demonstrate the impacts of the leakage score, the sub-sampling ratio and the noise scale on the per-datum membership leakage as indicated by the theory.
BibTeX
@inproceedings{azize2025how,
  author = {Achraf Azize and Debabrota Basu},
  title = {{How Much Does Each Datapoint Leak Your Privacy? Quantifying the Per-datum Membership Leakage}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=0ebspjSSXk},
}
Figure