TL;DR
This paper introduces a novel heuristic for analyzing the privacy guarantees of Differentially Private Stochastic Gradient Descent (DP-SGD) when only the final model is released, not intermediate training steps. This heuristic, which assumes a linear model structure, proves to be a good predictor of empirical privacy leakage and offers a more practical privacy estimation than existing methods.
What Problem Does This Paper Address?
Training machine learning models with differential privacy (DP) is crucial for protecting sensitive data. DP-SGD is a common technique, but its standard privacy analysis assumes an adversary can access all intermediate model updates during training. This is often unrealistic, as in practice, adversaries typically only have access to the final trained model. This disconnect leads to a gap between theoretical privacy guarantees and real-world privacy leakage. Existing privacy auditing methods try to bridge this gap by providing empirical lower bounds, but they often struggle to achieve tight results when only the final model is available. The authors aim to provide a more practical and principled way to estimate privacy leakage in this common "last iterate only" scenario.
Methods
The core contribution is a heuristic privacy analysis for DP-SGD that assumes a linear model structure. This simplification allows for a rigorous, closed-form privacy guarantee (Theorem 1). The authors then propose using this guarantee as a heuristic for non-linear models, arguing that it captures the essence of privacy leakage in the "last iterate only" setting.
Key aspects of their approach include:
- Linearity Assumption: By assuming linear loss functions, they can precisely characterize the privacy leakage as a function of the number of iterations, noise, and sampling probability.
- Heuristic Application: They hypothesize that this linear analysis provides a good approximation for real-world, non-linear models, serving as an upper bound on empirical privacy leakage.
- Comparison to Baselines: They compare their heuristic against:
- Standard Composition Analysis: The conservative analysis assuming access to all intermediate iterates.
- Full Batch DP-GD: An idealized scenario where all data is used in each step, which is easier to analyze but computationally expensive.
- Empirical Auditing: They use state-of-the-art membership inference attacks (gradient space and input space attacks) to empirically measure privacy leakage and compare it to their heuristic.
- Counterexamples: They construct specific, albeit artificial, scenarios to probe the limitations of their heuristic and demonstrate cases where it might underestimate privacy leakage.
Datasets
- Image Classification: CIFAR-10 dataset was used with a WideResNet model.
- Language Models: Gemma 2 was fine-tuned on the PersonaChat dataset.
Key Insights and Ideas
- The "Last Iterate" Matters: The paper strongly suggests that for many practical DP-SGD scenarios, the privacy leakage is primarily determined by the final model, not all intermediate steps. This challenges the conservatism of standard composition analyses.
- Linearity as a Proxy: The surprising insight is that a simple linear model assumption can effectively capture the privacy leakage in the "last iterate only" setting, even for complex deep learning models. This provides a tractable way to estimate privacy.
- Heuristic as a Target: The proposed heuristic serves as a valuable target for both privacy auditing attacks (aiming to exceed it) and theoretical analyses (aiming to match it), helping to bridge the gap between theory and practice.
- Batch Size Nuance: Their experiments suggest that larger batch sizes, often used to improve privacy, might not significantly impact empirical privacy leakage as measured by their heuristic, while heavily influencing the standard analysis. This could imply that current practices for achieving DP might be overly conservative.
Key Results
- Predictive Heuristic: The heuristic analysis consistently provides an upper bound on the privacy leakage measured by empirical auditing tools on both image classification and language models.
- Attack Bounding: Existing state-of-the-art privacy auditing attacks were found to be bounded by the proposed heuristic.
- Counterexamples Highlight Limitations: While generally effective, the authors demonstrate specific, contrived scenarios (e.g., involving regularizers or carefully crafted datasets) where the heuristic can underestimate privacy leakage. However, they argue these are not representative of real-world settings.
- Language Model Auditing: The paper extends privacy auditing to language models, showing similar trends to image classification.
Limitations and Future Work
- Linearity Assumption: The heuristic's primary limitation is its reliance on the linearity assumption. While empirically validated, it doesn't hold for all models or loss functions.
- Contrived Counterexamples: The authors acknowledge that their counterexamples, while illustrating theoretical limits, are artificial and unlikely to occur in practice.
- Future Work: The authors suggest that their heuristic can serve as a benchmark for developing new privacy auditing attacks and for improving theoretical privacy analyses. They also highlight the potential for their heuristic to guide hyperparameter selection in practice. Further research could explore extending the heuristic to more complex model structures or different DP mechanisms.
Summary updated