Differentially Private Learning Needs Hidden State (Or Much Faster Convergence)

Jiayuan Ye, Reza Shokri

In the world of privacy-preserving machine learning, DP-SGD (Differentially Private Stochastic Gradient Descent) is the gold standard. However, it has a notorious "tax": the more you train your model, the more your privacy budget (represented by $\epsilon$) leaks. Traditionally, we’ve been told that privacy loss grows linearly with the number of training epochs.

A new paper challenges this pessimistic view. The authors argue that if we simply keep the intermediate steps of training a secret, the privacy loss doesn't grow forever—it actually converges to a stable, much smaller value.

TL;DR

Standard privacy analysis for DP-SGD assumes an adversary sees every single model update, leading to privacy bounds that explode over time. This paper proves that by releasing only the final model (the "hidden state" assumption), the privacy loss converges exponentially fast to a constant, enabling much tighter guarantees for long-running training.

What Problem Does This Paper Address?

Differential Privacy (DP) relies on adding noise to gradients during training. To calculate the total privacy "cost," researchers typically use composition theorems. These theorems assume a "worst-case" scenario where an adversary observes the model parameters after every single iteration.

Because of this assumption, the calculated privacy budget ($\epsilon$) grows linearly with the number of epochs. If a model requires 100 epochs to reach high accuracy, the theoretical privacy guarantee often becomes so loose that it's practically meaningless. This creates a painful trade-off: you can have a highly accurate model with no privacy, or a private model that hasn't trained long enough to be useful.

Comparison of privacy bounds over training epochs, showing the proposed bound converging while standard composition grows linearly.

The authors ask: What if the adversary only sees the final output? In practice, we rarely publish every intermediate checkpoint of a model. By analyzing the "hidden state" of the iterative process, can we prove that privacy is actually much stronger than we thought?

Methods

The researchers move away from simple composition and instead model the privacy dynamics of the training process as a physical system.

  1. Log-Sobolev Inequalities (LSI): They use LSI to track how the probability distributions of models trained on "neighboring" datasets (datasets differing by only one record) evolve. They show that the noise added in DP-SGD acts like a diffusion process that "smears out" the differences caused by any single data point.
  2. Randomized Post-Processing: A key insight is that every update made after a specific data point has been used acts as a form of "randomized post-processing." Because these later updates involve new noise and different data, they naturally help hide the influence of the earlier sensitive data point.
  3. Analyzing Sampling Schemes: They provide specific mathematical bounds for two common ways of picking data batches:
  4. Shuffle and Partition: Randomly shuffling the data at the start of each epoch (the standard in libraries like PyTorch's Opacus).
  5. Sample Without Replacement: Freshly sampling a batch for every iteration.
Privacy dynamics for the shuffle and partition scheme, demonstrating convergence across different alpha values.
  1. Recursive Bounds: They developed a recursive formula to calculate how the Rényi Divergence (a measure of privacy leakage) changes step-by-step, proving it eventually hits an equilibrium.

Datasets

The paper is primarily a theoretical contribution. To validate their mathematical bounds, they used:

  • Simulated Environments: They evaluated their bounds using controlled settings (e.g., $n=50$ data points, specific noise scales, and step sizes) to compare their "Hidden State" bound against standard "Composition" bounds.
  • Regularized Logistic Regression: They provide a detailed framework for applying their analysis to image classification tasks using regularized logistic regression, which satisfies the necessary mathematical conditions (strong convexity and smoothness).

Key Insights and Ideas

  • The "Leaky Bucket" vs. Equilibrium: Standard DP analysis treats privacy like a bucket that just keeps filling up until it overflows. This paper shows it's more like a bucket with a hole at the bottom: as you add "leakage" (new iterations), the "diffusion" (noise and later updates) lets some of that leakage escape, eventually reaching a steady state.
  • Exponential Convergence: For strongly convex loss functions, the privacy bound doesn't just grow slower—it converges exponentially fast to a fixed value. This means training for 1,000 epochs might cost nearly the same privacy budget as training for 50.
  • Hidden State is a Force Multiplier: The analysis shows that "hidden state" analysis can significantly amplify the privacy benefits of sub-sampling, especially for models that converge slowly.

Key Results

  • Tighter Bounds: Their privacy bounds are substantially smaller than those derived from standard composition, especially after the first few epochs.
  • Superiority over Prior Work: For the specific case of full Gradient Descent, their approach yields a strictly tighter bound than previous state-of-the-art hidden-state analyses.
  • Practical Impact: The results suggest that for many tasks, we don't need to obsess over "faster convergence" just to save the privacy budget. We can train longer to get better accuracy without the $\epsilon$ blowing up, provided we don't release intermediate iterates.

Limitations and Future Work

  • Strong Assumptions: The current proof requires the loss function to be strongly convex and smooth. While this covers models like Logistic Regression, it doesn't directly apply to deep neural networks, which are non-convex.
  • Sampling Gaps: Their bound for "sample without replacement" is currently looser than "shuffle and partition," suggesting there is still room to improve the mathematical tightness for certain sampling strategies.
  • The "Last Iterate" Constraint: The analysis only applies if you release the final model. If you use techniques like "model averaging" (averaging weights from several late epochs), the privacy dynamics become more complex and are not yet covered by this specific proof.

Summary updated

BibTeX
@inproceedings{ye2022differentially,
  author = {Jiayuan Ye and Reza Shokri},
  title = {{Differentially Private Learning Needs Hidden State (Or Much Faster Convergence)}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=ipAz7H8pPnI},
}
Figure