Machine learning models can be trained with formal privacy guarantees using differentially private optimizers like Differentially Private Stochastic Gradient Descent (DP-SGD). By adding noise to the training process, DP-SGD ensures that no single piece of training data can be easily identified from the resulting model.
However, evaluating exactly how much privacy is preserved often reveals a massive gap between theoretical math and empirical reality. This paper introduces a more powerful way to "audit" the privacy of models trained with DP-SGD. By directly crafting adversarial gradients rather than just manipulating training data, the authors demonstrate that hiding intermediate model updates—a common practice thought to boost privacy—often provides no extra protection at all.
The Gap Between Theory and Practice
There are two primary ways to evaluate the privacy of a DP-SGD model:
- Privacy Accounting (Upper Bound): The mathematical "worst-case" guarantee of how much information could potentially leak.
- Privacy Auditing (Lower Bound): An empirical "attack" that tries to measure how much information actually leaks in practice.
Currently, there is a significant gap between these two bounds, particularly in the "Hidden State" threat model. In this scenario, an attacker only has access to the final trained model, with no visibility into intermediate checkpoints. Theoretical work suggests that hiding these checkpoints should "amplify" privacy, making the model much safer. Yet, previous auditing attempts couldn't empirically prove this amplification. This raises a critical question: Is the mathematical upper bound too conservative, or are our empirical attacks simply too weak?
A New Approach: Gradient-Crafting
To challenge this gap, the authors move away from the traditional "canary" approach—which involves inserting an anomalous data point into the training set—and instead utilize Gradient-Crafting.
Because DP-SGD is designed to protect against any gradient with a bounded norm, the authors allow the adversary to directly "decide" what the gradient of the secret data point would be at every step. They propose three main adversarial strategies:
- Random Biased Dimension ($\mathcal{A}_{GC}-R$): The attacker picks one random parameter in the model and forces the "secret" gradient to be at its maximum allowed value in that specific dimension.
- Simulated Biased Dimension ($\mathcal{A}_{GC}-S$): The attacker simulates the training process to find the parameter that is updated the least. They target that parameter to ensure the "signal" of the secret data point isn't washed away by subsequent updates.
- Loss Landscape Crafting ($\mathcal{A}_S$): For complex cases where the secret data isn't used in every step, the authors design a specific (non-convex) "loss landscape" that helps the secret signal propagate from the beginning of training all the way to the final model.
Key Insights and Results
The researchers evaluated their methods on standard image classification datasets (CIFAR-10) using over-parameterized models like ConvNet and ResNet18, as well as a small tabular dataset (Housing) using a Fully-Connected Neural Network (FCNN).
- Hiding Checkpoints Isn't a Silver Bullet: The most striking finding is that if a crafted gradient is inserted at every optimization step, concealing the intermediate models does not improve privacy. The auditing lower bound perfectly matches the theoretical upper bound, effectively closing the gap.
- Outperforming Baselines: The gradient-crafting approach consistently outperformed traditional "loss-based" auditing ($\mathcal{A}_L$), which relies on real data points, by a significant margin.
- The "Signal" Persistence: In large, over-parameterized models, there are so many dimensions that an adversarial gradient can almost always find a "quiet" spot to hide its signal, ensuring it survives until the final model is released.
The situation becomes more complex when the crafted gradient is not inserted at every step (e.g., periodic insertion). As shown above, the privacy leakage drops significantly when the insertion periodicity ($k$) increases from 5 to 25.
Furthermore, the authors found that batch size acts as a privacy knob. Privacy amplification from hiding states only seems to occur when the training batch size is small relative to the noise. If the batch size is large, the adversary can craft a path for the information to leak regardless of whether intermediate states are hidden.
Limitations and Future Directions
While the authors proved a tight bound by crafting a loss landscape, it remains an open question whether a "natural" neural network architecture could be manipulated (via a "privacy backdoor") to produce that same worst-case landscape using a real data point.
Additionally, there is still a small gap when the batch size is very small relative to noise. This suggests that either an even stronger adversary is needed, or the current theoretical upper bounds for DP-SGD could actually be improved in that specific scenario. Finally, these results have sobering implications for "machine unlearning," demonstrating how difficult it is to completely erase a data point's influence from a non-convex model once it has been trained.
Summary updated