TL;DR
This paper introduces a powerful new black-box "distribution inference" attack that can infer statistical properties of a model's training data, often outperforming existing white-box methods. The authors then use this attack to reveal that many common defenses are ineffective, while a simple data re-sampling strategy can be surprisingly potent.
What Problem Does This Paper Address?
Machine learning models can inadvertently leak information about the data they were trained on, beyond just individual data points. This is known as "distribution inference," where an attacker tries to understand the overall characteristics of the training dataset (e.g., the proportion of a certain demographic). While previous attacks existed, they often relied on strong assumptions about the attacker's knowledge (like having full access to the model's internals – a "white-box" scenario) or were not very effective. This paper aims to understand the true risk of distribution inference by developing a more realistic black-box attack and evaluating it under relaxed, more practical assumptions about the attacker's capabilities. They also investigate the effectiveness of existing defenses and propose new ones.
Methods
The core of the paper is a novel KL Divergence Attack. This black-box attack works by training multiple "shadow" models locally, mimicking the victim model's behavior. The attacker then compares the prediction distributions of these shadow models to the victim model's predictions on a given dataset. By measuring the KL divergence (a measure of how one probability distribution differs from another) between the victim model's outputs and its shadow models, the attacker can infer properties of the victim's training data. This approach is particularly effective because it focuses on the similarity of predictions rather than trying to reverse-engineer model parameters.
The authors also explore various attack scenarios by relaxing common assumptions:
- Model Architecture: They test scenarios where the attacker and victim use different model architectures.
- Feature Extractors: They investigate what happens when the attacker doesn't have access to the same pre-trained feature extractors (like those used for image processing) as the victim.
- Label-Only Access: This is a crucial relaxation, where the attacker only receives the predicted class label, not the confidence scores for each class.
For defenses, they evaluate noise-based methods (like differential privacy and adversarial training) and introduce a data re-sampling defense.
Datasets
The paper evaluates their methods on a variety of datasets and task-property pairs, including:
- Census19: An updated version of the Adult Census dataset, used for inferring ratios of demographics like sex and race.
- Texas-100X: A dataset containing demographic and medical information, used for inferring demographic ratios.
- CelebA: A dataset of celebrity face images, used for tasks like gender prediction and mouth-open detection, with attributes like wavy hair and high cheekbones as properties.
- RSNA Bone Age: X-ray images used for predicting bone age, with sex as a property.
- ogbn-arxiv: A citation network dataset, used for node classification, with mean node-degree as a property.
These datasets were chosen to compare with prior work and to study the impact of task-property correlation.
Key Insights and Ideas
- Black-box attacks can be surprisingly potent: The new KL Divergence Attack, even with only black-box access (no model internals), often outperforms the best known white-box attacks. This suggests that distribution inference risk is significant even in more restricted threat models.
- Noise-based defenses are largely ineffective: Standard defenses like differential privacy and adversarial training, which add noise to the training process, do not significantly mitigate distribution inference risk. The paper suggests this is because these defenses primarily protect against individual record leakage, not distributional properties, and often harm task performance without truly obscuring distributional information.
- Data re-sampling is a surprisingly effective defense: When an attacker's target property is known, a simple strategy of re-sampling the training data to balance or alter the proportion of that property can virtually eliminate inference risk. This is a practical and computationally inexpensive defense.
- Model architecture differences have a moderate impact: While varying model architectures between the attacker and victim can reduce inference accuracy, the effect is not drastic as long as the models have similar learning capacity.
- Label-only attacks are still viable: Even when an attacker can only obtain the predicted class label (not confidence scores), distribution inference attacks can still be effective, though with a slight performance drop.
Key Results
- The KL Divergence Attack achieved distinguishing accuracies significantly higher than previous state-of-the-art attacks across various datasets and settings. For example, on Census19 (Sex), the KL attack achieved 89.8% accuracy, compared to 78.6% for a prior black-box attack.
- In many settings, the black-box KL Divergence Attack outperformed white-box attacks like Permutation Invariant Networks (PIN). For instance, on RSNA Bone Age (Age), the KL attack achieved 99.9% accuracy, while PIN achieved 99.4%.
- Noise-based defenses like Differential Privacy (DP) and Label Poisoning showed only modest reductions in inference risk, often accompanied by significant drops in task accuracy. For example, DP with a budget of ε=0.12 on Census19 (Sex) reduced distinguishing accuracy from 89.8% to 72.4%, but task accuracy also dropped from 77.9% to 75.6%.
- The data re-sampling defense, particularly under-sampling, was highly effective. For Census19 (Sex), under-sampling reduced distinguishing accuracy to 50.0% (<0.1 nleaked), a dramatic improvement from the no-defense baseline of 89.8% (2.1 nleaked).
- The impact of task-property correlation on inference risk was found to be less significant than the choice of property and task itself.
Limitations and Future Work
- Assumption of representative data: The paper acknowledges that most distribution inference attacks, including their own, assume the adversary has access to a dataset representative of the underlying training distribution. This is a strong assumption, and future work could explore scenarios with limited adversary data.
- Federated learning and active adversaries: The paper notes that the impact of these attacks in more complex settings like federated learning or against active adversaries (e.g., with data poisoning) remains largely unexplored.
- Theoretical connections: The authors suggest a need for more theoretical connections between distribution inference risk, model complexity, and fairness.
- Adaptive attacks: While they briefly explore adaptive attacks against under-sampling, more sophisticated adaptive attacks could be investigated.
- Generalization and overfitting: The paper touches on the trade-off between generalization and inference risk, suggesting further research into how model training stages impact privacy.
Summary updated