Membership Inference Attacks via Adversarial Examples

Hamid Jalalzai, Elie Kadoche, Rémi Leluc, Vincent Plassier

TL;DR

Deep learning models tend to form sharp "peaks of confidence" around their training points compared to unseen data. This paper presents Sisyphos, a Membership Inference Attack (MIA) that identifies training samples by measuring the total variation (arc length) of model confidence along an adversarial trajectory in the model's output space. To counter this vulnerability, the authors introduce a defense mechanism that injects controlled noise into training labels to flatten these confidence spikes.

What Problem Does This Paper Address?

Membership Inference Attacks (MIAs) attempt to determine whether a specific data sample was part of a machine learning model's private training dataset. Conventional MIAs rely on simple metrics like loss values, prediction entropy, or gradient norms. Recently, researchers turned to adversarial examples, guessing membership based on the input-space distance ($L_p$ norm) required to fool the model into changing its prediction.

However, input distances ignore the geometry of the model's actual predictions along the perturbation path. Because neural networks often interpolate high-dimensional data, they form localized, overconfident "hills and valleys" around training instances. This paper tackles the challenge of directly measuring this excess confidence in the output space to build a more effective, geometry-aware membership attack, while also proposing a training defense to mitigate the leak.

Methods

  • Adversarial Paths in Output Space: For a sample $x$ and its minimal adversarial counterpart $\tilde{x} = x + \varepsilon$ (generated via the Fast Adaptive Boundary / FAB attack), the paper defines an adversarial path tracking the classifier's maximum class probability:
    $$\gamma_x(t) = \|\hat{g}_\theta(x + t\varepsilon)\|_\infty, \quad t \in [0, 1]$$
  • Sisyphos Attack (Algorithm 1): Instead of measuring $\|\varepsilon\|$, the attack measures the arc length / total variation $\mathcal{L}(\gamma_x) = \int_0^1 |\gamma_x'(t)| dt$, approximated numerically via a Riemann sum partition $L_N(\gamma_x) = \sum_{k=0}^{N-1} |\gamma_x(t_k) - \gamma_x(t_{k-1})|$. If this curvature exceeds a threshold $\tau$, the sample is classified as a training member. The authors theoretically prove error bounds on this Riemann sum approximation and show that traditional input-distance attacks are a special case when the classifier is Lipschitz continuous.
  • Label-Noise Defense Mechanisms (Algorithms 2 & 3): To eliminate confidence spikes, the authors propose injecting voluntary, controlled label noise into the one-hot target vectors during training—either deterministically across the whole dataset or randomly across mini-batch subsets. This acts as a dynamic label-smoothing regularizer, forcing the model to make less overconfident predictions on its training data.

Datasets

  • CIFAR-10: 60,000 natural color images across 10 classes. Evaluated on a balanced test set (10,000 training members vs. 10,000 unseen test samples) against a pre-trained ResNet.
  • MNIST: 70,000 handwritten digit images. Used with a single-layer Multi-Layer Perceptron (100 hidden units) to evaluate the label-noise defense mechanism.
  • Olivetti Faces: 400 facial images (40 individuals, 10 images each) labeled for whether the subject wears glasses. Used to test a broader, realistic scenario where an attacker only has non-identical images of a subject seen during training.
  • Synthetic 2D Data: Multi-cluster datasets generated via scikit-learn to visualize the classifier confidence landscape and run two-sample Kolmogorov-Smirnov (KS) tests.
  • No new benchmark datasets were introduced.

Key Insights and Ideas

  • Output-Space Trajectory vs. Input-Space Distance: Measuring input perturbation distances treats the model as a black-box boundary. Measuring output curve lengths along the path directly queries the model's internal confidence landscape, capturing rapid drops from training-point overconfidence.
  • Steeper Confidence Decays for Members: Statistical tests (Kolmogorov-Smirnov) revealed that adding small perturbations degrades model confidence significantly faster on training data than on unseen test data.
  • Smoothing the Landscape Prevents Leakage: Because the attack exploits overconfident peaks, training with smoothed/noisy labels prevents the model from outputting near-1.0 confidence on members, diminishing the attacker's ability to distinguish members from non-members without severely damaging test accuracy.
  • Generalization to Unseen Images of Known Subjects: Experiments on Olivetti Faces showed that the model exhibits elevated confidence even on new images of subjects it saw during training, proving that confidence-based membership leakage extends beyond verbatim pixel matches.

Key Results

  • MIA Performance on CIFAR-10 (ResNet):
  • Prior adversarial distance baseline ([Del Grosso et al., 2022]): 0.54 AUC, 54% Accuracy.
  • Sisyphos (Ours): 0.59 AUC, 57% Accuracy, outperforming the baseline across the entire ROC curve.
  • Defense Validation on MNIST:
  • Standard training yields peak confidence near 1.0. With label noise ($\zeta = 0.9$), maximum output confidence dropped to $\approx 0.5\text{--}0.6$, substantially flattening the landscape.
  • At moderate noise ($\zeta = 0.1$), the model retained high validation accuracy ($\sim 96\text{--}98\%$) while lowering overconfidence.

Limitations and Future Work

  • Computational Overhead: Evaluating the attack requires generating adversarial examples (FAB) and discretizing the path with multiple forward passes, which is considerably slower than simple single-pass metric attacks (e.g., loss thresholding).
  • Modest Absolute AUC: While Sisyphos improves over previous adversarial-based methods, an AUC of 0.59 indicates that MIA using adversarial boundary techniques remains challenging on well-regularized models.
  • Limited Architectures Evaluated: Experiments primarily evaluate standard ResNet and small MLPs on small image benchmarks (CIFAR-10, MNIST).
  • Future Directions: The authors suggest investigating privacy-preserving techniques via gradient flows (e.g., MMD / Stein variational gradient descent) and exploring privacy risks in models that partition space using hyperplanes (decision trees / piecewise linear models).

Summary updated

BibTeX
@inproceedings{jalalzai2022membership,
  author = {Hamid Jalalzai and Elie KADOCHE and Rémi Leluc and Vincent Plassier},
  title = {{Membership Inference Attacks via Adversarial Examples}},
  booktitle = {TSRML @ NeurIPS},
  year = {2022},
  url = {https://openreview.net/forum?id=K_qZc3pbUAX},
}
Figure