- Introduced by
- Cynthia Dwork
- Year
- 2006
- Type
- Privacy-preserving randomized mechanism
- Family
- Privacy-preserving analysis
What does it do?
Differential privacy is a mathematical framework for releasing statistical information about a dataset while bounding how much any individual's record can affect what is released.
Introduced by Cynthia Dwork in 2006, it defines privacy probabilistically: adding or removing one individual's record changes the output distribution by at most a multiplicative factor of e^ε, where the privacy budget ε sets the trade-off between privacy and accuracy.
The intuition behind the method
Consider a survey in which each respondent first flips a coin: heads means answer truthfully, tails means answer at random. Aggregate proportions can still be estimated, because the random answers average out, but no single answer can be taken at face value. Differential privacy applies the same idea more generally: noise calibrated to how much one person can change a query result is added, so that the output looks nearly the same whether or not any one person's data is included.
History
Cynthia Dwork's 2006 paper at ICALP is the cited origin of differential privacy. The definition was designed as a privacy notion that composes across analyses and does not depend on the attacker's background knowledge, in contrast to syntactic models such as k-anonymity. Later extensions named on this page include approximate (ε, δ) differential privacy, Rényi differential privacy and DP-SGD for deep learning.
When to use it
Differential privacy suits settings where statistics or models are released from sensitive personal data, such as health, location or financial records, and a formal bound on what any one person's record can reveal is required. It assumes that the analyst can bound the sensitivity of each query, for example by clipping per-person contributions, and can accept some loss of accuracy from the added noise. It is a poor fit when exact individual-level outputs are needed, or when the dataset is so small that the noise required for a useful ε overwhelms the signal. Alternatives include k-anonymity, which offers a weaker, syntactic guarantee, and secure multi-party computation, which is suited to cases where the data must remain distributed.
Limitations and considerations
- The added noise reduces statistical accuracy, and the loss is severe for high-sensitivity queries or small datasets.
- The privacy budget ε has no intuitive absolute scale, so choosing a meaningful value requires domain expertise and empirical evaluation of the resulting accuracy.
- Privacy loss accumulates across queries. Basic composition bounds are valid but loose, and tighter accountants such as the Rényi DP or moments accountant are commonly used in machine learning workloads to report a smaller ε for the same training run.
- The guarantee concerns each individual's record only. Correlated attributes or auxiliary data sources can still allow inferences about a person even when the mechanism satisfies DP.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Gives a formal worst-case privacy guarantee that holds regardless of the attacker's background knowledge.
- Composable: sequential and parallel composition results let the privacy budget be accounted for across multi-step analysis pipelines.
- Immune to post-processing: any function applied to a differentially private output remains differentially private.
- Applicable both to interactive query answering and to non-interactive releases such as synthetic data or trained models, for example through DP-SGD for neural networks.
Applications
- Training differentially private machine learning models using DP-SGD (e.g., neural network classifiers on sensitive health or financial data).
- Publishing census microdata and aggregate statistics with formal privacy guarantees for national statistical agencies.
- Collecting telemetry and usage statistics from user devices without exposing individual behavioral patterns.
- Releasing synthetic datasets that statistically resemble sensitive originals while satisfying a formal DP bound.
- Federated learning systems where local model updates are privatized before aggregation across distributed clients.
How it works
How it works
Before adding noise, the analyst determines the sensitivity of the query function f, defined in the formula as the maximum change in f's output (measured in the L1 norm) across neighbouring datasets that differ in one record. Queries with high sensitivity need more noise. If individual contributions are unbounded, as with a raw sum over an unbounded domain, sensitivity is unbounded as well, so contributions are typically clipped to a fixed range first.
Formula
\Delta f = \max_{D, D': \|D - D'\|_1 = 1} \|f(D) - f(D')\|_1The noise is drawn from a Laplace distribution with scale b = Δf / ε. A smaller ε gives a larger scale, meaning stronger privacy and noisier output; a larger ε gives less noise and a weaker guarantee. The Laplace mechanism is the standard choice when sensitivity is measured in the L1 norm. The Gaussian mechanism, also listed among the noise mechanisms for this method, is an alternative usually paired with sensitivity measured in the L2 norm; it provides the approximate (ε, δ) guarantee rather than the pure ε bound.
Formula
\text{Lap}(x \mid \mu, b) = \frac{1}{2b} \exp\!\left(-\frac{|x - \mu|}{b}\right), \quad b = \frac{\Delta f}{\varepsilon}The released value is the true answer f(D) plus an independent draw from the calibrated distribution, as in the formula M(D) = f(D) + Lap(0, Δf/ε). Because each release uses fresh noise, privacy loss accumulates across releases, so the budget spent by every query or training step has to be tracked over the whole analysis pipeline.
Formula
\mathcal{M}(D) = f(D) + \text{Lap}\!\left(0, \frac{\Delta f}{\varepsilon}\right)For any two neighbouring datasets D and D' that differ in one record, and for any set of possible outputs S, the probability of the output falling in S under D is at most e^ε times the probability under D'. This is pure ε-differential privacy. The bound does not depend on what the attacker already knows, it is preserved under any post-processing of the output, and it extends to groups of records with a correspondingly weaker bound. The relaxed approximate (ε, δ) variant, used by the Gaussian mechanism and DP-SGD, allows an additive term: Pr[M(D) ∈ S] ≤ e^ε · Pr[M(D') ∈ S] + δ. Here δ is the probability that the pure ε bound fails, and it is conventionally chosen to be negligibly small.
Formula
\Pr[\mathcal{M}(D) \in S] \leq e^{\varepsilon} \cdot \Pr[\mathcal{M}(D') \in S] \quad \forall S \subseteq \text{Range}(\mathcal{M})Common pitfalls
- A large ε weakens the guarantee substantially, so a result carrying a formal DP label says little about practical privacy unless the chosen ε is interpreted in context.
- Ignoring sensitivity: queries over unbounded domains, such as raw sums without clipping, have unbounded sensitivity, and the mechanism's guarantee does not hold for them as written.
- Treating DP as a complete privacy solution: it limits disclosure about individual records but does not prevent group-level or aggregate inferences.
- Failing to track composition across the whole pipeline: each query or model training step consumes budget, and the total must be accounted for.
Frequently asked questions
What is a good value for the privacy budget ε?
There is no universal answer. Whether a given ε is acceptable depends on the sensitivity of the data, the dataset size, and the number of queries or training steps composed. Reported ε values vary widely across deployments, so the choice should be justified by an analysis of the resulting accuracy and of the residual disclosure risk, not by a fixed threshold.
How does differential privacy differ from k-anonymity?
K-anonymity is a syntactic property of a released dataset: each record is indistinguishable from at least k−1 others on its quasi-identifiers. Differential privacy is a probabilistic guarantee on the mechanism that produces the output. Its guarantee does not depend on which other data an attacker holds, which is the usual weakness of k-anonymity, and it composes across releases.
Can differential privacy be applied to deep learning models?
Yes. DP-SGD applies the framework to gradient-based training: per-example gradients are clipped to bound sensitivity, and Gaussian noise is added before each update. A privacy accountant, such as the moments accountant or the Rényi DP accountant mentioned elsewhere on this page, tracks cumulative privacy loss across training steps, so the final model can be described with a formal (ε, δ) guarantee.
Related methods
Sources
Dwork, C. (2006). Differential privacy. International Colloquium on Automata, Languages and Programming (ICALP), 1–12.
Open DOI reference