Every time a machine learning model trains on your medical record, your purchase history, or your private messages, it takes a small gradient step in the direction your data points. Then it does it again. And again. After millions of such steps the model is finished — and, in a very real sense, it has memorized fragments of every record it ever touched.
This is not speculation. Researchers routinely run membership inference attacks that determine, with high confidence, whether a specific person was in the training set — and reconstruction attacks that recover near-verbatim text or images from training data embedded in the model's weights.
Differentially Private Stochastic Gradient Descent (DP-SGD) is the algorithm that changes this. Proposed by Abadi et al. in 2016, it intervenes at the most granular level — the per-example gradient — to give a trained model a mathematical privacy guarantee: no matter what an adversary does with the finished model, they learn almost nothing about whether any particular individual was in the training set.
The two ingredients are simple: clip each example's gradient so no single record can dominate a step, then add Gaussian noise large enough to mask the clipped signal. Repeat for every mini-batch, every epoch. The privacy cost accumulates, like a running tally — the privacy budget — and DP-SGD lets you track exactly how much has been spent.
Comments
Loading comments...