Abstract
Machine learning (ML) has been widely adopted in various privacy-critical applications, e.g., face recognition and medical image analysis. However, recent research has shown that ML models are vulnerable to attacks against their training data. Membership inference is one major attack in this domain: Given a data sample and model, an adversary aims to determine whether the sample is part of the model's training set. Existing membership inference attacks leverage the confidence scores returned by the model as their inputs (score-based attacks). However, these attacks can be easily mitigated if the model only exposes the predicted label, i.e., the final model decision. In this paper, we propose decision-based membership inference attacks and demonstrate that label-only exposures are also vulnerable to membership leakage. In particular, we develop two types of decision-based attacks, namely transfer attack, and boundary attack. Empirical evaluation shows that our decision-based attacks can achieve remarkable performance, and even outperform the previous score-based attacks in some cases. We further present new insights on the success of membership inference based on quantitative and qualitative analysis, i.e., member samples of a model are more distant to the model's decision boundary than non-member samples. Finally, we evaluate multiple defense mechanisms against our decision-based attacks and show that our two types of attacks can bypass most of these defenses.
Introduction
Membership Inference Attacks (MIA) pose a significant threat to data privacy in machine learning. The goal of an MIA is to determine if a specific data point was included in a model's training set. Traditionally, these attacks have relied on confidence scores—the probabilities a model assigns to each class. The underlying assumption is that models exhibit higher confidence for samples they have encountered during training.
To counter this, many systems adopt a "label-only" exposure policy, where only the final predicted class (e.g., "Cat") is returned to the user. It was previously believed that withholding confidence scores would effectively prevent MIAs. This research challenges that assumption, demonstrating that the final decision alone leaks sufficient information to compromise membership privacy.
Methods
The authors introduce two novel "decision-based" attacks that operate without access to confidence scores:
- Transfer Attack: This method utilizes an auxiliary "shadow dataset" from the same distribution as the target's training data. The adversary queries the target model for labels on this shadow data and trains a local "shadow model" to replicate the target's behavior. Since membership information transfers between models trained on similar tasks, the adversary can perform a standard score-based MIA on their shadow model to infer membership in the target model.
- Boundary Attack: This more restrictive attack requires no shadow dataset. It is based on the geometric observation that member samples are typically further from the model's decision boundary than non-member samples. By using black-box adversarial attack techniques (such as HopSkipJump or QEBA), the adversary calculates the minimum perturbation needed to change a sample's predicted label. A larger required perturbation suggests membership.
Datasets
The effectiveness of these attacks was evaluated on four standard benchmarks:
- CIFAR-10 & CIFAR-100: Widely used image classification datasets.
- GTSRB: The German Traffic Sign Recognition Benchmark.
- Face: A dataset derived from Labeled Faces in the Wild (LFW), focusing on 19 classes with more than 40 images each.
Key Insights
- Spatial Robustness as a Proxy for Overfitting: Overfitting does not just manifest as high confidence; it manifests as increased distance from the decision boundary. Members are pushed deeper into their class's territory, making them more robust to perturbations.
- Inefficacy of Output Masking: Hiding confidence scores is a form of "security through obscurity." Decision-based attacks prove that labels alone are highly informative.
- Defense Vulnerability: Traditional defenses like MemGuard, which add noise to confidence scores, are bypassed entirely by the Boundary Attack because it ignores scores altogether.
Key Results
The decision-based attacks demonstrate remarkable performance across various datasets. In some instances, the Boundary Attack even outperforms traditional score-based methods. For example, on CIFAR-10, it achieved an AUC of nearly 0.90.
The attacks also show resilience against common regularization techniques. While heavy L2 regularization or Differential Privacy (DP-Adam) can mitigate the leakage, they often result in a substantial decrease in the model's primary task accuracy.
Conclusion and Future Work
While decision-based attacks are highly effective, they do come with costs. The Boundary Attack requires a significant number of queries (approximately 2,500) per sample to stabilize, which could be detected or restricted by MLaaS providers. Additionally, the Transfer Attack depends on the availability of relevant shadow data.
The findings suggest that future privacy defenses should move beyond simple output masking. Instead, research should focus on the fundamental relationship between a model's decision boundary and its training data to develop more robust protections against membership leakage.
Summary updated