Skip to main content
QUICK REVIEW

[Paper Review] On the Intrinsic Privacy of Stochastic Gradient Descent

Stephanie L. Hyland, Shruti Tople|arXiv (Cornell University)|Dec 5, 2019
Privacy-Preserving Technologies in DataComputer Science29 references7 citations
TL;DR

This paper investigates the intrinsic privacy of stochastic gradient descent (SGD) by analyzing its inherent randomness, showing that SGD's stochasticity provides natural privacy with $\epsilon$ values of 7.8, 6.9, and 2.8 on MNIST, Adult, and Forest Covertype datasets, respectively. It proposes augmenting this intrinsic noise to achieve higher utility under differential privacy, closing the utility gap to noiseless models by up to 10.07% at $\epsilon = 1$.

ABSTRACT

Private learning algorithms have been proposed that ensure strong differential-privacy (DP) guarantees, however they often come at a cost to utility. Meanwhile, stochastic gradient descent (SGD) contains intrinsic randomness which has not been leveraged for privacy. In this work, we take the first step towards analysing the intrinsic privacy properties of SGD. Our primary contribution is a large-scale empirical analysis of SGD on convex and non-convex objectives. We evaluate the inherent variability due to the stochasticity in SGD on 3 datasets and calculate the $\epsilon$ values due to the intrinsic noise. First, we show that the variability in model parameters due to the random sampling almost always exceeds that due to changes in the data. We observe that SGD provides intrinsic $\epsilon$ values of 7.8, 6.9, and 2.8 on MNIST, Adult, and Forest Covertype datasets respectively. Next, we propose a method to augment the intrinsic noise of SGD to achieve the desired $\epsilon$. Our augmented SGD outputs models that outperform existing approaches with the same privacy guarantee, closing the gap to noiseless utility between 0.19% and 10.07%. Finally, we show that the existing theoretical bound on the sensitivity of SGD is not tight. By estimating the tightest bound empirically, we achieve near-noiseless performance at $\epsilon = 1$, closing the utility gap to the noiseless model between 3.13% and 100%. Our experiments provide concrete evidence that changing the seed in SGD is likely to have a far greater impact on the model than excluding any given training example. By accounting for this intrinsic randomness, higher utility can be achieved without sacrificing further privacy. With these results, we hope to inspire the research community to further explore and characterise the randomness in SGD, its impact on privacy, and the parallels with generalisation in machine learning.

Motivation & Objective

  • Understand whether the inherent randomness in SGD contributes to differential privacy without adding external noise.
  • Quantify the intrinsic privacy (in terms of $\epsilon$) provided by SGD's stochasticity across different datasets and objectives.
  • Develop a method to enhance SGD's intrinsic noise to achieve better utility under the same differential privacy guarantee.
  • Re-evaluate the theoretical sensitivity bounds of SGD, showing they are not tight in practice.
  • Explore the relationship between SGD's intrinsic randomness, model generalization, and privacy to inspire future research.

Proposed method

  • Empirically measure the variability in model parameters due to random sampling in SGD across three datasets: MNIST, Adult, and Forest Covertype.
  • Calculate the intrinsic $\epsilon$ values by comparing model parameter differences when training with and without a single data point, using the sensitivity of model updates.
  • Propose a noise augmentation technique that scales the intrinsic stochasticity of SGD to achieve a target $\epsilon$ value while preserving model utility.
  • Estimate the tightest possible sensitivity bound for SGD empirically, rather than relying on theoretical upper bounds.
  • Train models using the augmented intrinsic noise and compare their performance to existing differentially private methods under the same $\epsilon$ budget.
  • Use large-scale experiments on both convex and non-convex objectives to validate the robustness of the findings.

Experimental results

Research questions

  • RQ1What is the intrinsic $\epsilon$ value provided by SGD's stochasticity on standard machine learning datasets?
  • RQ2How does the variability in model parameters due to SGD's random sampling compare to the variability caused by changing a single training example?
  • RQ3Can augmenting the intrinsic noise of SGD improve model utility under the same differential privacy guarantee compared to existing methods?
  • RQ4How tight are the theoretical sensitivity bounds for SGD in practice, and can empirical estimation yield better performance?
  • RQ5Does the intrinsic randomness in SGD have a stronger impact on model output than any individual training example?

Key findings

  • SGD's intrinsic stochasticity results in $\epsilon$ values of 7.8 on MNIST, 6.9 on Adult, and 2.8 on Forest Covertype, indicating significant natural privacy.
  • The variability in model parameters due to random sampling exceeds that caused by changing any single training example, suggesting that changing the random seed has a larger impact than removing a data point.
  • By augmenting the intrinsic noise of SGD, the proposed method achieves a utility gap to the noiseless model of only 0.19% to 10.07% at $\epsilon = 1$, outperforming existing differentially private approaches.
  • Empirically estimating the tightest sensitivity bound for SGD yields near-noiseless performance at $\epsilon = 1$, reducing the utility gap to the noiseless model by 3.13% to 100%.
  • Theoretical sensitivity bounds for SGD are not tight in practice, and empirical estimation of sensitivity leads to significantly improved utility under the same privacy budget.
  • Changing the random seed in SGD has a greater effect on model output than removing any single training example, highlighting the dominant role of intrinsic randomness in model variation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.