Algorithm Search⌘K

Problemcore

Private query release

Also called private data release, differentially private synthetic data.

Answer every query of a large class, such as all counting queries, accurately under differential privacy.

Origin
Avrim Blum, Katrina Ligett, Aaron Roth, 2008

Private query release asks for answers to every query in a large class QQ, such as all counting queries over a universe or all marginals of a table, under differential privacy. The answers must all be accurate at the same time, and the release must hide each row. If each query gets its own noise, the error grows with the number of queries, so a few thousand queries on a few thousand rows give nothing useful. Blum, Ligett and Roth (2008) showed that the error can grow only with the logarithm of ∣Q∣|Q| and of the universe size: release a small synthetic dataset, chosen privately, and answer every query from it. Lower bounds show the limits: no mechanism answers too many queries too well (reconstruction), pure DP pays log⁡∣X∣\log|X| (packing), and approximate DP pays about ∣Q∣\sqrt{|Q|} for ∣Q∣|Q| attribute means (fingerprinting codes). Efficient algorithms for every class do not exist under standard cryptographic assumptions.

Notation. XX is the data universe, nn the number of rows, QQ the query class, α\alpha the error and β\beta the failure probability. For X={0,1}dX = \{0,1\}^d, dd is the number of binary attributes. Lap(b)\mathrm{Lap}(b) has the density (1/(2b))e−∣z∣/b(1/(2b))e^{-|z|/b}, the variance 2b22b^2 and P(∣Z∣>t)=e−t/bP(|Z| > t) = e^{-t/b}.

In plain words

A hospital wants to publish many statistics about its patients: how many are over 60, how many smoke, how many are over 60 and smoke, and so on, for every combination someone might ask. Each number must be close to the truth, and no number may give away a single patient.

If you add separate noise to each number, the noise must grow with the count of numbers, because together they say a lot. A better way is to build a small fake table of patients that gives nearly the right answer to every question, choose it with a private random process, and publish only the fake table. Then anyone can ask any question of the fake table. This works when the table has enough real rows. Some limits cannot be beaten: with too few rows, any table that answers all questions well also gives away the patients.

Definition

Data and privacy. A dataset is x∈Xnx \in X^n. Two datasets are neighbors if they differ in one row (replace). A mechanism MM is (ε,δ)(\varepsilon, \delta)-DP if P[M(x)∈S]≤eεP[M(x′)∈S]+δP[M(x) \in S] \le e^{\varepsilon} P[M(x') \in S] + \delta for all neighbors x,x′x, x' and all sets SS of outputs.

Queries. A counting query is q:X→{0,1}q : X \to \{0,1\}, with the answer q(x)=1n∑i=1nq(xi)q(x) = \frac{1}{n}\sum_{i=1}^n q(x_i). A linear query has q:X→[0,1]q : X \to [0,1] in the same formula. The class QQ is public.

Accuracy. MM outputs a vector (aq)q∈Q(a_q)_{q \in Q}, or a data structure that answers every q∈Qq \in Q. It is (α,β)(\alpha, \beta)-accurate for QQ if for every dataset xx,

P[max⁡q∈Q∣aq−q(x)∣≤α]≥1−β.P\Big[\max_{q \in Q} |a_q - q(x)| \le \alpha\Big] \ge 1 - \beta.

The problem. Given QQ, XX, nn, ε\varepsilon and δ\delta, find an (ε,δ)(\varepsilon, \delta)-DP mechanism with the least α\alpha. The dual question is the sample complexity: the least nn for which error α\alpha is possible. A mechanism is efficient if it runs in time polynomial in nn, ∣Q∣|Q| and d=log⁡∣X∣d = \log|X|, not in ∣X∣|X|.

Variants

  • Synthetic data. The output is a dataset x^∈Xm\hat x \in X^m, and aq=q(x^)a_q = q(\hat x). This is the form of SmallDB and MWEM, and the one users can load into normal tools.
  • Offline and online. In the offline (non-interactive) form, QQ is fixed and all answers come at once. In the online form, an analyst picks each query after seeing the earlier answers, as in private multiplicative weights and the sparse vector technique.
  • Linear workloads and other error measures. For a workload matrix of linear queries, one may ask for small mean squared error and not the worst error, as in the matrix mechanism.
  • Special classes. Point functions (a histogram), thresholds and ranges on an ordered universe, tt-way marginals (conjunctions of tt attributes), and the attribute means qj(w)=wjq_j(w) = w_j.
  • Continual release. Data arrive in a stream and the counts must be released at every step, as in the binary tree mechanism.
  • Neighbor relation. With add or remove neighbors, nn is private and the answers are counts, not fractions. The bounds change by constant factors.

Examples

All 256 counting queries on 3 binary attributes. Take X={0,1}3X = \{0,1\}^3, so ∣X∣=8|X| = 8 cells, with n=1000n = 1000 rows, ε=1\varepsilon = 1 and δ=0\delta = 0. Every counting query is a set of cells, so QQ has 28=2562^8 = 256 queries. The numbers below come from the formula for the maximum of independent Laplace variables (theorems, not measurements).

method sensitivity in ℓ1\ell_1 noise error bound with probability 0.95
Laplace on all 256 answers 128/n128/n Lap(0.128)\mathrm{Lap}(0.128) each 1.09 on the worst query
Laplace on the 8 cells, then add cells 2/n2/n Lap(0.002)\mathrm{Lap}(0.002) each 0.0101 on each cell, so at most 0.081 on any query

Replacing one row moves one unit of count from one cell to another. That changes the 128 queries that hold exactly one of the two cells, so the vector of 256 answers has ℓ1\ell_1 sensitivity 128/n128/n, and the Laplace mechanism on it is useless. The histogram has sensitivity 2/n2/n, and every query is a sum of at most 8 noisy cells. A query of 8 cells has the noise standard deviation 8⋅2⋅0.0022=0.008\sqrt{8 \cdot 2 \cdot 0.002^2} = 0.008. The noisy histogram is itself synthetic data. This works because ∣X∣|X| is small; for X={0,1}dX = \{0,1\}^d with large dd the histogram has 2d2^d cells and the methods below are needed.

Reconstruction as a limit. With X={0,1}X = \{0,1\} and QQ all 2n2^n subsets of rows given by row identifiers, error below 1/401/40 on every query lets anyone rebuild 90 percent of the bits (Vadhan Corollary 5.3). So query classes that refer to single rows cannot be released accurately. Classes that treat rows as a multiset, like counting queries on XX, can.

Known algorithms

The bounds are on the worst error α\alpha with high probability, from the sources (theorems).

algorithm privacy error α\alpha time
Laplace on each query (Vadhan Theorem 2.6) ε\varepsilon O(∣Q∣/(εn))O(\lvert Q\rvert/(\varepsilon n)) poly(n,∣Q∣)\mathrm{poly}(n, \lvert Q\rvert)
Gaussian on each query (Vadhan Theorem 2.7) (ε,δ)(\varepsilon, \delta) O(∣Q∣log⁡(1/δ)log⁡log⁡∣Q∣/(εn))O(\sqrt{\lvert Q\rvert \log(1/\delta) \log\log\lvert Q\rvert}/(\varepsilon n)) poly(n,∣Q∣)\mathrm{poly}(n, \lvert Q\rvert)
Laplace histogram ε\varepsilon O(∣X∣log⁡∣X∣/(εn))O(\lvert X\rvert \log\lvert X\rvert/(\varepsilon n)) for any counting query poly(n,∣X∣)\mathrm{poly}(n, \lvert X\rvert)
SmallDB (Blum, Ligett and Roth; Vadhan Theorem 4.1) ε\varepsilon O((log⁡∣Q∣log⁡∣X∣/(εn))1/3)O((\log\lvert Q\rvert \log\lvert X\rvert/(\varepsilon n))^{1/3}) ∣X∣O(log⁡∣Q∣/α2)\lvert X\rvert^{O(\log\lvert Q\rvert/\alpha^2)}
Private multiplicative weights (Hardt and Rothblum; Vadhan Theorem 4.3) (ε,δ)(\varepsilon, \delta) O((log⁡∣X∣log⁡(1/δ) log⁡∣Q∣/(εn))1/2)O((\sqrt{\log\lvert X\rvert \log(1/\delta)}\,\log\lvert Q\rvert/(\varepsilon n))^{1/2}) poly(n,∣X∣)\mathrm{poly}(n, \lvert X\rvert) per query
MWEM (Hardt, Ligett and McSherry) ε\varepsilon of order n−1/3n^{-1/3}, like SmallDB O(∣X∣)O(\lvert X\rvert) per round
Matrix mechanism (Li et al.) ε\varepsilon or (ε,δ)(\varepsilon, \delta) mean squared error set by a strategy matrix a convex search over strategies
Binary tree mechanism ε\varepsilon O(log⁡1.5T/ε)O(\log^{1.5} T/\varepsilon) in counts for prefix sums O(log⁡T)O(\log T) per step

The first two rows pay a power of ∣Q∣|Q|, and the SmallDB and multiplicative weights rows pay only log⁡∣Q∣\log|Q|, at the price of a lower power of nn and time polynomial in ∣X∣|X|. For a small universe the histogram is best. The Laplace histogram row uses the union bound over ∣X∣|X| cells; for a query of cc cells the error is a sum of cc noise terms. Each method needs a cryptographic source of randomness and exact sampling in a deployment (Mironov 2012; Canonne, Kamath and Steinke 2020).

Bounds

  • Reconstruction (Dinur and Nissim; Vadhan Theorems 5.2 and 5.6). A class that refers to single rows cannot be released with error o(1)o(1) on all 2n2^n queries, or error o(1/n)o(1/\sqrt n) on nn random queries. See the reconstruction theorems.
  • Packing (Vadhan Theorems 5.13 to 5.15). For pure DP and a class that tells all of XX apart, α≥Ω(log⁡∣X∣/(εn))\alpha \ge \Omega(\log|X|/(\varepsilon n)), and the sample complexity for constant error is set by a packing number. See the packing lower bound.
  • Fingerprinting codes (Vadhan Theorems 5.21 and 5.22). For (ε,δ)(\varepsilon, \delta)-DP, dd attribute means need error Ω(dlog⁡(1/δ)/(εn))\Omega(\sqrt{d \log(1/\delta)}/(\varepsilon n)), and some classes of kk queries with n2.1≤kn^{2.1} \le k need error Ω~((log⁡∣X∣ log⁡∣Q∣/(εn))1/2)\tilde\Omega((\sqrt{\log|X|}\,\log|Q|/(\varepsilon n))^{1/2}), close to private multiplicative weights. See the fingerprinting code lower bound.
  • Running time. Under cryptographic assumptions, some classes of counting queries on X={0,1}dX = \{0,1\}^d have no accurate private release in time polynomial in nn and dd (Dwork, Naor, Reingold, Rothblum and Vadhan, STOC 2009). Ullman (STOC 2013) shows that answering more than about n2n^2 arbitrary counting queries efficiently is hard, while the Gaussian mechanism answers about n2n^2 of them efficiently with constant error. Vadhan Section 6 (traitor-tracing lower bounds and lower bounds for synthetic data) surveys these results.

Reductions

  • Synthetic data gives query release. A synthetic dataset x^\hat x answers every qq by q(x^)q(\hat x), by post-processing. For a small universe the converse holds with twice the error: a linear program finds the fractional histogram whose answers are nearest to the noisy answers in the worst query, and the true histogram is a candidate, so the result is within 2α2\alpha of the truth.
  • Small datasets suffice. For every xx and every QQ of counting queries, a random sample of m=O(log⁡∣Q∣/α2)m = O(\log|Q|/\alpha^2) rows of xx answers all of QQ within α\alpha (a Chernoff and union bound). So the search can be over datasets of mm rows, which is the base of SmallDB; for a class of finite VC dimension, log⁡∣Q∣\log|Q| can be replaced by the VC dimension (Blum, Ligett and Roth).
  • Online from offline. Private multiplicative weights uses the sparse vector technique to answer an online query only when the current synthetic data errs on it, and pays only for those updates.
  • Lower bounds from codes and attacks. The lower bounds above reduce from reconstruction and from fingerprinting codes; the hardness results reduce from traitor-tracing schemes.

Applications

  • Official statistics. Agencies publish large sets of counts and marginal tables; query release is the model for formal privacy of such tables, and the reconstruction theorems explain why tables with exact counts are a risk.
  • Synthetic data for analysts. A private synthetic dataset can be loaded into normal tools, and every later analysis is free by post-processing.
  • Range and prefix counts. Dashboards of counts over time or over ranges use tree-based and matrix methods.
  • Learning. Answers to all statistical queries of a class let a learner train in the statistical query model with no extra privacy cost.

References

  1. Salil Vadhan, The complexity of differential privacy, in Tutorials on the Foundations of Cryptography, Springer, 2017, pages 347 to 450, Section 2 (Theorems 2.6 and 2.7, arbitrary counting queries), Section 4 (Theorem 4.1, SmallDB, and Theorem 4.3, private multiplicative weights), Section 5 (information-theoretic lower bounds) and Section 6 (computational lower bounds)
  2. Cynthia Dwork and Aaron Roth, The Algorithmic Foundations of Differential Privacy, Foundations and Trends in Theoretical Computer Science 9(3-4), 2014, Chapter 4 (releasing linear queries with correlated error: SmallDB and online multiplicative weights) and Chapter 8 (lower bounds)
  3. Avrim Blum, Katrina Ligett and Aaron Roth, A learning theory approach to noninteractive database privacy, Journal of the ACM 60(2), Article 12, 2013, the release of a small synthetic database for a class of finite VC dimension
  4. Moritz Hardt and Guy N. Rothblum, A multiplicative weights mechanism for privacy-preserving data analysis, FOCS 2010, pages 61 to 70, private multiplicative weights, an online mechanism with error of order n to the minus 1/2
  5. Jonathan Ullman, Answering n^(2+o(1)) counting queries with differential privacy is hard, STOC 2013, pages 361 to 370, the hardness of efficient release for more than about n^2 arbitrary counting queries

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)
WritingW2 basic
  • a known algorithm
  • a contract.yaml