Lably
Skip to content

Differential privacy

Methods of safely sharing general data

  • 17 min read
  • 8 chapters

Related on Lably

Through Privacy, Probability distribution and Data analysis

Another way to describe differential privacy is as a constraint on the algorithms used to publish aggregate information about a statistical database which limits the disclosure of private information of records in the database. For example, differentially private algorithms are used by some government agencies to publish demographic information or other statistical aggregates while ensuring confidentiality of survey responses, and by companies to collect information about user behavior while controlling what is visible even to internal analysts.

Roughly, an algorithm is differentially private if an observer seeing its output cannot tell whether a particular individual's information was used in the computation. Differential privacy is often discussed in the context of identifying individuals whose information may be in a database. Although it does not directly refer to identification and reidentification attacks, differentially private algorithms provably resist such attacks.

ε-differential privacy

The 2006 Cynthia Dwork, Frank McSherry, Kobbi Nissim, and Adam D. Smith article introduced the concept of ε-differential privacy, a mathematical definition for the privacy loss associated with any data release drawn from a statistical database. (Here, the term statistical database means a set of data that are collected under the pledge of confidentiality for the purpose of producing statistics that, by their production, do not compromise the privacy of those individuals who provided the data.)

The definition of ε-differential privacy requires that a change to one entry in a database only creates a small change in the probability distribution of the outputs of measurements, as seen by the attacker. The intuition for the definition of ε-differential privacy is that a person's privacy cannot be compromised by a statistical release if their data are not in the database. In differential privacy, each individual is given roughly the same privacy that would result from having their data removed. That is, the statistical functions run on the database should not be substantially affected by the removal, addition, or change of any individual in the data.

How much any individual contributes to the result of a database query depends in part on how many people's data are involved in the query. If the database contains data from a single person, that person's data contributes 100%. If the database contains data from a hundred people, each person's data contributes just 1%. The key insight of differential privacy is that as the query is made on the data of fewer and fewer people, more noise needs to be added to the query result to produce the same amount of privacy. Hence the name of the 2006 paper, "Calibrating Noise to Sensitivity in Private Data Analysis."

Definition

Let ε be a positive real number and A be a randomized algorithm that takes a dataset as input (representing the actions of the trusted party holding the data). Let imA denote the image of A.

The algorithm A is said to provide (ε, δ)-differential privacy if, for all datasets D1 and D2 that differ on a single element (i.e., the data of one person), and all subsets S of imA:

Pr[A(D1)∈S]≤eεPr[A(D2)∈S]+δ.

where the probability is taken over the randomness used by the algorithm. This definition is sometimes called "approximate differential privacy", with "pure differential privacy" being a special case when δ=0. In the latter case, the algorithm is commonly said to satisfy ε-differential privacy (i.e., omitting δ=0).

Differential privacy offers strong and robust guarantees that facilitate modular design and analysis of differentially private mechanisms due to its composability, robustness to post-processing, and graceful degradation in the presence of correlated data.

Example

According to this definition, differential privacy is a condition on the release mechanism (i.e., the trusted party releasing information about the dataset) and not on the dataset itself. Intuitively, this means that for any two datasets that are similar, a given differentially private algorithm will behave approximately the same on both datasets. The definition gives a strong guarantee that presence or absence of an individual will not affect the final output of the algorithm significantly.

For example, assume we have a database of medical records D1 where each record is a pair (Name, X), where X is a Boolean denoting whether a person has diabetes or not. For example:

Now suppose a malicious user (often termed an adversary) wants to find whether Chandler has diabetes or not. Suppose he also knows in which row of the database Chandler resides. Now suppose the adversary is only allowed to use a particular form of query Qi that returns the partial sum of the first i rows of column X in the database. In order to find Chandler's diabetes status the adversary executes Q5(D1) and Q4(D1), then computes their difference. In this example, Q5(D1)=3 and Q4(D1)=2, so their difference is 1. This indicates that the "Has Diabetes" field in Chandler's row must be 1. This example highlights how individual information can be compromised even without explicitly querying for the information of a specific individual.

Continuing this example, if we construct D2 by replacing (Chandler, 1) with (Chandler, 0) then this malicious adversary will be able to distinguish D2 from D1 by computing Q5−Q4 for each dataset. If the adversary were required to receive the values Qi via an ε-differentially private algorithm, for a sufficiently small ε, then they would be unable to distinguish between the two datasets.

Composability and robustness to post processing

Composability refers to the fact that the joint distribution of the outputs of (possibly adaptively chosen) differentially private mechanisms satisfies differential privacy.

  • Sequential composition. If we query an ε-differential privacy mechanism t times, and the randomization of the mechanism is independent for each query, then the result would be εt-differentially private. In the more general case, if there are n independent mechanisms: M1,…,Mn, whose privacy guarantees are ε1,…,εn differential privacy, respectively, then any function g of them: g(M1,…,Mn) is (∑i=1nεi)-differentially private.
  • Parallel composition. If the previous mechanisms are computed on disjoint subsets of the private database then the function g would be (maxiεi)-differentially private instead.

The other important property for modular use of differential privacy is robustness to post processing. This is defined to mean that for any deterministic or randomized function F defined over the image of the mechanism A, if A satisfies ε-differential privacy, so does F(A).

The property of composition permits modular construction and analysis of differentially private mechanisms and motivates the concept of the privacy loss budget. If all elements that access sensitive data of a complex mechanisms are separately differentially private, so will be their combination, followed by arbitrary post-processing.

Group privacy

In general, ε-differential privacy is designed to protect the privacy between neighboring databases which differ only in one row. This means that no adversary with arbitrary auxiliary information can know if one particular participant submitted their information. However this is also extendable. We may want to protect databases differing in c rows, which amounts to an adversary with arbitrary auxiliary information knowing if c particular participants submitted their information. This can be achieved because if c items change, the probability dilation is bounded by exp⁡(εc) instead of exp⁡(ε), i.e., for D1 and D2 differing on c items:Pr[A(D1)∈S]≤exp⁡(εc)⋅Pr[A(D2)∈S]Thus setting ε instead to ε/c achieves the desired result (protection of c items). In other words, instead of having each item ε-differentially private protected, now every group of c items is ε-differentially private protected (and each item is (ε/c)-differentially private protected).

Hypothesis testing interpretation

One can think of differential privacy as bounding the error rates in a hypothesis test. Consider two hypotheses:

  • H0: The individual's data is not in the dataset.
  • H1: The individual's data is in the dataset.

Then, there are two error rates:

  • False Positive Rate (FPR): PFP=Pr[Adversary guesses H1∣H0 is true].
  • False Negative Rate (FNR): PFN=Pr[Adversary guesses H0∣H1 is true].

Ideal protection would imply that both error rates are equal, but for a fixed (ε, δ) setting, an attacker can achieve the following rates:

  • {(PFP,PFN)∣PFP+eεPFN≥1−δ,eεPFP+PFN≥1−δ}

Sign in to keep reading

7 more chapters are free with a Lably account.

More in Computing and communication