Differential Privacy › The Gaussian Mechanism
Language AI HandbookAll chapters Differential Privacy › The Gaussian MechanismOne section · Sections in this chapter4 / 12 ↓
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
To make any function differentially private, you add noise proportional to how sensitive the function's output is to a single data point. The Gaussian mechanism is the standard approach for vector-valued functions such as gradients.
The sensitivity of a function measures the maximum change in its output norm when one record is added or removed:
where:
- is the sensitivity of function , measuring the worst-case change in output when one record changes.
- restricts the maximum to neighboring datasets that differ by exactly one record.
- is the Euclidean distance between the outputs on the two neighboring datasets.
The Gaussian mechanism adds isotropic Gaussian noise scaled to the sensitivity:
where:
- is multivariate Gaussian noise with standard deviation in each dimension.
- controls the amount of noise added, which in turn controls the privacy-utility tradeoff.
- Larger means more noise, which means stronger privacy but lower utility.
For approximate DP with parameters , the Gaussian mechanism satisfies DP when:
where:
- is the noise standard deviation to be added.
- is a constant derived from the tail bounds of the Gaussian distribution, growing slowly as decreases.
- is the sensitivity of the function being computed.
- is the target privacy parameter; smaller requires larger .
This formula captures the three-way tradeoff precisely. To achieve stronger privacy (smaller ), you need more noise (larger ). To guarantee the privacy bound holds more reliably (smaller ), you again need more noise, because the Gaussian's tail probability shrinks only logarithmically with . The sensitivity anchors the scale of the noise to the specific function being computed: a function that barely changes when one record is removed needs very little noise to hide that change.
The Gaussian mechanism has an important property that makes it particularly well-suited to machine learning: in high dimensions, Gaussian noise distributes evenly across all directions. Adding noise to a gradient vector perturbs all parameter directions equally, which tends to have a smaller effect on the overall model quality than directional noise would. This isotropy is part of why the Gaussian mechanism is preferred over alternatives for neural network training.