Label-Only Membership Inference Attacks

Christopher A. Choquette-Choo, Florian Tramèr, Nicholas Carlini, Nicolas Papernot

Introduction

Membership Inference (MI) is a fundamental privacy risk in machine learning. In an MI attack, an adversary attempts to determine whether a specific data point—such as a user's private medical record—was used to train a target model. Historically, these attacks have relied heavily on accessing a model's "confidence scores" (the exact probabilities assigned to each class). The underlying assumption is that models exhibit higher confidence for data they encountered during training compared to unseen data.

To mitigate this risk and save bandwidth, many real-world AI services restrict their outputs to "hard labels" (e.g., simply returning "Category: Cat" rather than a full probability distribution). This paper investigates a critical question: Is hiding confidence scores sufficient to protect user privacy?

The authors demonstrate that it is not. By leveraging a model's robustness to input perturbations as a proxy for confidence, they successfully execute highly effective label-only MI attacks. These attacks break several state-of-the-art privacy defenses and reveal that common training techniques, like data augmentation, can inadvertently exacerbate privacy leaks.

Attack Methodology

The authors propose two primary strategies to perform MI attacks using only predicted labels:

  1. Data Augmentation Attacks: The attacker queries the target model with multiple "augmented" versions of a target data point (e.g., slightly rotated, translated, or shifted images). If the model consistently predicts the correct label across many variations, it strongly suggests the model has "memorized" that specific point, indicating it was likely part of the training set.
  2. Decision Boundary Distance: This approach utilizes black-box adversarial attack algorithms (such as HopSkipJump) to estimate the distance from the target point to the model's decision boundary—essentially, how much the point needs to be altered before the model's prediction flips. Because training points typically reside further from the decision boundary than unseen points, this distance serves as a highly effective "label-only proxy" for the model's underlying confidence.

These signals are then used to train an attack classifier on a "shadow model" (a surrogate model trained by the attacker on similar data) to distinguish members from non-members.

Key Insights and Results

The authors evaluated their attacks across diverse benchmarks, including computer vision datasets (MNIST, CIFAR-10, CIFAR-100) and tabular datasets (Adult, Texas-100, Purchase-100, Locations).

Robustness as a Proxy for Privacy

The core finding of the paper is that a model's robustness to noise is intrinsically linked to its membership signal. Attackers do not need the internal probability vector if they can observe how the hard label behaves under pressure. Consequently, label-only attacks are remarkably potent, often matching the performance of traditional attacks that require full access to confidence scores.

Accuracy of MI attacks across different training set sizes. Label-only attacks match confidence-vector attacks and bypass MemGuard.

The Failure of Confidence Masking

Because label-only attacks do not rely on probability distributions, defenses designed to obfuscate these scores provide a false sense of security. For example, the MemGuard defense adds carefully crafted noise to confidence scores to fool attackers. On CIFAR-100, MemGuard successfully reduced the accuracy of traditional confidence-based attacks to 50% (random chance). However, the authors' label-only attack maintained an accuracy of 89.2%, effectively rendering the defense useless.

The Data Augmentation Paradox

Data augmentation is standard practice for reducing overfitting, which theoretically should improve privacy by preventing the model from memorizing exact training examples. However, the authors discovered a paradox: data augmentation can actually exacerbate MI leakage.

Comparison of attack accuracy on models trained without (top) and with (bottom) data augmentations.

When a model is trained with augmentations, it becomes exceptionally robust to those specific transformations for its training data. This creates a unique "signature" that label-only data augmentation attacks can easily detect. As shown in the comparison above, models trained with augmentations become significantly more vulnerable to these specific attack vectors.

Effective Defenses

The study concludes that "confidence masking" is insufficient. Only rigorous techniques like Differential Privacy (DP) and very strong L2 regularization provide meaningful protection against label-only attacks. However, these defenses often come at a significant cost to the model's overall predictive accuracy, highlighting a steep privacy-utility trade-off.

Limitations and Future Work

While highly effective, label-only attacks have limitations:

  • Query Complexity: They require significantly more queries to the target model (often thousands to calculate boundary distances) compared to confidence-based attacks (which require only one). This makes them easier to detect via rate-limiting, though attackers might circumvent this using "Sybil attacks" (multiple accounts).
  • Shadow Model Requirement: The attacks still largely rely on the attacker's ability to train a shadow model on a similar data distribution to tune thresholds.
  • Scaling: While proven on standard benchmarks, scaling these boundary-distance attacks to massive, production-grade models (like modern LLMs) with massive input dimensions remains an open area for investigation.

Summary updated

BibTeX
@inproceedings{choquettechoo2021label,
  author = {Christopher A. Choquette-Choo and Florian Tramèr and Nicholas Carlini and Nicolas Papernot},
  title = {{Label-Only Membership Inference Attacks}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=S4eD7K_OIeq},
}
Figure