Algorithms and SQ Lower Bounds for PAC Learning One-Hidden-Layer ReLU Networks
Ilias Diakonikolas, Daniel M. Kane, Vasilis Kontonis, Nikos Zarifis
Introduction
In recent years, the impressive practical success of deep learning has motivated the development of provably efficient learning algorithms for various classes of neural networks. A large body of research (see Section 1.4 for a brief overview) has resulted in efficient learning algorithms for shallow networks with common activation functions (e.g., ReLUs or sigmoids) under various assumptions on the underlying distribution and the weight structure of the network. Despite intensive investigation, the broad question of whether deep neural networks are efficiently learnable with provable guarantees remains an outstanding theoretical challenge in machine learning. In particular, the class of networks for which efficient learners are known is relatively limited, even in the realizable case (i.e., when the data is drawn from a neural network in the class).
In this work, we continue this line of investigation by studying the learnability of a simple class of networks without imposing strong restrictions on the structure of its weights. Specifically, we focus on the problem of learning one-hidden-layer ReLU networks under the Gaussian distribution in the presence of additive random label noise. Our goal is to understand the complexity of this problem in the PAC learning model without assumptions on the weight matrix of the network.
Perhaps surprisingly, the complexity of PAC learning one-hidden-layer ReLU networks (even with positive weights) has remained open, even in the realizable setting, under Gaussian marginals, and for [Kli17]Formally speaking, the case does not appear explicitly in the literature, but an efficient algorithm easily follows from prior work on parameter estimation (e.g., [GLM18]).. A line of prior work [GLM18, BJW19, GKLW19] had studied the task of parameter estimation for this concept class, i.e., the task of recovering the unknown coefficients and weight vectors of the data generating network within small accuracy. It should be noted that for parameter estimation to even be information-theoretically possible, some assumptions on the target function are necessary. The aforementioned prior works made the common assumption that the weight matrix is full-rank. Under this assumption, they provided efficient parameter learning algorithms with respect Gaussian marginals for the case of positive coefficients, i.e., for . Importantly, the sample and computational complexity of these algorithms scale polynomially with the condition number of . In contrast, no such algorithm is known for general coefficients, i.e., for , even under the aforementioned strong assumptions on the weights.
In contrast to parameter estimation, PAC learning one-hidden-layer ReLU networks does not require any assumptions on the structure of the weight matrix. The PAC learning problem for this class is information-theoretically solvable with polynomially many samples. The question is whether a computationally efficient algorithm exists. It should also be noted that proper PAC learning is not generally equivalent to parameter estimation, as it is in principle possible to have two networks that define close-by functions and whose parameters are significantly different.
2 Our Results
Before we state our main theorems, we formally define the PAC learning problem.
Our main positive result is the first computationally efficient PAC learning algorithm for .
We remark that our main algorithmic result is more general, in the sense that it immediately extends to positive coefficient one-hidden-layer networks composed of any non-negative Lipschitz activation function. See Theorem 3.1 for a detailed statement.
The natural interpretation of Theorem 1.4 is the following: If the SQ algorithm uses statistical queries of accuracy , then simulating a single query with iid samples would require samples (hence time). Otherwise, the algorithm would require time (since each query requires at least one unit of time). Theorem 1.4, combined with our Theorem 1.3, provides a (super-polynomial) computational separation between the PAC learnability of and in the correlational SQ model.
We note that the statement of our general SQ lower bound (Theorem 4.3) is much more general than Theorem 1.4. Specifically, we obtain a correlational SQ lower bound for PAC learning (under Gaussian marginals) a class of functions of the form , where roughly speaking is any odd non-vanishing function and is not a low-degree polynomial.
3 Our Techniques
Here we provide an overview of our techniques in tandem with a comparison to prior work. We start with our algorithm establishing Theorem 1.3. Our learning algorithm for employs a data-dependent dimension reduction procedure. Specifically, we give an efficient method to reduce our -dimensional learning problem down to a -dimensional problem, that can in turn be efficiently solved by a simple covering method.
We note that the idea of using dimension-reduction to find a low-dimensional invariant subspace has been previously used in the context of PAC learning intersections of LTFs [Vem10, DKS18]. Our algorithm and its analysis of correctness are quite different from these prior works. We also note that [GLM18] also used information based on low-degree moments for their parameter estimation algorithm, but in a qualitatively different way. In particular, [GLM18] used tensor-decomposition techniques (based on moments of degree up to four) to uniquely identify the weight vectors, under structural assumptions on the weight matrix (full-rank and bounded condition number).
We now proceed to explain our SQ lower bound construction. As is well-known, there is a general methodology to establish such lower bounds, via an appropriate notion of SQ dimension [BFJ+94, FGR+17]. In our setting, to prove an SQ lower bound, it suffices to find a large collection of functions with the following properties: (1) The ’s are pairwise far away from each other, and (2) The ’s have small pairwise correlations. The difficulty is, of course, to construct such a family. We describe our construction in the following paragraph.
First, it is not hard to see that (1) and (2) can only be simultaneously satisfied if almost all of the ’s have nearly-matching low-degree moments. In fact, we provide a construction in which all the low-degree moments of all of the ’s vanish. To achieve this, we build on an idea introduced in [DKS17]. Roughly speaking, the idea is to define a family of functions whose interesting information is hidden in a random low-dimensional subspace, so that learning an unknown function in the family amounts to finding the hidden subspace. In more detail, we will define a function in two dimensions which has the correct moments, and then embed it in a randomly chosen subspace.
4 Related Work
In recent years, there has been an explosion of research on provable algorithms for learning neural networks in various settings, see, e.g., [JSA15, SJA16, DFS16, ZLJ16, ZSJ+17, GLM18, GKLW19, BJW19, GKKT17, MR18, GK19, VW19] for some works on the topic. The majority of these works focused on parameter learning, i.e., the problem of recovering the weight matrix of the data generating neural network. In contrast, the focus of this paper is on PAC learning. We also note that PAC learning of simple classes of neural networks has been studied in a number of recent works [GKKT17, MR18, GK19, VW19]. However, the problem of PAC learning linear combinations of (even) ReLUs under any natural distributional assumptions (and in particular under the Gaussian distribution) has remained open. At a high-level, prior works either rely on tensor decompositions [SJA16, ZSJ+17, GLM18, GKLW19, BJW19] or on kernel methods [ZLJ16, DFS16, GKKT17, GK19]. In the following paragraphs, we describe in detail the prior works more closely related to the results of this paper.
The work of [GLM18] studies the parameter learning of positive linear combinations of ReLUs under the Gaussian distribution in the presence of additive (mean zero sub-gaussian) noise. That is, they consider the same concept class and noise model as we do, but study parameter learning as opposed to PAC learning. [GLM18] show that the parameters can be approximately recovered efficiently, under the assumption that the weight matrix is full-rank with bounded condition number. The sample complexity and running time of their algorithm scales polynomially with the condition number. More recently, [BJW19, GKLW19] obtained efficient parameter learning algorithms for vector-valued depth- ReLU networks under the Gaussian distribution. Similarly, the algorithms in these works have sample complexity and running time scaling polynomially with the condition number. We note that the algorithmic results in the aforementioned works do not apply to , i.e., the class of arbitrary linear combinations of ReLUs.
[VW19] show that gradient descent agnostically PAC learns low-degree polynomials using neural networks as the hypothesis class. Their approach has implications for (realizable) PAC learning of certain neural networks under the uniform distribution on the sphere. We note that their method implies an algorithm with sample complexity and running time exponential in , even for a single ReLU. [GK19] give an efficient PAC learning algorithm for certain -hidden-layer neural networks under arbitrary distributions on the unit ball. We emphasize that their algorithm does not apply for (positive) linear combinations of ReLUs. In fact, recent work has shown that the problem we solve in this paper is NP-hard under arbitrary distributions, even for [GKMR20].
The SQ model was introduced by [Kea98] in the context of learning Boolean-valued functions as a natural restriction of the PAC model [Val84]. A recent line of work [FGR+13, FPV15, FGV15, Fel16] extended this framework to general search problems over distributions. One can prove unconditional lower bounds on the computational complexity of SQ algorithms via an appropriate notion of Statistical Query dimension. A lower bound on the SQ dimension of a learning problem provides an unconditional lower bound on the computational complexity of any SQ algorithm for the problem.
The work of [VW19] establishes correlational SQ lower bounds for learning a class of degree- polynomials in variables. [Sha18] shows that gradient-based algorithms (a special case of correlational SQ algorithms) cannot efficient learn certain families of neural networks under well-behaved distributions (including the Gaussian distribution). We note that the lower bound constructions in these works do not imply corresponding lower bounds for one-hidden-layer ReLU networks.
Contemporaneous work [GGJ+20], using a different construction, obtained super-polynomial SQ lower bounds for learning one-hidden-layer neural networks (with ReLU and other activations) under the Gaussian distribution.
Preliminaries
Efficient Learning Algorithm
In this section, we give our upper bound for the problem of learning positive linear combinations of Lipschitz activations, thereby establishing Theorem 1.3. We prove the following more general statement:
Theorem 1.3 follows as a corollary of the above, by noting that the ReLU satisfies and .
The following fact gives formulas for the low-degree Chow parameters of a one-layer network (see Appendix A, Fact A.1).
The crucial formula is the one of the degree- Chow parameters, Equation (1). In fact, we can already describe the main idea of our upper bound. Let us assume that we have the degree- Chow parameters matrix exactly. Then, by using singular value decomposition, we would obtain a basis of the vector space spanned by the parameters . The dimension of this space is at most and therefore in that way we essentially reduce the dimension of the problem from down to . To find parameters that give small mean squared error, we can now make a grid and pick the ones that minimize the empirical mean squared error with the samples, that is
Even though we do not have access to the matrix exactly, we can estimate it empirically. Since the activation function is well-behaved and the distribution of the examples is Gaussian, we can get a very accurate estimate of with roughly samples. We give the following lemma whose proof relies on matrix concentration and concentration of polynomials of Gaussian random variables (see Appendix B, Lemma B.1).
Let , where is an -Lipschitz, non-negative activation function such that . Let be the degree- Chow parameters of . Then, for some samples , where and is a zero-mean, subgaussian noise with variance , it holds with probability at least that
The next step is to quantify how accurately we need to estimate the degree- Chow parameters, so that doing SVD on the empirical matrix gives us a good approximation of the subspace spanned by the true parameters . We show that that estimating the degree- Chow parameter matrix within spectral norm roughly suffices. In particular, we show that the top- eigenvectors of our empirical estimate span approximately the subspace where the true parameters lie. For the proof, we are going to use the following lemma that bounds the difference of a function evaluated at correlated normal random variables.
We call -correlated a pair of random variables . It holds
We are now ready to prove the key technical lemma of our approach. We remark that the following dimension reduction lemma is rather general and holds for any reasonable activation function, in the sense that the error is bounded as long as its expected derivative is bounded.
where for the last inequality we used Lemma 3.5 and the fact that the random variables and are -correlated with .
It suffices to prove that for some sufficiently small . Note that because , it holds , because we know that the subspace is spanned by the top eigenvectors of . Let , where for all and is the -th greatest eigenvalue. From Weyl’s inequality, we have that if are the eigenvalues of in decreasing order then and we know that the eigenvalues of for are zero, because the . Thus,
because the eigenvalues of the eigenvectors of in are less than , which implies that We also have where the last equality follows from the Pythagorean theorem. Therefore,
Thus, we obtain The bound now follows directly from (3) since . ∎
Now we have all the ingredients to complete our proof. Since the dimension of the subspace that we have learned is at most , we can construct a grid with candidates that contains an approximate solution. Our full algorithm is summarized as Algorithm 1. The proof of Theorem 3.1 follows from the above discussion and can be found in Appendix A (Theorem A.7.
Statistical Query Lower Bound
We start by formally defining the class of algorithms for which our lower bound applies. In the standard statistical query model, we do not have direct access to samples from the distribution, but instead can pick a function and get an approximation to its expected value. In this work, we consider algorithms that have access to correlational statistical queries, which are more restrictive and are defined as follows. We remark that in the following definition of inner product queries we do not assume that the concept is bounded pointwise but only in the sense. The properties that we shall need for our result hold also under this weaker assumption.
We are now ready to define the conditions on the activations that are needed for our construction. We define
To prove our lower bound we will use an appropriate notion of SQ dimension. Specifically, we define the Correlational SQ Dimension that captures the difficulty of learning a class .
The following lemma relates the Correlational Statistical Query Dimension of a concept class with the number of correlational statistical queries needed to learn it. The difficulty lies in creating a large family of functions with small average correlation. We will use the following result that translates correlational statistical dimension to a lower bound on the number of inner product queries needed to learn the function . We note that in this paper we consider inner-product queries of the form where is not necessarily bounded. In fact, the proof of the following lemma does not require to be pointwise bounded (bounded norm is sufficient) as it can be seen from the arguments in [Szö09], [GGJ+20], [VW19].
We will require the following technical lemma, whose proof relies on Hermite polynomials, and can be found in Appendix C.2 (Lemma C.2).
In the following simple lemma, we show that two random -dimensional subspaces in high dimensions are nearly orthogonal. In particular, we can have an exponentially large family of almost orthogonal planes. For the proof see Appendix C.2 (Lemma C.3).
The following lemma shows that the correlation of any function of with any low-degree polynomial is zero. For the proof see Appendix C.2 (Lemma C.5).
Let . For every polynomial of degree at most , it holds .
We are now ready to prove our main result.
where in the second equality we used that Gaussian distributions are invariant under rotations and in the last that the expectation of is zero. Then, using Lemma 4.6, it holds
where in the first inequality we used that the first moments are zero, in the second the fact that the spectral norm of these two matrices is less than one, and in the third inequality we used Parseval’s theorem. Thus, using Equation (7) into Equation (6), we get that the pairwise correlation is less than . Thus, from a straighforward calculation, the average correlation of the set is less . Moreover, for , the and the result follows from Lemma 4.5. ∎
Conclusions and Future Directions
This work is part of an extensive recent literature on designing provable algorithms for learning simple families of neural networks. In the context of one-hidden-layer networks, a number of concrete open questions remain: Can we improve the dependence on in the running time to polynomial? Can we design learning algorithms that succeed under less stringent distributional assumptions? We believe that progress in both these directions is attainable.
We thank the authors of [GGJ+20] for useful comments that helped us improve the presentation of our lower bound proof.
References
Appendix
Appendix A Omitted Proofs from Section 3
In the following simple fact, we compute the degree- and degree- Chow parameters of a one-layer network.
Let f(\mathbf{x})=\sum_{i=1}^{k}\alpha_{i}\phi\big{(}\left\langle\mathbf{w}^{(i)},\mathbf{x}\right\rangle\big{)}. Then
where , and .
where in the third equality we used the fact that normal distribution is invariant under rotations. For the second equality, we have
where is some rotation matrix that maps to , and is the Jacobian of this rotation which has always determinant of 1. The Chow parameters of degree- are given by
There are four cases. The first case is when . By independence, we have that , where we used the independence of the random variables . Similarly, if and we have that . If , then , because . Thus, the only non-zero case is when . Then, we obtain
Let and with , then it holds
Let and where is zero mean subgaussian with variance . Let and a constant, then using samples we can find such as
Let , then from Chebyshev’s inequality, we have
to get last inequality we used Cauchy–Schwarz. Taking we get and . ∎
Let , and . Then .
To bound , using Cauchy-Schwartz, it holds that
where in the last inequality we used that . ∎
Let and where is zero mean subgaussian with variance . Moreover, let and . Then, if ,we can find such that
with probability with samples, where is a universal constant.
Let . Then the variance of each term is
where in the third and in the fourth inequality we used that and in the last one we used Lemma A.4. Thus,
where is a universal constant. From Chebyshev’s inequality, we have that we need for an error at most . Then using the median trick, we can boost the confidence to with samples. ∎
Since the dimension of the subspace, that we have learned, is at most , the following standard lemma gives us that a grid with candidates suffices.
We are now ready to prove our main theorem, Theorem 3.1, which we restate for convenience.
Using Lemma A.6, the size of a cover is , because we need vectors with norm from to , our cover is created using the upper bound on . We have that there exists whose rows are vectors in the cover such that
where in the first inequality we used Lemma A.2 and in the second one Fact A.3. The error of the best hypothesis(i.e., the one that minimizes the error) in the cover, will be
Finally, using the estimator from Line 7, Lemma A.5, we conclude that samples are sufficient to test all the vectors of the cover and find the one that minimizes the error with high probability. For each element , let , which is the square error of the -th hypothesis in and let be the estimated value. We have with high probability that
where we used . Set , using Equations (9) and (10), then
where the last inequality follows from Jensen’s inequality. ∎
Let be a set of unit vectors of size . We can construct a new set of size with the property: For every and every vector , there exists a such that and .
For each vector , add the vectors for to . Then, for all and for every vector there exists a such that , for a value such that . ∎
Appendix B Empirical Estimates of Chow Parameters
In this section, we show that roughly samples are sufficient to estimate the degree- Chow parameters in spectral norm. We will prove the following lemma (Lemma 3.4 in the main body).
Let , where is an -Lipschitz, positive activation function such that . Let be the degree- Chow parameters of . Then for samples , where and is a zero-mean, subgaussian noise with variance , it holds with probability at least that
We will require the following lemma from [Ver10] about concentration of matrices with heavy-tailed independent rows.
We are also going to use the following concentration result on sums of random matrices.
We will also need the following well-known result on concentration of polynomials of independent Gaussian random variables. See, e.g., [O’D14].
We next bound the probability that is large. We have
where for the second inequality we used the union bound and for the last one we used the rotation invariance of the normal distribution and the Euclidean norm to set . Moreover, we used the fact that since is -Lipschitz.
where we used Lemma B.4 and the fact that , for all . Note that , where is the absolute constant of Lemma B.4. Combining Equation (B), Equation (12) and the fact that , we obtain
Define the random variables . Set and we have
To finish the proof, it remains to bound the norm of the sum . From Lemma B.3 we obtain that it is bounded above by
We now use Cauchy-Schwarz for the above expectation and observe that
which follows from Lemma B.4 similarly as our previous bound. Moreover, from Lemma B.2 we obtain that
Putting everything together, we obtain that with samples, the expected norm of is at most . The result now follows from Markov’s inequality. ∎
Appendix C Omitted Proofs from SQ Lower Bound
C.2 Preliminaries: Hermite Polynomials
We denote by the degree part of the Hermite expansion of , . We say that a polynomial is harmonic of degree if it is a linear combination of degree Hermite polynomials, that is can be written as
For a single dimensional Hermite polynomial it holds . Using this, we obtain that for a multivariate Hermite polynomial , where it holds
where is the multi-index that has position and elsewhere. From this fact and the orthogonality of Hermite polynomials we obtain
Let be a harmonic polynomials of degree . Then
Write and . Since the Hermite polynomials are orthonormal we obtain . Now, using Equation (13) iteratively we obtain
Observe that for every harmonic polynomial of degree we have that is a symmetric tensor of order . Since the degree of the polynomial is and we differentiate times this tensor no longer depends on . Using Fact C.1 we observe that this operation (modulo a division by ) preserves the norm of the harmonic polynomial , that is .
To simplify notation, write and . The (total) degree of is the same as the degree of . Write and . Then using Fact C.1 we obtain
Now we denote and observe that this tensor does not depend on . Moreover, denote , , and . We have
where to get the last equality we used again Fact C.1. To finish the proof we combine this inequality with Equation (C.2). ∎
In the following simple lemma we prove that random -dimensional subspaces in high dimensions are roughly orthogonal.
From Lemma C.4, it holds that there exists a set of of unit vectors such that , taking this vectors as columns in each matrix the result follows. ∎
Let . For every polynomial of degree at most , it holds .
Let and , for . Let be an operator over functions that rotates the coordinates by (i.e., ). Then
where to get the second equality we used that from basic trigonometric identities and in the last one we used that is an odd function. Let , where is the imaginary unit, then we are going to prove that as long as . We have
where is the argument (or the “phase”) of . This means that is an eigenfunction of and the corresponding eigenvalue. Thus, it holds
where we used that is an adjoint operator in the inner product space of continuous functions along with Equations (16), (17). Thus, , when , which happens when . To conclude the proof, note that every polynomial at most degree is a linear combination of the polynomials where . This can be seen by setting and , where and . ∎
C.3 Interpretation of the class ℋℋ\mathcal{H}
In order for the lower bound construction of Section 4 to produce useful lower bounds, it will be necessary that the function given in Lemma 4.8 is non-vanishing. It turns out that this is the case under fairly weak conditions. In order to state our final result, we will first introduce some terminology:
Given these we have the following result implying that for a number of functions of interest. For example, if , is a ReLU, then the even part of is the absolute value function, so for any even . Similarly, if is a sigmoid, for any odd .
We begin by noting that if and only if for some . We note that as a rotation preserves the degree- Hermite parts of a function, and therefore so does . In particular, In order to analyze this, we consider the variables and . We note that if in one variable is given by the Hermite expansion , that the two-variable version is given by Furthermore, we have that .
Now if , then and therefore . Otherwise, has non-vanishing coefficients for all with . Therefore, in this case will have a non-vanishing coefficient for all with and . Next, we need to understand what does to .
For this we note that and . Thus Therefore,
Thus, will be non-vanishing if and only if and there are some with and . We claim that such exist if and only if and . The only if part of this condition is clear. For the if part, we note that if these conditions are satisfied, we may take and .
Therefore, we have that if and only if there is some with and . Note that the -parity-part of has the same Hermite coefficients as for and 0 coefficient for . Thus, has a non-vanishing coefficient for some if and only if the -parity-part of has some non-vanishing coefficient of degree . Of course this happens if and only if the -parity-part of is not a polynomial with degree less than . This completes our proof. ∎