TL;DR
This paper presents a unified framework to analyze privacy risks from gradients in machine learning, demonstrating that simple data aggregation is insufficient for privacy. They evaluate various defenses and propose an auditing method to estimate worst-case privacy loss, highlighting the importance of minimizing mutual information between gradients and sensitive data.
What Problem Does This Paper Address?
In distributed and federated learning settings, machine learning models are updated using gradients computed from user data. While this avoids sharing raw data, gradients themselves can inadvertently leak sensitive information about the training data. Previous work has studied various inference attacks (e.g., attribute, property, distributional, user inference) in isolation. This paper aims to provide a comprehensive and unified approach to analyze these inference risks through gradients, considering different adversary assumptions and evaluating the effectiveness of common defenses. The core problem is understanding and mitigating the privacy leakage that occurs when only model gradients are shared, which is becoming increasingly common in collaborative ML.
Methods
The authors introduce a unified inference game to formalize privacy risks from gradients. This game encompasses four types of inference attacks:
- Attribute Inference Attack (AIA): Inferring a specific attribute (e.g., gender) of a data record.
- Property Inference Attack (PIA): Inferring a global property of the data batch (e.g., prevalence of a certain characteristic).
- Distributional Inference Attack (DIA): Inferring the ratio of data points with a target property.
- User Inference Attack (UIA): Identifying which user's data contributed to the gradients.
They explore various adversarial assumptions, including the adversary's knowledge of data distribution (via shadow datasets), the number of observable gradient rounds, and batch sizes. To evaluate defenses, they consider both static (unaware of the defense) and adaptive (aware of the defense) adversaries. An information-theoretic perspective is used to analyze defense effectiveness, focusing on minimizing mutual information between gradients and sensitive variables. Finally, they propose a privacy auditing method using adversarial "canary" records to empirically estimate worst-case privacy loss for attribute inference.
Datasets
The paper uses five diverse datasets to evaluate their framework and attacks:
- Adult: Tabular data for income prediction, using gender as the sensitive attribute.
- Health (Heritage Health Prize): Tabular data for mortality prediction, using gender as the sensitive attribute.
- CREMA-D: Speech data for emotion recognition, using speaker gender as the sensitive attribute.
- CelebA: Image data for smile classification, using high cheekbones as the sensitive attribute.
- UTKFace: Image data for age classification, using ethnicity as the sensitive attribute.
These datasets cover tabular, speech, and image modalities, allowing for a broad evaluation of inference risks.
Key Insights and Ideas
- Data aggregation is not enough: Simply averaging gradients across users or batches does not inherently guarantee privacy against inference attacks. In fact, larger batch sizes can sometimes increase privacy risk by amplifying the signal of shared sensitive attributes.
- Unified framework is crucial: Treating different inference attacks under a single game formalization allows for a more holistic understanding of adversary capabilities and defense effectiveness.
- Adaptive adversaries are a serious threat: Heuristic defenses that work against static adversaries often fail completely when the adversary is aware of the defense mechanism.
- Mutual Information is key: The core principle for effective defense against gradient-based inference attacks is to minimize the mutual information between the released gradients and the sensitive variable.
- Worst-case privacy matters: Auditing privacy risks using adversarially crafted samples provides a more realistic estimate of worst-case privacy loss than average-case analysis.
Key Results
- High attack success: Even with limited shadow data (e.g., $\le 1,000$ samples) and a moderate batch size (e.g., 16), adversaries can achieve high success rates in inferring sensitive attributes and properties. For instance, AUROC values of 0.9991 were observed for AIA on the Adult dataset.
- Multi-round attacks are more potent: Adversaries observing multiple gradient updates can significantly improve their inference accuracy through Bayesian updating.
- Heuristic defenses are brittle: Gradient pruning, SignSGD, and adversarial perturbations are largely ineffective against adaptive adversaries, often being easily bypassed.
- DP-SGD offers robust privacy: Differential Privacy (DP-SGD) is the only defense that consistently performs well against both static and adaptive adversaries, though it may require injecting significant noise, impacting model utility.
- Model size impact is marginal: Increasing model size generally shows slight improvements in attack performance, but the effect is not statistically significant enough to draw strong conclusions.
Limitations and Future Work
- Average-case vs. Worst-case: The current framework primarily captures average-case privacy risks. The authors propose an auditing method to estimate worst-case privacy, but further work is needed to bridge this gap more comprehensively.
- Mutual Information Tractability: While mutual information is a guiding principle, its exact computation is often intractable, especially for complex models and multi-round scenarios. Practical methods for estimating and minimizing it remain an active research area.
- Privacy-Utility Trade-off: While DP-SGD provides strong privacy, it often comes at the cost of reduced model utility. Future work could focus on optimizing DP-SGD algorithms to achieve better privacy-utility trade-offs, potentially by minimizing mutual information objectives.
- Generalizing Defenses: Exploring new defense mechanisms that are provably robust against adaptive adversaries and offer better utility remains an important direction.
- Auditing Framework Extension: Extending the auditing framework to other types of inference attacks and to more complex scenarios (e.g., non-gradient-based leakage) would be valuable.
Summary updated