Contents / Information Theory / Differential Privacy
Chapter 19
Differential Privacy
A guarantee stated as a divergence bound, the mechanisms that meet it, and what composition costs across repeated queries.
Introduction
A guarantee stated as a divergence bound, the mechanisms that meet it, and what composition costs across repeated queries.
Differential privacy is the answer to a question that anonymisation kept getting wrong: what, exactly, should a data release promise? Stripping names does not work, and neither does -anonymity, because both are syntactic — they constrain the shape of the released table rather than the inferences an adversary can draw from it. Differential privacy instead constrains the mechanism: it is a property of the randomised map from datasets to outputs, and it holds whatever the adversary knows, whatever computational power the adversary has, and whatever auxiliary data arrives in the future.
The whole chapter turns on one inequality — a bound on how far apart two output distributions may be — so the natural home for the subject is information theory. The quantity being bounded is a divergence, the max-divergence, and the modern accounting tools are Rényi divergences of finite order. The section Privacy Loss as a Divergence makes that identification exact.
19.1What the Guarantee Says
Everything begins with what counts as "one person's data".
Definition 19.1 (Neighbouring datasets). Fix a data universe . A dataset is a finite multiset . Two datasets are neighbouring, written , if one is obtained from the other by adding or removing a single record (unbounded neighbouring), or, in the bounded variant, by replacing a single record while keeping the size fixed.
Notation. Which variant you use changes sensitivities by a factor of up to : a histogram has sensitivity under add/remove and under replacement, because a replacement empties one bin and fills another. State the variant before quoting an . This chapter uses add/remove unless it says otherwise.
Definition 19.2 ( -differential privacy). A randomised algorithm is -differentially private if for every pair of neighbouring datasets and every measurable ,
Three features of the definition are worth naming, because each is a deliberate design choice and each is what makes the guarantee survive contact with reality.
First, the quantifier is over all neighbouring pairs and all output sets: this is a worst-case guarantee, not an average-case one, so it cannot be defeated by an unlucky dataset. Second, the bound is multiplicative. An additive bound would be useless, because it says nothing about events that are rare under both datasets — and "the mechanism output exactly this value" is exactly such an event. Third, the inequality is symmetric in and even though it is written one way round: swapping the two neighbours in the definition gives the reverse bound for free, so the ratio of the two probabilities lies in .
Definition 19.3 (Privacy loss random variable). Suppose and have densities and with respect to a common reference measure. The privacy loss at output is
and the privacy loss random variable is where .
Theorem 19.4 (Pure DP is a bound on the privacy loss). is -differentially private if and only if for every ,
Proof. () If almost everywhere then integrating over any gives .
() Suppose the set has positive measure. Then
contradicting the definition; so is null, i.e. almost everywhere. Applying the same argument to the pair gives .∎
This reformulation is the one to carry forward: pure differential privacy says the log-likelihood ratio between "you are in the data" and "you are not" is bounded by , pointwise. Since a Bayesian adversary updates prior odds into posterior odds by multiplying by exactly that likelihood ratio, the definition has an immediate operational reading.
Theorem 19.5 (Bayesian reading of ). Let be -DP and let an adversary hold any prior over whether individual 's record is present, together with full knowledge of every other record. On observing , the posterior odds that the record is present satisfy
Proof. Write for the event that 's record is present. By Bayes' rule the posterior odds are the prior odds times the likelihood ratio . With every other record fixed and known, the two hypotheses correspond to two neighbouring datasets and , so that likelihood ratio equals by Theorem Pure DP is a bound on the privacy loss.∎
Intuition. Think of as a bound on how much anyone can learn about your participation, measured in log-odds. At an adversary's belief can move by at most in relative odds — nothing. At it can move by a factor of , which turns a prior suspicion into a posterior. The scale is exponential, so the gap between and is not "ten times weaker" but four orders of magnitude weaker.
Pure DP is demanding: it forbids any output whose likelihood ratio exceeds , and the Gaussian distribution — whose log-ratio is unbounded — cannot satisfy it at any finite . The standard relaxation buys that back with a small additive term.
Definition 19.6 ( -differential privacy). is -differentially private if for all and all measurable ,
Pitfall. is not "a small chance of a small leak". A mechanism that publishes the whole dataset with probability and the empty string otherwise is -DP. So must be small relative to the dataset — the standard rule is , and on records is already a defensible-looking number attached to an indefensible mechanism.
The right way to read -DP is as a statement that the privacy loss is bounded by except on an event of probability ; this is not literally equivalent to the definition, but the following one-directional statement is the workhorse and is what makes the Gaussian mechanism analysable.
Lemma 19.7 (Tail bound on the loss implies approximate DP). If for every we have , then is -DP.
Proof. Fix and let . Split the probability:
On we have , so the integral is at most .∎
Historically the subject begins not with a curator adding noise but with a survey trick from 1965, which turns out to satisfy the definition written forty years later.
Definition 19.8 (Randomised response). To ask a sensitive yes/no question, instruct each respondent to report their true answer with probability and the opposite answer with probability , independently of everyone else.
Theorem 19.9 (Randomised response is -DP). The randomised response mechanism is -differentially private, and the classical "flip a coin; if tails, flip again and answer yes iff heads" protocol is the case .
Proof. The output alphabet is , so it suffices to bound the ratio of point probabilities. For either report , the probability of is when is the truth and when it is not, so every ratio of the two is or . Changing one respondent's true answer changes only that respondent's report distribution, hence the joint ratio is .
For the coin protocol: with probability the answer is truthful, and with probability it is a fresh fair coin, so and . The ratio is .∎
Example 19.10 (Debiasing randomised response). In a class of students each answers a sensitive question by the coin protocol above, and report "yes". Estimate the true number of yes-answers, and give the standard error of the estimate.
Solution. Let be the true number of yes-answers and the number of reported yeses. Each true yes reports yes with probability and each true no with probability , so
Solving gives the unbiased estimator .
For the standard error, is a sum of independent Bernoulli variables each of variance at most , so and , giving a standard error of at most .
Sanity check: the estimate out of carries an uncertainty of about , i.e. percentage points — the price of privacy at this sample size. Note also that can fall outside ; clipping it to that range is legitimate, because clipping is post-processing. □□
Remark. Randomised response is private without a trusted curator: each respondent randomises their own answer before it leaves them. That is the local model, taken up in Differential Privacy Without a Trusted Curator, and its accuracy cost is exactly what the example above shows — an error of order in a count, where a trusted curator would pay .
19.2Sensitivity and the Basic Mechanisms
To privatise a numeric query the mechanism must know how much one person can move it.
Definition 19.11 (Global sensitivity). For a query , the global sensitivity is
and the global sensitivity is . The maximum is over all neighbouring pairs in the universe, not over pairs drawn from the data at hand.
Pitfall. Global sensitivity is a property of the query, not of the dataset. A mean of unbounded real values has infinite sensitivity, and no calibration of noise can rescue it — you must first clip the values to a fixed range , which is a change of query, decided without looking at the data. Choosing the clipping range by inspecting the data is itself a data-dependent release and must be paid for.
Example 19.12 (Sensitivities of three standard queries). Compute for: (a) the count of records satisfying a predicate; (b) the histogram of records over disjoint bins; (c) the sum of an attribute known to lie in .
Solution. (a) Adding or removing one record changes the count by at most , so .
(b) Adding or removing one record changes exactly one bin by exactly , so the distance between the two histograms is : , independent of . (Under the replacement relation it is , since one bin falls and another rises.)
(c) The removed record contributes some value in , so .
Sanity check: (b) is the striking one — a histogram over a million bins costs the same noise per bin as a single count, which is why histograms are the cheapest useful DP release there is. □□
Definition 19.13 (Laplace distribution). has density on , mean , variance , and mean absolute deviation . Its tail is .
Theorem 19.14 (The Laplace mechanism). For with sensitivity , the mechanism
is -differentially private.
Proof. Write and let be the density of . For any output and neighbours ,
By the reverse triangle inequality each bracket is at most , so the exponent is at most
Thus the density ratio is bounded by pointwise, and Theorem Pure DP is a bound on the privacy loss gives -DP.∎
Privacy is only half of what a mechanism must deliver; a mechanism that outputs pure noise is perfectly private and perfectly useless. The accuracy of the Laplace mechanism follows from its tail.
Theorem 19.16 (Accuracy of the Laplace mechanism). Let be the Laplace mechanism above with . For every ,
In particular a single counting query (, ) has error at most with probability , independent of the dataset size.
Proof. For one coordinate, . Setting makes this . A union bound over the coordinates gives total failure probability at most .∎
Intuition. The error does not grow with . A count over ten records and a count over ten million records get the same absolute noise, because one person moves both by . This is why differential privacy is nearly free for large populations and brutal for small ones: the relative error is .
Example 19.17 (Calibrating for a released proportion). A hospital releases the proportion of its patients with a given diagnosis, at . How large is the noise, and what is a error bar?
Solution. Release the count and divide — division by the public constant is post-processing. The count has , so and the released count is .
With and , Theorem Accuracy of the Laplace mechanism gives error at most with probability .
As a proportion that is , i.e. percentage points.
Sanity check: the sampling error of the proportion itself, at most , is more than ten times larger. The privacy noise is invisible beneath the statistical noise already present — the regime in which DP costs nothing. □□
The Gaussian mechanism trades pure DP for the relaxation, and gains rather than calibration — decisive when is a high-dimensional vector such as a gradient, where can be times smaller than .
Theorem 19.18 (The Gaussian mechanism). Let have sensitivity and let , . Then is -differentially private whenever
Proof. Sketch; the full computation is Appendix A of Dwork and Roth, and this argument rests on Lemma Tail bound on the loss implies approximate DP. By rotational symmetry it suffices to treat with . The privacy loss at output shifted to is
which is itself a Gaussian random variable, with mean and standard deviation . Being unbounded, it can exceed , so pure DP is impossible; but a standard Gaussian tail estimate shows for as displayed, and the lemma converts that into -DP. What the sketch omits is only the explicit tail estimate producing the constant ; the restriction enters there, and the analytic Gaussian mechanism replaces the closed form by an exact condition on the Gaussian CDF valid for every .∎
Pitfall. The formula above is not valid for : taking in it gives a that does not satisfy the definition. Use the analytic calibration, or an accountant based on Rényi divergence, outside the range .
Example 19.19 (Laplace against Gaussian in dimensions). A query returns counts, and one record can change every one of them by . Compare the per-coordinate noise scale of the Laplace mechanism at with that of the Gaussian mechanism at .
Solution. Sensitivities: and .
Laplace: , so each coordinate has standard deviation .
Gaussian: , so and .
Sanity check: the Gaussian mechanism is about times quieter here, and the advantage grows like — it comes entirely from measuring sensitivity in . This is why DP-SGD, whose query is a clipped gradient vector in millions of dimensions, is always Gaussian. □□
19.3Choosing Well Instead of Adding Noise
Additive noise presupposes that the answer is a number and that "close" answers are nearly as good. Neither holds when the output is a choice: the best price to set, the best decision-tree split, the winner of an election. Adding Laplace noise to a price and then rounding to the nearest sellable value can produce a price at which nobody buys. The exponential mechanism handles these by sampling from the output space directly, weighting each candidate by how good it is.
Definition 19.20 (Utility and its sensitivity). A utility is a function scoring each candidate output against the dataset. Its sensitivity is
the maximum over candidates of how much one record can change that candidate's score. Note the maximum is not taken over pairs of candidates: only each candidate's own score must be insensitive.
Definition 19.21 (The exponential mechanism). outputs with probability proportional to
Theorem 19.22 (The exponential mechanism is -DP). For any utility with sensitivity , the mechanism is -differentially private.
Proof. Write and let be the normaliser. For neighbours and any ,
The first factor is .
For the second, every term obeys , so summing over gives .
Multiplying, the ratio is at most for every ; the same argument with and exchanged gives the lower bound.∎
Remark. The factor in the exponent is exactly the price of the normaliser: numerator and denominator each contribute . A mechanism using would be -DP, which is why the is written into the definition rather than discovered in the analysis.
Theorem 19.23 (Utility of the exponential mechanism). Let and let be finite. Then for every ,
Proof. Let and let be the bad candidates. Each bad candidate has unnormalised weight at most , so
The normaliser is at least the weight of an optimal candidate, . Dividing,
Intuition. Read the utility theorem as: the exponential mechanism loses about against the best possible score. The dependence on the number of candidates is logarithmic, so choosing privately among a million options costs only of those units, not a million. Privacy here is bought by occasionally picking a near-best option, not by corrupting the answer.
Example 19.24 (Private pricing). A seller faces four bidders willing to pay , , and . The candidate prices are and the utility is the revenue , so and . One bidder can change a price's revenue by at most . With , what is the probability the mechanism sets the better price?
Solution. The exponents are :
Normalising, .
Sanity check: the better price wins, but only by a modest margin — at , with utilities this close relative to , the mechanism is nearly indifferent. Raising to makes the exponents and , and the better price wins with probability . Note also that revenue is not a well-behaved target for additive noise: the two candidate prices are two dollars apart, so "the optimal price plus Laplace noise" would name a price nobody will pay. □□
Pitfall. Sampling from the exponential mechanism requires evaluating (or cleverly summing) the weight of every candidate, which is intractable for a large structured output space. Practical instantiations use a utility that factorises, or replace exact sampling by a private selection routine such as report-noisy-max — which, for the same utility, is equivalent to the exponential mechanism when the added noise is Gumbel.
19.4Composition, Post-Processing, and Group Privacy
Differential privacy would be a curiosity if it were not closed under the operations analysts actually perform. It is closed under two of them exactly, and under the third at a quantified cost.
Theorem 19.25 (Post-processing invariance). Let be -DP and let be an arbitrary randomised map that does not access the dataset. Then is -DP.
Proof. First suppose is deterministic. Fix and let . Then for ,
Now let be randomised. Any randomised map can be written as where is drawn from a distribution independent of the data and each is deterministic. Then
which equals because expectation is linear and the deterministic bound holds for each .∎
Intuition. Nothing you can compute from a released output can break its privacy, because the computation never touches the data — it only rearranges a distribution that was already close to its neighbour's. This is what makes DP usable: you may fit models, draw graphs, round, clip, and publish, all for free. It is also what distinguishes DP from output-perturbation heuristics, which typically leak more the harder you stare at them.
Theorem 19.26 (Basic composition). Let be mechanisms where is -DP, run adaptively: may depend on the outputs of . The combined release is -DP.
Proof. Take and ; the general case follows by induction, and the terms add by the same splitting argument as in Lemma Tail bound on the loss implies approximate DP. Write the joint density of on input as , where the second factor is the density of — which depends on , but for each fixed is an -DP mechanism. Hence
The privacy losses add, so their bounds add.∎
The last line is the one to remember: privacy loss composes additively because it is a log-likelihood ratio. That also shows why basic composition is loose. The total loss after steps is a sum of bounded random variables, each with mean close to zero — and such a sum is typically of size , not . Making that precise is advanced composition.
Theorem 19.27 (Advanced composition). Let each be -DP, composed adaptively times. Then for every the composition is -DP with
Proof. Sketch. The argument rests on two results proved elsewhere in this chapter and one standard concentration inequality. (i) By Theorem Pure DP is a bound on the privacy loss, each step's privacy loss lies in . (ii) By Theorem Bounded loss implies a small mean loss, each has mean , which accounts for the second term once summed over steps. (iii) Azuma's inequality, applied to the martingale whose increments are bounded by in absolute value, gives a deviation of at most except with probability . Adding the mean to the deviation bounds the total loss by outside an event of probability , and Lemma Tail bound on the loss implies approximate DP converts that into -DP; the absorbs the failure probabilities of the individual mechanisms. The omitted work is the martingale bookkeeping under adaptivity.∎
Example 19.29 (Budgeting a hundred queries). An analyst must answer counting queries within a total budget of . Compare the per-query allowed by basic and by advanced composition, and hence the noise scales.
Solution. Basic: , so each query uses .
Advanced: spend on the composition slack. For small the second term is of order and negligible, so
Check the discarded term: , indeed small against ; shaving to absorbs it. Each query then uses .
Sanity check: advanced composition allows about times less noise per query here — real, but not dramatic at . At the ratio is , which is the regime the theorem was built for. □□
Proposition 19.30 (Parallel composition). If are -DP and each is applied to a disjoint part of the dataset, under a data-independent partition, the combined release is -DP — not -DP.
Proof. Neighbouring datasets differ in one record, which falls in exactly one part . For the two runs of see identical inputs and their output distributions are identical, contributing a likelihood ratio of . Only the -th factor contributes, and it is bounded by .∎
Remark. Parallel composition is why a histogram costs one rather than one per bin, and it agrees with the sensitivity computation in Example Sensitivities of three standard queries — two routes to the same conclusion.
Theorem 19.31 (Group privacy). If is -DP and differ in records, then for all ,
If is -DP the corresponding bound is .
Proof. Build a chain changing one record at a time. For pure DP, apply the definition along each link and multiply the factors of .
For the approximate case, apply the definition once per link and unwind: , and so on. After links the additive terms form the geometric sum .∎
Pitfall. Group privacy degrades exponentially in the group size, so an guarantee says essentially nothing about a family of correlated records: . DP protects individuals by construction and groups only by this lossy inheritance — and the term degrades even faster. If the unit you care about is a household, define neighbouring datasets at the household level from the start.
19.5Privacy Loss as a Divergence
The definition of -DP is a statement about two distributions, and every statement of that kind belongs to the theory of divergences. Naming the divergence does more than tidy the subject up: it produces the composition accountants that make private deep learning possible.
Definition 19.32 (Max-divergence). For distributions on a common space with ,
the supremum of the log-likelihood ratio. It is the limit of the Rényi divergence .
Theorem 19.33 (DP is a max-divergence bound). is -DP if and only if for every ordered pair of neighbouring datasets.
Proof. Immediate from Theorem Pure DP is a bound on the privacy loss: the essential supremum of is at most exactly when the definition holds for that ordered pair, and quantifying over ordered pairs supplies both directions.∎
So pure DP is the strongest member of a family: it bounds the divergence of infinite order, hence — since Rényi divergence is non-decreasing in its order — every divergence of finite order too. Two consequences are worth stating, because they connect this chapter to the rest of information theory.
Lemma 19.34 (Total variation under DP). If is -DP then for all ,
Proof. Write , and let be the set where , so that . Put , . Differential privacy gives , and applied to the complement, . Maximising subject to these two constraints puts both at equality: substituting into the second gives , hence , so and . Then .∎
Theorem 19.35 (Bounded loss implies a small mean loss). If is -DP then for all ,
For small the right-hand side is approximately , far smaller than the pointwise bound .
Proof. With as above, the KL divergence is the mean privacy loss, . Since we may add it for free:
using pointwise. Lemma Total variation under DP bounds the last factor, giving
since for .∎
Intuition. The gap between and is the whole story of advanced composition. Over steps the losses accumulate at rate in the mean and fluctuate at rate around it, so the total is about rather than . A worst-case bound applied times pays the worst case times; a mean-plus-deviation bound pays it once.
That suggests tracking the whole moment generating function of the loss rather than its supremum, which is what the Rényi family does.
Definition 19.36 (Rényi divergence, Rényi DP, and zCDP). For ,
is -Rényi differentially private if for every , and -zCDP if for every simultaneously.
Theorem 19.37 (Rényi DP composes additively and converts to -DP). (i) If is -RDP and is -RDP, their adaptive composition is -RDP.
(ii) If is -RDP then is -DP for every .
(iii) The Gaussian mechanism with sensitivity and noise is -RDP for every ; equivalently it is -zCDP.
Proof. Sketch for (i) and (ii); (iii) is a direct computation.
(iii) For and with , completing the square in the Gaussian integral gives the exact value ; the Rényi divergence between equal-variance Gaussians is linear in , which is precisely the zCDP condition.
(i) The quantity is an expectation of , and under adaptive composition the total loss is the sum of the per-step losses; conditioning on the first output and applying the second mechanism's bound inside the expectation multiplies the two moment generating functions, and taking logarithms turns the product into a sum. The omitted part is the bookkeeping that makes this rigorous under adaptivity.
(ii) Markov's inequality applied to bounds by , and Lemma Tail bound on the loss implies approximate DP finishes.∎
Example 19.38 (Accounting a hundred Gaussian releases two ways). A mechanism releases statistics, each by a Gaussian mechanism with and . Compute the resulting at via Rényi accounting, and compare with what basic composition of per-release guarantees would give.
Solution. Each release is -RDP by part (iii). By part (i), of them are -RDP.
By part (ii) the final guarantee is . Minimising over : differentiating, , so and . Then
Basic composition: one release at with needs , and of those give at .
Sanity check: Rényi accounting gives against — a factor of ten, roughly the the theory predicts. This is why every production system for private deep learning is built on an RDP or zCDP accountant rather than on composition theorems in closed form. □□
Remark. The exponential, Laplace and Gaussian mechanisms now sit in one frame: each bounds a divergence between the output distributions on neighbouring inputs. Laplace and the exponential mechanism bound ; the Gaussian mechanism bounds linearly in and not at all. Choosing a mechanism is choosing which divergence you can afford to bound.
19.6Differential Privacy Without a Trusted Curator
Everything so far assumes a curator who sees the raw data and releases something noisy. That is the central model, and it presumes exactly the trust that is often missing — a phone maker collecting typing statistics does not want the raw keystrokes on its servers at all. The local model removes the curator.
Definition 19.39 (Local differential privacy). A randomiser is -locally differentially private if for all inputs and all ,
A protocol in which each of users independently applies to their own record and sends the result is then called -LDP.
The quantifier has changed: it now runs over all pairs of possible records, not over neighbouring datasets. Nothing unperturbed ever leaves the device, so no server, subpoena or breach can recover a raw record. Randomised response, from the first section, is the prototype.
Proposition 19.40 (A local protocol is central-DP too). If each user runs an -LDP randomiser independently, the collection of all reports is an -DP mechanism on the dataset in the central sense.
Proof. Neighbouring datasets differ in one user's record. That user's report distribution changes by a factor at most by local DP; every other user's report distribution is unchanged, contributing a factor to the joint likelihood ratio. This is Proposition Parallel composition with one record per part.∎
The converse fails badly, and quantifying the failure is the central fact of the local model.
Theorem 19.41 (Accuracy of local frequency estimation). Let users hold bits and report via -LDP randomised response. Let be the fraction of "yes" reports and set
Then is unbiased for the true fraction of ones, and
which for small is of order .
Proof. User reports yes with probability , so and is unbiased. The reports are independent Bernoulli variables, each of variance at most , so ; dividing by gives the stated bound, since . For small , , whence the order statement.∎
Corollary 19.42 (The separation). Estimating a proportion costs a standard error of order in the local model, against order in the central model: the local model is a factor worse.
Proof. The local rate is Theorem Accuracy of local frequency estimation. For the central rate, release the count with the Laplace mechanism and divide by : by Theorem Accuracy of the Laplace mechanism the absolute error of the count is , so the error of the proportion is . That the local rate cannot be improved requires a matching lower bound, which is not proved here.∎
Intuition. In the central model one noise term is shared across the whole population; in the local model every user adds their own, and independent noises average down only as . Concretely, at and the central error in a proportion is about and the local error about — a thousandfold gap, which is why local deployments need populations in the hundreds of millions and only ever ask coarse questions.
Example 19.43 (How many users does a local deployment need?). A company wants the frequency of a rare emoji estimated to within (two standard errors) at . How many users must report?
Solution. Here , so and
Two standard errors is , so , i.e. and .
Sanity check: about million users for a single yes/no question at a fairly weak . A central-model curator would need a few thousand. This is the arithmetic behind the industrial local deployments — they are run by companies with hundreds of millions of devices, and even then each device reports on only a handful of questions per day. □□
Pitfall. Local DP is often deployed with a per-report and no bound on the number of reports. If a device reports daily under , basic composition gives over a year on an unchanging attribute — no guarantee at all. A local deployment must either rate-limit reports per user, or memoise, so that the same true value always yields the same randomised report.
Remark. The shuffle model sits between the two: users randomise locally, and a trusted shuffler strips identifiers and permutes the reports before they reach the analyst. Anonymity amplifies the guarantee — reports at local become roughly at the analyst — recovering much of the central model's accuracy without any party seeing raw data.
19.7Deployments, and What the Guarantee Does Not Cover
Three deployments show the three models at work.
Machine learning (central model). DP-SGD replaces the gradient step with a privatised one: per-example gradients are clipped to norm , which defines the sensitivity rather than measuring it; the clipped gradients are summed; Gaussian noise is added; the result is averaged and used as the step. Every subsequent operation — the optimiser state, the trained weights, the predictions — is post-processing, so the trained model inherits the privacy of the gradient sequence by Theorem Post-processing invariance. The accounting is Rényi, by Theorem Rényi DP composes additively and converts to -DP, with an additional subsampling amplification: a step taken on a batch sampled at rate is far more private than the same step on the full data, because most records were not even eligible to influence it.
Official statistics (central model). The 2020 US Census Disclosure Avoidance System is the largest DP deployment: noisy counts at every level of geography, reconciled by a post-processing step that enforces non-negativity and hierarchical consistency. That the reconciliation is post-processing is what allows it to be as elaborate as it needs to be without spending any budget.
Telemetry (local model). Apple's keyboard and Safari statistics, and Google's original RAPPOR, randomise on the device. Both are subject to the accuracy arithmetic of Example How many users does a local deployment need? and to the repeated-reporting pitfall above; RAPPOR's memoisation step exists precisely to defuse it.
Example 19.44 (Reading a DP-SGD configuration). A model is trained on examples with batch size , clipping norm , noise multiplier , for epochs. Identify the sensitivity, the sampling rate and the number of composed mechanisms, and say which lever to move to halve the reported privacy cost.
Solution. Sensitivity: one example changes the clipped sum by at most in , so by construction — this is why clipping is mandatory rather than merely stabilising.
Sampling rate: .
Composed mechanisms: steps per epoch , so Gaussian mechanisms composed adaptively.
Levers: by part (iii) of Theorem Rényi DP composes additively and converts to -DP the per-step RDP cost is , and by part (i) it accumulates linearly in , so the total zCDP parameter scales as before amplification. Halving therefore needs , or (fifteen epochs), or a smaller .
Sanity check: all three levers move the privacy cost in the direction that costs accuracy — more noise, less training, smaller batches. There is no free parameter, which is the honest content of the privacy–utility tradeoff. □□
Pitfall. The reported for a trained model covers the training run as specified. Hyperparameter search over the private data, early stopping on a private validation metric, and re-running after a disappointing result are all further queries that composition charges for, and they are routinely left out of published numbers.
Now the limitations, stated as sharply as the guarantees.
Remark (What differential privacy does not promise).
- It does not prevent you from learning about populations. If a study concludes that smoking causes cancer, a smoker's insurer can act on that. DP protects participation, not the conclusions — deliberately, since a mechanism that hid population-level facts would hide the reason for collecting data at all.
- It does not protect correlated records well. Theorem Group privacy degrades as . If your record is heavily correlated with your relatives' records, your attributes are partly inferable from theirs whether or not you participate. No mechanism can be useful and simultaneously prevent inferences that follow from correlations in the data.
- It says nothing when is large. At the log-odds may move by a factor of . Deployed values between and have been defended, but is a policy parameter and no theorem chooses it.
- can hide a catastrophe. See the pitfall in What the Guarantee Says: must be well below to be meaningful.
- The guarantee is about the idealised mechanism. Floating-point implementations of the Laplace mechanism leaked which real values were representable and broke the guarantee outright; timing, memory use and rounding are side channels the definition does not model.
- It does not make a small dataset releasable. The relative error is fatal for small , and for small subgroups inside a large dataset. A DP release accurate in aggregate can be worthless for a minority group — the equity objection raised against the 2020 Census.
- It is not access control. DP constrains what a release reveals. It says nothing about who may run queries, how the raw data is stored, or whether the budget is honestly tracked.
Intuition. The right summary is that DP moves the question from "is this release safe?", which nobody can answer, to "how much has been spent?", which is arithmetic. The arithmetic is honest, but it is still arithmetic: it charges you for every question you ask, it cannot make a small dataset rich, and it protects the individual rather than the group.
- Treating "we added noise" as differential privacy: the distribution and its scale must be calibrated to the query's global sensitivity and the target . Noise of the wrong scale, or noise added after a data-dependent decision, carries no guarantee at all.
- Computing sensitivity from the dataset in hand: global sensitivity is a maximum over *all* neighbouring pairs in the universe. A mean of unbounded values has infinite sensitivity however tame the observed data looks; clip first, and choose the clipping range without looking.
- **Reading as "a small leak"**: a mechanism that publishes everything with probability satisfies -DP. Require .
- Paying privacy for post-processing: rounding, clipping to a sensible range, reconciling a hierarchy, fitting a model to a noisy release — all free by Theorem *Post-processing invariance*. Analysts often re-query the raw data to do what they could have done to the noisy output.
- Confusing post-processing with re-querying: the guarantee is free only if the function never touches the dataset again. Anything that re-reads the data costs budget, composition applies, and hyperparameter tuning is the usual offender.
- **Using the Gaussian calibration outside **: the bound simply fails for larger ; use the analytic Gaussian mechanism or an RDP accountant.
- **Mixing and sensitivities**: Laplace is calibrated to and Gaussian to . Feeding into the Laplace scale under-noises a -dimensional query by as much as .
- Assuming advanced composition always wins: the factor is a fixed overhead, so for small basic composition gives a smaller — and it gives *pure* DP, with no .
- **Quoting an without the neighbouring relation or the unit of privacy**: add/remove and replacement differ by up to a factor , and an stated per record says little about a household, a business, or a user contributing many rows.
- Believing local DP is "just DP on the device": the quantifier runs over all pairs of records, not neighbouring datasets, and the accuracy cost is a factor — Corollary *The separation*.
- Forgetting that group privacy degrades exponentially: -DP gives a group of only , which is vacuous well before at .
- **Confusing DP with -anonymity or de-identification**: those constrain the released table and fall to linkage attacks with auxiliary data; DP constrains the mechanism and is immune to auxiliary information by construction.