Dwork 2006 - Differential Privacy Definition and Basic Examples
Summary
A mechanism is -differentially private if its output distribution changes by at most a factor when one individual’s data is added, removed or changed. Randomized response and Laplace-noised counts are the two canonical examples: both are -DP, but the Laplace count has error while randomized response has error . Statistical (total-variation) closeness is not a substitute, as Example 3 shows.
Overview
The paper models an interaction between a database access protocol run on a static dataset and a computationally unbounded, probabilistic adversary . is the list of messages exchanged plus the adversary’s internal state and random choices; randomness comes from the coins of and . For non-interactive schemes there is no dependence on and one writes .
Main Content
Data model and neighbours
Dataset, set-difference metric, neighbours (p. 23)
A dataset is a finite multiset over a domain (typically or ), represented as a histogram vector whose -th entry counts occurrences of the -th element of . The distance is (size of the symmetric difference). Datasets are neighbours (adjacent) if .
Remark 2.1 - Hamming vs set difference (p. 24)
The preliminary version used vectors of known length and Hamming distance . Embed ordered lists as sets . Two such sets differing in one row have , so an -DP mechanism under set difference is -DP under Hamming: . Results extend to Hamming with “only minor changes”, with “subtly different interpretations”.
The definition
Definition 2.1 - -differential privacy (non-interactive; p. 23)
A randomized function is -differentially private if for all neighbouring datasets and for all measurable events ,
The probability is over the coin flips of . is a bound on the privacy loss and is “a parameter chosen by policy”.
Consequences the paper states (pp. 24-25):
- Multiplicative, not additive. One can have two distributions at arbitrarily small statistical distance whose ratio is infinite (a point where one assigns probability zero).
- Worst case over pairs, randomness only in . Except for constant mechanisms, deterministic mechanisms cannot be differentially private.
- Singleton events suffice in the usual cases: for discrete it suffices that for all ; for continuous with density it suffices that for all .
- Multiplicative distance. DP says and are close in the metric . Write if the distributions of random variables are within multiplicative distance . The logarithm makes the triangle inequality usable.
Definition 2.3 - -DP for interactive mechanisms (p. 27)
An interactive mechanism is -differentially private if for all neighbouring , all adversaries , and all measurable sets of views,
Usually one does not need this: designing each round as a non-interactive -DP mechanism and using the composition lemma suffices.
Example 1 - randomized response
Example 1 (Warner 1965), pp. 25-26
Setup. known individuals, each with a secret bit (for example, engages in an embarrassing activity). Neighbours differ in one person’s bit. For let be a Bernoulli variable with and . Mechanism: .
Privacy. For neighbours differing in entry and output , , since all other coordinates cancel.
Estimator. is unbiased for the number of 1’s, with standard deviation as , . It supports estimating proportions of 1’s in any subset of individuals “with no further privacy loss”.
Derivation of the estimator's variance (derived here)
Let . Then with and , so (unbiased). Conditional on , , so each term has variance for small . Summing independent terms: .
Example 2 - Laplace noise on a count
Definition 2.2 - Laplace distribution (p. 25)
has density , mean and standard deviation . (The later Definition 3.2 in the same paper prints the exponent as , a typographical slip for , as the mean/sd and the proofs show.)
Example 2 - noisy count (p. 25)
Setup. , is the number of 1’s, using the histogram representation, so neighbours satisfy . Mechanism. , .
Privacy. For any reals , . Since differ by at most one, the ratio of densities at is .
Utility. Noise magnitude is about independent of , a factor roughly smaller than randomized response in Example 1. The same mechanism releases the total count .
The paper’s moral: “for a given goal, there may be several differentially private algorithms with the same privacy parameter and different levels of success”. For fixed the definition specifies a set of acceptable algorithms.
Why non-negligible leakage, and why the multiplicative measure
In Example 2, to get a reasonable approximation of one needs at least about ( = number of entries). That is large by cryptographic standards, where leakage should fall faster than any polynomial. But it is necessary: if neighbouring databases induce distributions at distance , then any two databases of size induce distributions at distance at most (triangle inequality along a chain), close to zero, so “no statistic about the database can be usefully approximated”.
Example 3 - why total variation is not enough (p. 26)
Setup. Each entry includes identifying information making it unique (name or SSN). Candidate “sanitization” : independently output each element of with probability (a subsample).
Statistical difference. If differ in a single position, the statistical difference between and is exactly (the probability the one differing element appears), identical otherwise.
Yet it leaks. About an fraction of individuals is revealed in full; when the expected size of the released set is at least 1.
DP status. Not -DP for any finite : if , the event “output includes ” has probability under and under . The authors find unpalatable “a ‘lottery’ philosophy that sacrifices a small number of individuals on every invocation.”
Examples
Numerical check of Examples 1 and 2 (own code; the paper has no tables):
import numpy as np
rng = np.random.default_rng(0)
n, p, eps = 100_000, 0.3, 1.0
x = rng.random(n) < p # secret bits
# Example 1: eps-randomized response, unbiased estimator of sum(x)
q = np.exp(eps) / (np.exp(eps) + 1)
y = np.where(rng.random(n) < q, x, ~x)
est_rr = (((np.exp(eps) + 1) * y - 1) / (np.exp(eps) - 1)).sum()
sd_rr = np.sqrt(n) * np.exp(eps / 2) / (np.exp(eps) - 1) # conditional sd, derived above
# Example 2: Laplace(1/eps) on the count
est_lap = x.sum() + rng.laplace(0, 1 / eps)
print(est_rr, est_lap, x.sum(), "RR sd ~", round(sd_rr), "Laplace sd ~", round(np.sqrt(2) / eps, 2))With , the randomized-response standard deviation is about people while the Laplace count has sd : a factor of about 200 apart, matching the paper’s "" claim (up to constants). Local randomization needs no trusted curator; that is its price.
Connections
- The trust-model distinction here (curator-held vs randomize-before-collection) is the same as the difference between a clean-room aggregate report and on-device noising in privacy-preserving measurement. Local noise costs more error, which matters when a lift study is small. See Conversion Lift Studies on Ad Platforms.
- The ” for any utility” argument is the formal reason tiny cells (small geos, rare conversions) cannot be reported privately and accurately at once; compare Geo-Experiment Design and Power Analysis.
See Also
- Dwork 2006 - Postprocessing, Composition and Group Privacy
- Dwork 2006 - Sensitivity and the Laplace Mechanism
- Dwork Roth 2014 - Differential Privacy Definition and Model of Computation ( generalisation and the histogram-based textbook definition)
- Dwork Roth 2014 - Randomized Response