What Can We Learn Privately?

Shiva Prasad Kasiviswanathan, Homin K. Lee, Kobbi Nissim, Sofya Raskhodnikova, Adam Smith

Introduction

The data privacy problem in modern databases is similar to that faced by statistical agencies and medical researchers: to learn and publish global analyses of a population while maintaining the confidentiality of the participants in a survey. There is a vast body of work on this problem in statistics and computer science. However, until recently, most schemes proposed in the literature lacked rigorous analysis of privacy and utility.

A recent line of work , initiated by Dinur and Nissim and called private data analysis, seeks to place data privacy on firmer theoretical foundations and has been successful at formulating a strong, yet attainable privacy definition. The notion of differential privacy that emerged from this line of work provides rigorous guarantees even in the presence of a malicious adversary with access to arbitrary auxiliary information. It requires that whether an individual supplies her actual or fake information has almost no effect on the outcome of the analysis.

Learning problems form an important category of computational tasks that generalizes many of the computations researchers apply to large real-life data sets. In this work, we ask what can be learned privately, namely, by an algorithm whose output does not depend too heavily on any one input or specific training example. Our goal is a broad understanding of the resources required for private learning in terms of samples, computation time, and interaction. We examine two basic notions from computational learning theory: Valiant’s probabilistically approximately correct (PAC) learning model and Kearns’ statistical query (SQ) model .

Informally, a concept is a function from examples to labels, and a class of concepts is learnable if for any distribution D\mathcal{D} on examples, one can, given limited access to examples sampled from D\mathcal{D} labeled according to some target concept cc, find a small circuit (hypothesis) which predicts cc’s labels with high probability over future examples taken from the same distribution. In the PAC model, a learning algorithm can access a polynomial number of labeled examples. In the SQ model, instead of accessing examples directly, the learner can specify some properties (i.e., predicates) on the examples, for which he is given an estimate, up to an additive polynomially small error, of the probability that a random example chosen from D\mathcal{D} satisfies the property. PAC learning is strictly stronger than the SQ learning .

We require a private algorithm to keep entire examples (not only the labels) confidential. In the scenario above, it translates to not revealing each participant’s gender, age, blood pressure history, and heart attack incidence. More precisely, the output of a private learner should not be significantly affected if a particular example ziz_{i} is replaced with arbitrary zi′z^{\prime}_{i}, for all ziz_{i} and zi′z^{\prime}_{i}. In contrast to correctness or utility, which is analyzed with respect to distribution D\mathcal{D}, differential privacy is a worst-case notion. Hence, when we analyze the privacy of our learners we do not make any assumptions on the underlying distribution. Such assumptions are fragile and, in particular, would fall apart in the presence of auxiliary knowledge (also called background knowledge or side information) that the adversary might have: conditioned on the adversary’s auxiliary knowledge, the distribution over examples might look very different from D\mathcal{D}.

1 Our Contributions

We introduce and formulate private learning problems, as discussed above, and develop novel algorithmic tools and bounds on the sample size required by private learning algorithms. Our results paint a picture of the classes of learning problems that are solvable subject to privacy constraints. Specifically, we provide:

A Private Version of Occam’s Razor. We present a generic private learning algorithm. For any concept class C\mathcal{C}, we give a distribution-free differentially-private agnostic PAC learner for C\mathcal{C} that uses a number of samples proportional to log⁡∣C∣\log|\mathcal{C}|. This is a private analogue of the “cardinality version” of Occam’s razor, a basic sample complexity bound from (non-private) learning theory. The sample complexity of our version is similar to that of the original, although the private algorithm is very different. As in Occam’s razor, the learning algorithm is not necessarily computationally efficient.

An Efficient Private Learner for Parity. We give a computationally efficient, distribution-free differentially private PAC learner for the class of parity functionsWhile the generic learning result (1) extends easily to “agnostic” learning (defined below), the learner for parity does not. The limitation is not surprising, since even non-private agnostic learning of parity is at least as hard as learning parity with random noise. over {0,1}d\{0,1\}^{d}. The sample and time complexity are comparable to that of the best non-private learner.

Equivalence of Local (“Randomized Response”) and SQ Learning. We precisely characterize the power of local, or randomized response, private learning algorithms. Local algorithms are a special (practical) class of private algorithms and are popular in the data mining and statistics literature . They add randomness to each individual’s data independently before processing the input. We show that a concept class is learnable by a local differentially private algorithm if and only if it is learnable in the statistical query (SQ) model. This equivalence relates notions that were conceived in very different contexts.

Separation of Interactive and Noninteractive Local Learning. Local algorithms can be noninteractive, that is, using one round of interaction with individuals holding the data, or interactive, that is, using more than one round (and in each receiving randomized responses from individuals). We construct a concept class, called masked-parity, that is efficiently learnable by interactive local algorithms under the uniform distribution on examples, but requires an exponential (in the dimension) number of samples to be learned by a noninteractive local algorithm. The equivalence (3) of local and SQ learning shows that interaction in local algorithms corresponds to adaptivity in SQ algorithms. The masked-parity class thus also separates adaptive and nonadaptive SQ learning.

The generic agnostic learner (1) has an important consequence: if some concept class C\mathcal{C} is learnable by any algorithm, not necessarily a private one, whose output length in bits is polynomially bounded, then C\mathcal{C} is learnable privately using a polynomial number of samples (possibly in exponential time). This result establishes the basic feasibility of private learning: it was not clear a priori how severely privacy affects sample complexity, even ignoring computation time.

There is an intuitively appealing similarity between learning from noisy examples and private learning: algorithms for both problems must be robust to small variations in the data. This apparent similarity is strengthened by a result of Blum, Dwork, McSherry and Nissim showing that any algorithm in Kearns’ statistical query (SQ) model can be implemented in a differentially private manner. SQ was introduced to capture a class of noise-resistant learning algorithms. These algorithms access their input only through a sequence of approximate averaging queries. One can privately approximate the average of a function with values in $overthedatasetofover the data set ofnindividualstowithinadditiveerrorindividuals to within additive errorO(1/n)$ (Dwork and Nissim ). Thus, one can simulate the behavior of an SQ algorithm privately, query by query.

Our efficient private learner for parity (2) dispels the similarity between learning with noise and private learning. First, SQ algorithms provably require exponentially many (in the dimension) queries to learn parity . More compellingly, learning parity with noise is thought to be computationally hard, and has been used as the basis of several cryptographic primitives (e.g., ).

Local algorithms (also referred to as randomized response, input perturbation, Post Randomization Method (PRAM), and Framework for High-Accuracy Strict-Privacy Preserving Mining (FRAPP)) have been studied extensively in the context of privacy-preserving data mining, both in statistics and computer science (e.g., ). Roughly, a local algorithm accesses each individual’s data via independent randomization operators. See Figure 1, p. 1.

Local algorithms were introduced to encourage truthfulness in surveys: respondents who know that their data will be randomized are more likely to answer honestly. For example, Warner famously considered a survey technique in which respondents are asked to give the correct answer to a sensitive (true/false) question with probability 2/32/3 and the incorrect answer with probability 1/31/3, in the hopes that the added uncertainty would encourage them to answer honestly. The proportion of “true” answers in the population is then estimated using a standard, non-private deconvolution. The accepted privacy requirement for local algorithms is equivalent to imposing differential privacy on each randomization operator . Local algorithms are popular because they are easy to understand and implement. In the extreme case, users can retain their data and apply the randomization operator themselves, using a physical device or a cryptographic protocol .

The equivalence between local and SQ algorithms (3) is a powerful tool that allows us to apply results from learning theory. In particular, since parity is not learnable with a small number of SQ queries but is PAC learnable privately (2), we get that local algorithms require exponentially more data for some learning tasks than do general private algorithms. Our results also imply that local algorithms are strictly less powerful than (non-private) algorithms for learning with classification noise because subexponential (non-private) algorithms can learn parity with noise .

Just as local algorithms can be interactive, SQ algorithms can be adaptive, that is, the averaging queries they make may depend on answers to previous queries. The equivalence of SQ and local algorithms (3) preserves interaction/adaptivity: a concept class is nonadaptively SQ learnable if and only if it is noninteractively locally learnable. The masked parity class (4) shows that interaction (resp., adaptivity) adds considerable power to local (resp., SQ) algorithms.

Most of the reasons that local algorithms are so attractive in practice, and have received such attention, apply only to noninteractive algorithms (interaction can be costly, complicated, or even impossible—for instance, when statistical information is collected by an interviewer, or at a polling booth).

This suggests that further investigating the power of nonadaptive SQ learners is an important problem. For example, the SQ algorithm for learning conjunctions is nonadaptive, but SQ formulations of the perceptron and kk-means algorithms seem to rely heavily on adaptivity.

The SQ result of Blum et al. and our learner for parity (2) provide efficient (i.e., polynomial time) private learners for essentially all the concept classes known (by us) to have efficient non-private distribution-free learners. Finding a concept class that can be learned efficiently, but not privately and efficiently, remains an interesting and important question.

Our results also lead to questions of optimal sample complexity for learning problems of practical importance. The private simulation of SQ algorithms due to Blum et al. uses a factor of approximately t/ϵ\sqrt{t}/\epsilon more data points than the naïve non-private implementation, where tt is the number of SQ queries and ϵ\epsilon is the parameter of differential privacy (typically a small constant). In contrast, the generic agnostic learner (1) uses a factor of at most 1/ϵ1/\epsilon more samples than the corresponding non-private learner. For parity, our private learner uses a factor of roughly 1/ϵ1/\epsilon more samples than, and about the same computation time as, the non-private learner. What, then, is the additional cost of privacy when learning practical concept classes (half-planes, low-dimensional curves, etc)? Can the theoretical sample bounds of (1) be matched by (more) efficient learners?

1.2 Techniques

Our generic private learner (1) adapts the exponential sampling technique of McSherry and Talwar , developed in the context of auction design. Our use of the exponential mechanism inspired an elegant subsequent result of Blum, Liggett, and Roth (BLR) on simultaneously approximating many different functions.

The efficient private learner for parity (2) uses a very different technique, based on sampling, running a non-private learner, and occasionally refusing to answer based on delicately calibrated probabilities. Running a non-private learner on a random subset of examples is a very intuitive approach to building private algorithms, but it is not private in general. The private learner for parity illustrates both why this technique can leak private information and how it can sometimes be repaired based on special (in this case, algebraic) structure.

The interesting direction of the equivalence between SQ and local learners (3) is proved via a simulation of any local algorithm by a corresponding SQ algorithm. We found this simulation surprising since local protocols can, in general, have very complex structure (see, e.g., ). The SQ algorithm proceeds by a direct simulation of the output of the randomization operators. For a given input distribution D\mathcal{D} and any operator RR, one can sample from the corresponding output distribution R(D)R(\mathcal{D}) via rejection sampling. We show that if RR is differentially private, the rejection probabilities can be approximated via low-accuracy SQ queries to D\mathcal{D}.

Finally, the separation between adaptive and nonadaptive SQ (4) uses a Fourier analytic argument inspired by Kearns’ SQ lower bound for parity .

1.3 Classes of Private Learning Algorithms

We can summarize our results via a complexity-theoretic picture of learnable and privately learnable concept classes (more precisely, the members of the classes are pairs of concept classes and example distributions). In order to make asymptotic statements, we measure complexity in terms of the length dd of the binary description of examples.

We first consider learners that use a polynomial (in dd) number of samples and output a hypothesis that is described using a polynomial number of bits, but have unlimited computation time. Let PAC∗{\text{\sf PAC}}^{*} denote the set of concept classes that are learnable by such algorithms ignoring privacy, and let PPAC∗{\text{\sf PPAC}}^{*} denote the subset of PAC∗{\text{\sf PAC}}^{*} learnable by differentially privateDifferential privacy is quantified by a real parameter ϵ>0\epsilon>0. To make qualitative statements, we look at algorithms where ϵ→0\epsilon\to 0 as d→∞d\to\infty. Taking ϵ=1/dc\epsilon=1/d^{c} for any constant c>0c>0 would yield the same class. algorithms.

Since we restrict the learner’s output to a polynomial number of bits, the hypothesis classes of the algorithms are de facto limited to have size at most exp⁡(poly(d))\exp(poly(d)). Thus, the generic private learner (point (1) in the introduction) will use a polynomial number of samples, and PAC∗=PPAC∗{\text{\sf PAC}}^{*}={\text{\sf PPAC}}^{*}.

We can similarly interpret the other results above. Within PAC∗{\text{\sf PAC}}^{*}, we can consider subsets of concepts learnable by SQ algorithms (SQ∗{\text{\sf SQ}}^{*}), nonadaptive SQ algorithms (NASQ∗{\text{\sf NASQ}}^{*}), local interactive algorithms (LI∗{\text{\sf LI}}^{*}) and local noninteractive algorithms (LNI∗{\text{\sf LNI}}^{*}). We obtain the following picture (see page 2):

The equality of LI∗{\text{\sf LI}}^{*} and SQ∗{\text{\sf SQ}}^{*}, and of LNI∗{\text{\sf LNI}}^{*} and NASQ∗{\text{\sf NASQ}}^{*}, follow from the SQ simulation of local algorithms (Theorem 5.14). The parity and masked-parity concept classes separate PPAC∗{\text{\sf PPAC}}^{*} from SQ∗{\text{\sf SQ}}^{*} and SQ∗{\text{\sf SQ}}^{*} from NASQ∗{\text{\sf NASQ}}^{*}, respectively (Corollaries 5.15 and 5.17). (Note: The separation of PPAC∗{\text{\sf PPAC}}^{*} from SQ∗{\text{\sf SQ}}^{*} holds even for distribution-free learning; in contrast, the separation of SQ∗{\text{\sf SQ}}^{*} from NASQ∗{\text{\sf NASQ}}^{*} holds for learnability under a specific distribution on examples, since the adaptive SQ learner for MASKED-PARITY requires a uniform distribution on examples.)

When we take computational efficiency into account, the picture changes. The relation between local and SQ classes remain the same modulo a technical restriction on the randomization operators (Definition 5.13). SQ remains distinct from PPAC since parity is efficiently learnable privately. However, it is an open question whether concept classes which can be efficiently learned can also be efficiently learned privately.

2 Related Work

Prior to this work, the literature on differential privacy studied function approximation tasks (e.g. ), with the exception of the work of McSherry and Talwar on mechanism design . Nevertheless, several of these prior results have direct implications to machine learning-related problems. Blum et al. considered a particular class of learning algorithms (SQ), and showed that algorithms in the class could be simulated using noisy function evaluations. In an independent, unpublished work, Chaudhuri, Dwork, and Talwar considered a version of private learning in which privacy is afforded only to input labels, but not to examples. Other works considered specific machine learning problems such as mining frequent itemsets , kk-means clustering , learning decision trees , and learning mixtures of Gaussians .

As mentioned above, a subsequent result of Blum, Ligett and Roth on approximating classes of low-VC-dimension functions was inspired by our generic agnostic learner. We discuss their result further in Section 3.1. Since the original version of our work, there have also been several results connecting differential privacy to more “statistical” notions of utility, such as consistency of point estimation and density estimation .

Our separation of interactive and noninteractive protocols in the local model (3) also has a precedent: Dwork et al. separated interactive and noninteractive private protocols in the centralized model, where the user accesses the data via a server that runs differentially private algorithms on the database and sends back the answers. That separation has a very different flavor from the one in this work: any example of a computation that cannot be performed noninteractively in the centralized model must rely on the fact that the computational task is not defined until after the first answer from the server is received. (Otherwise, the user can send an algorithm for that task to the server holding the data, thus obviating the need for interaction.) In contrast, we present a computational task that is hard for noninteractive local algorithms – learning masked parity – yet is defined in advance.

In the machine learning literature, several notions similar to differential privacy have been explored under the rubric of “algorithmic stability” . The most closely related notion is change-one error stability, which measures how much the generalization error changes when an input is changed (see the survey ). In contrast, differential privacy measures how the distribution over the entire output changes—a more complex measure of stability (in particular, differential privacy implies change-one error stability). A different notion, stability under resampling of the data from a given distribution , is connected to the sample-and-aggregate method of but is not directly relevant to the techniques considered here. Finally, in a different vein, Freund, Mansour and Schapire used a weighted averaging technique with the same weights as the sampler in our generic learner to reduce generalization error (see Section 3.1).

Preliminaries

A (randomized) algorithm (in our context, this will usually be a learning algorithm) is private if neighboring databases induce nearby distributions on its outcomes:

The probability is taken over the random coins of A\mathcal{A}.

In , the notion above was called “indistinguishability”. The name “differential privacy” was suggested by Mike Schroeder, and first appeared in Dwork .

Differential privacy composes well (see, e.g., ):

One method for obtaining efficient differentially private algorithms for approximating real-valued functions is based on adding Laplacian noise to the true answer. Let Lap(λ)\mathop{\rm{Lap}}\nolimits(\lambda) denote the Laplace probability distribution with mean , standard deviation 2λ\sqrt{2}\lambda, and p.d.f. f(x)=12λe−∣x∣/λf(x)=\frac{1}{2\lambda}e^{-|x|/\lambda}.

2 Preliminaries from Learning Theory

Let D\mathcal{D} be a distribution over labeled examples in Xd×YdX_{d}\times Y_{d}. A learning algorithm is given access to D\mathcal{D} (the method for accessing D\mathcal{D} depends on the type of learning algorithm). It outputs a hypothesis h:Xd→Ydh:X_{d}\to Y_{d} from a hypothesis class H={Hd}d∈N\mathcal{H}=\{\mathcal{H}_{d}\}_{d\in\N}. The goal is to minimize the misclassification error of hh on D\mathcal{D}, defined as

The success of a learning algorithm is quantified by parameters α\alpha and β\beta, where α\alpha is the desired error and β\beta bounds the probability of failure to output a hypothesis with this error. Error measures other than misclassification are considered in supervised learning (e.g., L22L_{2}^{2}). We study only misclassification error here, since for binary labels it is equivalent to the other common error measures.

PAC learning algorithms are frequently designed assuming a promise that the examples are labeled consistently with some target concept cc from a class C\mathcal{C}: namely, c∈Cdc\in\mathcal{C}_{d} and y=c(x)y=c(x) for all (x,y)(x,y) in the support of D\mathcal{D}. In that case, we can think of D\mathcal{D} as a distribution only over examples XdX_{d}. To avoid ambiguity, we use X\mathcal{X} to denote a distribution over XdX_{d}. In the PAC setting, err(h)=Pr⁡x∼X[h(x)≠c(x)].{\text{\it err}}(h)=\Pr_{x\sim\mathcal{X}}[h(x)\neq c(x)].

Class C\mathcal{C} is (inefficiently) PAC learnable if there exists some hypothesis class H\mathcal{H} and a PAC learner A\mathcal{A} such that A\mathcal{A} PAC learns C\mathcal{C} using H\mathcal{H}. Class C\mathcal{C} is efficiently PAC learnable if A\mathcal{A} runs it time polynomial in d,1/αd,1/\alpha, and log⁡(1/β).\log(1/\beta).

Remark: Our definition deviates slightly from the standard one (see, e.g., ) in that we do not take into consideration the size of the concept cc. This choice allows us to treat PAC learners and agnostic learners identically. One can change Definition 2.4 so that the number of samples depends polynomially also on the size of cc without affecting any of our results significantly.

Agnostic learning is an extension of PAC learning that removes assumptions about the target concept. Roughly speaking, the goal of an agnostic learner for a concept class C\mathcal{C} is to output a hypothesis h∈Hh\in\mathcal{H} whose error with respect to the distribution is close to the optimal possible by a function from C\mathcal{C}. In the agnostic setting, err(h)=Pr⁡(x,y)∼D[h(x)≠y]{\text{\it err}}(h)=\Pr_{(x,y)\sim\mathcal{D}}[h(x)\neq y].

(Efficiently) agnostically learnable is defined identically to (efficiently) PAC learnable with two exceptions: (i) the data are drawn from an arbitrary distribution D\mathcal{D} on Xd×YdX_{d}\times Y_{d}; (ii) instead of Equation 1, the output of A\mathcal{A} has to satisfy:

Definitions 2.4 and 2.5 capture distribution-free learning, in that they do not assume a particular form for the distributions X\mathcal{X} or D\mathcal{D}. In Section 5.3, we also consider learning algorithms that assume a specific distribution D\mathcal{D} on examples (but make no assumption on which concept in C\mathcal{C} labels the examples). When we discuss such algorithms, we specify D\mathcal{D} explicitly; without qualification, “learning” refers to distribution-free learning.

The definitions above are sufficiently detailed to allow for exact complexity statements (e.g., “A\mathcal{A} learns C\mathcal{C} using n(α,β)n(\alpha,\beta) examples and time O(t)O(t)”), and the upper and lower bounds in this paper are all stated in this language. However, we also focus on two broader measures to allow for qualitative statements: (a) polynomial sample complexity is the default notion in our definitions. With the novel restriction of privacy, it is not a priori clear which concept classes can be learned using few examples even if we ignore computation time. (b) We use the term efficient private learning to impose the additional restriction of polynomial computation time (which implies polynomial sample complexity).

Private PAC and Agnostic Learning

We define private PAC learners as algorithms that satisfy definitions of both differential privacy and PAC learning. We emphasize that these are qualitatively different requirements. Learning must succeed on average over a set of examples drawn i.i.d. from D\mathcal{D} (often under the additional promise that D\mathcal{D} is consistent with a concept from a target class). Differential privacy, in contrast, must hold in the worst case, with no assumptions on consistency.

[Privacy]\sf[Privacy] For all ϵ>0\epsilon>0, algorithm A(ϵ,⋅,⋅,⋅)\mathcal{A(\epsilon,\cdot,\cdot,\cdot)} is ϵ\epsilon-differentially private (Definition 2.1);

[Utility]\sf[Utility] Algorithm A\mathcal{A} PAC learns C\mathcal{C} using H\mathcal{H} (Definition 2.4).

C\mathcal{C} is efficiently privately PAC learnable if A\mathcal{A} runs in time polynomial in d,1/ϵ,1/αd,1/\epsilon,1/\alpha, and log⁡(1/β).\log(1/\beta).

(Efficient) private agnostic learning is defined analogously to (efficient) private PAC learning with Definition 2.5 replacing Definition 2.4 in the utility condition.

Evaluating the quality of a particular hypothesis is easy: one can privately compute the fraction of the data it classifies correctly (enabling cross-validation) using the sum query framework of . The difficulty of constructing private learners lies in finding a good hypothesis in what is typically an exponentially large space.

In this section, we present a private analogue of a basic consistent learning result, often called the cardinality version of Occam’s razorWe discuss the relationship to the “compression version” of Occam’s razor at the end of this section.. This classical result shows that a PAC learner can weed out all bad hypotheses given a number of labeled examples that is logarithmic in the size of the hypothesis class (see [42, p. 35]). Our generic private learner is based on the exponential mechanism of McSherry and Talwar .

Since the score ranges from −n-n to 0, hypotheses with low empirical error are exponentially more likely to be selected than ones with high error.

The algorithm Aqϵ\mathcal{A}^{\epsilon}_{q} is ϵ\epsilon-differentially private.

For all d∈Nd\in\N, any concept class Cd\mathcal{C}_{d} whose cardinality is at most exp⁡(poly(d))\exp({\mathop{\rm{poly}}\nolimits(d)}) is privately agnostically learnable using Hd=Cd\mathcal{H}_{d}=\mathcal{C}_{d}. More precisely, the learner uses n=O((ln⁡∣Hd∣+ln⁡1β)⋅max⁡{1ϵα,1α2})n=O((\ln|\mathcal{H}_{d}|+\ln\frac{1}{\beta})\cdot\max\{\frac{1}{\epsilon\alpha},\frac{1}{\alpha^{2}}\}) labeled examples from D\mathcal{D}, where ϵ,α\epsilon,\alpha, and β\beta are parameters of the private learner. (The learner might not be efficient.)

Let Aqϵ\mathcal{A}^{\epsilon}_{q} be as defined above. The privacy condition in Definition 3.1 is satisfied by Lemma 3.3.

By Chernoff-Hoeffding bounds (see Theorem A.2 in Appendix A),

for all hypotheses h∈Hdh\in\mathcal{H}_{d}. Hence,

Now set ρ=α/3\rho=\alpha/3. If err(h)≥OPT+α{\text{\it err}}(h)\geq OPT+\alpha then ∣err(h)−errT(h)∣≥α/3|{\text{\it err}}(h)-{\text{\it err}}_{T}(h)|\geq\alpha/3 or errT(h)≥OPT+2α/3{\text{\it err}}_{T}(h)\geq OPT+2\alpha/3. Thus Pr⁡[E]≤∣Hd∣(2exp⁡(−2nα2/9)+exp⁡(−ϵnα/6))≤β\Pr[E]\leq|\mathcal{H}_{d}|(2\exp(-2n\alpha^{2}/9)+\exp(-\epsilon n\alpha/6))\leq\beta where the last inequality holds for n≥6((ln⁡∣Hd∣+ln⁡1β)⋅max⁡{1ϵα,1α2})n\geq 6\left((\ln|\mathcal{H}_{d}|+\ln\frac{1}{\beta})\cdot\max\{\frac{1}{\epsilon\alpha},\frac{1}{\alpha^{2}}\}\right). ∎

Remark: In the non-private agnostic case, the standard Occam’s razor bound guarantees that O((log⁡∣Cd∣+log⁡(1/β))/α2)O((\log|\mathcal{C}_{d}|+\log(1/\beta))/\alpha^{2}) labeled examples suffice to agnostically learn a concept class Cd\mathcal{C}_{d}. The bound of Theorem 3.4 differs by a factor of O(αϵ)O(\frac{\alpha}{\epsilon}) if α>ϵ\alpha>\epsilon, and does not differ at all otherwise. For (non-agnostic) PAC learning, the dependence on α\alpha in the sample size for both the private and non-private versions improves to 1/α1/\alpha. In that case the upper bounds for private and non-private learners differ by a factor of O(1/ϵ)O(1/\epsilon). Finally, the theorem can be extended to settings where Hd≠Cd\mathcal{H}_{d}\neq\mathcal{C}_{d}, but in this case using the same sample complexity the learner outputs a hypothesis whose error is close to the best error attainable by a function in Hd\mathcal{H}_{d}.

The private agnostic learner has the following important consequence: If some concept class Cd\mathcal{C}_{d} is learnable by any algorithm A\mathcal{A}, not necessarily a private one, and A\mathcal{A}’s output length in bits is polynomially bounded, then there is a (possibly exponential time) private algorithm that learns Cd\mathcal{C}_{d} using a polynomial number of samples. Since A\mathcal{A}’s output is polynomially long, A\mathcal{A}’s hypothesis class Hd\mathcal{H}_{d} must have size at most 2poly(d)2^{\mathop{\rm{poly}}\nolimits(d)}. Since A\mathcal{A} learns Cd\mathcal{C}_{d} using Hd\mathcal{H}_{d}, class Hd\mathcal{H}_{d} must contain a good hypothesis. Thus, our private learner will learn Cd\mathcal{C}_{d} using Hd\mathcal{H}_{d} with sample complexity linear in log⁡∣Hd∣\log|\mathcal{H}_{d}|.

It is most natural to state our result as an analogue of the cardinality version of Occam’s razor, which bounds generalization error in terms of the size of the hypothesis class. However, our result can be extended to the compression version, which captures the general relationship between compression and learning (we borrow the “cardinality version” terminology from ). This latter version states that any algorithm which “compresses” the data set, in the sense that it finds a consistent hypothesis which has a short description relative to the number of samples seen so far, is a good learner (see and [42, p. 34]).

Compression by itself does not imply privacy, because the compression algorithm’s output might encode a few examples in the clear (for example, the hyperplane output by a support vector machine is defined via a small number of actual data points). However, Theorem 3.4 can be extended to provide a private analogue of the compression version of Occam’s razor. If there exists an algorithm that compresses, in the sense above, then there also exists a private PAC learner which does not have fixed sample complexity, but uses an expected number of samples similar to that of the compression algorithm. The private learner proceeds in rounds: at each round it requests twice as many examples as in the previous round, and uses a restricted hypothesis class consisting of sufficiently concise hypotheses from the original class H\mathcal{H}. We omit the straightforward details.

2 Private Learning with VC dimension Sample Bounds

In the non-private case one can also bound the sample size of a PAC learner in terms of the Vapnik-Chervonenkis (VC) dimension of the concept class.

A set S⊆XdS\subseteq X_{d} is shattered by a concept class Cd\mathcal{C}_{d} if Cd\mathcal{C}_{d} restricted to SS contains all 2∣S∣2^{|S|} possible functions from SS to {0,1}\{0,1\}. The VC dimension of Cd\mathcal{C}_{d}, denoted VCDIM(Cd)VCDIM(\mathcal{C}_{d}), is the cardinality of a largest set SS shattered by Cd\mathcal{C}_{d}.

We can extend Theorem 3.4 to classes with finite VC dimension, but the resulting sample complexity also depends logarithmically on the size of the domain from which examples are drawn. Recent results of Beimel et al. show that for “proper” learning, the dependency is in fact necessary; that is, the VC dimension alone is not sufficient to bound the sample complexity of proper private learning. It is unclear if the dependency is necessary in general.

Every concept class Cd\mathcal{C}_{d} is privately agnostically learnable using hypothesis class Hd=Cd\mathcal{H}_{d}=\mathcal{C}_{d} with n=O((VCDIM(Cd)⋅ln⁡∣Xd∣+ln⁡1β)⋅max⁡{1ϵα,1α2})n=O((VCDIM(\mathcal{C}_{d})\cdot\ln|X_{d}|+\ln\frac{1}{\beta})\cdot\max\{\frac{1}{\epsilon\alpha},\frac{1}{\alpha^{2}}\}) labeled examples from D\mathcal{D}. Here, ϵ,α\epsilon,\alpha, and β\beta are parameters of the private agnostic learner, and VCDIM(Cd)VCDIM(\mathcal{C}_{d}) is the VC dimension of Cd\mathcal{C}_{d}. (The learner is not necessarily efficient.)

Sauer’s lemma (see, e.g., ) implies that there are O(∣Xd∣VCDIM(Cd))O(|X_{d}|^{VCDIM(\mathcal{C}_{d})}) different labelings of XdX_{d} by functions in Cd\mathcal{C}_{d}. We can thus run the generic learner of the previous section with a hypothesis class of size ∣Hd∣=O(∣Xd∣VCDIM(Cd))|\mathcal{H}_{d}|=O(|X_{d}|^{VCDIM(\mathcal{C}_{d})}). The statement follows directly. ∎

Our original proof of the corollary used a result of Blum, Ligget and Roth (which was inspired, in turn, by our generic learning algorithm) on generating synthetic data. The simpler proof above was pointed out to us by an anonymous reviewer.

In their full generality, the generic learning results of the previous sections (Theorems 3.4 and 3.6) produce well-defined randomized maps, but not necessarily “algorithms” in the sense of “functions uniformly computable by Turing machines”. This is because the concept class and example domain may themselves not be computable (nor even recognizable) uniformly (imagine, for example, a concept class indexed by elements of the halting problem). It is commonly assumed in the learning literature that elements of the concept class and domain can be computed/recognized by a Turing machine and some bound on the length of their binary representations is known. In this case, the generic learners can be implemented by randomized Turing machines with finite expected running time.

An Efficient Private Learner for PARITY

Let PARITY be the class of parity functions cr:{0,1}d→{0,1}c_{r}:\{0,1\}^{d}\rightarrow\{0,1\} indexed by r∈{0,1}dr\in\{0,1\}^{d}, where cr(x)=r⊙xc_{r}(x)=r\odot x denotes the inner product modulo 22. In this section, we present an efficient private PAC learning algorithm for PARITY. The main result is stated in Theorem 4.4.

The proof of A\mathcal{A}’s utility follows by considering all the possible situations in which the algorithm fails to satisfy the error bound, and by bounding the probabilities with which these situations occur.

By standard arguments in learning theory , ∣S∣≥1α(dln⁡2+ln⁡1β)\displaystyle|S|\geq\frac{1}{\alpha}\left(d\ln 2+\ln\frac{1}{\beta}\right) labeled examples are sufficient for learning PARITY with error α\alpha and failure probability β\beta. Since A\mathcal{A} adds each element of [n][n] to SS independently with probability p=ϵ/4p=\epsilon/4, the expected size of SS is pn=ϵn/4pn=\epsilon n/4. By the Chernoff bound (Theorem A.1), ∣S∣≥ϵn/8|S|\geq\epsilon n/8 with probability at least 1−e−ϵn/161-e^{-\epsilon n/16}. We set β=14\beta=\frac{1}{4} and pick nn such that ϵn/8≥1α(dln⁡2+ln⁡4)\epsilon n/8\geq\frac{1}{\alpha}\left(d\ln 2+\ln 4\right).

Algorithm A\mathcal{A} is ϵ\epsilon-differentially private.

As mentioned above, the key observation in the following proof is that including of any single point in the sample set SS increases the probability of a hypothesis being output by at most 2.

This claim is proved below. For now, we can plug it into Eqn. (4) to get

The first inequality holds since p=ϵ/4p=\epsilon/4 and ϵ≤1/2\epsilon\leq 1/2. This establishes Eqn. (2). The proof of Eqn. (3) is similar:

In the last line, the first inequality follows from the fact that on any input, A\mathcal{A} outputs ⊥\perp with probability at least 1/21/2. This completes the proof of the lemma. ∎

The last inequality holds because in 2 (the finite field with 2 elements where arithmetic is performed modulo 2), adding a consistent linear constraint either reduces the space of solutions by a factor of 2 (if the constraint is linearly independent from VTV_{T}) or does not change the solutions space (if it is linearly dependent on the previous constraints). The constraint indexed by ii has to be consistent with constraints indexed by TT, since both probabilities are not . ∎

It remains to amplify the success probability of A\mathcal{A}. To do so, we construct a private version of the standard (non-private) algorithm for amplifying a learner’s success probability. The standard amplification algorithm generates a set of hypotheses by invoking A\mathcal{A} multiple times on independent examples, and then outputs a hypothesis from the set with the least training error as evaluated on a fresh test set (see for details). Our private amplification algorithm differs from the standard algorithm only in the last step: it adds Laplacian noise to the training error to obtain a private version of the error, and then uses the perturbed training error instead of the true training error to select the best hypothesis from the set. Alternatively, we could use the generic learner from Theorem 3.4 to select among the candidate hypotheses; the resulting algorithm has the same asymptotic behavior as the algorithm we discuss here. We chose the algorithm that we felt was simplest. Recall that Lap(λ)\mathop{\rm{Lap}}\nolimits(\lambda) denotes the Laplace probability distribution with mean , standard deviation 2λ\sqrt{2}\lambda, and p.d.f. f(x)=12λe−∣x∣/λf(x)=\frac{1}{2\lambda}e^{-|x|/\lambda}.

Algorithm A∗\mathcal{A}^{*} efficiently and privately PAC learns PARITY (according to Definition 3.1) with O(dlog⁡(1/β)ϵα)O\left(\frac{d\log(1/\beta)}{\epsilon\alpha}\right) samples.

The theorem follows from Lemmas 4.5 and 4.6 that, respectively, prove privacy and utility of A∗\mathcal{A}^{*}.

Algorithm A∗\mathcal{A}^{*} is ϵ\epsilon-differentially private.

We prove that even if A∗\mathcal{A}^{*} released all hypotheses hjh_{j}, computed in Step 5, together with the corresponding perturbed error estimates err^T(hj){\widehat{\text{\it err}}_{T}}(h_{j}), it would still be ϵ\epsilon-differentially private. Since the output of A∗\mathcal{A}^{*} can be computed solely from this information, Claim 2.2 implies that A∗\mathcal{A}^{*} is ϵ\epsilon-differentially private.

A∗(⋅,ϵ,⋅,⋅)\mathcal{A}^{*}(\cdot,\epsilon,\cdot,\cdot) PAC learns PARITY with sample complexity n=O(dlog⁡(1/β)ϵα)n=O(\frac{d\log(1/\beta)}{\epsilon\alpha}).

Consider the set of candidate hypotheses {h1,...,hk}\{h_{1},...,h_{k}\} output by the invocations of A\mathcal{A} inside of A∗\mathcal{A}^{*}. We call a hypothesis hh good if err(h)≤α5=α′{\text{\it err}}({h})\leq\frac{\alpha}{5}=\alpha^{\prime}. We call a hypothesis h{h} bad if err(h)≥α=5α′{\text{\it err}}({h})\geq\alpha=5\alpha^{\prime}. Note that good and bad refer to a hypothesis’ true error rate on the underlying distribution.

With probability at least 1−β′1-\beta^{\prime}, one of the invocations of A\mathcal{A} outputs a good hypothesis.

Conditioned on any particular outcome {h1,...,hk}\{h_{1},...,h_{k}\} of the invocations of A\mathcal{A}, with probability at least 1−β′1-\beta^{\prime}, both:

Every good hypothesis hjh_{j} in {h1,...,hk}\{h_{1},...,h_{k}\} has training error errT(hj)≤2α′{\text{\it err}_{T}}(h_{j})\leq 2\alpha^{\prime}.

Every bad hypothesis hjh_{j} in {h1,...,hk}\{h_{1},...,h_{k}\} has training error errT(hj)≥4α′{\text{\it err}_{T}}(h_{j})\geq 4\alpha^{\prime}.

Conditioned on any particular hypotheses {h1,...,hk}\{h_{1},...,h_{k}\} and training errors errT(h1),...,errT(hk){\text{\it err}_{T}}(h_{1}),...,{\text{\it err}_{T}}(h_{k}), with probability at least 1−β′1-\beta^{\prime}, for all jj simultaneously, ∣err^T(hj)−errT(hj)∣<α′|{\widehat{\text{\it err}}_{T}}(h_{j})-{\text{\it err}_{T}}(h_{j})|<\alpha^{\prime}.

Suppose the events described in the three claims above all occur. Then some good hypothesis has perturbed training error less than 3α′3\alpha^{\prime}, yet all bad hypotheses have perturbed training error greater than 3α′3\alpha^{\prime}. Thus, the hypothesis hj∗h_{j^{*}} with minimal perturbed error err^T(hj∗){\widehat{\text{\it err}}_{T}}(h_{j^{*}}) is not bad, that is, has true error at most α\alpha. By the claims above, the probability that all three events occur is at least 1−3β′=1−β1-3\beta^{\prime}=1-\beta, and so the lemma holds. We now prove the claims.

Second, fix a particular sequence of candidate hypotheses h1,...,hkh_{1},...,h_{k}. For each jj, the training error errT(hj){\text{\it err}_{T}}(h_{j}) is the average of ss Bernouilli trials, each with success probability err(hj){\text{\it err}}(h_{j}). (Crucially, the training set z^\hat{z} is independent of the data zˉ\bar{z} used to find the candidate hypotheses). To bound the training error, we apply the multiplicative Chernoff bound (Theorem A.1) with n=sn=s and p=err(hj)p={\text{\it err}}(h_{j}). Here, p≤α′p\leq\alpha^{\prime} if hjh_{j} is good, and p≥5α′p\geq 5\alpha^{\prime} if hjh_{j} is bad.

By the multiplicative Chernoff bound (Theorem A.1) if s≥c1α′ln⁡kβ′s\geq\frac{c_{1}}{\alpha^{\prime}}\ln\frac{k}{\beta^{\prime}} (for appropriate constant c1c_{1}), then

By a union bound, all the training errors are (simultaneously) approximately correct, with probability at least 1−k⋅β′k=1−β′1-k\cdot\frac{\beta^{\prime}}{k}=1-\beta^{\prime}.

Finally, we prove the third claim. Consider a particular candidate hypothesis hjh_{j}. If s≥c2kα′ϵln⁡kβ′s\geq\frac{c_{2}k}{\alpha^{\prime}\epsilon}\ln\frac{k}{\beta^{\prime}} (for appropriate constant c2c_{2}), then (by using the c.d.f.The cumulative distribution function of the Laplacian distribution Lap(λ)\mathop{\rm{Lap}}\nolimits(\lambda) is F(x)=12exp⁡(xλ)F(x)=\frac{1}{2}\exp\left(\frac{x}{\lambda}\right) if x<0x<0 and 1−12exp⁡(−xλ)1-\frac{1}{2}\exp\left(-\frac{x}{\lambda}\right) if x≥0x\geq 0. of the Laplacian distribution)

By a union bound, all kk perturbed estimates are within α′\alpha^{\prime} of their correct value with probability at least 1−k⋅β′k=1−β′1-k\cdot\frac{\beta^{\prime}}{k}=1-\beta^{\prime}. This probability is taken over the choice of Laplacian noise, and so the bound holds independently of the particular hypotheses or their training error estimates. ∎

Remark: In the non-private case O((d+ln⁡(1/β))/α)O((d+\ln(1/\beta))/\alpha) labels are sufficient for learning PARITY. Theorem 4.4 shows that the upper bounds on the sample size of private and non-private learners differ only by a factor of O(ln⁡(1/β)/ϵ)O(\ln(1/\beta)/\epsilon).

Local Protocols and SQ learning

In this section, we relate private learning in the local model to the SQ model of Kearns . We first define the two models precisely. We then prove their equivalence (Section 5.1), and discuss the implications for learning (Section 5.2). Finally, we define the concept class MASKED-PARITY and prove that it separates interactive from noninteractive local learning (Section 5.3).

An ϵ\epsilon-local randomizer R:D→WR:D\rightarrow W is an ϵ\epsilon-differentially private algorithm that takes a database of size n=1n=1. That is, Pr⁡[R(u)=w]≤eϵPr⁡[R(u′)=w]\Pr[R(u)=w]\leq e^{\epsilon}\Pr[R(u^{\prime})=w] for all u,u′∈Du,u^{\prime}\in D and all w∈Ww\in W. The probability is taken over the coins of RR (but not over the choice of the input).

Note that since a local randomizer works on a data set of size 11, uu and u′u^{\prime} are neighbors for all u,u′∈Du,u^{\prime}\in D. Thus, this definition is consistent with our previous definition of differential privacy.

By Claim 2.2, ϵ\epsilon-local algorithms are ϵ\epsilon-differentially private.

In the statistical query (SQ) model, algorithms access statistical properties of a distribution rather than individual examples.

Let D\mathcal{D} be a distribution over a domain DD. An SQ oracle SQDSQ_{\mathcal{D}} takes as input a function g:D→{+1,−1}g:D\rightarrow\{+1,-1\} and a tolerance parameter τ∈(0,1)\tau\in(0,1); it outputs vv such that:

An SQ algorithm accesses the distribution D\mathcal{D} via the SQ oracle SQDSQ_{\mathcal{D}}. SQ algorithms that prepare all their queries to SQDSQ_{\mathcal{D}} before receiving any answers are called nonadaptive; otherwise, they are called adaptive.

Note that we do not restrict g()g() to be efficiently computable. We will distinguish later those algorithms that only make queries to efficiently computable functions g()g().

1 Equivalence of Local and SQ Models

Blum et al. used the fact that sum queries can be answered privately with little noise to show that any efficient SQ algorithm can be simulated privately and efficiently. We show that it can be simulated efficiently even by a local algorithm, albeit with slightly worse parameters.

Furthermore, the simulation is noninteractive if the original SQ algorithm ASQ\mathcal{A}_{\text{SQ}} is nonadaptive. The simulation is efficient if ASQ\mathcal{A}_{\text{SQ}} is efficient.

1.2 Simulation of Local Algorithms by SQ Algorithms

The idea behind the simulation is to sample from a distribution p~(⋅)\widetilde{p}(\cdot) that is within small statistical distance of p(⋅)p(\cdot). We start by applying RR to an arbitrary input (say, 0) in the domain DD and obtaining a sample w∼R(0)w\sim R(\textbf{0}). Let q(w)=Pr⁡[R(0)=w]q(w)=\Pr[R(\textbf{0})=w] (where the probability is taken only over randomness in RR). Since RR is ϵ\epsilon-differentially private, q(w)q(w) approximates p(w)p(w) within a multiplicative factor of eϵe^{\epsilon}. To sample ww from p(⋅)p(\cdot) we use the following rejection sampling algorithm: (i) sample ww according to q(⋅)q(\cdot); (ii) with probability p(w)q(w)eϵ\frac{p(w)}{q(w)e^{\epsilon}}, output ww; (iii) with the remaining probability, repeat from (i).

To carry out this strategy, we must be able to estimate p(w)p(w), which depends on the (unknown) distribution D\mathcal{D}, using only SQ queries. The rough idea is to express p(w)p(w) as the expectation, taken over z∼Dz\sim\mathcal{D}, of the function h(z)=Pr⁡[R(z)=w]h(z)=\Pr[R(z)=w] (where the probability is taken only over the coins of RR). We can use hh as the basis of an SQ query. In fact, to get a sufficiently accurate approximation, we must rescale the function hh somewhat, and keep careful track of the error introduced by the SQ oracle. We present the details in the proof of the following lemma:

We split the simulation over Claims 5.9 and 5.10. In the first claim we simulate noninteractive local algorithms using nonadaptive SQ algorithms. In the second claim we simulate interactive local algorithms using adaptive SQ algorithms.

We show how to simulate an ϵ\epsilon-local randomizer RR using statistical queries to SQDSQ_{\mathcal{D}}. Because the local algorithm is non-interactive, we can assume without loss of generality that it accesses each entry ziz_{i} only once. (Otherwise, one can combine different operators, used to access ziz_{i}, by combining their answers into a vector). Given R:D→WR:D\rightarrow W, we want to sample w∈Ww\in W with probability:

We construct an algorithm BR,ϵ\mathcal{B}_{R,\epsilon} that given tt, β\beta, and access to the SQ oracle, outputs w∈Ww\in W, such that the statistical difference between the output probability distributions of BR,ϵ\mathcal{B}_{R,\epsilon} and the simulated randomizer RR is at most β/t\beta/t. Because the local algorithm makes tt queries, the overall statistical distance between the output distribution of the local algorithm and the distribution resulting from the simulation is at most β\beta, as desired.

An SQ algorithm BR,ϵ(t,β,SQD)\mathcal{B}_{R,\epsilon}(t,\beta,SQ_{\mathcal{D}}) that simulates an ϵ\epsilon-local randomizer R:D→WR:D\rightarrow W. 1. Sample w∼R(0)w\sim R(\textbf{0}). Let q(w)=Pr⁡[R(0)=w]q(w)=\Pr[R(\textbf{0})=w]. 2. Define g:D→g:D\to by g(zi)=Pr⁡[R(zi)=w]−q(w)q(w)(eϵ−e−ϵ)g(z_{i})=\dfrac{\Pr[R(z_{i})=w]-q(w)}{q(w)(e^{\epsilon}-e^{-\epsilon})}, and let τ=β3e2ϵt\tau=\frac{\beta}{3e^{2\epsilon}t}. 3. Query the SQ oracle v=SQD(g,τ)v=SQ_{\mathcal{D}}(g,\tau), and let p~(w)=vq(w)(eϵ−e−ϵ)+q(w)\widetilde{p}(w)=vq(w)(e^{\epsilon}-e^{-\epsilon})+q(w). 4. With probability p~(w)q(w)(1+β3t)eϵ\frac{\widetilde{p}(w)}{q(w)(1+\frac{\beta}{3t})e^{\epsilon}}, output ww. With the remaining probability, repeat from Step 1.

We now show that the statistical distance between the output of BR,ϵ(t,β,SQD)\mathcal{B}_{R,\epsilon}(t,\beta,SQ_{\mathcal{D}}) and the distribution p(⋅)p(\cdot) is at most β/t\beta/t. As mentioned above, our initial approximation p~(⋅)\widetilde{p}(\cdot) of p(⋅)p(\cdot) in Step 1 is obtained by applying RR to some arbitrary input (namely, 0) in the domain DD and sampling w∼R(0)w\sim R(\textbf{0}). Since RR is ϵ\epsilon-differentially private, q(w)=Pr⁡[R(0)=w]q(w)=\Pr[R(\textbf{0})=w] approximates p(w)p(w) within a multiplicative factor of eϵe^{\epsilon}.

However, to carry out the rejection sampling strategy, we need to get a much better estimate of p(w)p(w). Steps 2 and 3 compute such an estimate, p~(w)\widetilde{p}(w), satisfying (with probability 1)

We establish the inclusion (5) below. For now, assume it holds on every iteration. Step 4 is a rejection sampling step which ensures that the output will follow a distribution close to p~(⋅)\widetilde{p}(\cdot). Inclusion (5) guarantees that p~(w)q(w)(1+β3t)eϵ\frac{\widetilde{p}(w)}{q(w)(1+\frac{\beta}{3t})e^{\epsilon}} is at most 1, so the probability in Step 4 is well defined. The difficulty is that the quantity p~(w)\widetilde{p}(w) is not a well-defined function of ww: it depends on the SQ oracle and may vary, for the same ww, from iteration to iteration.

Nevertheless, p~\widetilde{p} is fixed for any given iteration of the algorithm. In the given iteration, any particular element ww gets output with probability q(w)×p~(w)q(w)(1+ϕ)eϵ=p~(w)(1+ϕ)eϵq(w)\times\frac{\widetilde{p}(w)}{q(w)(1+\phi)e^{\epsilon}}=\frac{\widetilde{p}(w)}{(1+\phi)e^{\epsilon}}. The probability that the given iteration terminates (i.e., outputs some ww) is then pterminate=∑wp~(w)(1+ϕ)eϵp_{terminate}=\sum_{w}\frac{\widetilde{p}(w)}{(1+\phi)e^{\epsilon}}. By (5), this probability is in 1±ϕ(1+ϕ)eϵ\frac{1\pm\phi}{(1+\phi)e^{\epsilon}}. Thus, conditioned on the iteration terminating, element ww is output with probability p~(w)(1+ϕ)⋅eϵ⋅pteminate∈1±ϕ1±ϕ⋅p(w)\frac{\widetilde{p}(w)}{(1+\phi)\cdot e^{\epsilon}\cdot p_{teminate}}\in\frac{1\pm\phi}{1\pm\phi}\cdot p(w). Since ϕ≤1/3\phi\leq 1/3, we can simplify this to get

This implies that no matter which iteration produces output, the statistical difference between the distribution of ww and p(⋅)p(\cdot) will be at most 3ϕ=βt3\phi=\frac{\beta}{t}, as desired.

Moreover, since each iteration terminates with probability at least 1−ϕ1+ϕ⋅e−ϵ\frac{1-\phi}{1+\phi}\cdot e^{-\epsilon}, the expected number of iterations is at most 1+ϕ1−ϕ⋅eϵ≤2eϵ\frac{1+\phi}{1-\phi}\cdot e^{\epsilon}\leq 2e^{\epsilon}. Thus, the total expected SQ query complexity of the simulation is O(t⋅eϵ)O(t\cdot e^{\epsilon}).

Plugging in the bounds for vv and q(w)q(w) we get that p~(w)∈(1±τ′)p(w)\widetilde{p}(w)\in(1\pm\tau^{\prime})p(w) where τ′=e2ϵτ=β3t\tau^{\prime}=e^{2\epsilon}\tau=\frac{\beta}{3t}. This establishes (5) and concludes the proof. ∎

As in the previous claim, we show how to simulate the output of the local randomizers during the run of the local algorithm. A difference, however, is that because an entry ziz_{i} may be accessed multiple times, we have to condition our sampling on the outcomes of previous (simulated) applications of local randomizers to ziz_{i}.

More concretely, let R1,R2,...R_{1},R_{2},... be the sequence of randomizers that access the entry ziz_{i}. To simulate Rk(zi)R_{k}(z_{i}), we must take into account the answers a1,…,ak−1a_{1},\ldots,a_{k-1} given by the simulations of R1(zi),…,Rk−1(zi)R_{1}(z_{i}),\ldots,R_{k-1}(z_{i}). We show how to do this using adaptive statistical queries to SQDSQ_{\mathcal{D}}. The notation is the same as in Claim 5.9. We want to output w∈Ww\in W with probability

where RjR_{j} (1≤j≤k−11\leq j\leq k-1) denotes the jjth randomizer applied to ziz_{i}.

As before, we start by sampling w∼R(0)w\sim R(\textbf{0}). Let q(w)=Pr⁡[Rk(0)=w]q(w)=\Pr[R_{k}(\textbf{0})=w]. Note that q(w)q(w) approximates p(w)p(w) within a multiplicative factor of eϵe^{\epsilon} because R1,…,RkR_{1},\ldots,R_{k} are respectively ϵ1\epsilon_{1}-,…,ϵk\ldots,\epsilon_{k}-differentially private, and ϵ1+…+ϵk≤ϵ\epsilon_{1}+\ldots+\epsilon_{k}\leq\epsilon. Hence, we can use the rejection sampling algorithm as in Claim 5.9. Rewrite p(w)p(w):

Conditioned on a particular value of ziz_{i}, the probabilities in the last expression depend only the coins of the randomizers. The outputs of the randomizers are independent conditioned on ziz_{i}, and therefore we can simplify the expression above:

Let p1p_{1} and p2p_{2} denote the numerator and denominator, respectively, in the right hand side of the equation above. Let r1(zi)r_{1}(z_{i}) and r2(zi)r_{2}(z_{i}) denote the values inside the expectations that define p1p_{1} and p2p_{2}, respectively. Namely,

Let tt be the number of queries made by A\mathcal{A}. Setting τ′≤β3t\tau^{\prime}\leq\frac{\beta}{3t} guarantees that the statistical difference between distributions pp and p~\widetilde{p} is at most βt\frac{\beta}{t}, and hence the statistical difference between B\mathcal{B}’s and A\mathcal{A}’s output distributions is at most β\beta. As in Claim 5.9, the expected number of SQ queries for rejection sampling is O(t⋅eϵ)O(t\cdot e^{\epsilon}). ∎

Note that the efficiency of the constructions in Lemma 5.8 depends on the efficiency of computing the functions submitted to the SQ oracle, e.g., the efficiency of computing the probability Pr⁡[R(zi)=w]\Pr[R(z_{i})=w]. We discuss this issue in the next section.

2 Implications for Local Learning

In this section, we define learning in the local and SQ models. The equivalence of the two models follows from the simulations described in the previous sections. An immediate but important corollary is that local learners are strictly less powerful than general private learners.

In order to state the equivalence between SQ and local learning, we require the following efficiency condition for a local randomizer.

Let R:D→WR:D\rightarrow W be an ϵ\epsilon-local randomizer. The randomizer is transparent if both: (i) for all inputs u∈Du\in D, the time needed to evaluate RR; and (ii) for all inputs u∈Du\in D and outputs w∈Ww\in W the time taken to compute the probability Pr⁡[R(u)=w]\Pr[R(u)=w], are polynomially bounded in the size of the input and 1/ϵ1/\epsilon.

As stated, this definition requires exact computation of probabilities. This may not make sense on a finite-precision machine, since for many natural randomizers the transition probabilities are irrational. One can relax the requirement to insist that relevant probabilities are computable with additive error at most ϕ\phi in time polynomial in log⁡(1ϕ)\log(\frac{1}{\phi}).

All local protocols that have appeared in the literature are transparent, at least in this relaxed sense.

In the equivalences of the previous sections, transparency of local randomizers corresponds directly to efficient computability of the function gg in an SQ query. To see why, consider first the simulation of SQ algorithms by local algorithms: if the original SQ algorithm is efficient (that is, query gg can be evaluated in polynomial time) then the local randomizer R(u)=g(u)+ηR(u)=g(u)+\eta can also be evaluated in polynomial time for all u∈Du\in D. Furthermore, it is simple to estimate for all inputs u∈Du\in D and outputs w∈Ww\in W the probability Pr⁡[R(u)=w]\Pr[R(u)=w] since R(u)R(u) is a Laplacian random variable with known parameters. Second, in the SQ simulation of a local algorithm, the functions g(zi)=Pr⁡[R(zi)=w]−q(w)q(w)(eϵ−e−ϵ)g(z_{i})=\frac{\Pr[R(z_{i})=w]-q(w)}{q(w)(e^{\epsilon}-e^{-\epsilon})} that are constructed can be evaluated efficiently precisely when the local randomizers are transparent.

We can now state the main result of this section, which follows from Lemmas 5.6 and 5.8, along with the correspondence between transparent randomizers and efficient SQ queries.

Furthermore, the simulations guarantee the following additional properties: (i) an efficient SQ learner is simulatable by an efficient local learner that uses only transparent randomizers; (ii) an efficient local learner that uses only transparent randomizers is simulatable by an efficient SQ learner; (iii) a nonadaptive SQ (resp. noninteractive local) learner is simulatable by a noninteractive local (resp. nonadaptive SQ) learner.

Now we can use lower bounds for SQ learners for PARITY (see, e.g., ) to demonstrate limitations of local learners. The lower bound of rules out SQ learners for PARITY that use at most 2d/32^{d/3} queries of tolerance at least 2−d/32^{-d/3}, even (a) allowing for unlimited computing time, (b) under the restriction that examples be drawn from the uniform distribution and (c) allowing a small probability of error (see Footnote 6). Since PARITY is (efficiently) privately learnable (Theorem 4.4), and since local learning is equivalent to SQ learning, we obtain:

Concept classes learnable by local learners are a strict subset of concept classes PAC learnable privately. This holds both with and without computational restrictions.

3 The Power of Interaction in Local Protocols

To complete the picture of locally learnable concept classes, we consider how interaction changes the power of local learners (and, equivalently, how adaptivity changes SQ learning). As mentioned in the introduction, interaction is very costly in typical applications of local algorithms. We show that this cost is sometimes necessary, by giving a concept class that an interactive algorithm can learn efficiently with a polynomial number of examples drawn from the uniform distribution, but for which any noninteractive algorithm requires an exponential number of examples under the same distribution.

Let MASKED-PARITY be the class of functions cr,a:{0,1}d×{0,1}log⁡d×{0,1}→{+1,−1}c_{r,a}:\{0,1\}^{d}\times\{0,1\}^{\log d}\times\{0,1\}\rightarrow\{+1,-1\} indexed by r∈{0,1}dr\in\{0,1\}^{d} and a∈{0,1}a\in\{0,1\}:

where r⊙xr\odot x denotes the inner product of rr and xx modulo 22, and rir_{i} is the iith bit of rr. This concept class divides the domain into two parts (according to the last bit, bb). When b=0b=0, the concept cr,ac_{r,a} behaves either like the PARITY concept indexed by rr, or like its negation, according to the bit aa (the “mask”). When b=1b=1, the concept essentially ignores the input example and outputs some bit of the parity vector rr.

Below, we consider the learnability of MASKED-PARITY={cr,a}\text{\sf MASKED-PARITY}=\{c_{r,a}\} when the examples are drawn from the uniform distribution over the domain {0,1}d+log⁡d+1\{0,1\}^{d+\log d+1}. In Section 5.3.1, we give a adaptive SQ learner for MASKED-PARITY under the uniform distribution. The adaptive learner uses two rounds of communication with the SQ oracle: the first, to learn rr from the b=1b=1 half of the input, and the second, to retrieve the bit aa from the b=0b=0 half of the input via queries that depend on rr.

In Section 5.3.2, we show that no nonadaptive SQ learner which uses 2o(d)2^{o(d)} examples can consistently produce a hypothesis that labels significantly more than 3/43/4 of the domain correctly. The intuition is that as the queries are prepared nonadaptively, any information about rr gained from the b=1b=1 half of the inputs cannot be used to prepare queries to the b=0b=0 half. Since information about aa is contained only in the b=0b=0 half, in order to extract aa, the SQ algorithm is forced to learn PARITY, which it cannot do with few examples. Our separation in the SQ model directly translates to a separation in the local model (using Theorem 5.14).

The following theorem summarizes our results.

There exists an efficient adaptive SQ learner for MASKED-PARITY over the uniform distribution.

No nonadaptive SQ learner can learn MASKED-PARITY (with a polynomial number of queries) even under the uniform distribution on examples. Specifically, there is an SQ oracle O\cal O such that any nonadaptive SQ learner that makes tt queries to O\mathcal{O} over the uniform distribution, all with tolerance at least 2−d/32^{-d/3}, satisfies the following: if the concept crˉ,aˉc_{\bar{r},\bar{a}} is drawn uniformly at random from the set of MASKED-PARITY concepts, then, with probability at least 12−t2d/3+2\frac{1}{2}-\frac{t}{2^{d/3+2}} over crˉ,aˉc_{\bar{r},\bar{a}}, the output hypothesis hh of the learner has err(crˉ,aˉ,h)≥14{\text{\it err}}(c_{\bar{r},\bar{a}},h)\geq\frac{1}{4}.

The concept classes learnable by nonadaptive SQ learners (resp. noninteractive local learners) under the uniform distribution are a strict subset of the concept classes learnable by adaptive SQ learners (resp. interactive local learners) under the uniform distribution. This holds both with and without computational restrictions.

The learning theory literature distinguishes between strong learning, in which the learning algorithm is required to produce hypotheses with arbitrarily low error (as in Definition 2.4, where the parameter α\alpha can be arbitrarily small), and weak learning, in which the learner is only required to produce a hypothesis with error bounded below 1/21/2 by a polynomially small margin. The separation proved in this section (Theorem 5.16) applies only to strong learning: although no nonadaptive SQ learner can produce a hypothesis with error much better than 1/41/4, it is simple to design a nonadaptive weak SQ learner for MASKED-PARITY under the uniform distribution with error exactly 1/4.

In fact, it is impossible to obtain an analogue of our separation for weak learning. The characterization of SQ learnable classes in terms of “SQ dimension” by Blum et al. implies that adaptive and nonadaptive SQ algorithms are equivalent for weak learning. This is not explicit in , but follows from the fact that the weak learner constructed for classes with low SQ dimension is non-adaptive. (Roughly, the learner works by checking if the concept at hand is approximately equal to one of a polynomial number of alternatives; these alternatives depend on the input distribution and the concept class, but not on the particular concept at hand.)

The results of this section concern the learnability of MASKED-PARITY under the uniform distribution. The class MASKED-PARITY does not separate adaptive from nonadaptive distribution-free learners, since MASKED-PARITY cannot be learned by any SQ learner under the distribution which is uniform over examples with b=0b=0 (in that case, learning MASKED-PARITY is equivalent to learning PARITY under the uniform distribution). Separating adaptive from nonadaptive distribution-free SQ learning remains an open problem.

3.1 An Adaptive Strong SQ Learner for MASKED-PARITY over the Uniform Distribution

Our adaptive learner for MASKED-PARITY uses two rounds of communication with the SQ oracle: first, to learn rr from the b=1b=1 half of the input, and second, to retrieve the bit aa from the b=0b=0 half of the input via queries that depend on rr. Theorem 5.16, part (1), follows from the proposition below.

Adaptive SQ Learner AMP\mathcal{A}_{\sf MP} for MASKED-PARITY over the Uniform Distribution 1. For j=1,…,dj=1,\dots,d (in parallel) (a) Define gj:D→{0,1}g_{j}:D\to\{0,1\} by gj(x,i,b,y)=(i=j)  ∧  (b=1)  ∧  (y=−1) ,g_{j}(x,i,b,y)=(i=j)\;\wedge\;(b=1)\;\wedge\;(y=-1)\,, where x∈{0,1}dx\in\{0,1\}^{d}, i∈{0,1}log⁡di\in\{0,1\}^{\log d}, b∈{0,1}b\in\{0,1\}, and y=cr,a(x,i,b)∈{+1,−1}y=c_{r,a}(x,i,b)\in\{+1,-1\}. (b) answerj←SQD(gj,τ),answer_{j}\leftarrow SQ_{\mathcal{D}}(g_{j},\tau), where τ=14d+1\tau=\frac{1}{4d+1}, and r^j←{1if answerj>14d;0otherwise.\hat{r}_{j}\leftarrow\begin{cases}1&\text{if }answer_{j}>\frac{1}{4d};\\ 0&\text{otherwise.}\end{cases} 2. (a) r^←r1^…rd^∈{0,1}d\hat{r}\leftarrow\hat{r_{1}}\dots\hat{r_{d}}\in\{0,1\}^{d} (b) Define gd+1:D→{0,1}g_{d+1}:D\to\{0,1\} by gd+1(x,i,b,y)=(b=0)  ∧  (y≠(−1)r^⊙x) .g_{d+1}(x,i,b,y)=(b=0)\;\wedge\;(y\not=(-1)^{\hat{r}\odot x})\,. where x∈{0,1}dx\in\{0,1\}^{d}, i∈{0,1}log⁡di\in\{0,1\}^{\log d}, b∈{0,1}b\in\{0,1\}, and y=cr,a(x,i,b)∈{+1,−1}y=c_{r,a}(x,i,b)\in\{+1,-1\}. (c) answerd+1←SQD(gd+1,15).answer_{d+1}\leftarrow SQ_{\mathcal{D}}(g_{d+1},\frac{1}{5})., and a^←{1if answerd+1>14;0otherwise.\hat{a}\leftarrow\begin{cases}1&\text{if }answer_{d+1}>\frac{1}{4};\\ 0&\text{otherwise.}\end{cases} (d) Output cr^,a^.c_{\hat{r},\hat{a}}.

The algorithm AMP\mathcal{A}_{\sf MP} efficiently learns MASKED-PARITY (with probability 1) in 2 rounds using d+1d+1 SQ queries computed over the uniform distribution with minimum tolerance 14d+1\frac{1}{4d+1}.

Consider the dd queries in the first round. If rj=1r_{j}=1, then

Note that the functions g1,…,gd+1g_{1},\ldots,g_{d+1} are all computable in time O(d)O(d), and the computations performed by AMP\mathcal{A}_{\sf MP} can be done in time O(d)O(d), so the SQ learner is efficient. ∎

3.2 Impossibility of non-adaptive SQ learning for MASKED-PARITY

The impossibility result (Theorem 5.16, part (2)) for nonadaptive learners uses ideas from statistical query lower bounds (see, e.g., ).

Recall that the distribution D\mathcal{D} is uniform over D={0,1}d+log⁡(d)+1D=\{0,1\}^{d+\log(d)+1}. For functions f,h:{0,1}d+log⁡d+1→{+1,−1}f,h:\{0,1\}^{d+\log d+1}\rightarrow\{+1,-1\}, recall that err(f,h)=Pr⁡x∼D[f(x)≠h(x)]{\text{\it err}}(f,h)=\Pr_{x\sim\mathcal{D}}[f(x)\not=h(x)]. Define the inner product of ff and hh as:

The quantity ⟨f,h⟩=Pr⁡x∼D[f(x)=h(x)]−Pr⁡x∼D[f(x)≠h(x)]=1−2⋅err(f,h)\langle f,h\rangle=\Pr_{x\sim\mathcal{D}}[f(x)=h(x)]-\Pr_{x\sim\mathcal{D}}[f(x)\not=h(x)]=1-2\cdot{\text{\it err}}(f,h) measures the correlation between ff and hh when xx is drawn from the uniform distribution D\mathcal{D}.

Let the target function crˉ,aˉc_{\bar{r},\bar{a}} be chosen uniformly at random from the set {cr,a}\{c_{r,a}\}. Consider a nonadaptive SQ algorithm that makes tt queries g1,…,gtg_{1},\dots,g_{t}. The queries g1,…,gtg_{1},\ldots,g_{t} must be independent of rˉ\bar{r} and aˉ\bar{a} since the learner is nonadaptive. The only information about aˉ\bar{a} is in the outputs associated with the b=0b=0 half of the inputs (recall that crˉ,aˉ(x,i,b)=(−1)ric_{\bar{r},\bar{a}}(x,i,b)=(-1)^{r_{i}} when b=1b=1).

The main technical part of the proof follows the lower bound on SQ learning of PARITY. Using Fourier analysis, we split the true answer to a query into three components: a component that depends on the query gg but not the pair (rˉ,aˉ)(\bar{r},\bar{a}), a component that depends on gg and rˉ\bar{r} (but not aˉ\bar{a}), and a component that depends on g,rˉg,\bar{r}, and aˉ\bar{a} (see Equation (11) below). We show that for most target concepts crˉ,aˉc_{\bar{r},\bar{a}} the last component can be ignored by the SQ oracle. That is, a very close approximation to the correct output to the SQ queries made by the learner can be computed solely based on gg and rˉ\bar{r}. Consequently, for most target concepts crˉ,aˉc_{\bar{r},\bar{a}}, the SQ oracle can return answers that are independent of aˉ\bar{a}, and hence aˉ\bar{a} cannot be learned.

Consider a statistical query g:{0,1}d×{0,1}log⁡d×{0,1}×{+1,−1}→{+1,−1}g:\{0,1\}^{d}\times\{0,1\}^{\log d}\times\{0,1\}\times\{+1,-1\}\rightarrow\{+1,-1\}. For some (x,i,b)∈D(x,i,b)\in D, the value of g(x,i,b,⋅)g(x,i,b,\cdot) depends on the label (i.e., (g(x,i,b,+1)≠g(x,i,b,−1))(g(x,i,b,+1)\not=g(x,i,b,-1))) and otherwise g(x,i,b,⋅)g(x,i,b,\cdot) is insensitive to the label (i.e., (g(x,i,b,+1)=g(x,i,b,−1))(g(x,i,b,+1)=g(x,i,b,-1))). Every statistical query g(⋅,⋅,⋅,⋅)g(\cdot,\cdot,\cdot,\cdot) can be decomposed into a label-independent and label-dependent part. This fact was first implicitly noted by Blum et al. and made explicit by Bshouty and Feldman (Lemma 30). We adapt the proof presented in for our purpose.

We can rewrite the expectation of gg on any concept crˉ,aˉc_{\bar{r},\bar{a}} in terms of these quantities:

Note that CgC_{g} depends on the statistical query gg, but not on the target function. We now wish to analyze the second term, ⟨fg,crˉ,aˉ⟩\langle f_{g},c_{\bar{r},\bar{a}}\rangle, more precisely. To this end, we define the following functions parameterized by s∈{0,1}s\in\{0,1\}:

Recall that ⟨fg,crˉ,aˉ⟩\langle f_{g},c_{\bar{r},\bar{a}}\rangle is a sum over tuples (x,i,b)(x,i,b). We can separate the sum into two pieces: one with tuples where b=0b=0 and the other with tuples where b=1b=1. Using the functions crˉ,aˉs,fgsc_{\bar{r},\bar{a}}^{s},f_{g}^{s} just defined, we can write ⟨fg,crˉ,aˉ⟩=⟨fg0,crˉ,aˉ0⟩+⟨fg1,crˉ,aˉ1⟩\langle f_{g},c_{\bar{r},\bar{a}}\rangle=\langle f_{g}^{0},c_{\bar{r},\bar{a}}^{0}\rangle+\langle f_{g}^{1},c_{\bar{r},\bar{a}}^{1}\rangle. Hence,

The inner product ⟨fg1,crˉ,aˉ1⟩\langle f_{g}^{1},c_{\bar{r},\bar{a}}^{1}\rangle depends on the statistical query gg and on rˉ\bar{r}, but not on aˉ\bar{a}. Thus only the middle term on the righthand side of (11) depends on aˉ\bar{a}.

Consider an SQ oracle O=Ocrˉ,aˉ,D\mathcal{O}={\mathcal{O}}_{c_{\bar{r},\bar{a}},\mathcal{D}} that responds to every query (g,τ)(g,\tau) as follows (recall that D\mathcal{D} is the uniform distribution):

If the condition ∣⟨fg0,crˉ,aˉ0⟩∣<τ|\langle f_{g}^{0},c_{\bar{r},\bar{a}}^{0}\rangle|<\tau is met for all the queries (g,τ)(g,\tau) made by the learner, then the SQ oracle O\mathcal{O} never replies with a quantity that depends on aˉ\bar{a}. We now show that this is typically the case.

Extend the definition of crˉ,aˉsc^{s}_{\bar{r},\bar{a}} (Equation 10) to any (r,a)∈{0,1}d×{0,1}(r,a)\in\{0,1\}^{d}\times\{0,1\} by defining

Note that for r,r′∈{0,1}dr,r^{\prime}\in\{0,1\}^{d} and a∈{0,1}a\in\{0,1\},

Expanding the function fg0f_{g}^{0} in the orthonormal set {2⋅cr,00}r∈{0,1}d\{\sqrt{2}\cdot c^{0}_{r,0}\}_{r\in\{0,1\}^{d}}, we get:

(The first inequality is loose in general because the set {2⋅cr,00}r∈{0,1}d\{\sqrt{2}\cdot c^{0}_{r,0}\}_{r\in\{0,1\}^{d}} spans a subset of dimension 2d2^{d} whereas fg0f_{g}^{0} is taken from a space of dimension 2d+log⁡d+12^{d+\log d+1}). Similarly,

Summing the two previous equations, we get

Hence, at most 22d/3−12^{2d/3-1} functions cr,ac_{r,a} can have ∣⟨fg0,cr,a0⟩∣≥1/2d/3|\langle f_{g}^{0},c_{r,a}^{0}\rangle|\geq 1/2^{d/3}. Since rˉ,aˉ\bar{r},\bar{a} was chosen uniformly at random we can restate this: for any particular query gg, the probability that crˉ,aˉ0c^{0}_{\bar{r},\bar{a}} has inner product more than 1/2d/31/2^{d/3} with fg0f_{g}^{0} is at most 22d/3−1/2d+1=2−d/32^{2d/3-1}/2^{d+1}=2^{-d/3}. This is true regardless of aa: since cr,00=−cr,00c_{r,0}^{0}=-c_{r,0}^{0}, we have ∣⟨fg0,cr,00⟩∣=∣⟨fg0,cr,10⟩∣|\langle f_{g}^{0},c_{r,0}^{0}\rangle|=|\langle f_{g}^{0},c_{r,1}^{0}\rangle|, so the event that ∣⟨fg0,crˉ,aˉ0⟩∣≥1/2d/3|\langle f_{g}^{0},c_{\bar{r},\bar{a}}^{0}\rangle|\geq 1/2^{d/3} happens with probability at most 2−d/32^{-d/3} over rˉ\bar{r}, for aˉ=0,1\bar{a}=0,1.

Recall that the learner makes tt queries, g1,…,gtg_{1},\ldots,g_{t}. Let GoodGood be the event that ∣⟨fgi0,crˉ,aˉ⟩∣≤1/2d/3|\langle f^{0}_{g_{i}},c_{\bar{r},\bar{a}}\rangle|\leq 1/2^{d/3} for all i∈[t]i\in[t] (i.e., the oracle can answer each of the queries independently of aˉ\bar{a}). Taking a union bound over queries, we have Pr⁡[Good]≥1−t/2d/3+2\Pr[Good]\geq 1-t/2^{d/3+2} (where the probability is taken only over rˉ\bar{r}).

We argued above that there is a valid SQ oracle which, conditioned on GoodGood, can be simulated using rˉ\bar{r} but without knowledge of aˉ\bar{a}, as long as all queries are made with tolerance τ≥1/2d/3\tau\geq 1/2^{d/3} (as in the theorem statement). To conclude the proof, we now argue that no nonadaptive strong learner exists for MASKED-PARITY over the uniform distribution. For that we concentrate on the b=0b=0 half of the inputs, where the outcome of crˉ,aˉ(⋅)c_{\bar{r},\bar{a}}(\cdot) depends on aa. Let hh be the output hypothesis of the learner. For any input (x,i,0)(x,i,0) we have crˉ,0(x,i,0)=−crˉ,1(x,i,0)c_{\bar{r},0}(x,i,0)=-c_{\bar{r},1}(x,i,0). Thus either crˉ,0(x,i,0)≠h(x,i,0)c_{\bar{r},0}(x,i,0)\neq h(x,i,0) or crˉ,1(x,i,0)≠h(x,i,0)c_{\bar{r},1}(x,i,0)\neq h(x,i,0), and so some choice of aˉ\bar{a} causes the error of hh to be at least 1/41/4.

Let AA be the event that err(h,crˉ,aˉ)≥1/4{\text{\it err}}(h,c_{\bar{r},\bar{a}})\geq 1/4. Because GoodGood depends only on rˉ\bar{r}, we can think of aˉ\bar{a} as being selected after the learner’s hypothesis hh whenever GoodGood occurs. Thus, Pr⁡[A ∣ Good]≥1/2\Pr[A\,|\,Good]\geq 1/2. Using Good‾\overline{Good} to denote the complement of the event GoodGood, we get

Therefore, Pr⁡[err(h,crˉ,aˉ)≥1/4]≥12(1−t/2d/3+2)\Pr[{\text{\it err}}(h,c_{\bar{r},\bar{a}})\geq 1/4]\geq\frac{1}{2}(1-t/2^{d/3+2}), as desired. ∎

Acknowledgments

We thank Enav Weinreb for many discussions related to the local model, Avrim Blum and Rocco Servedio for discussions about related work in learning theory, and Katrina Ligett and Aaron Roth for discussions about . We also thank an anonymous reviewer for useful comments on the paper and, in particular, for the simple proof of Theorem 3.6.

References

Appendix A Concentration Bounds

We need several standard tail bounds in this paper.

Let X1,…,XnX_{1},\dots,X_{n} be i.i.d. Bernoulli random variables with Pr⁡[Xi=1]=μ\Pr[X_{i}=1]=\mu. Then for every ϕ∈(0,1]\phi\in(0,1],

Let X1,...,XnX_{1},...,X_{n} be i.i.d. random variables drawn from Lap(λ)\mathop{\rm{Lap}}\nolimits(\lambda) (i.e., with probability density h(x)=12λexp⁡(−∣x∣λ)h(x)=\frac{1}{2\lambda}\exp\left(-\frac{|x|}{\lambda}\right)). Then for every δ>0\delta>0,

The proof of this lemma is standard; we include it here since we were unable to find an appropriate reference.

Let S=∑i=1nXiS=\sum_{i=1}^{n}X_{i}. By the Markov inequality, for all t>0t>0,