Definitionintro
Differential privacy
Also called pure differential privacy, epsilon-differential privacy.
A randomized algorithm is epsilon-DP if changing one record changes the probability of each output set by at most a factor e^epsilon.
Differential privacy is a property of a randomized algorithm that reads a dataset. The algorithm is -differentially private (-DP) if adding, removing or changing one record changes the probability of every set of outputs by at most a factor . So the output looks almost the same whether or not any one person's data is in the input, and an observer learns almost nothing about that person that the observer could not learn without the data. Dwork, McSherry, Nissim and Smith (2006) gave the definition, and Dwork (2006) gave it its name. This page defines the pure form; the approximate form adds a small additive term .
Definition
A dataset is a list of records from a universe , or its histogram in . Two datasets are neighbors, written , if they differ in one record. There are two neighbor relations, and every claim of privacy must say which one it uses:
- add/remove (unbounded): is with one record added or removed, so the sizes differ by 1. Dwork and Roth use histograms with , which is this relation.
- replace (bounded): and have the same size , and one record is changed.
A mechanism is a randomized algorithm that takes a dataset and returns an output in a set . Its randomness comes only from its own coins.
Definition. Let . A mechanism is -differentially private under a neighbor relation if, for all and all sets of outputs,
The probability is over the coins of only; the datasets are fixed. Both relations are symmetric, so the bound also holds with and swapped. A smaller is a stronger guarantee. Values from 0.1 to a few units are common; and .
For a finite or countable , the definition is the same as the pointwise bound for every output : the pointwise bound is the case , and the sum over gives the set bound. For outputs with densities and , a bound for every is enough. In terms of the privacy loss , the mechanism is -DP if and only if for every output that has positive probability, for every pair of neighbors.
Three equivalent readings help to use the definition.
- Odds. Let an observer have a prior on whether the input is or . After seeing any output , by Bayes' theorem the posterior odds are the prior odds times , which lies in . With prior probability 0.01 for and , the posterior probability of is at most .
- Tests. Any test that decides between and from the output, with false positive rate and false negative rate (see type I and type II errors), has and . Proof: if the test says "" on the output set , then and ; the other bound is the same with the roles swapped. For and , .
- Harm. For any future event that depends only on the output, the probability that a person faces it changes by at most the factor when the person's record is added or removed (Dwork-Roth Section 2.3.1).
The definition does not promise that nothing can be learned about a person. If the data show that smokers often get cancer, a smoker is affected by that result whether or not the smoker is in the data. The definition only bounds the effect of the presence of one record.
Examples and non-examples
Randomized response. Each person reports a true bit with probability and the flipped bit with probability . The ratio of the probabilities of any answer for two values of the bit is at most , so the release of all answers is -DP under replace, where one person changes the bit. See randomized response.
Laplace mechanism. Release a count plus noise with density . A count changes by at most 1 between neighbors, and the density ratio at each output is at most . So the output is -DP under both relations. See Laplace mechanism and global sensitivity.
The relation matters. Release a histogram with noise on each bin. Under add/remove one bin changes by 1, and the release is -DP. Under replace two bins change by 1, and the same release is only -DP. In general -DP under add/remove gives -DP under replace, because a replace step is a removal followed by an addition (the group privacy theorem with ). The converse fails: a mechanism that publishes exactly is -DP under replace and is not DP for any under add/remove.
Constant output. A mechanism that ignores the data and returns a fixed value or a fixed random value is -DP. It is private and useless; the definition measures privacy, not utility.
Non-example: an exact count. A deterministic count is not -DP for any : for neighbors with , the set has probability 1 under and 0 under . Every nonconstant deterministic function of the data fails the same way, so every DP mechanism with useful output is randomized.
Non-example: a sample of the records. Publish each record independently with probability . A record that is in and not in appears in the output with probability under and 0 under , so the release is not -DP for any . It is -DP in the approximate sense, which shows why must be very small.
Non-example: k-anonymity. A table that is k-anonymous is the output of a deterministic map of the data, and it is not DP. It can also leak a sensitive value when all the records of a group share it.
Related definitions
- Approximate DP. -DP adds to the right side of the bound. Pure DP is the case .
- Sensitivity. The global sensitivity of a query is the largest change between neighbors. It sets the noise of the Laplace and the Gaussian mechanisms.
- Basic properties. DP survives any processing of the output that does not read the data (post-processing theorem). Two releases with and are -DP together (sequential composition theorem). A group of records gets (group privacy theorem).
- Local DP. In local differential privacy each person randomizes the record before it leaves the device, and the bound holds for any two values of one record. The curator is not trusted.
- Divergence forms. Renyi DP, zero-concentrated DP and Gaussian DP bound other measures of the distance between and . Pure -DP is the bound on the largest privacy loss, the Renyi divergence of order .
- Metric forms. Geo-indistinguishability replaces the neighbor relation by a distance between locations, with the bound .
- Noninterference. Noninterference asks that public outputs do not depend on secret inputs at all. DP allows a bounded dependence, which is what makes useful statistics possible.
References
- Cynthia Dwork, Frank McSherry, Kobbi Nissim and Adam Smith, Calibrating noise to sensitivity in private data analysis, TCC 2006, LNCS 3876, pages 265 to 284, the first form of the definition, with a bound on the ratio of output probabilities for datasets that differ in one row
- Cynthia Dwork, Differential privacy, ICALP 2006, LNCS 4052, pages 1 to 12, the name differential privacy and the argument that a guarantee of this kind is needed
- Cynthia Dwork and Aaron Roth, The Algorithmic Foundations of Differential Privacy, Foundations and Trends in Theoretical Computer Science 9(3-4), 2014, pages 211 to 407, Section 2.3, Definition 2.3 (distance between databases), Definition 2.4 (differential privacy, with delta = 0 for the pure form), Proposition 2.1 and Theorem 2.2; Section 2.3.1 (what differential privacy promises)
Where this leads
- Approximate differential privacy
- Binary tree mechanism
- Dinur-Nissim reconstruction attack
- Exponential mechanism
- Fingerprinting code lower bound
- Geo-indistinguishability
- Global sensitivity
- Group privacy
- Laplace mechanism
- Local differential privacy
- Machine unlearning
- Matrix mechanism
- Membership inference attack
- Multiplicative weights exponential mechanism
- Packing lower bound for differential privacy
- Post-processing theorem
- Private query release
- Propose-test-release
- Randomized response
- Basic composition theorem
- SmallDB mechanism
- Smooth sensitivity framework
- Sparse vector technique
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag CG87A2 Edit this page History Report an error Markdown