Algorithm Search⌘K

Definitioncore

Local differential privacy

Also called LDP, local model of differential privacy.

Each user randomizes their own data before sending it, so that the output for any two inputs differs by at most a factor e^epsilon.

Local differential privacy (LDP) is differential privacy without a trusted curator. Each user runs a randomized algorithm, a local randomizer, on their own data and sends only its output. The randomizer is ε\varepsilon-LDP if, for any two possible inputs of one user, the probability of each report changes by at most the factor eεe^{\varepsilon}. So the collector, or anyone who sees the reports, learns little about any one user's true value, even if the collector is not honest. The classic example is randomized response. Google, Apple and Microsoft have used LDP to collect statistics from devices, with protocols such as RAPPOR. The price is accuracy: for many tasks the error is of order n/ε\sqrt n/\varepsilon for nn users, where the central model reaches O(1/ε)O(1/\varepsilon).

Definition

Let X\mathcal X be the set of possible values of one user and Y\mathcal Y a set of reports.

Definition (local randomizer). A randomized map R:X→YR : \mathcal X \to \mathcal Y is ε\varepsilon-locally differentially private if, for all x,x′∈Xx, x' \in \mathcal X and every event S⊆YS \subseteq \mathcal Y,

Pr⁡[R(x)∈S]≤eε Pr⁡[R(x′)∈S].\Pr[R(x) \in S] \le e^{\varepsilon}\,\Pr[R(x') \in S].

It is (ε,δ)(\varepsilon, \delta)-LDP if Pr⁡[R(x)∈S]≤eεPr⁡[R(x′)∈S]+δ\Pr[R(x) \in S] \le e^{\varepsilon}\Pr[R(x') \in S] + \delta for all x,x′x, x' and SS.

Definition (local protocol). In a non-interactive local protocol, user ii holds xix_i, sends yi=Ri(xi)y_i = R_i(x_i) with fresh randomness, and the analyst computes its result from (y1,…,yn)(y_1, \ldots, y_n) only. The protocol is ε\varepsilon-LDP if each RiR_i is. In an interactive protocol, the randomizer that a user runs may depend on the earlier reports, and each randomizer must be ε\varepsilon-LDP given the past. When a user answers several times, the budgets add by sequential composition.

Three facts follow from the definition.

  1. Any two inputs. The neighbor relation is not chosen by the analyst: every pair of values of one user must be protected. This is the replace relation applied to one user, with the data set of size 1.
  2. Central DP follows. If each RiR_i is ε\varepsilon-LDP, then the vector of reports is ε\varepsilon-DP in the central sense under replace: changing xix_i changes only the law of yiy_i. The converse fails; most central mechanisms are not local.
  3. Finite reports. When Y\mathcal Y is finite, RR is ε\varepsilon-LDP if and only if, for every report yy, max⁡xPr⁡[R(x)=y]≤eεmin⁡xPr⁡[R(x)=y]\max_x \Pr[R(x) = y] \le e^{\varepsilon}\min_x \Pr[R(x) = y]. So every report has positive probability under every input when ε<∞\varepsilon < \infty.

Examples and non-examples

Randomized response. For a bit xx, report xx with probability eε/(1+eε)e^{\varepsilon}/(1 + e^{\varepsilon}) and 1−x1 - x otherwise. The ratio of the two probabilities of each report is exactly eεe^{\varepsilon}, so it is ε\varepsilon-LDP. With ε=ln⁡3\varepsilon = \ln 3 the truth is reported with probability 3/43/4. If q^\hat q is the fraction of reports equal to 1, then (q^−1/4)/(1/2)(\hat q - 1/4)/(1/2) is an unbiased estimate of the true fraction π\pi. At π=1/2\pi = 1/2 the standard deviation of the estimated count is n\sqrt n, which is 1000 for n=106n = 10^6 users. The central Laplace mechanism with the same ε\varepsilon adds a standard deviation of 2/ln⁡3=1.287\sqrt 2/\ln 3 = 1.287 to the count.

kk-ary randomized response. For a value in a set of size kk, report the true value with probability eε/(eε+k−1)e^{\varepsilon}/(e^{\varepsilon} + k - 1) and each other value with probability 1/(eε+k−1)1/(e^{\varepsilon} + k - 1). With k=4k = 4 and ε=ln⁡3\varepsilon = \ln 3 the probabilities are 1/21/2 and 1/61/6, with the ratio 3. For large kk the true value is rarely sent, and hashing protocols such as optimized local hashing and RAPPOR do better for frequency estimation.

Laplace noise on a bounded value. For x∈[0,1]x \in [0, 1], the report x+Lap(1/ε)x + \mathrm{Lap}(1/\varepsilon) is ε\varepsilon-LDP, since any two inputs differ by at most 1. The average of nn reports estimates the mean, and the noise adds a standard deviation of 2/n/ε\sqrt{2/n}/\varepsilon to it.

Non-example: noise added by the collector. If users send true values and the collector adds Laplace noise to the total, the result is central DP but not LDP: the collector sees the raw data. LDP is a property of what leaves the user.

Non-example: Laplace noise on an unbounded value. For x∈Rx \in \mathbb R with no bound, x+Lap(b)x + \mathrm{Lap}(b) is not ε\varepsilon-LDP for any bb: the inputs 0 and tt give the density ratio et/be^{t/b} at points beyond tt, which grows without bound. The value must be clipped to a known range before the noise.

Non-example: deterministic coding. Sending a hash of the value, or the value with its last digits removed, is not ε\varepsilon-LDP for any finite ε\varepsilon: some report has probability 1 under one input and 0 under another. Such codings can be part of an LDP protocol only when noise follows them.

Non-example: a rare leak. The randomizer that sends xx with probability δ\delta and a fixed symbol otherwise is (0,δ)(0, \delta)-LDP but not ε\varepsilon-LDP for any ε\varepsilon. Approximate LDP with a δ\delta that is not tiny allows such leaks of single users.

  • Differential privacy in the central model trusts a curator with the raw data and adds noise to the result. LDP implies it under replace, with the same ε\varepsilon.
  • Privacy amplification by shuffling shows that if the local reports are sent through an anonymous shuffler, they are central DP with a much smaller ε\varepsilon. This shuffle model sits between the local and the central models.
  • Geo-indistinguishability relaxes LDP for locations: the factor between two inputs is eεde^{\varepsilon d}, where dd is their distance.
  • Approximate DP gives the (ε,δ)(\varepsilon, \delta) version above.
  • Kasiviswanathan, Lee, Nissim, Raskhodnikova and Smith (2011) defined local algorithms and showed that a concept class can be learned by a local algorithm exactly when it can be learned with statistical queries, up to polynomial factors. They also showed that some classes need interaction.
  • Evfimievski, Gehrke and Srikant (2003) stated the same bound on report probabilities as an amplification condition for randomization operators in data mining, before the name LDP was used.
  • Duchi, Jordan and Wainwright (2018) proved minimax rates for estimation under LDP, which show that for small ε\varepsilon the effective number of samples drops from nn to about nε2n\varepsilon^2.

References

  1. Shiva Prasad Kasiviswanathan, Homin K. Lee, Kobbi Nissim, Sofya Raskhodnikova and Adam Smith, What can we learn privately?, SIAM Journal on Computing 40(3), 2011, pages 793 to 826, the definitions of a local randomizer and of a local algorithm, and the equivalence of local learning with statistical query learning
  2. John C. Duchi, Michael I. Jordan and Martin J. Wainwright, Minimax optimal procedures for locally private estimation, Journal of the American Statistical Association, 2018, the minimax rates under local privacy, which show that the effective sample size drops from n to about n epsilon^2
  3. Alexandre Evfimievski, Johannes Gehrke and Ramakrishnan Srikant, Limiting privacy breaches in privacy preserving data mining, ACM PODS 2003, the amplification condition on a randomization operator, which is the e^epsilon bound on the ratio of report probabilities
  4. Stanley L. Warner, Randomized response: a survey technique for eliminating evasive answer bias, Journal of the American Statistical Association 60(309), 1965, pages 63 to 69, the randomized response survey design

Where this leads

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.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/B0BD8J/text.yaml