Complexity theoretic limitations on learning DNF's

Amit Daniely, Shai Shalev-Shwatz

Introduction

In the PAC learning model , a learner is given an oracle access to randomly generated samples (X,Y)∈X×{0,1}(X,Y)\in{\cal X}\times\{0,1\} where XX is sampled from some unknown distribution D{\cal D} on X{\cal X} and Y=h∗(X)Y=h^{*}(X) for some unknown h∗:X→{0,1}h^{*}:{\cal X}\to\{0,1\}. It is assumed that h∗h^{*} comes from a predefined hypothesis class H{\cal H}, consisting of 0,10,1 valued functions on X{\cal X}. The learning problem defined by H{\cal H} is to find h:X→{0,1}h:{\cal X}\to\{0,1\} that minimizes Err⁡D(h):=Pr⁡X∼D(h(X)≠h∗(X))\operatorname{Err}_{{\cal D}}(h):=\Pr_{X\sim{\cal D}}(h(X)\not=h^{*}(X)). For concreteness, we take X={±1}n{\cal X}=\{\pm 1\}^{n}, and say that the learning problem is tractable if there is an algorithm that on input ϵ\epsilon, runs in time poly⁡(n,1/ϵ)\operatorname{poly}(n,1/\epsilon) and outputs, w.h.p., a hypothesis hh with Err⁡(h)≤ϵ\operatorname{Err}(h)\leq\epsilon.

Assuming P≠NP\mathbf{P}\neq\mathbf{NP}, the status of most basic computational problems is fairly well understood. In a sharp contrast, 3030 years after Valiant’s paper, the status of most basic learning problems is still wide open – there is a huge gap between the performance of best known algorithms and hardness results (see ). The main obstacle is the ability of a learning algorithm to return a hypothesis which does not belong to H{\cal H} (such an algorithm is called improper). This flexibility makes it very hard to apply reductions from NP\mathbf{NP}-hard problems (again, see ). Until recently, there was only a single framework, due to Kearns and Valiant , to prove lower bounds on learning problems. The framework of makes it possible to show that certain cryptographic assumptions imply hardness of certain learning problems. As indicated above, the lower bounds established by this method are very far from the performance of best known algorithms.

Learning intersections of ω(log⁡(n))\omega(\log(n)) halfspaces is hard, even over the boolean cube.

AgnosticallySee section 2.1 for a definition of agnostic learning. learning conjunctions is hard.

Agnostically learning halfspaces is hard, even over the boolean cube.

Agnostically learning parities is hard, even when D{\cal D} is uniform.

We note that 4, 6 can be established under cryptographic assumptions, using the cryptographic technique . Also, 5 follows from the hardness of learning parities with noiseNote that agnostically learning parities when D{\cal D} is uniform is not equivalent to the problem that is usually referred as “learning parities with noise”, since in agnostic learning, the noise might depend on the instance. , which is often taken as a hardness assumption. As for 2, the previously best lower bounds only rule out learning intersections of polynomially many halfspaces, again under cryptographic assumptions. To the best of our knowledge, 1-6 implies the hardness of virtually all (distribution free) learning problems that were previously shown hard (under various complexity assumptions).

Unless we face a dramatic breakthrough in complexity theory, it seems unlikely that hardness of learning can be established on standard complexity assumptions such as P≠NP\mathbf{P}\neq\mathbf{NP} (see ). Indeed, all currently known lower bounds are based on cryptographic assumptions. Similarly to Feige’s paper , we rely here on the hardness of refuting random KK-SAT formulas. As cryptographic assumptions, our assumption asserts the hardness on average of a certain problem that have been resisted extensive attempts of attack during the last 50 years (e.g. ).

Let J={C1,…,Cm}J=\{C_{1},\ldots,C_{m}\} be a random KK-SAT formula on nn variables. Precisely, each KK-SAT constraint CiC_{i} is chosen independently and uniformly from the collection of nn-variate KK-SAT constraints. A simple probabilistic argument shows that for some constant CC (depending only on KK), if m≥Cnm\geq Cn, then JJ is not satisfiable w.h.p. The problem of refuting random KK-SAT formulas (a.k.a. the problem of distinguishing satisfiable from random KK-SAT formulas) seeks efficient algorithms that provide, for most formulas, a refutation. That is, a proof that the formula is not satisfiable.

Concretely, we say that an algorithm is able to refute random KK-SAT instances with m=m(n)≥Cnm=m(n)\geq Cn clauses if on 1−on(1)1-o_{n}(1) fraction of the KK-SAT formulas with mm constraints, it outputs “unsatisfiable”, while for every satisfiable KK-SAT formula with mm constraints, it outputs “satisfiable”See a precise definition in section 2.2. Since such an algorithm never errs on satisfiable formulas, an output of “unsatisfiable” provides a proof that the formula is not satisfiable.

The problem of refuting random KK-SAT formulas has been extensively studied during the last 50 years. It is not hard to see that the problem gets easier as mm gets larger. The currently best known algorithms can only refute random instances with Ω(n⌈K2⌉)\Omega\left(n^{\lceil\frac{K}{2}\rceil}\right) constraints for K≥4K\geq 4 and Ω(n1.5)\Omega\left(n^{1.5}\right) constraints for K=3K=3. In light of that, Feige made the assumption that for K=3K=3, refuting random instances with CnCn constraints, for every constant CC, is hard (and used that to prove hardness of approximation results). Here, we put forward the following assumption.

Computational problem is RSAT-hard if its tractability refutes assumption 1.1.

We outline below some evidence to the assumption, in addition to known algorithms’ performance.

Resolution lower bounds. The length of resolution refutations of random KK-SAT formulas have been extensively studied (e.g. ). It is known (theorem 2.24 in ) that random formulas with nK2−ϵn^{\frac{K}{2}-\epsilon} constraints only have exponentially long resolution refutations. This shows that a large family of algorithms (the so-called Davis-Putnam algorithms ) cannot efficiently refute random formulas with nK2−ϵn^{\frac{K}{2}-\epsilon} constraints. These bounds can also be taken as an indication that random instances do not have short refutations in general, and therefore hard to refute.

Hierarchies lower bounds. Another family of algorithms whose performance has been analyzed are convex relaxations . In it is shown that relaxations in the Lasserre hierarchy with sub-exponential many constraints cannot refute random formulas with nK2−ϵn^{\frac{K}{2}-\epsilon} constraints.

2 Results

By boosting results , hardness of improper learning is automatically very strong quantitatively. Namely, for every c>0c>0, it is hard to find a classifier with error ≤12−1nc\leq\frac{1}{2}-\frac{1}{n^{c}}. Put differently, making a random guess on each example, is essentially optimal.

Additional results. Theorem 1.3 implies the hardness of several problems, in addition to DNFs.

Learning intersections of ω(log⁡(n))\omega(\log(n)) halfsapces over {±1}n\{\pm 1\}^{n} is RSAT-hard.

Agnostically learning conjunctions is RSAT-hard.

Agnostically learning halfspaces over {±1}n\{\pm 1\}^{n} is RSAT-hard.

Agnostically learning paritiesA parity is any hypothesis of the form h(x)=Πi∈Sxih(x)=\Pi_{i\in S}x_{i} for some S⊂[n]S\subset[n]. is RSAT-hard, even when the marginal distribution is uniform on {±1}n\{\pm 1\}^{n}.

For every ϵ>0\epsilon>0, learning automata of size nϵn^{\epsilon} is RSAT-hard.

Theorem 1.6 is a direct consequence of theorem 1.3, as a DNF formula with q(n)q(n) clauses is an intersection of q(n)q(n) halfspaces. Theorem 1.7 follows from theorem 1.3, as learning DNFs can be reduced to agnostically learning conjunctions . Theorem 1.8 follows from theorem 1.7, as conjunctions are a subclass of halfspaces. Theorem 1.9 follows from theorem 1.3 and , who showed that learning DNFs can be reduced to agnostically learning parities over the uniform distribution. Theorem 1.10 follows from theorem 1.3 by a simple reduction (see section 4).

3 Related work

As indicated above, hardness of learning is traditionally established based on cryptographic assumptions. The first such result follows from , and show that if one-way functions exist, than it is hard to learn polynomial sized circuits. To prove lower bounds on simpler hypothesis classes, researchers had to rely on more concrete hardness assumptions. Kearns and Valiant were the first to prove such results. They showed that assuming the hardness of various cryptographic problems (breaking RSA, factoring Blum integers and detecting quadratic residues), it is hard to learn automata, constant depth threshold circuits, log⁡\log-depth circuits and boolean formulae. Kharitanov showed, under a relatively strong assumption on the complexity of factoring random Blum integers, that learning constant depth circuits (for unspecified constant) is hard. Klivans and Sherstov showed that, under the hardness of the shortest vector problem, learning intersections of polynomially many halfspaces is hard. By , it also follows that agnostically learning halfspaces is hard. Hardness of agnostically learning halfspaces also follows from the hardness of learning parities with noise .

There is a large body of work on various variants of the standard (improper and distribution free) PAC model. Hardness of proper learning, when the leaner must return a hypothesis from the learnt class, in much more understood (e.g. ). Hardness of learning with restrictions on the distribution were studied in, e.g., . Hardness of learning when the learner can ask the label of unseen examples were studied in, e.g., .

Preliminaries

A hypothesis class, H{\cal H}, is a series of collections of functions Hn⊂{0,1}Xn,  n=1,2,…{\cal H}_{n}\subset\{0,1\}^{{\cal X}_{n}},\;n=1,2,\ldots. We often abuse notation and identify H{\cal H} with Hn{\cal H}_{n}. The instance spaces Xn{\cal X}_{n} we consider are {±1}n\{\pm 1\}^{n}, {0,1}n\{0,1\}^{n} or Xn,K{\cal X}_{n,K} (see section 2.2). Distributions on Zn:=Xn×{0,1}{\cal Z}_{n}:={\cal X}_{n}\times\{0,1\} are denoted Dn{\cal D}_{n}. The error of h:Xn→{0,1}h:{\cal X}_{n}\to\{0,1\} is Err⁡Dn(h)=Pr⁡(x,y)∼Dn(h(x)≠y)\operatorname{Err}_{{\cal D}_{n}}(h)=\Pr_{(x,y)\sim{\cal D}_{n}}\left(h(x)\neq y\right). For a class Hn{\cal H}_{n}, we let Err⁡Dn(Hn)=min⁡h∈HnErr⁡Dn(h)\operatorname{Err}_{{\cal D}_{n}}({\cal H}_{n})=\min_{h\in{\cal H}_{n}}\operatorname{Err}_{{\cal D}_{n}}(h). We say that Dn{\cal D}_{n} is realizable by hh (resp. Hn{\cal H}_{n}) if Err⁡Dn(h)=0\operatorname{Err}_{{\cal D}_{n}}(h)=0 (resp. Err⁡Dn(Hn)=0\operatorname{Err}_{{\cal D}_{n}}({\cal H}_{n})=0). A sample is a sequence S={(x1,y1),…(xm,ym)}∈ZnmS=\{(x_{1},y_{1}),\ldots(x_{m},y_{m})\}\in{\cal Z}^{m}_{n}. The empirical error of h:Xn→{0,1}h:{\cal X}_{n}\to\{0,1\} on SS is Err⁡S(h)=1m∑i=1m1(h(xi)≠yi)\operatorname{Err}_{S}(h)=\frac{1}{m}\sum_{i=1}^{m}1(h(x_{i})\neq y_{i}), while the empirical error of Hn{\cal H}_{n} on SS is Err⁡S(Hn)=min⁡h∈HnErr⁡S(h)\operatorname{Err}_{S}({\cal H}_{n})=\min_{h\in{\cal H}_{n}}\operatorname{Err}_{S}(h). We say that SS is realizable by hh (resp. Hn{\cal H}_{n}) if Err⁡S(h)=0\operatorname{Err}_{S}(h)=0 (resp. Err⁡S(Hn)=0\operatorname{Err}_{S}({\cal H}_{n})=0).

A learning algorithm, L{\cal L}, obtains an error, confidence and complexity parameters 0<ϵ<10<\epsilon<1, 0<δ<10<\delta<1, and nn, as well as oracle access to examples from unknown distribution Dn{\cal D}_{n} on Zn{\cal Z}_{n}. It should output a (description of) hypothesis h:Xn→{0,1}h:{\cal X}_{n}\to\{0,1\}. We say that L{\cal L} (PAC) learns H{\cal H} if, for every realizable Dn{\cal D}_{n}, w.p. ≥1−δ\geq 1-\delta, L{\cal L} outputs a hypothesis with error ≤ϵ\leq\epsilon. We say that L{\cal L} agnostically learns H{\cal H} if, for every Dn{\cal D}_{n}, w.p. ≥1−δ\geq 1-\delta, L{\cal L} outputs a hypothesis with error ≤Err⁡Dn(H)+ϵ\leq\operatorname{Err}_{{\cal D}_{n}}({\cal H})+\epsilon. We say that L{\cal L} is efficient if it runs in time poly⁡(n,1/ϵ,1/δ)\operatorname{poly}(n,1/\epsilon,1/\delta), and outputs a hypothesis that can be evaluated in time poly⁡(n,1/ϵ,1/δ)\operatorname{poly}(n,1/\epsilon,1/\delta). Finally, L{\cal L} is proper if it always outputs a hypothesis in H{\cal H}. Otherwise, we say that L{\cal L} is improper.

2 Random Constraints Satisfaction Problems

Let Xn,K{\cal X}_{n,K} be the collection of (signed) KK-tuples, that is, vectors x=[(α1,i1),…,(αK,iK)]x=[(\alpha_{1},i_{1}),\ldots,(\alpha_{K},i_{K})] for α1,…,αK∈{±1}\alpha_{1},\ldots,\alpha_{K}\in\{\pm 1\} and distinct i1,…,iK∈[n]i_{1},\ldots,i_{K}\in[n]. For j∈[K]j\in[K] we denote x(j)=(x1(j),x2(j))=(αj,ij)x(j)=(x^{1}(j),x^{2}(j))=(\alpha_{j},i_{j}). Each x∈Xn,Kx\in{\cal X}_{n,K} defines a function Ux:{±1}n→{±1}KU_{x}:\{\pm 1\}^{n}\to\{\pm 1\}^{K} by Ux(ψ)=(α1ψi1,…,αKψiK)U_{x}(\psi)=(\alpha_{1}\psi_{i_{1}},\ldots,\alpha_{K}\psi_{i_{K}}).

3 The methodology of [14]

In this section we briefly survey the technique of to prove hardness of improper learning. Let D={Dnm(n)}n{\cal D}=\{{\cal D}^{m(n)}_{n}\}_{n} be a polynomial ensemble of distributions, that is, Dnm(n){\cal D}^{m(n)}_{n} is a distribution on Znm(n){\cal Z}_{n}^{m(n)} and m(n)≤poly⁡(n)m(n)\leq\operatorname{poly}(n). Think of Dnm(n){\cal D}^{m(n)}_{n} as a distribution that generates samples that are far from being realizable. We say that it is hard to distinguish realizable from D{\cal D}-random samples if there is no efficient randomized algorithm A{\cal A} with the following properties:

For every realizable sample S∈Znm(n)S\in{\cal Z}^{m(n)}_{n},

If S∼Dnm(n)S\sim{\cal D}_{n}^{m(n)}, then with probability 1−on(1)1-o_{n}(1) over the choice of SS, it holds that

Let Dn{\cal D}_{n} be a distribution over Zn{\cal Z}_{n} such that if (x,y)∼Dn(x,y)\sim{\cal D}_{n}, then yy is a Bernoulli r.v. with parameter 12\frac{1}{2}, independent from xx. Let Dnm(n){\cal D}^{m(n)}_{n} be the distribution over Znm(n){\cal Z}_{n}^{m(n)} obtained by taking m(n)m(n) independent examples from Dn{\cal D}_{n}. For f:Xn→{0,1}f:{\cal X}_{n}\to\{0,1\}, Pr⁡S∼Dnm(n)(Err⁡S(f)≤14)\Pr_{S\sim{\cal D}^{m(n)}_{n}}\left(\operatorname{Err}_{S}(f)\leq\frac{1}{4}\right) is the probability of getting at most m(n)4\frac{m(n)}{4} heads in m(n)m(n) independent tosses of a fair coin. By Hoeffding’s bound, this probability is ≤2−18m(n)\leq 2^{-\frac{1}{8}m(n)}. Therefore, D={Dnm(n)}n{\cal D}=\{{\cal D}^{m(n)}_{n}\}_{n} is (18m(n),1/4)\left(\frac{1}{8}m(n),1/4\right)-scattered.

Hardness of distinguishing realizable from scattered samples turns out to imply hardness of learning.

Every hypothesis class that satisfies the following condition is not efficiently learnable. There exists β>0\beta>0 such that for every d>0d>0 there is an (nd,β)(n^{d},\beta)-scattered ensemble D{\cal D} for which it is hard to distinguish between a D{\cal D}-random sample and a realizable sample.

The basic observation of is that an efficient algorithm, running on a very scattered sample, will return a bad hypothesis w.h.p. The reason is that the output classifier has a short description, given by the polynomially many examples the algorithm uses. Hence, the number of hypotheses the algorithm might return is limited. Now, since the sample is scattered, all these hypotheses are likely to perform purely. Based on that observation, efficient learning algorithm can efficiently distinguish realizable from scattered samples: We can simply run the algorithm on the given sample to obtain a classifier hh. Now, if the sample is realizable, hh will perform well. Otherwise, if the sample is scattered, hh will perform purely. Relying on that, we will be able to distinguish between the two cases. For completeness, we include the proof of theorem 2.2 in section 5.

Proof of theorem 1.3

The main conceptual idea is to interpret CSP problems as learning problems. Let P:{±1}K→{0,1}P:\{\pm 1\}^{K}\to\{0,1\} be some predicate. Every ψ∈{±1}n\psi\in\{\pm 1\}^{n} naturally defines hψ:Xn,K→{0,1}h_{\psi}:{\cal X}_{n,K}\to\{0,1\}, by mapping each KK-tuple xx to the truth value of the corresponding constraint, given the assignment ψ\psi. Namely, hψ(x)=P∘Ux(ψ)h_{\psi}(x)=P\circ U_{x}(\psi). Finally, let HP⊂{0,1}Xn,K{\cal H}_{P}\subset\{0,1\}^{{\cal X}_{n,K}} be the hypothesis class HP={hψ∣ψ∈{±1}n}{\cal H}_{P}=\{h_{\psi}\mid\psi\in\{\pm 1\}^{n}\}.

In the case that sample (x1,1),…,(xm,1)(x_{1},1),\ldots,(x_{m},1) is random, it is, in a sense, “very random”. Yet, it is not scattered at all! Since all the labels are 11, the constant function 11 realizes the sample.

Next, we explain how we address these two points.

Making the sample scattered

We will consider the predicate TK,M:{0,1}KM→{0,1}T_{K,M}:\{0,1\}^{KM}\to\{0,1\} defined by

We will group the coordinates of vectors in {±1}2Kn\{\pm 1\}^{2Kn} into 2K2K groups, corresponding to PP’s literals, and index them by [K]×{±1}×[n][K]\times\{\pm 1\}\times[n]. For x=[(α1,i1),…,(αK,iK)]∈Xn,Kx=[(\alpha_{1},i_{1}),\ldots,(\alpha_{K},i_{K})]\in{\cal X}_{n,K}, g(x)g(x) will be the vector whose all coordinates are 11, except that for j∈[K]j\in[K], the (j,−αj,ij)(j,-\alpha_{j},i_{j}) coordinate is −1-1.

Now, given ψ∈{±1}n\psi\in\{\pm 1\}^{n}, we show that hψ:Xn,K→{0,1}h_{\psi}:{\cal X}_{n,K}\to\{0,1\} equals to h∘gh\circ g for a DNF formula hh with TT clauses. Indeed, suppose that P(x)=C1(x)∨…∨CT(x)P(x)=C_{1}(x)\vee\ldots\vee C_{T}(x) is a DNF representation of PP. It is enough to show that for every Cr(z)=(−1)β1zj1∧…∧(−1)βlzjlC_{r}(z)=(-1)^{\beta_{1}}z_{j_{1}}\wedge\ldots\wedge(-1)^{\beta_{l}}z_{j_{l}} there is a conjunction of literals hr:{±1}2Kn→{0,1}h_{r}:\{\pm 1\}^{2Kn}\to\{0,1\} such that for all x=[(α1,i1),…,(αK,iK)]∈Xn,Kx=[(\alpha_{1},i_{1}),\ldots,(\alpha_{K},i_{K})]\in{\cal X}_{n,K}, hr(g(x))=Cr(Ux(ψ))h_{r}(g(x))=C_{r}(U_{x}(\psi)). To see that such hrh_{r} exists, note that Cr(Ux(ψ))=1C_{r}(U_{x}(\psi))=1 if and only if, for every 1≤τ≤l1\leq\tau\leq l, all the values in g(x)g(x) in the coordinates of the form (jτ,ψi(−1)βτ,i)(j_{\tau},\psi_{i}(-1)^{\beta_{\tau}},i) are 11.

It will be convenient to use the following strengthening of Chernoff’s bound, recently proved (with a very simple proof) by Linial and Luria

Let X1…,XnX_{1}\ldots,X_{n} be indicator random variables such that for every S⊂[n]S\subset[n], Pr⁡(∀i∈S,  Xi=1)≤α∣S∣\Pr\left(\forall i\in S,\;X_{i}=1\right)\leq\alpha^{|S|}. Then, for every β>α\beta>\alpha,

Partition the constraints in JJ into nd−1n^{d-1} blocks, {Ct+1,…,Ct+n},    t=1,2,…,nd−1\{C_{t+1},\ldots,C_{t+n}\},\;\;t=1,2,\ldots,n^{d-1}.

If ∣Jt′∣<nlog⁡(n)|J^{\prime}_{t}|<\frac{n}{\log(n)} and, for all C∈Jt′C\in J^{\prime}_{t}, the set variables appearing in Ct+rC_{t+r} is disjoint from the set of variables appearing in CC, add Ct+rC_{t+r} to Jt′J^{\prime}_{t}.

If ∣Jt′∣<nlog⁡(n)|J^{\prime}_{t}|<\frac{n}{\log(n)}, return “satisfiable”.

Let Ct′C^{\prime}_{t} be the TK,⌈nlog⁡(n)⌉T_{K,\lceil\frac{n}{\log(n)}\rceil}-constraint which is the conjunction of all the constraints in Jt′J^{\prime}_{t}.

Run A{\cal A} on the instance J′={C1′,…,Cnd−1′}J^{\prime}=\{C^{\prime}_{1},\ldots,C^{\prime}_{n^{d-1}}\} and return the same answer as A{\cal A}.

Suppose now that JJ is random. First, we claim that A′{\cal A}^{\prime} will reach 3 w.p. ≥1−on(1)\geq 1-o_{n}(1). Indeed, we will show that for large enough nn and any fixed tt, the probability of exiting at step 2c is ≤exp⁡(−(122K+5K)2n)\leq\exp\left(-\left(\frac{1}{2^{2K+5}K}\right)^{2}n\right), from which it follows that the probability of exiting at step 2c for some tt is on(1)o_{n}(1). To show that, let Xr,  r=1,…,nX_{r},\;r=1,\ldots,n be the indicator r.v. that is 11 if and only if one of the variables appearing in Ct+rC_{t+r} also appears in one of Ct+1,…,Ct+r−1C_{t+1},\ldots,C_{t+r-1}. Denote also Xˉr=1−Xr\bar{X}_{r}=1-X_{r}

Let n′=⌊n2K⌋n^{\prime}=\lfloor\frac{n}{2K}\rfloor. It is enough to show that ∑r=1n′Xˉr≥nlog⁡(n)\sum_{r=1}^{n^{\prime}}\bar{X}_{r}\geq\frac{n}{\log(n)} w.p. ≥1−exp⁡(−(122K+5K)2n)\geq 1-\exp\left(-\left(\frac{1}{2^{2K+5}K}\right)^{2}n\right). Indeed, for every fixed r∈[n′]r\in[n^{\prime}], since the number of variables appearing in Ct+1,…,Ct+r−1C_{t+1},\ldots,C_{t+r-1} is ≤n2\leq\frac{n}{2}, the probability that Xr=1X_{r}=1 is ≤1−2−K\leq 1-2^{-K}, even if we condition on X1,…,Xr−1X_{1},\ldots,X_{r-1}. Hence, the probability that any fixed uu variables out of X1,…,Xn′X_{1},\ldots,X_{n^{\prime}} are all 11 is ≤(1−2−K)u\leq\left(1-2^{-K}\right)^{u}. By theorem 3.2,

It follows that w.p. ≥1−exp⁡(−(122K+5K)2n)\geq 1-\exp\left(-\left(\frac{1}{2^{2K+5}K}\right)^{2}n\right), ∑r=1n′Xˉr≥n′2K+1\sum_{r=1}^{n^{\prime}}\bar{X}_{r}\geq\frac{n^{\prime}}{2^{K+1}}, and the claim follows as for sufficiently large nn, n′2K+1≥nlog⁡(n)\frac{n^{\prime}}{2^{K+1}}\geq\frac{n}{\log(n)}. Finally, it is not hard to see that, conditioning on the event that the algorithm reaches step 3, J′J^{\prime} is random as well, and therefore w.p. ≥1−on(1)\geq 1-o_{n}(1) over the choice of JJ, A{\cal A} (and therefore A′{\cal A}^{\prime}) will return “random” w.p. ≥34\geq\frac{3}{4} over its internal randomness.

Proof The realization is defined by the function g:Xn,K→{±1}2Kng:{\cal X}_{n,K}\to\{\pm 1\}^{2Kn}, defined as follows. We will index the coordinates of vectors in {±1}2Kn\{\pm 1\}^{2Kn} by [K]×{±1}×[n][K]\times\{\pm 1\}\times[n] and let

Indeed, write P(z1,…,zK)=∨t=1T∧r=1Rtbt,rzjt,rP(z_{1},\ldots,z_{K})=\vee_{t=1}^{T}\wedge_{r=1}^{R_{t}}b_{t,r}z_{j_{t,r}} for bt,r∈{±1}b_{t,r}\in\{\pm 1\} and it,r∈[K]i_{t,r}\in[K]. Now consider the formula h:{±1}2Kn→{0,1}h:\{\pm 1\}^{2Kn}\to\{0,1\} defined by

5 Wrapping up – concluding theorem 1.3

Proof theorem 1.10

Proof of theorem 2.2 [14]

Let H{\cal H} be the hypothesis class in question and suppose toward a contradiction that algorithm L{\cal L} learns H{\cal H} efficiently. Let M(n,1/ϵ,1/δ)M\left(n,1/\epsilon,1/\delta\right) be the maximal number of random bits used by L{\cal L} when it run on the input n,ϵ,δn,\epsilon,\delta. This includes both the bits describing the examples produced by the oracle and “standard” random bits. Since L{\cal L} is efficient, M(n,1/ϵ,1/δ)<poly⁡(n,1/ϵ,1/δ)M\left(n,1/\epsilon,1/\delta\right)<\operatorname{poly}(n,1/\epsilon,1/\delta). Define

By assumption, there is a (q(n),β)(q(n),\beta)-scattered ensemble D{\cal D} for which it is hard to distinguish a D{\cal D}-random sample from a realizable sample. Consider the algorithm A{\cal A} defined below. On input S∈Znm(n)S\in{\cal Z}_{n}^{m(n)},

Run L{\cal L} with parameters n,βn,\beta and 14\frac{1}{4}, such that the examples’ oracle generates examples by choosing a random example from SS.

Let hh be the hypothesis that L{\cal L} returns. If Err⁡S(h)≤β\operatorname{Err}_{S}(h)\leq\beta, output “realizable”. Otherwise, output “unrealizable”.

Next, we derive a contradiction by showing that A{\cal A} distinguishes a realizable sample from a D{\cal D}-random sample. Indeed, if the input SS is realizable, then L{\cal L} is guaranteed to return, with probability ≥1−14\geq 1-\frac{1}{4}, a hypothesis h:Xn→{0,1}h:{\cal X}_{n}\to\{0,1\} with Err⁡S(h)≤β\operatorname{Err}_{S}(h)\leq\beta. Therefore, w.p. ≥34\geq\frac{3}{4} A{\cal A} will output “realizable”.

What if the input sample SS is drawn from Dnm(n){\cal D}^{m(n)}_{n}? Let G⊂{0,1}Xn{\cal G}\subset\{0,1\}^{{\cal X}_{n}} be the collection of functions that L{\cal L} might return when run with parameters n,ϵ(n)n,\epsilon(n) and 14\frac{1}{4}. We note that ∣G∣≤2q(n)−n|{\cal G}|\leq 2^{q(n)-n}, since each hypothesis in G{\cal G} can be described by q(n)−nq(n)-n bits. Namely, the random bits that L{\cal L} uses and the description of the examples sampled by the oracle. Now, since D{\cal D} is (q(n),β)(q(n),\beta)-scattered, the probability that Err⁡S(h)≤β\operatorname{Err}_{S}(h)\leq\beta for some h∈Gh\in{\cal G} is at most ∣G∣2−q(n)≤2−n|{\cal G}|2^{-q(n)}\leq 2^{-n}. It follows that the probability that A{\cal A} responds “realizable” is ≤2−n\leq 2^{-n}. This leads to the desired contradiction and concludes our proof.

Open questions

An obvious direction for future work is to establish more lower bounds. We list below some basic learning problems that we are unable to resolve even under the random KK-SAT assumption.

Learning intersections of a constantly many halfspaces. It is worth noting that no known algorithm can learn even intersections of 22 halfspaces.

Agnostically Learning halfspaces with a constant approximation ratio. We note that the last problem was shown hard under the much stronger assumption of .

In addition, as discussed in , our work and have connections to several TCS areas, including hardness of approximation, cryptography, refutation algorithms and average case complexity.

Amit Daniely is a recipient of the Google Europe Fellowship in Learning Theory, and this research is supported in part by this Google Fellowship. Shai Shalev-Shwartz is supported by the Israeli Science Foundation grant number 590-10. We thank Uri Feige, Guy Kindler and Nati Linial for valuable discussions.

References