Some Targets Are Harder to Identify than Others: Quantifying the Target-dependent Membership Leakage

Achraf Azize, Debabrota Basu · DOI

TL;DR

This paper reveals that the vulnerability of a data point to Membership Inference (MI) attacks is directly tied to its Mahalanobis distance from the rest of the data distribution. By quantifying this "target-dependent" leakage, the authors introduce a superior "covariance attack" and a more effective strategy for selecting "canaries" to audit the privacy of machine learning models.

What Problem Does This Paper Address?

Membership Inference (MI) attacks ask a simple but dangerous question: "Was this specific individual's data used to train this model?" While we know these attacks work, most research focuses on average-case leakage—how well an attacker performs across a whole dataset.

However, privacy is often a "worst-case" game. Some people are "outliers" whose data is much more distinctive than others. Previous empirical work showed that some points are easier to identify (the "privacy onion" effect), but we lacked a rigorous mathematical explanation for why. This paper fills that gap by moving from "average-target" games to "fixed-target" games, providing a formal way to quantify why some targets are sitting ducks while others are hidden in the crowd.

Methods

The authors analyze MI attacks against the empirical mean (a building block for many ML algorithms) and extend their findings to complex models like Neural Networks.

  1. Fixed-target MI Game: They define a game where the attacker targets a specific point $z^*$. They use the Likelihood Ratio (LR) test—the statistically optimal way to distinguish between two hypotheses—to measure the maximum possible leakage.
  2. Asymptotic Analysis: Using advanced statistical tools (Edgeworth expansions and the Lindeberg-Feller Central Limit Theorem), they prove that the LR score for the empirical mean follows a Gaussian distribution.
  3. The Mahalanobis Score: They show that the optimal advantage an attacker has is determined by the Mahalanobis distance: $\|z^* - \mu\|_{C_\sigma^{-1}}$. This metric doesn't just look at how far a point is from the average ($\mu$), but also accounts for the "shape" or geometry of the data (the covariance matrix $C_\sigma$).
  4. Covariance Attack: Based on their theory, they propose a new attack that improves upon the standard "scalar product" attack by "correcting" the score using the inverse covariance of the data.
  5. Privacy Auditing: They propose a "canary" selection strategy. If you want to test if a system is private, you should use "canaries" (test points) with high Mahalanobis scores, as these are the most likely to leak information.

Datasets

The researchers validated their theory using:

  • Synthetic Data: High-dimensional Bernoulli distributions to verify that their mathematical bounds match empirical results.
  • Real-world Image Data: Fashion-MNIST (FMNIST) and CIFAR-10.
  • Models: They tested Logistic Regression on FMNIST and a Convolutional Neural Network (CNN) on CIFAR-10, specifically within a white-box Federated Learning setting.

Key Insights and Ideas

  • The Geometry of Leakage: Privacy leakage isn't just about being an outlier in a single dimension; it's about how unique a point is relative to the correlations in the entire dataset.
  • Explaining the "Privacy Onion": The paper provides a mathematical basis for the "privacy onion" effect. When you remove the most obvious outliers, the distribution's variance shrinks, which can actually increase the Mahalanobis distance (and thus the vulnerability) of the remaining points.
  • Beyond the Mean: While the focus is on the empirical mean, the authors connect their work to Z-estimators and influence functions. This suggests that their "covariance score" can be adapted to attack almost any model where you can calculate how a single point influences the final parameters.
  • Defense Contractions: They mathematically quantify how defenses like Gaussian noise and sub-sampling act as "contractions" on the leakage score, effectively pulling points "closer" to the distribution's center to hide them.

Key Results

  • Theoretical Tightness: In synthetic experiments, the theoretical ROC curves (predicted by their formulas) almost perfectly overlapped with the actual empirical results.
  • Superior Attacks: The new Covariance Attack significantly outperformed the state-of-the-art scalar product attack. For "easy" targets on FMNIST, the covariance attack achieved an AUC of 1.00, compared to 0.71 for the scalar product attack.
  • Canary Effectiveness: Points identified as "easy" by their Mahalanobis strategy were consistently more vulnerable across different models and datasets, proving it is a robust strategy for privacy auditing.

Limitations and Future Work

  • Independence Assumption: The current proof assumes that the features (columns) of the data are independent. While common in this field, real-world data often has complex dependencies. The authors suggest that using multivariate Edgeworth expansions could address this in future work.
  • Black-box Extension: The current "covariance attack" is designed for white-box settings (where the attacker sees model gradients). Extending this to a black-box setting using influence functions is a promising next step.
  • Computational Cost: Inverting a massive covariance matrix for a model with millions of parameters is expensive. The authors mitigated this by attacking only the last layer of the CNN, but more efficient approximations for full-model attacks are needed.

Summary updated

Abstract

In a Membership Inference (MI) game, an attacker tries to infer whether a target point was included or not in the input of an algorithm. Existing works show that some target points are easier to identify, while others are harder. This paper explains the target-dependent hardness of membership attacks by studying the powers of the optimal attacks in a fixed-target MI game. We characterise the optimal advantage and trade-off functions of attacks against the empirical mean in terms of the Mahalanobis distance between the target point and the data-generating distribution. We further derive the impacts of two privacy defences, i.e. adding Gaussian noise and sub-sampling, and that of target misspecification on optimal attacks. As by-products of our novel analysis of the Likelihood Ratio (LR) test, we provide a new covariance attack which generalises and improves the scalar product attack. Also, we propose a new optimal canary-choosing strategy for auditing privacy in the white-box federated learning setting. Our experiments validate that the Mahalanobis score explains the hardness of fixed-target MI games.
BibTeX
@inproceedings{azize2025some,
  author = {Achraf Azize and Debabrota Basu},
  title = {{Some Targets Are Harder to Identify than Others: Quantifying the Target-dependent Membership Leakage}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=0ebspjSSXk},
}
Figure