Bolt-on Differential Privacy for Scalable Stochastic Gradient Descent-based Analytics

Xi Wu, Fengan Li, Arun Kumar, Kamalika Chaudhuri, Somesh Jha, Jeffrey F. Naughton

TL;DR

This paper introduces a novel "bolt-on" approach to differentially private Stochastic Gradient Descent (SGD) by adding privacy noise only at the very end of training rather than during every gradient update. By providing a tighter mathematical bound on the sensitivity of SGD, the authors achieve up to a 4x improvement in model accuracy over existing private algorithms while incurring virtually zero runtime or development overhead.

What Problem Does This Paper Address?

Stochastic Gradient Descent (SGD) is the workhorse of modern machine learning, widely integrated into scalable data processing systems like databases and Spark. However, when training models on sensitive data (e.g., medical records or financial transactions), ensuring individual privacy is paramount. Differential privacy (DP) is the gold standard for this, but a massive gap remains between theory and practice.

Prior state-of-the-art private SGD algorithms rely on a "white-box" approach: they inject noise into the model at every single iteration of the gradient update. This creates two major hurdles for real-world deployment:

  1. Low Accuracy: The accumulated noise over thousands of iterations severely degrades the final model's performance.
  2. High Overhead: Modifying the internal gradient update steps requires deep code changes to existing database engines, and repeatedly sampling random noise introduces significant computational slowdowns.

The authors set out to design a private SGD algorithm that can be easily "bolted on" to existing scalable systems without sacrificing accuracy or speed.

Methods

Instead of the invasive white-box paradigm, this paper revisits output perturbation—a "black-box" approach where a standard, non-private SGD algorithm is run to completion, and privacy-preserving noise is added only once to the final output vector.

While output perturbation trivially solves the engineering and runtime overhead problems, it traditionally suffers from poor accuracy because the worst-case sensitivity of the algorithm is hard to bound tightly. The core technical contribution of this paper is a novel analysis of the $L_2$-sensitivity of SGD.

By leveraging the mathematical expansion and contraction properties of gradient operators, the authors proved that:

  • For convex functions, a constant learning rate keeps the sensitivity manageable.
  • For strongly convex functions, the gradient updates actually act as contractions. This means the influence of any single data point exponentially decays over time, drastically reducing the amount of noise needed at the end.

The authors integrated their "bolt-on" algorithm into Bismarck, a popular architecture for running SGD directly inside Relational Database Management Systems (RDBMSs).

Table of notations used in the paper's privacy and sensitivity analysis.

Datasets

The authors evaluated their approach on several well-known benchmark datasets representing different scales and classification tasks:

  • MNIST: Image classification dataset (digit recognition), reduced to 50 dimensions using Gaussian Random Projection to mitigate the impact of high dimensionality on privacy noise.
  • Protein: A medium-sized bio-informatics dataset for binary classification.
  • Forest Covertype: A large dataset containing over 581,000 instances, used to test scalability and performance on larger-than-memory data.
  • HIGGS & KDDCup-99: Additional large-scale datasets evaluated in the appendix to confirm the algorithm's consistency.

Key Insights and Ideas

  • Randomness One at a Time: The authors observed that because permutation-based SGD determines its data-access order at the very beginning (non-adaptive), they could analyze the privacy guarantees by looking at one random sequence at a time. This bypassed the overly pessimistic bounds of traditional analysis.
  • The Contraction Advantage: In strongly convex optimization, more passes through the data do not increase the required privacy noise. This is a massive win because it allows practitioners to run more epochs to achieve better algorithmic convergence without paying a privacy penalty.
  • Mini-batching is a Free Lunch: The analysis demonstrates that using mini-batches improves the sensitivity bound by a factor of the batch size ($b$). This allows engineers to suppress privacy noise effectively just by tuning the batch size.

Key Results

  • Massive Accuracy Boost: Under identical privacy budgets ($\epsilon, \delta$), the bolt-on approach yielded up to 4x better test accuracy than previous state-of-the-art private algorithms (SCS13 and BST14). On large datasets like HIGGS, the private model achieved nearly the exact same accuracy as the non-private baseline.
  • Zero Runtime Overhead: Because noise is sampled and added exactly once at the end of training, the execution time was virtually identical to standard, non-private SGD. In contrast, white-box methods were found to be 2x to 6x slower due to repeated noise generation.
  • Trivial Integration: The bolt-on algorithm was implemented in just about 10 lines of Python code at the application layer, requiring absolutely zero modifications to the underlying RDBMS database engine or C-based User Defined Aggregates (UDAs).

Limitations and Future Work

The primary limitation acknowledged by the authors is a gap between theory and practice regarding multi-pass convergence. While their empirical results show that running multiple passes over the data works exceptionally well, their formal theoretical convergence proofs are currently limited to a single pass ($1$-pass SGD).

A key direction for future work is to mathematically prove tighter convergence bounds for multiple passes under this output-perturbation framework to fully match or exceed the theoretical guarantees of more complex white-box methods.

Summary updated

BibTeX
@inproceedings{wu2017bolt,
  author = {Xi Wu and Fengan Li and Arun Kumar and Kamalika Chaudhuri and Somesh Jha and Jeffrey F. Naughton},
  title = {{Bolt-on Differential Privacy for Scalable Stochastic Gradient Descent-based Analytics}},
  booktitle = {SIGMOD},
  year = {2017},
  doi = {10.1145/3035918.3064047},
}
Figure