Skip to content

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

  1. The gradient is calculated for each example in the microbatch.
  2. The gradients are clipped by norm C.
  3. Gaussian noise σ·C is added to the sum.
  4. 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

See also