Optimal Private Halfspace Counting via Discrepancy

S. Muthukrishnan, Aleksandar Nikolov

Introduction

A range counting problem is specified by a set PP of size ∣P∣=n|P|=n, and a range space R⊆2P\mathcal{R}\subseteq 2^{P}. Given a query range R∈RR\in\mathcal{R}, the output is ∣{p∈P∩R}∣|\{p\in P\cap R\}|. More generally, each point p∈Pp\in P has an integer weight xpx_{p} and the range returns R(x)=∑p∈RxpR(\mathbf{x})=\sum_{p\in R}{x_{p}}. This problem is fundamental in Computational Geometry and a workhorse in applications, for various examples of range spaces from axis-parallel boxes (orthogonal range counting), to regions bounded by hyperplanes (halfspace counting) and beyond (e.g., simplices). Orthogonal range counting is commonly used in databases and data analysis. Halfspace counting is not only interesting in itself, but general algebraic range counting can be “lifted” to a higher dimension and encoded as halfspace counting .

Surprisingly, very little is known about private range counting. Applying methods of differential privacy from first principles (Laplace noise and the basic composition theorem of differential privacy) will add large — variance Ω(n2)\Omega(n^{2}) in the case of halfspace counting in the plane — noise to each output. More generally, let A\mathbf{A} be an incidence matrix for a range space R\mathcal{R} (i.e. a matrix whose rows are the indicator vectors of all ranges R∈RR\in\mathcal{R}) and let x\mathbf{x} be the weights. The problem of computing Ax\mathbf{A}\mathbf{x} is the range counting problem. The average squared error of an approximate algorithm A\mathcal{A} is 1∣R∣∥A(x)−Ax∥22\frac{1}{|\mathcal{R}|}\|\mathcal{A}(\mathbf{x})-\mathbf{A}\mathbf{x}\|_{2}^{2}. In general, we can consider this problem for any A∈{0,1}m×n\mathbf{A}\in\{0,1\}^{m\times n}, not necessarily ones that correspond to natural ranges from some constant dimensional geometric space. This is the predicate counting problem, well-studied in differential privacy. Then it is known that no mechanism that has average squared error o(n)o(n) can be (ϵ,δ)(\epsilon,\delta)-differentially private . However, the lower bounds are obtained using random A\mathbf{A}’s that will not correspond to specific range spaces of interest. No super-constant lower bounds are known against (ε,δ)(\varepsilon,\delta)-differential privacy for natural problems like halfspace or orthogonal range counting in constant dimensional space. Constant lower bounds follow from the work of Roth as well as from reductions from lower bounds for conjunction queries.

Our results are for (ε,δ)(\varepsilon,\delta)-differentially private range counting, and use the combinatorial structure of A\mathbf{A}’s for range spaces. Our main application is halfspace counting, but our approach is general and yields other results too.

∙\bullet (Halfspace counting upper bound) The (primal) shatter function of R\mathcal{R} is defined as πR(s)=max⁡X∈(Ps)∣R∣X∣\pi_{\mathcal{R}}(s)=\max_{X\in{P\choose s}}|\mathcal{R}|_{X}| (i.e. the number of distinct sets in the restriction R∣X\mathcal{R}|_{X}). The shatter function of R\mathcal{R} defined by halfspaces in dd-dimensions is bounded as πR(s)=O(sd)\pi_{\mathcal{R}}(s)=O(s^{d}).

We show that there is an (ε,δ)(\varepsilon,\delta)-differentially private range counting mechanism that achieves O(n1−1/d)O(n^{1-1/d}) average squared error for range spaces with shatter function bounded by O(sd)O(s^{d}), and therefore for dd-dimensional halfspace range counting.

Our upper bound shows that previous lower bounds for general A\mathbf{A}’s indeed do not apply to halfspace range counting. Our algorithm runs in time polynomial in nn and mm. Previous work on this problem is incomparable. Work by Blum, Ligett and Roth gave a non-constructive squared error upper bound of O(d2n4/3)O(d^{2}n^{4/3}) for range spaces with VC-dimension dd and a matching constructive bound for halfspace range counting for (ε,0)(\varepsilon,0)-differential privacy with a slightly different objective. Since the shatter function of a range space with VC-dimension dd is bounded by O(sd)O(s^{d}), our result also implies a constructive approximation upper bound of O(n1−1/d)O(n^{1-1/d}) for VC-dimension dd range spaces.

Our approach relies on prior work to decompose the range space into a logarithmic number of range spaces, some of them consisting only of small ranges, and some containing a small number of distinct ranges. We exploit this trade-off between maximum range size and number of distinct ranges by combining randomized response and Laplacian noise based differentially private mechanisms, but this balancing still leaves us with large noise in some cases. Nevertheless, we can bound the average privacy loss over the points p∈Pp\in P. Our main idea is to use this approach to preserve privacy for most points p∈Pp\in P; the shatter function bound does not increase for restrictions of PP and R\mathcal{R} and we can recurse on the remaining points of PP. This argument is inspired by partial coloring methods used in discrepancy theory. ■\blacksquare

∙\bullet (Range counting lower bound) For halfspace counting in dd dimensions, we show that any mechanism that has average squared error within o(n1−1/d)o(n^{1-1/d}) is not (ε,δ)(\varepsilon,\delta)-differentially private for any constant ε\varepsilon and δ\delta. We prove this lower bound using a notion of discrepancy where, in contrast to the standard notion where {+1,−1}\{+1,-1\} colorings are considered, we allow {0,+1,−1}\{0,+1,-1\} colorings but subject to some budget constraints on {+1,−1}\{+1,-1\}. The budget constraints allows us to relate this notion of discrepancy to the classical one. Once the approach via the correct notion of discrepancy is developed, the mechanics are simple. Lower bounds will follow from combinatorial analysis of the discrepancy of range spaces. For orthogonal range counting, our approach immediately gives a lower bound of (log⁡n)d−O(1)(\log n)^{d-O(1)} on the average squared error of any (ε,δ)(\varepsilon,\delta) differentially private mechanism. The best upper bound in this setting is the work of Chan, Shi, and Song who give an algorithm with average squared error O((log⁡n)2d)O((\log n)^{2d}). No previous super-constant lower bounds are known for this problem even for large constant dd. We note that proving a tight lower bound on the combinatorial discrepancy of axis-aligned boxes in dd dimensions is a major open problem in discrepancy theory, and any improvement to the current discrepancy lower bound will yield a corresponding improvement in lower bounds for privacy. ■\blacksquare

In Section 2 we review related prior work. In Section 3, we define concepts we need, including differential privacy and suitable notions of discrepancy. In Section 4, we present our lower bounds, and in Section 5, the upper bounds. We describe extensions and alternative algorithmic solutions in Section 6.

Prior Work

There is a rich and growing literature on solving counting problems while satisfying strong privacy guarantees. We will survey the prior work that is most relevant to our results.

In a seminal paper, Dinur and Nissim initiated the study of the limits of output perturbation in answering arbitrary counting queries privately. They showed that if an algorithm A\mathcal{A} satisfies ∥A(x)−Ax∥∞2=o(n)\|\mathcal{A}(\mathbf{x})-\mathbf{A}\mathbf{x}\|_{\infty}^{2}=o(n) for a random 0-1 matrix A\mathbf{A}, then an adversary can reconstruct x\mathbf{x} almost exactly, implying that the algorithm is not (ε,δ)(\varepsilon,\delta)-differentially private for any constant ε,δ\varepsilon,\delta.Our methods based on discrepancy allow us to re-prove the lower bound of Dinur and Nissim, as well as the version of Dwork and Yekhanin that uses an explicit A\mathbf{A}. There is relatively little prior work on negative results for (ϵ,δ)(\epsilon,\delta)-differential privacy for natural restrictions of A\mathbf{A}. An exception is the work on lower bounding the noise necessary to privately answer conjunction queries . Conjunction queries on a database with dd attributes can be reduced to answering orthogonal range counting or halfspace range counting queries in dd dimensions. When dd is constant, the lower bounds on conjunction queries imply a lower bound of CdC^{d} (for an absolute constant C>1C>1) on the average squared error neccessary to answer dd-dimensional halfspace or orthogonal queries privately (here and in the remainder of this section we suppress dependence on ε\varepsilon, δ\delta, and the probability of failure). In other related work, Roth showed that linear queries with fat shattering dimension DD require squared noise Ω(D2)\Omega(D^{2}) to preserve privacy. The fat shattering dimension reduces to the VC-dimension for counting queries, and has value d+1d+1 for the range space of halfspaces in dd dimensions. No super-constant lower bounds were previously known for (ε,δ)(\varepsilon,\delta)-differential privacy for the halfspace range counting or orthogonal range counting problems in constant dimensional space.

The study of private range counting for restricted range spaces was initiated with the work of Blum, Ligett, and Roth , who, using an argument based on epsilon nets, showed that queries of VC dimension dd can be answered with worst-case squared noise O(d2n4/3)O(d^{2}n^{4/3}). Their algorithm is not computationally efficient, but they gave efficient algorithms with comparable guarantees for the interval range counting and halfspace range counting problems. Although their error bound is inferior to ours (when the size of the database is comparable to the universe size), the models are not directly comparable. While we consider a finite universe, they consider a continuous space, but give relaxed utility guarantes, namely that each query answer is accurate for a halfspace close to the query halfspace. Additionally, their algorithms satisfy the stronger notion of (ε,0)(\varepsilon,0)-differential privacy and accomodate the regime where ∥x∥1\|\mathbf{x}\|_{1} is public and bounded by nn and PP is much larger.

For interval queries, the work of Blum, Ligett, and Roth was subsequently improved by Xiao, Wang, and Gehrke (in the regime where database size and universe size are comparable), who gave a polylogarithmic noise upper bound via the wavelet transform. A related algorithm that achieves an average squared error upper bound of O((log⁡n)3d)O((\log n)^{3d}) for dd-dimensional orthogonal range counting was given by Chan, Shi, and Song . We note that if we relax the privacy guarantee of Chan, Shi, and Song to (ε,δ)(\varepsilon,\delta)-differential privacy, their algorithm can be analyzed to provide average squared error O(log⁡2dn)O(\log^{2d}n).

Much subsequent work has focused on answering mm arbitrary queries efficiently with squared error linear in nn and polylogarithmic in mm . A related line of work investigates the problem of answering conjunction queries with optimal error .

Prior work for (ε,0)(\varepsilon,0)-differential privacy. Stronger lower bounds can be shown when δ=0\delta=0, and there are known separations between the cases δ=0\delta=0 and δ>0\delta>0, even when δ\delta is superpolynomially small . Hardt and Tulwar gave a lower bound for linear queries based on geometric properties of the query matrix A\mathbf{A}. De simplified and extended their lower bound results. Blum, Ligett, and Roth showed that no (ε,0)(\varepsilon,0)-differentially private mechanism can answer interval queries with any nontrivial noise when the universe is continuous.

Discrepancy theory. For background in discrepancy theory we refer the reader to the books of Chazelle and Matous̆ek . Chazelle provides an overview of the applications of discrepancy theory to computer science, while Matous̆ek gives a survey of discrepancy theory results for geometric range spaces.

Geometric range counting. Geometric range counting and the closely related problems of range sums and range searching have a rich history in computational geometry. We refer the reader to the survey of Agarwal and Erickson for background.

Preliminaries

We typeset vectors and matrices as x\mathbf{x}, A\mathbf{A} and their elements as xjx_{j}, AijA_{ij}. We denote the ii-th row of A\mathbf{A} as Ai∗\mathbf{A}_{i*} and the jj-th column as A∗j\mathbf{A}_{*j}. Given a matrix A\mathbf{A}, the function col⁡(A)\operatorname{col}(\mathbf{A}) equals the number of columns of A\mathbf{A}. For a matrix A\mathbf{A} with nn columns, and a set S⊆[n]S\subseteq[n] we use A∣S\mathbf{A}|_{S} to denote the submatrix of A\mathbf{A} consisting of the columns corresponding to elements of SS (with duplicated rows removed). Similarly, for a range space R\mathcal{R} with incidence matrix A\mathbf{A}, the range space R∣S\mathcal{R}|_{S} is the one corresponding to the incidence matrix A∣S\mathbf{A}|_{S}. We denote the ii-th standard basis vector (0,…,0,1,0,…,0)T(0,\ldots,0,1,0,\ldots,0)^{T} (where 11 is in the ii-th coordinate) as ei\mathbf{e_{i}}. For a set PP we denote the collection of subsets of PP of size ss as (Ps){P\choose s}.

We will use the definitions for range counting, average squared error, orthogonal and hyperspace range counting, as well as the linear algebraic notation introduced in the Introduction. We also consider worst-case squared error, which for an algorithm A\mathcal{A} and a range space with incidence matrix A\mathbf{A} is ∥A(x)−Ax∥∞2≥1m∥A(x)−Ax∥22\|\mathcal{A}(\mathbf{x})-\mathbf{A}\mathbf{x}\|_{\infty}^{2}\geq\frac{1}{m}\|\mathcal{A}(\mathbf{x})-\mathbf{A}\mathbf{x}\|_{2}^{2}. We give all our lower bounds in average squared error and state our upper bounds in terms of both average and worst-case squared error.

The VC-dimension of a range space R\mathcal{R} is defined as the size of the largest set X⊆PX\subseteq P such that R∣X=2X\mathcal{R}|_{X}=2^{X}. The (primal) shatter function of R\mathcal{R} is defined as πR(s)=max⁡X∈(Ps)∣R∣X∣\pi_{\mathcal{R}}(s)=\max_{X\in{P\choose s}}|\mathcal{R}|_{X}| (i.e. the number of distinct sets in R∣X\mathcal{R}|_{X}).

If the VC-dimension of R\mathcal{R} is dd, then πR(s)=O(sd)\pi_{\mathcal{R}}(s)=O(s^{d}). Conversely, if πR(s)=sO(1)\pi_{\mathcal{R}}(s)=s^{O(1)} then the VC-dimension of R\mathcal{R} is constant.

2 Differential Privacy

For lower bounds we use the following claim, which implies that being able to decode most of the input from the output contradicts differential privacy.

Let M={Mn}\mathcal{M}=\{M_{n}\} be a mechanism such that for some nn there exists a (not necessarily efficient) algorithm A\mathcal{A} such that

Then there exist ε=ε(α,β)\varepsilon=\varepsilon(\alpha,\beta) and δ=δ(α,β)\delta=\delta(\alpha,\beta) such that the mechanism M\mathcal{M} is not (ε,δ)(\varepsilon,\delta)-differentially private.

A basic mechanism to achieve differential privacy with δ=0\delta=0 is the Laplace noise mechanism, first proposed in . Let us here and for the rest of the paper denote by Lap⁡(s)\operatorname{Lap}(s) the Laplace distribution centered at 0 with scale parameter ss.

Let the mechanisms M1,…,Ms\mathcal{M}^{1},\ldots,\mathcal{M}^{s} satisfy, respectively, (ε1,δ1),…,(εs,δs)(\varepsilon_{1},\delta_{1}),\ldots,(\varepsilon_{s},\delta_{s}) differential privacy. The composition M\mathcal{M} of the mechanisms satisfies (∑iεi,∑iδi)(\sum_{i}{\varepsilon_{i}},\sum_{i}{\delta_{i}})-differential privacy.

We also need a stronger result, which is a straightforward extension of the composition theorem of Dwork, Rothblum, and Vadhan . To state the result we define a notion of privacy loss. Following , let us first define the maximum divergence of two random variables aa and bb as

where SS ranges over measurable subsets of the support of bb. Note that a mechanism M={Mn}\mathcal{M}=\{M_{n}\} is (ε,0)(\varepsilon,0)-differentially private if and only if for every nn and any x,x′:∥x−x′∥1≤1\mathbf{x},\mathbf{x}^{\prime}:\|\mathbf{x}-\mathbf{x}^{\prime}\|_{1}\leq 1, we have D∞(Mn(x)∥Mn(x′))≤εD_{\infty}(M_{n}(\mathbf{x})\|M_{n}(\mathbf{x}^{\prime}))\leq\varepsilon and D∞(Mn(x′)∥Mn(x))≤εD_{\infty}(M_{n}(\mathbf{x}^{\prime})\|M_{n}(\mathbf{x}))\leq\varepsilon.

Let M\mathcal{M} be a composition of M1,…,Ms\mathcal{M}^{1},\ldots,\mathcal{M}^{s}. The privacy loss of i∈[n]i\in[n] for the jj-th output is

Let M\mathcal{M} be a composition of M1,…,Ms\mathcal{M}^{1},\ldots,\mathcal{M}^{s} and let ε>max⁡i∈[n]LM(i)\varepsilon>\max_{i\in[n]}{L_{\mathcal{M}}(i)}. Then, for any δ>0\delta>0, M\mathcal{M} satisfies (2ln⁡(1/δ)ε,δ)(\sqrt{2\ln(1/\delta)}\varepsilon,\delta)-differential privacy.

Note that for the range counting problem, the privacy loss is defined for a point pp.

3 Discrepancy

Here we define a modified notion of discrepancy. In Section 4, we show that this modified notion of discrepancy is useful in carrying out Dinur-Nissm type attacks on privacy.

The standard notions of discrepancy and hereditary discrepancy correspond to the special cases disc⁡=disc⁡∞,1\operatorname{disc}=\operatorname{disc}_{\infty,1} and herdisc⁡=herdisc⁡∞,1\operatorname{herdisc}=\operatorname{herdisc}_{\infty,1}. The cases disc⁡2,1\operatorname{disc}_{2,1} and herdisc⁡2,1\operatorname{herdisc}_{2,1} have also been extensively studied, especially as means of proving lower bounds on disc⁡\operatorname{disc} and herdisc⁡\operatorname{herdisc}. On the other hand the case disc⁡p,0\operatorname{disc}_{p,0} is trivially the identically 0 function. Next, we exhibit a connection between herdisc⁡p,1\operatorname{herdisc}_{p,1} and herdisc⁡p,α\operatorname{herdisc}_{p,\alpha} for α∈(0,1)\alpha\in(0,1) and any pp.

Let f(s)=max⁡S⊆[n]:∣S∣≤sdisc⁡p,α(A∣S)f(s)=\max_{S\subseteq[n]:|S|\leq s}{\operatorname{disc}_{p,\alpha}(\mathbf{A}|_{S})}. Then disc⁡p,1(A)≤∑i=0∞f((1−α)in)\operatorname{disc}_{p,1}(\mathbf{A})\leq\sum_{i=0}^{\infty}{f((1-\alpha)^{i}n)}, and, therefore, herdisc⁡p,1(A)\operatorname{herdisc}_{p,1}(\mathbf{A}) ≤∑i=0∞f((1−α)in)\leq{\sum_{i=0}^{\infty}{f((1-\alpha)^{i}n)}}

We will find an assignment x∈{±1}n\mathbf{x}\in\{\pm 1\}^{n} such that ∥Ax∥p≤∑i=0∞f((1−α)in)\|\mathbf{A}\mathbf{x}\|_{p}\leq\sum_{i=0}^{\infty}{f((1-\alpha)^{i}n)}, which is sufficient to prove the lemma. Let x′∈{0,±1}n\mathbf{x}^{\prime}\in\{0,\pm 1\}^{n} be such that ∥Ax∥p≤f(n)\|\mathbf{A}\mathbf{x}\|_{p}\leq f(n) and ∥x∥1≥αn\|\mathbf{x}\|_{1}\geq\alpha n. Let S={i:xi=0}S=\{i:x_{i}=0\}. Since ∥x∥1≥αn\|\mathbf{x}\|_{1}\geq\alpha n, ∣S∣≤(1−α)n|S|\leq(1-\alpha)n. We recurse to find an assignment x′′∈{±1}S\mathbf{x}^{\prime\prime}\in\{\pm 1\}^{S} such that ∥(A∣S)x′′∥p≤∑i=0∞f((1−α)i∣S∣)≤∑i=1∞f((1−α)in)\|(\mathbf{A}|_{S})\mathbf{x}^{\prime\prime}\|_{p}\leq\sum_{i=0}^{\infty}{f((1-\alpha)^{i}|S|)}\leq\sum_{i=1}^{\infty}{f((1-\alpha)^{i}n)}. Set xi=xi′x_{i}=x^{\prime}_{i} when i∉Si\not\in S and xi=xi′′x_{i}=x^{\prime\prime}_{i} when i∈Si\in S. ∎

Lemma 5 and the observation herdisc⁡p,α=max⁡s=1nf(s)\operatorname{herdisc}_{p,\alpha}=\max_{s=1}^{n}f(s) imply that for any A\mathbf{A},

However using Lemma 5 directly and the observation that a restriction of a halfspace range space (or a range space of axis-aligned boxes) is a range space of the same kind, we get stronger lowerbounds for herdisc⁡p,α\operatorname{herdisc}_{p,\alpha}. Below we list several interesting results that can be derived in this way from known results in combinatorial discrepancy theory . Below we provide more specific references to the discrepancy lower bound used to derive each result. We provide a full proof of the first result; the remaining proofs follow analogous reasoning.

For any nn and m>nm>n there exists a matrix A∈{0,1}m×n\mathbf{A}\in\{0,1\}^{m\times n} such that herdisc⁡∞,α(A)=Ω(nlog⁡2m/n)\operatorname{herdisc}_{\infty,\alpha}(A)=\Omega(\sqrt{n\log 2m/n}).

Lower Bounds for Privacy from Discrepancy

Our main result in this section is a noise lower bound on (ε,δ)(\varepsilon,\delta)-differentially private mechanisms that approximate range counting queries for a host of natural geometric range spaces. Our main conceptual contribution is in identifying herdisc⁡p,α\operatorname{herdisc}_{p,\alpha} as the key quantity in showing lower bounds against (ε,δ)(\varepsilon,\delta)-differential privacy via a Dinur-Nissim type attack, and connecting this quantity to the standard notion of combinatorial discrepancy.

is (ε,δ)(\varepsilon,\delta)-differentially private.

We extend the lower bound to herdisc⁡p,α\operatorname{herdisc}_{p,\alpha}. This allows us to use the connection between herdisc⁡p,α\operatorname{herdisc}_{p,\alpha} and standard discrepancy.

is (ε,δ)(\varepsilon,\delta)-differentially private.

We claim that given MnM_{n} and any set S⊆[n]S\subseteq[n], we can construct Mn′M^{\prime}_{n} that takes as input x∣S\mathbf{x}|_{S}, is (ε,δ)(\varepsilon,\delta)-differentially private (with respect to x∣S\mathbf{x}|_{S}), and satisfies

Then we can take SS such that disc⁡p,α(A∣S)=herdisc⁡p,α(A)\operatorname{disc}_{p,\alpha}(\mathbf{A}|_{S})=\operatorname{herdisc}_{p,\alpha}(\mathbf{A}), and the corollary follows from Theorem 1.

We define Mn′M_{n}^{\prime} as follows: Mn′(x∣S)M_{n}^{\prime}(\mathbf{x}|_{S}) extends x∣S\mathbf{x}|_{S} to x\mathbf{x} by setting xi=0x_{i}=0 for all i∉Si\not\in S and outputs Mn(x)M_{n}(\mathbf{x}). It’s easy to verify that Mn′M_{n}^{\prime} satisfies the claimed properties. ∎

Theorem 1 follows from Lemma 1 and the following lemma.

Corollary 1, instantiated with p=2p=2, and Lemmas 6–8 imply an array of noise lower bounds for approximating geometric range counting while satisfying (ε,δ)(\varepsilon,\delta)-differential privacy.

We also note that that Corollary 1, instantiated with p=∞p=\infty and Lemma 9 imply a lower bound on the worst case squared error for privately approximating mm arbitrary range counting queries where mm is much larger than nn.

Any mechanism M\mathcal{M} that, for any range space (P,R)(P,\mathcal{R}) (∣P∣=n|P|=n, ∣R∣=m|\mathcal{R}|=m), with constant probability approximates range counts for R\mathcal{R} with worst case squared error o(nlog⁡2m/n)o(n\log 2m/n) is not (ε,δ)(\varepsilon,\delta)-differentially private for any constant ε\varepsilon and δ\delta.

The results of Dinur and Nissim for m=\O(n)m=\O(n) and m=2nm=2^{n} are special cases of Theorem 5. To the best of our knowledge, this is the first lower bound that explicitly accounts for the dependence of error on mm for arbitrary m>nm>n.

Algorithm for Bounded Shatter Function Systems

In this section we present an efficient (for constant dd) (ε,δ)(\varepsilon,\delta)-differentially private range counting algorithm for range spaces with bounded shatter function. We prove the algorithm gives optimal average squared error and almost optimal worst-case squared error bounds. The algorithm is based on a novel use of a decomposition that was first constructed by Matous̆ek to prove optimal discrepancy upper bounds for bounded shatter function range spaces. Even a careful application of known methods in differential privacy together with the decomposition does not provide optimal error bounds directly; we, however, prove that privacy can be satisfied for a constant fraction of PP while achieving optimal error bounds; then we recurse on the remainder of PP. Aside from the decomposition, this method of satisfying privacy for a fraction of the database is inspired by partial coloring methods in discrepancy theory.

We will make an essential use of the following lemma, due originally to Haussler. The lemma bounds the size of an epsilon net in the hamming metric.

Let (P,R)(P,\mathcal{R}) be a range space with shatter function πR(s)=O(sd)\pi_{\mathcal{R}}(s)=O(s^{d}). Let Δ\Delta be an integer less than ∣P∣|P|. Let S⊆R\mathcal{S}\subseteq\mathcal{R} be a collection of ranges such that for any two ranges R1,R2∈SR_{1},R_{2}\in\mathcal{S}, the symmetric difference between R1R_{1} and R2R_{2} is at least Δ\Delta. Then, ∣S∣=O((∣P∣/Δ)d)|\mathcal{S}|=O((|P|/\Delta)^{d}).

We construct collections of ranges with large pairwise distance Δ\Delta for gemetrically growing values of Δ\Delta. Using the collections as finer and finer epsilon nets, we can represent each range in R\mathcal{R} as the union and set difference of smaller and smaller ranges, while Lemma 11 allows us to control the number of such ranges needed for each value of Δ\Delta. We then approximate range counts for the ranges that make up the decomposition; the trade-off between range size and number of distinct ranges allows us to balance the noise incurred by randomized response and by using composition (Lemma 4).

We first detail the construction. Our presentation follows . Let (P,R)(P,\mathcal{R}) be a range space with shatter function πR(s)=O(sd)\pi_{\mathcal{R}}(s)=O(s^{d}). Let k=⌈log⁡2n⌉k=\lceil\log_{2}n\rceil. For each i∈{0,…,k}i\in\{0,\ldots,k\}, let Si⊆R\mathcal{S}_{i}\subseteq\mathcal{R} be a maximal collection of ranges such that the symmetric difference between any two ranges R1,R2∈SiR_{1},R_{2}\in\mathcal{S}_{i} is at least n2−in2^{-i}. In particular, Sk=R\mathcal{S}_{k}=\mathcal{R} and S0={∅}\mathcal{S}_{0}=\{\emptyset\}. For each R∈SiR\in\mathcal{S}_{i}, fix a R′∈Si−1R^{\prime}\in\mathcal{S}_{i-1} such that the symmetric difference between RR and R′R^{\prime} is at most n2−i+1n2^{-i+1} (such a range exists by maximality of Si−1\mathcal{S}_{i-1}). Then we set F(R)=R∖R′F(R)=R\setminus R^{\prime} and G(R)=R′∖RG(R)=R^{\prime}\setminus R, so that R′=(R∖F(R))∪G(R)R^{\prime}=(R\setminus F(R))\cup G(R), F(R)⊆RF(R)\subseteq R, and G(R)∩(R∖F(R))=∅G(R)\cap(R\setminus F(R))=\emptyset. Define a new collection of ranges Ti={F(R),G(R):R∈Si}\mathcal{T}_{i}=\{F(R),G(R):R\in\mathcal{S}_{i}\}. We can start from R∈R=SkR\in\mathcal{R}=\mathcal{S}_{k} and apply the construction recursively, until we have ∅=((…((R∖Fk)∪Gk)…)∪G2)∖F1,\emptyset=((\ldots((R\setminus F_{k})\cup G_{k})\ldots)\cup G_{2})\setminus F_{1}, where Fi,Gi∈TiF_{i},G_{i}\in\mathcal{T}_{i}. Bactracking to reconstruct RR, we get

All union operations are on disjoint sets and any set is subtracted from a set that entirely contains it.

Each range in Ti\mathcal{T}_{i} has size at most n2−i+1n2^{-i+1} by construction; by Lemma 11, ∣Si∣=O(2di)|\mathcal{S}_{i}|=O(2^{di}), and, since each range in Si\mathcal{S}_{i} corresponds to at most two ranges in Ti\mathcal{T}_{i}, we also have Ti=O(2di)\mathcal{T}_{i}=O(2^{di}) . Let Ti\mathbf{T}^{i} be the incidence matrix of Ti\mathcal{T}_{i}. The following lemma follows from the decomposition (2):

Let (P,R)(P,\mathcal{R}) be a range space with ∣P∣=n|P|=n and shatter function πR(s)=O(sd)\pi_{\mathcal{R}}(s)=O(s^{d}). Let A\mathbf{A} be the incidence matrix of R\mathcal{R}. Then, there exist matrices Ti∈{0,1}si×n\mathbf{T}^{i}\in\{0,1\}^{s_{i}\times n} and Qi∈{0,±1}m×si\mathbf{Q}^{i}\in\{0,\pm 1\}^{m\times s_{i}} such that A=∑i=1kQiTi\mathbf{A}=\sum_{i=1}^{k}{\mathbf{Q}^{i}\mathbf{T}^{i}}. Furthermore, we have the following properties for Ti\mathbf{T}^{i} and Qi\mathbf{Q}^{i}:

each row in Ti\mathbf{T}^{i} has at most n2−i+1n2^{-i+1} nonzero entries;

si≤C2dis_{i}\leq C2^{di} for some absolute constant CC;

each row in Qi\mathbf{Q}^{i} has at most 2 nonzero entries.

For the degree of a point p∈Pp\in P in the range space Ti\mathcal{T}_{i}, we use the notation di(p)=∣{R∈Ti:p∈R}∣d_{i}(p)=|\{R\in\mathcal{T}_{i}:p\in R\}|.

Intuitively, we will use randomized response on those Ti\mathcal{T}_{i} consisting of only small ranges, and we will use the Laplace noise mechanism on those Ti\mathcal{T}_{i} consisting of few ranges. The “breaking-even point” for the analysis is i0=(log⁡n)/di_{0}=(\log n)/d. For i≥i0i\geq i_{0} randomized response gives the guarantee we need: the largest range in Ti\mathcal{T}_{i} for i≥i0i\geq i_{0} has size at most n1−1/dn^{1-1/d}. However, Ti0\mathcal{T}_{i_{0}} can have as many as nn ranges, and it seems that we cannot use Laplace noise with variance n1−1/dn^{1-1/d} and still preserve privacy for those ii close to i0i_{0}. To circumvent this issue, we use the fact that we can bound both the largest range and the number of ranges in each Ti\mathcal{T}_{i} simultaneously. The main observation is that we can add noise with optimal variance O(n1−1/d)O(n^{1-1/d}) to the range counts for those Ti\mathcal{T}_{i} where randomized response doesn’t work, and bound the average privacy loss 1n∑pLM(p)\frac{1}{n}\sum_{p}L_{\mathcal{M}}(p). Then, we use averaging and Lemma 4, and argue that we can preserve privacy for most p∈Pp\in P. The shatter function bound does not increase for restrictions of PP and R\mathcal{R} and we can recurse on the remaining points of PP. Our algorithm for computing range counts over ranges with bounded shatter function is given as Algorithm 1. The algorithm description and the following discussion assume that R\mathcal{R} has shatter function πR(s)=O(sd)\pi_{\mathcal{R}}(s)=O(s^{d}) (for d≥2d\geq 2) and the decomposition of Lemma 12 has already been computed. Note that the decomposition can be computed in time O(mnlog⁡n)O(mn\log n).

We analyze the privacy guarantees of Algorithm 1. We first prove some technical claims about the algorithm.

Claim 1. follows by avaraging and the inequality

The first inequality follows from Lemma 12. The second inequality holds for d≥2d\geq 2. This finishes the proof of claim 1.

The following privacy analysis uses the fact that the range space (P,R)(P,\mathcal{R}) is public, and, therefore, the decomposition given by Lemma 12, and the set XX determined by the decomposition are public as well, i.e. independent of x\mathbf{x}.

Algorithm 1 preserves ((26C+2)εln⁡1/δ,δ)((2\sqrt{6C}+2)\varepsilon\sqrt{\ln 1/\delta},\delta)-differential privacy.

Next we analyze the approximation guarantee of the algorithm. The bounds in following lemma can derived by a straightforward calculation.

We’re now ready to prove an approximation guarantee.

The expected average squared error of Algorithm 1 is O(n1−1/d/ε2)O(n^{1-1/d}/\varepsilon^{2}). With probability at least 1−β1-\beta, the worst-case squared error of Algorithm 1 is at most O(n1−1/dlog⁡(n/β)/ε2)O(n^{1-1/d}\log(n/\beta)/\varepsilon^{2}).

The worst-case guarantee can be derived by standard use of tail bounds for sums of Laplace random variables. ∎

Extensions

Algorithms for halfspace range counting can be derived from several other methods, each of which provides weaker noise guarantees and/or less generality.

The partition trees of Chan imply a way to factor the incidence matrix A\mathbf{A} of a range space induced by dd-dimensional halfspaces into matrices Q\mathbf{Q} and D\mathbf{D} such that A=QD\mathbf{A}=\mathbf{QD}, each column in D\mathbf{D} has at most O(log⁡log⁡n)O(\log\log n) nonzero elements, each row in Q\mathbf{Q} has at most O(n1−1/d)O(n^{1-1/d}) nonzero elements, and Q\mathbf{Q} and D\mathbf{D} both have elements bounded in absolute value by 11. Using Lemma 4, we can add Laplace noise with variance O(1ε2log⁡log⁡n)O(\frac{1}{\varepsilon^{2}}\log\log n) to each element of Dx\mathbf{Dx}, preserving (εln⁡1/δ,δ)(\varepsilon\sqrt{\ln 1/\delta},\delta) privacy. We can then bound the variance of this mechanism to argue that, with constant probability, the average squared error is O(1ε2n1−1/dlog⁡log⁡n)O(\frac{1}{\varepsilon^{2}}n^{1-1/d}\log\log n) and the worst case squared error is O(1ε2n1−1/dlog⁡nlog⁡log⁡n)O(\frac{1}{\varepsilon^{2}}n^{1-1/d}\log n\log\log n).

There is a well-known connection between combinatorial discrepancy and epsilon approximations (c.f. , Chapter 1). Let (P,R)(P,\mathcal{R}) be a range space such that the maximum discrepancy over all restrictions of R\mathcal{R} to a size ss subset of PP is f(s)f(s) (this is the same f(s)f(s) as in Section 3). Under some reasonable assumptions on the range space, there exists a subset SS of PP of size ss such that range counts on SS are close to range counts on PP to within an additive nsf(s)\frac{n}{s}f(s). Using this fact, and the discrepancy upper bound for range spaces with shatter function exponent dd, we can apply the median mechanism of Roth and Roughgarden with the new analysis in to obtain a squared error upper bound that depends on nn as O(n2d/(2d+1))O(n^{2d/(2d+1)}). This upper bound is suboptimal; for example, for d=2d=2, it yields an upper bound of n4/5n^{4/5} as opposed to the optimal n1/2n^{1/2}. Nevertheless, this method still gives squared error bounds that grow slower than nn for range system with polynomial shatter function. It also extends to the case where the universe is much larger than ∥x∥1\|\mathbf{x}\|_{1}. Giving optimal or near optimal error upper bounds in this large universe regime is an interesting open problem.

Concluding Remarks

While predicate count queries (Ax\mathbf{A}\mathbf{x}) have been studied in differential privacy before, we make one of the first significant progress in understanding the complexity of the problem in terms of the combinatorial properties of A\mathbf{A}, in particular for halfspace, orthogonal and other range count queries. Our main result is tight upper and lower bounds on approximation of (ϵ,δ)(\epsilon,\delta) differentially private halfspace count queries. Our approach is via a variation of discrepancy. The main problems we leave open are to get tight bounds for orthogonal counts with (ϵ,δ)(\epsilon,\delta)-differential privacy and to extend our bounds to the large universe regime.

Acknowledgements

We would like to thank Guy Rothblum, Kobbi Nissim, and Aaron Roth for helpful discussions, and the anonymous reviewers for useful suggestions and corrections.

This material is based upon work supported by the National Science Foundation under Grant No. 0916782.

References