Differential Privacy Training
Definition
Differential Privacy Training — training a neural network with an (ε, δ)-differential privacy guarantee: the inclusion or exclusion of one record in the dataset changes the output distribution of the model insignificantly. It is most often implemented through DP-SGD.
DP-SGD
- The gradient is calculated for each example in the microbatch.
- The gradients are clipped by norm C.
- Gaussian noise σ·C is added to the sum.
- A step of Gradient Descent is performed.
flowchart LR
B[Microbatch] --> G[Gradients per example]
G --> C[Clipping]
C --> N[Adding noise]
N --> U[Updating weights]
Trade-offs
| Parameter | Effect |
|---|---|
| ε ↓ | Privacy ↑, Quality ↓ |
| C ↓ | Noise is more effective, signal is weaker |
| Batch ↑ | Less noise per step |