Algorithm Search⌘K

Theoremcore

Dinur-Nissim reconstruction attack

Also called fundamental law of information recovery, database reconstruction attack.

If all 2^n subset sums of n secret bits have error o(n), or about n random ones have error o(sqrt n), almost all bits follow from the answers, so no private mechanism is that accurate.

The Dinur-Nissim theorems are lower bounds on the error of every mechanism that protects privacy. A dataset holds one secret bit for each of nn people, and a query asks for the number of 1s in a subset of the rows. If a mechanism answers all 2n2^n subset queries with error o(n)o(n), or about nn random subset queries with error o(n)o(\sqrt n), then the answers fix all but a small fraction of the bits. Such a mechanism is "blatantly non-private", and no differentially private mechanism can be that. So too many accurate answers destroy privacy, whatever the method of noise. The result came before differential privacy and shaped it: noise of order n\sqrt n on each of nn counts is needed, and up to log factors it is enough.

Statement

Setting. A dataset is a vector x∈{0,1}nx \in \{0,1\}^n, one secret bit for each row. Two datasets are neighbors if they differ in one row (replace). A query is q∈{0,1}nq \in \{0,1\}^n, a subset of the rows, with the normalized answer ⟨q,x⟩/n\langle q, x \rangle / n. A mechanism MM answers a set of queries q1,…,qkq_1, \dots, q_k with error α\alpha if, with high probability, its outputs yjy_j satisfy ∣yj−⟨qj,x⟩/n∣≤α|y_j - \langle q_j, x \rangle/n| \le \alpha for all jj.

Definition (blatant non-privacy; Vadhan Definition 5.1, Dwork-Roth Definition 8.1). MM is blatantly non-private if for every xx, one can compute from M(x)M(x) a vector x′x' that differs from xx in at most n/10n/10 coordinates, with high probability over the coins of MM.

Theorem 1 (all queries; Vadhan Theorem 5.2, Dwork-Roth Theorem 8.1). If ∣yq−⟨q,x⟩/n∣≤α|y_q - \langle q, x\rangle/n| \le \alpha for every q∈{0,1}nq \in \{0,1\}^n, then every x′∈{0,1}nx' \in \{0,1\}^n with ∣yq−⟨q,x′⟩/n∣≤α|y_q - \langle q, x'\rangle/n| \le \alpha for all qq differs from xx in at most 4αn4\alpha n coordinates. Such an x′x' exists, since xx is one. So with α≤1/40\alpha \le 1/40, MM is blatantly non-private (Vadhan Corollary 5.3).

Theorem 2 (partial discrepancy; Vadhan Theorem 5.5). Let QQ be the k×nk \times n matrix with rows q1,…,qkq_1, \dots, q_k, and let

PDisc(Q)=min⁡{∥Qz∥∞:z∈{−1,0,1}n,∥z∥1>n/10}.\mathrm{PDisc}(Q) = \min \{ \|Qz\|_\infty : z \in \{-1, 0, 1\}^n, \|z\|_1 > n/10 \}.

If MM answers q1,…,qkq_1, \dots, q_k with error α<PDisc(Q)/(2n)\alpha < \mathrm{PDisc}(Q)/(2n), then MM is blatantly non-private.

Theorem 3 (few queries; Vadhan Theorem 5.6 with Lemma 5.7). There is a constant c>0c > 0 such that, with high probability, nn uniformly random queries q1,…,qnq_1, \dots, q_n have PDisc(Q)≥2cn\mathrm{PDisc}(Q) \ge 2c\sqrt n. Then every mechanism that answers them with error below c/nc/\sqrt n is blatantly non-private. In counts, the error must be at least cnc\sqrt n on some query.

Theorem 4 (private mechanisms are not blatantly non-private). Let X={0,1}X = \{0,1\} and let MM be (ε,δ)(\varepsilon, \delta)-DP. For a uniformly random xx and any rule that guesses xx from M(x)M(x), the expected fraction of correct bits is at most (eε+δ)/(1+eε)(e^{\varepsilon} + \delta)/(1 + e^{\varepsilon}). For ε=1\varepsilon = 1 and δ=0.1\delta = 0.1 this is below 0.760.76, so MM cannot reach 0.9n0.9 n correct bits with probability above 0.850.85.

The lesson. By Theorems 1, 3 and 4, a (1,0.1)(1, 0.1)-DP mechanism has error above 1/401/40 on some subset query, and error at least c/nc/\sqrt n on some of nn random subset queries. Every private method of data release must pay this error.

In plain words

Each person in a table has one secret yes or no. You may ask "how many of these people said yes?" for any group you like, and you get an answer that is a little wrong.

If you may ask about every group and each answer is wrong by much less than nn, then only a table close to the true one fits all the answers: ask about the people who said no, and about those who said yes, and a wrong guess shows up. If you ask about only nn random groups, a far table still fails some random group by about n\sqrt n. So answers wrong by much less than n\sqrt n let anyone rebuild almost all secrets. A private method must make its answers wrong by at least about n\sqrt n.

Proof

All four parts are proved here, except Lemma 5.7 of Vadhan in Theorem 3, which is a marked sketch.

Theorem 1. Fix x′x' that is consistent with all answers. By the triangle inequality, ∣⟨q,x′−x⟩∣≤2αn|\langle q, x' - x\rangle| \le 2\alpha n for every qq. Take q0q_0, the set of rows with xi=0x_i = 0. Then ⟨q0,x⟩=0\langle q_0, x \rangle = 0, and ⟨q0,x′⟩\langle q_0, x' \rangle is the number of rows with xi=0x_i = 0 and xi′=1x'_i = 1, so there are at most 2αn2\alpha n such rows. Take q1q_1, the set of rows with xi=1x_i = 1. Then ⟨q1,x−x′⟩\langle q_1, x - x' \rangle is the number of rows with xi=1x_i = 1 and xi′=0x'_i = 0, again at most 2αn2\alpha n. So xx and x′x' differ in at most 4αn4\alpha n rows, which is at most n/10n/10 for α≤1/40\alpha \le 1/40. ■\blacksquare

Theorem 2. Let x′x' be consistent with the answers to q1,…,qkq_1, \dots, q_k (the true xx is one), and let z=x−x′∈{−1,0,1}nz = x - x' \in \{-1, 0, 1\}^n. By the triangle inequality, ∥Qz∥∞≤2αn<PDisc(Q)\|Qz\|_\infty \le 2\alpha n < \mathrm{PDisc}(Q). By the definition of PDisc\mathrm{PDisc}, this forces ∥z∥1≤n/10\|z\|_1 \le n/10, so x′x' differs from xx in at most n/10n/10 rows. ■\blacksquare

Theorem 3 (sketch of Lemma 5.7). This is a sketch; the full argument is Vadhan, the proof sketch of Lemma 5.7, with the anticoncentration bound he cites there. Fix z∈{−1,0,1}nz \in \{-1, 0, 1\}^n with ∥z∥1>n/10\|z\|_1 > n/10. Then zz has more than n/20n/20 entries of the same sign, so for a random qq the value ⟨q,z⟩\langle q, z \rangle is a difference of two independent binomial sums, one with more than n/20n/20 fair terms. By anticoncentration, ∣⟨q,z⟩∣≥tn|\langle q, z \rangle| \ge t\sqrt n with probability at least 1−O(t)1 - O(t). For nn independent queries, all fail with probability at most O(t)nO(t)^n. A union bound over at most 3n3^n vectors zz gives 3nO(t)n<13^n O(t)^n < 1, and in fact small, for a small constant tt. So PDisc(Q)≥tn\mathrm{PDisc}(Q) \ge t\sqrt n with high probability, and Theorem 2 applies with c=t/2c = t/2. ■\blacksquare

Theorem 4. Fix a row ii and a guess rule GiG_i for bit ii. Let x(b)x^{(b)} be xx with xi=bx_i = b, for the other rows fixed. Let a=P[Gi(M(x(0)))=0]a = P[G_i(M(x^{(0)})) = 0] and b=P[Gi(M(x(1)))=1]b = P[G_i(M(x^{(1)})) = 1]. The two datasets are neighbors, so b≤eε(1−a)+δb \le e^{\varepsilon}(1 - a) + \delta and a≤eε(1−b)+δa \le e^{\varepsilon}(1 - b) + \delta. Adding them gives (a+b)(1+eε)≤2eε+2δ(a + b)(1 + e^{\varepsilon}) \le 2e^{\varepsilon} + 2\delta, so the chance (a+b)/2(a + b)/2 of a correct guess of bit ii is at most (eε+δ)/(1+eε)(e^{\varepsilon} + \delta)/(1 + e^{\varepsilon}). Average over the other rows and sum over ii for the expected number of correct bits. If MM were blatantly non-private with probability pp, the expected fraction would be at least 0.9p0.9p, which is above 0.760.76 for p>0.85p > 0.85. ■\blacksquare

A hand example of the proof of Theorem 1. Take n=8n = 8 and x=(1,0,1,1,0,0,1,0)x = (1,0,1,1,0,0,1,0), with counts that are wrong by at most E=0.9E = 0.9. The candidate x′=(1,1,1,1,0,1,1,0)x' = (1,1,1,1,0,1,1,0) differs from xx in rows 2 and 6. The query q0={2,5,6,8}q_0 = \{2, 5, 6, 8\} has the true count 0 and the count 2 on x′x'. An answer within 0.9 of 0 is more than 0.9 from 2, so the answer to q0q_0 rules out x′x'. In general, the candidates that survive differ from xx in at most 2E2E rows of q0q_0 and 2E2E rows of q1q_1, here at most 1 row each.

Consequences

  • Error of order n\sqrt n is the price of privacy for nn counts. Any (ε,δ)(\varepsilon, \delta)-DP release of nn random subset counts has error of order n\sqrt n on some count, for constant ε\varepsilon and δ\delta.
  • A limit on query release. A mechanism for private query release cannot answer all 2n2^n subset queries on nn rows with error below n/40n/40 in counts. With more rows than the log of the number of queries, as in SmallDB and MWEM, the error can be small.
  • Polynomial time. A linear program finds a fractional x′∈[0,1]nx' \in [0,1]^n that is consistent with the answers, and rounding gives the same conclusion for random queries (Vadhan, the remark after Lemma 5.7). Dwork and Yekhanin give explicit query sets with fast decoding. So the bound does not need a strong adversary.
  • Robustness. Dwork and Roth Theorem 8.2 shows that a linear number of random ±1\pm 1 queries is enough even if only a fraction 12+η\frac{1}{2} + \eta of the answers have error at most α\alpha: the answers then fix all but (2α/η)2(2\alpha/\eta)^2 entries.
  • Noise is not optional. The theorems do not depend on how the answers are made. Rounding, sampling or "cell suppression" that keeps all answers accurate falls under them as well. A real release also needs a cryptographic source of randomness and exact sampling for its noise (Mironov 2012; Canonne, Kamath and Steinke 2020).

Tightness

The bounds are tight up to constants and log factors (theorems). For all 2n2^n queries, error Θ(1)\Theta(1) in normalized form is the right order: answering 1/21/2 to every query has error at most 1/21/2 and is (0,0)(0,0)-DP. The Gaussian mechanism answers kk counting queries with normalized error O(klog⁡(1/δ)log⁡k/(εn))O(\sqrt{k \log(1/\delta) \log k}/(\varepsilon n)), and Vadhan Theorem 2.7 lowers log⁡k\log k to log⁡log⁡k\log \log k. For k=nk = n and constant ε\varepsilon and δ\delta this is O~(1/n)\tilde O(1/\sqrt n), which matches Theorem 3 up to log factors. With Lap(b)\mathrm{Lap}(b) (density (1/(2b))e−∣z∣/b(1/(2b))e^{-|z|/b}, variance 2b22b^2, P(∣Z∣>t)=e−t/bP(|Z| > t) = e^{-t/b}) on each of kk counts, the Laplace mechanism has error of order k/εk/\varepsilon in counts, which is ε\varepsilon-DP but larger than k\sqrt k.

History

Dinur and Nissim (PODS 2003) proved the reconstruction theorems, for subset sums with error o(n)o(n) on all queries and with error o(n)o(\sqrt n) on polynomially many queries, with an efficient decoder for the second. Dwork, McSherry, Nissim and Smith (2006) then defined differential privacy with noise calibrated to sensitivity. Dwork, McSherry and Talwar (2007) and Dwork and Yekhanin (2008) made the attacks robust and fast. Dwork and Roth (2014) and Vadhan (2017) present the results as lower bounds, with the partial discrepancy view. The theorems are often cited as a reason for statistical agencies to protect published tables with formal privacy.

References

  1. Irit Dinur and Kobbi Nissim, Revealing information while preserving privacy, PODS 2003, pages 202 to 210, the reconstruction theorems for subset sum queries with error o(n) and o(sqrt n)
  2. Salil Vadhan, The complexity of differential privacy, in Tutorials on the Foundations of Cryptography, Springer, 2017, pages 347 to 450, Section 5.1: Definition 5.1 (blatant non-privacy), Theorem 5.2 and Corollary 5.3, Definition 5.4 (partial discrepancy), Theorem 5.5, Theorem 5.6 and Lemma 5.7, and the remark on a polynomial-time version with a linear program
  3. Cynthia Dwork and Aaron Roth, The Algorithmic Foundations of Differential Privacy, Foundations and Trends in Theoretical Computer Science 9(3-4), 2014, Section 8.1: Definition 8.1 (blatant non-privacy), Theorem 8.1 (error E on all subsets gives 4E wrong positions), Theorem 8.2 (a linear number of random queries, robust to a fraction of bad answers)
  4. Cynthia Dwork and Sergey Yekhanin, New efficient attacks on statistical disclosure control mechanisms, CRYPTO 2008, LNCS 5157, pages 469 to 480, explicit query sets with a polynomial-time reconstruction

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/H49EPH/text.yaml