What Can ResNet Learn Efficiently, Going Beyond Kernels?
Zeyuan Allen-Zhu, Yuanzhi Li
Introduction
Neural network learning has become a key practical machine learning approach and has achieved remarkable success in a wide range of real-world domains, such as computer vision, speech recognition, and game playing . On the other hand, from a theoretical standpoint, it is less understood that how large-scale, non-convex, non-smooth neural networks can be optimized efficiently over the training data and generalize to the test data with relatively few training examples.
There has been a sequence of research trying to address this question, showing that under certain conditions neural networks can be learned efficiently . These provable guarantees typically come with strong assumptions and the proofs heavily rely on them. One common assumption from them is on the input distribution, usually being random Gaussian or sufficiently close to Gaussian. While providing great insights to the optimization side of neural networks, it is not clear whether these works emphasizing on Gaussian inputs can coincide with the neural network learning process in practice. Indeed, in nearly all real world data where deep learning is applied to, the input distributions are not close to Gaussians; even worse, there may be no simple model to capture such distributions.
The difficulty of modeling real-world distributions brings us back to the traditional PAC-learning language which is distribution-free. In this language, one of the most popular, provable learning methods is the kernel methods, defined with respect to kernel functions over pairs of data . The optimization task associated with kernel methods is convex, hence the convergence rate and the generalization error bound are well-established in theory.
Recently, there is a line of work studying the convergence of neural networks in the PAC-learning language, especially for over-parameterized neural networks , putting neural network theory back to the distribution-free setting. Most of these works rely on the so-called Neural Tangent Kernel (NTK) technique , by relating the training process of sufficiently over-parameterized (or even infinite-width) neural networks to the learning process over a kernel whose features are defined by the randomly initialized weights of the neural network. In other words, on the same training data set, these works prove that neural networks can efficiently learn a concept class with as good generalization as kernels, but nothing more is known.Technically speaking, the three-layer learning theorem of is beyond NTK, because the learned weights across different layers interact with each other, while in NTK the learned weights of each layer only interact with random weights of other layers. However, there exist other kernels— such as recursive kernels — that can more or less efficiently learn the same concept class proposed in .
In contrast, in many practical tasks, neural networks give much better generalization error compared to kernels, although both methods can achieve zero training error. For example, ResNet achieves 96% test accuracy on the CIFAR-10 data set, but NTKs achieve 77% and random feature kernels achieve 85% . This gap becomes larger on more complicated data sets.
To separate the generalization power of neural networks from kernel methods, the recent work tries to identify conditions where the solutions found by neural networks provably generalize better than kernels. This approach assumes that the optimization converges to minimal complexity solutions (i.e. the ones minimizing the value of the regularizer, usually the sum of squared Frobenius norms of weight matrices) of the training objective. However, for most practical applications, it is unclear how, when training neural networks, minimal complexity solutions can be found efficiently by local search algorithms such as stochastic gradient descent. In fact, it is not true even for rather simple problems (see Figure 1).Consider the class of degree-6 polynomials over 6 coordinates of the -dimensional input. There exist two-layer networks with F-norm implementing this function (thus have near-zero training and testing error). By Rademacher complexity, samples suffice to learn if we are able to find a minimal complexity solution. Unfortunately, due to the non-convexity of the optimization landscape, two-layer networks can not be trained to match this F-norm even with samples, see Figure 1. Towards this end, the following fundamental question is largely unsolved:
Can neural networks efficiently and distribution-freely learn a concept class,
with better generalization than kernel methods?
In this paper, we give arguably the first positive answer to this question for neural networks with ReLU activations. We show without any distributional assumption, a three-layer residual network (ResNet) can (improperly) learn a concept class that includes three-layer ResNets of smaller size and smooth activations. This learning process can be efficiently done by stochastic gradient descent (SGD), and the generalization error is also small if polynomially many training examples are given.
More importantly, we give a provable separation between the generalization error obtained by neural networks and arbitrary kernel methods. For some , with training samples, we prove that neural networks can efficiently achieve generalization error for this concept class over any distribution; in contrast, there exists rather simple distributions such that any kernel method (including NTK, recursive kernel, etc) cannot have generalization error better than for this class. To the best of our knowledge, this is the first work that gives provable, efficiently achievable separation between neural networks with ReLU activations and kernels in the distribution-free setting. In the end, we also prove a computation complexity advantage of neural networks with respect to linear regression over arbitrary feature mappings as well.
Roadmap. We present detailed overview of our positive and negative results in Section 2 and 3. Then, we introduce notations in Section 4, formally define our concept class in Section 5, and give proof overviews in Section 6 and 7.
Positive Result: The Learnability of Three-Layer ResNet
We wish to learn a concept class given by target functions that can be written as
To illustrate our result, we first assume for simplicity that for some of the form (2.2) (so the optimal target has zero regression error). Our main theorem can be sketched as follows.
Let and respectively be the individual “complexity” of and , which at a high level, capture the size and smoothness of and . This complexity notion shall be formally introduced in Section 4, and is used by prior works such as .
For any distribution over , for every \delta\in\big{(}(\alpha C_{\mathcal{G}})^{4},1\big{)}, with probability at least , SGD efficiently learns a network in the form (2.1) satisfying
The running time of SGD is polynomial in .
In other words, ResNet is capable of achieving population risk , or equivalently learning the output up to error. In our full theorem, we also allow label to be generated from with error, thus our result also holds in the agnostic learning framework.
we need samples to efficiently learn up to accuracy .
In contrast, the complexity of is , so
prior works need samples to efficiently learn up to any accuracy ,
Inductive Bias. Our network is over-parameterized, thus intuitively in the example above, with only training examples, the learner network could over-fit to the training data since it has to decide from a set of many possible coefficients to learn the degree 10 polynomial . This is indeed the case if we learn the target function using kernels, or possibly even learn it with a two-layer network. However, three-layer ResNet posts a completely different inductive bias, and manages to avoid over-fitting to with the help from .
Implicit Hierarchical Learning using Forward Feature Learning. Since , if we only learn but not , we will have regression error . Thus, to get to regression error , Theorem 1 shows that ResNet is also capable of learning up to some good accuracy with relatively few training examples. This is also observed in practice, where with this number of training examples, three-layer fully-connected networks and kernel methods can indeed fail to learn up to any non-trivial accuracy, see Figure 2.
Intuitively, there is a hierarchy of the learning process: we would like to first learn , and then we could learn much easier with the help of using the residual link. In our learner network (2.1), the first hidden layer serves to learn and the second hidden layer serves to learn with the help of , which reduces the sample complexity. However, the important message is that and are not given as separate data to the network, rather the learning algorithm has to disentangle them from the “combined” function automatically during the training process. Moreover, since we train both layers simultaneously, the learning algorithm also has to distribute the learning task of and onto different layers automatically. We call this process “forward feature learning”:
We point out forward feature learning is different from layer-wise training. For instance, our result cannot be obtained by first training the hidden layer close to the input, and then fixing it and training the hidden layer close to the output. Since it could be the case the first layer incurs some error (since it cannot learn directly), then it could be really hard, or perhaps impossible, for the second layer to fix it only using inputs of the form . In other words, it is crucial that the two hidden layers are simultaneously trained. This does not mean that the error of the first layer can be reduced by its own, since it is still possible for the first layer to learn and the second layer to learn , for an arbitrary (bounded) function .
A follow-up work. In a follow-up work , this theory of hierarchical learning is strengthened to further incorporate the backward feature correction step when training deep neural networks. In the language of this paper, when the two layers trained together, given enough samples, the accuracy in the first layer can actually be improved from to arbitrarily close to during the training process. As a consequence, the final training and generalization error can be arbitrarily small as well, as opposite to (or equivalently population risk ) in this work. The new “backward feature correction” is also critical to extend the hierarchical learning process from layers to arbitrarily number of layers.
Negative Results
For every constant , for every sufficiently large , there exist concept classes consisting of functions with complexities and such that, letting
then there exists simple distributions over such that, for at least of the functions in this concept class, even given N=O\big{(}(N_{\mathsf{res}})^{k/2}\big{)} training samples from , any function of the form (3.1) has to suffer population risk
Contribution and Intuition. Let us compare this to Theorem 1. While both algorithms are efficient, neural networks (trained by SGD) achieve population risk using samples for any distribution over , while kernel methods cannot achieve any population risk better than for some simple distributions even with samples.It is necessary the negative result of kernel methods is distribution dependent, since for trivial distributions where is non-zero only on the first constantly many coordinates, both neural networks and kernel methods can learn it with constantly many samples. Our two theorems together gives a provable separation between the generalization error of the solutions found by neural networks and kernel methods, in the efficiently computable regime.
More specifically, recall and only depend on individual complexity of , but not on . In Theorem 2, we will construct as linear functions and as degree- polynomials. This ensures and for being constant, but the combined complexity of is as high as . Since ResNet can perform hierarchical learning, it only needs sample complexity instead of paying (square of) the combined complexity .
In contrast, a kernel method is not hierarchical: rather than discovering first and then learning with the guidance of it, kernel method tries to learn everything in one shot. This unavoidably requires the sample complexity to be at least . Intuitively, as the kernel method tries to learn from scratch, this means that it has to take into account all many possible choices of (recall that is a degree polynomial over dimension ). On the other hand, a kernel method with samples only has -degrees of freedom (for each output dimension). This means, if , kernel method simply does not have enough degrees of freedom to distinguish between different , so has to pay in population risk. Choosing for instance , we have the desired negative result for all N\leq O\big{(}(N_{\mathsf{res}})^{k/2}\big{)}\ll o(d^{k}).
2 Limitation of Linear Regression Over Feature Mappings
for some regularizer . In this paper, we do not make assumptions about how the weighted are found. Instead, we focus on any linear function over such feature mapping in the form (3.3).
For sufficiently large integers , there exist concept classes consisting of functions with complexities and such that, letting
then for at least of the functions in this concept class, even with arbitrary dimensional feature mapping, any function of the form (3.3) has to suffer population risk
Interpretation. Since any algorithm that optimizes linear functions over -dimensional feature mapping has to run in time , this proves a time complexity separation between neural networks (say, for achieving population risk ) and linear regression over feature mappings (for achieving even any population risk better than ). Usually, such an algorithm also has to suffer from space complexity. If that happens, we also have a space complexity separation. Our hard instance in proving Theorem 3 is the same as Theorem 2, and the proof is analogous.
Notations
For notation simplicity, throughout this paper “with high probability” (or w.h.p.) means with probability for a sufficiently large constant . We use to hide factors.
where is a sufficiently large constant (e.g., ).
Concept Class
We denote by and . Intuitively, and are both generated by two-layer neural networks with smooth activation functions and .
Borrowing the agnostic PAC-learning language, our concept class consists of all functions in the form of Concept 1 with complexity bounded by tuple . Let be the population risk achieved by the best target function in this concept class. Then, our goal is to learn this concept class with population risk using sample and time complexity polynomial in and . In the remainder of this paper, to simplify notations, we do not explicitly define this concept class parameterized by . Instead, we equivalently state our theorem with respect to any (unknown) fixed target function with with population risk :
In the analysis we adopt the following notations. For every , it satisfies and . We assume is -Lipschitz continuous. It is a simple exercise (see Fact A.3) to verify that , and .
Overview of Theorem 1
We consider the vanilla SGD algorithm given in Algorithm 1.Performing SGD with respect to and is the same as that with respect to and ; we introduce notation for analysis purpose. Note also, one can alternatively consider having a training set and then performing SGD on this training set with multiple passes; similar results can be obtained.
Under Concept 1 or Concept 2, for every \alpha\in\big{(}0,\widetilde{\Theta}(\frac{1}{kp_{\mathcal{G}}\mathfrak{C}_{\mathfrak{s}}(\mathcal{G})})\big{)} and . There exist satisfying that for every , with high probability over , for a wide range of random initialization parameters (see Table 1), choosing
With high probability, the SGD algorithm satisfies
As a corollary, under Concept 1, we can archive population risk
Our Theorem 1 is almost in the PAC-learning language, except that the final error has an additive term that can not be arbitrarily small.
In the analysis, let us define diagonal matrices
which satisfy and .
The proof of Theorem 1 can be divided into three simple steps with parameter choices in Table 1.
In the first step, we prove that for all weight matrices not very far from random initialization (namely, all and ), many good “coupling properties” occur. This includes upper bounds on the number of sign changes (i.e., on and ) as well as vanishing properties such as being negligible. We prove such properties using techniques from prior works . Details are in Section C.1.
In the second step, we prove the existence of with and satisfying and . This existential proof relies on an “indicator to function” lemma from ; for the purpose of this paper we have to revise it to include a trainable bias term (or equivalently, to support vectors of the form ). Combining it with the aforementioned vanishing properties, we derive (details are in Section C.2):
In the third step, consider iteration of SGD with sample . For simplicity we assume so . One can carefully write down gradient formula, and plug in (6.3) to derive
Overview of Theorem 2 and 3
Consider the class of target functions , where
where for are distinct indices chosen from the first coordinates. There are clearly many target functions in this class.
Intuitively, represent the directions where the signal possibly lies, where usually the inputs would have high variance; and represent the directions that can be view as “background noise”, where the distribution can be arbitrary. For example when , such distribution can be very different from Gaussian distribution or uniform distribution over Boolean cube, yet kernel methods still suffer from high population risk when learning over these distributions comparing to using neural networks.
We first state the population risk for the three-layer ResNet to learn this concept class: Our Theorem 1 implies the following complexity on learning this concept class (after verifying that , , , , see Section D.4).
For every , for every \alpha\in\big{(}0,\frac{1}{\widetilde{\Theta}(2^{O(k)})}\big{)}, there exist satisfying that for every , for every target functions in the class (7.1), with probability at least 0.99 over and , given labels for , SGD finds a network with population risk
As an example, when is constant, is sufficiently large, and ,
Corollary 7.1 says that ResNet achieves regression error on the true distribution, with samples to learn any function in (7.1);
Theorem 2 says that kernel methods cannot achieve error even with samples. Hence, to achieve generalization , the sample complexity of any kernel method is at least .
Proof Overview. Our proof of Theorem 2 is relatively simple, and we illustrate the main idea in the case of . At a high level, given samples, the kernel regression function only has -degrees of freedom (each with respect to a sample point). Now, since there are possibly many target functions, if the kernel regression learns most of these target functions to some sufficient accuracy, then by some rank counting argument, the degree of freedom is not enough.
2 Linear Regression Over Feature Mappings
As an example, there exists sufficiently large constant such that, for every , for every , for every , there exists choice such that
Corollary 7.1 says that ResNet achieves regression error in time to learn any function in (7.1);
Theorem 3 says that linear regression over feature mapping cannot achieve regression error even if D=\Omega\big{(}{d_{1}\choose k}\big{)}\geq d^{2c}.
In particular, this means linear regression over feature mappings cannot achieve regression error even if . Since a linear regression over normally takes at least time/space to compute/store, this implies that ResNet is also more time/space efficient than linear regression over feature mappings as well.
Theorem 3 can be proved in the same way as Theorem 2, using exactly the same hard instance, since has exactly -degrees of freedom.
Experiments
Neural Networks Algorithms. Recall in our positive result on three-layer ResNet (see Theorem 1 and Footnote 12), to prove the strongest result, we only train hidden weights and but not the output layer . One can naturally extend this to show that Theorem 1 also holds when are jointly trained. For such reason, we implement both algorithms: 3resnet(hidden) for training only and 3resnet(all) for training all . This is similar for two-layer and three-layer fully-connected networks, where previously the strongest theoretical work is in terms of training only hidden weights , so we implement both (all) and (hidden) for them.
Kernel Methods. We implement conjugate kernel, which corresponds to training only the last (output) layer ; as well as neural tangent kernel (NTK), in which we train all the layers .
Setup. We choose the network width (i.e., parameter ) in the range until the largest possible value that fits into a 16GB GPU memory. We choose the popular random initialization: entries of (and their corresponding bias terms) are all i.i.d. from .This corresponds to choosing the standard deviation as . Some practitioners also use as the standard deviation. We have included an experiment with respect to that choice in our V1/V2 of this paper. We use similar initializations for two and three-layer networks.
Experiment 1: Performance Comparison. Since it is unfair to compare neural network training “with respect to hidden weights only” vs. “with respect to all weights”, we conduct two experiments. The first experiment is on training all layers vs. kernel methods, see Figure 2(a); and the second experiment is on training hidden layers vs. kernel methods, see Figure 2(b). We use training samples for the former case and samples for the latter case, because training the last layer together gives more power to a neural network.
In both experiments, we choose and so that test error is a threshold for detecting whether the trained model has successfully learned or not. If the model has not learned to any non-trivial accuracy, then the error is per output coordinate, totaling to in regression error.
From Figure 2, it is clear that for our choice of , training a three-layer ResNet is the only method among the ones we compare that can learn (even only non-trivially). All kernel methods fall far behind even when the network width is large.
𝛽ℱ𝑥𝛼𝒢ℱ𝑥\mathcal{H}(x)=\beta\mathcal{F}(x)+\alpha\mathcal{G}(\mathcal{F}(x)) with and varying . Experiment 2: Sensitivity on . One key assumption of this paper is to have to be sufficiently small, so that ResNet can perform hierarchical learning, by first learning the base signal , which is simpler and contributes more to the target, and then learning the composite signal , which is more complicated but contributes less.
In Figure 3, we verify that this assumption is indeed necessary. Instead of varying (which will change the error magnitude), we define and let vary between and . As shown in Figure 3, when , the base signal is larger than the composite signal, so indeed ResNet can perform hierachical learning; in contrast, when , learning the composite signal becomes practically impossible.
Other Findings. Although this paper proves theoretical separation between three-layer ResNet and kernel methods (and it is verified by Figure 2), we do not yet have
theoretical separation between two/three-layer fully-connected networks and kernel methods;
theoretical separation between three-layer ResNet and two/three-layer networks.
It seems in practice such separations do exist (as observed in Figure 2). We leave these as future research directions.
2 SGD Does Not Converge To Minimal Norm Solutions
We give a simple experiment to show that optimization methods (such as SGD) do not necessarily converge to minimal complexity solutions.
It is a simple experimental exercise to verify that, for every even and every , there exist This can be done by first considering and . Experimentally one can easily use SGD to train such two-layer networks to obtain some with such test errors. Then, for general , one can pad with zero columns; and for general , one can duplicate the rows of and re-scale.
Using simple Rademacher complexity argument, the above existential statement implies if we focus only on matrices with , then given training samples the Rademacher complexity is at most .This can found for instance in . A cleaner one page proof can be found in the lecture notes . This implies, for any and , if samples are given and if SGD finds any close-to-minimal complexity solution (i.e. with F-norm within some constant times ) that performs well on the training set, then it also generalizes to give small test error (i.e. test error ).
SGD cannot find solution with test error better than 0.69 (see Figure 4(a)), and
SGD cannot find solution with small training error and small Frobenius norm (see Figure 4(a)). Thus, SGD starting from random initialization fails to find the minimal complexity solution.
SGD cannot find solution with test error better than 0.98 (see Figure 4(b)), and
SGD cannot find solution with small training error and small Frobenius norm (see Figure 4(b)).
In Appendix A we give some more information about our concept class and complexity measure.
In Appendix B we review some simple lemmas from probability theory.
In Appendix C we give our full proof to Theorem 1.
In Appendix D we give our full proof to Theorem 2.
In Appendix E we include a variant of the existential lemma from prior work, and include its proof only for completeness’ sake.
Appendix A Complexity and Concept Class
In this section we introduce an alternative (but bigger) concept class.
where where and respectively have general complexity and . We further assume for all .
We have the following lemma which states that Concept 1 is a special case of Concept 2 (with constant factor blow up).
Under Concept 1, we can construct satisfying Concept 2 with general complexity and and with .
Lemma A.2 is a simple corollary of the following claim.
has general complexity where and .
Below we prove that the above claim holds. For each suppose we have as its Taylor expansion, then we can write
It is a simple exercise to verify that for all unit vectors . ∎
We also state some simple properties regarding our complexity measure.
The boundedness of is trivial so we only focus on . For each component , denoting by as the first coordinate of , and by as the first coordinates of , we have
As a result, . ∎
Appendix B Probability Theory Review
The following concentration of chi-square distribution is standard.
If is -dimensional, then for every
The following norm bound on random Gaussian matrix is standard.
For any , with probability it satisfies .
The first statement can be found for instance in [34, Proposition 2.4]. As for the second statement, it suffices for us to consider all possible sub-matrices of , each applying the first statement, and then taking a union bound. ∎
The following concentration is proved for instance in .
Let be i.i.d. samples from some distribution, where within a 4-tuples:
the marginal distribution of and is standard Gaussian ;
and are not necessarily independent;
and are independent; and
and are independent of and .
Let us consider a fixed , then since each , by Gaussian chaos variables concentration bound (e.g., Example 2.15 in ) we have that
Since this holds for every choice of we can complete the proof. The second inequality follows from sub-exponential concentration bounds. ∎
The next proposition at least traces back to and was stated for instance in .
Observe that is non-zero for some only if
Therefore, denoting by , for each such that , we must have so we have
Let be a constant parameter to be chosen later.
We denote by the index sets where satisfies . Since we know , we have for each . Using Chernoff bound for all , we have with probability at least ,
We denote by the index set of all where . Using (B.1), we have for each it satisfies This means
From above, we have \|D^{\prime}\|_{0}\leq|S_{1}|+|S_{2}|\leq O\big{(}\xi m^{3/2}+\frac{\delta^{2}}{\xi^{2}}\big{)}. Choosing gives the desired result. ∎
Appendix C Theorem 1 Proof Details
In the analysis, let us define a diagonal matrices
which satisfy and .
Throughout the proof, we assume .
In this subsection we present our coupling lemma. It shows that for all weight matrices not very far from random initialization (namely, all and ), many good properties occur. This includes upper bounds on the number of sign changes (i.e., on and ) as well as vanishing properties such as being negligible. We prove such properties using techniques from prior works .
Suppose , \tau_{w}\in\big{[}m^{1/8+0.001}\sigma_{w},m^{1/8-0.001}\sigma_{w}^{1/4}\big{]}, and \tau_{v}\in\big{[}\sigma_{v}\cdot(k/m)^{3/8},\sigma_{v}\big{]}. Then, for every fixed , with high probability over , we have that for all satisfying and , it holds that
Using basic probability argument (appropriately scaling and invoking Proposition B.4) we have
For the first term, we have with high probability due to concentration of chi-square distribution, and then using the randomness of and applying concentration of chi-square distribution again, we have with high probability.
For the second term, invoking Proposition B.4 again, we have
Recall for every -sparse vectors , it satisfies with high probability (see Proposition B.2). This implies
for s=O\left(\big{(}\frac{\tau_{w}}{\sigma_{w}\sqrt{m}}\big{)}^{2/3}\cdot m\right). Together, we have
We use Lemma lem:couplingb together with , where the property holds with high probability using Proposition B.2.
Then, for the first term, we have and by by concentration of chi-square distribution we have with probability at least , and then using the randomness of and applying chi-square concentration again (see Proposition B.1), we have with probability at least ,
For the second term, invoking Proposition B.4, we have
Recall for every -sparse vectors , it satisfies with probability at least (see Proposition B.2). This implies
This is a byproduct of the proof of Lemma lem:couplinge.
Combining this with Lemma lem:couplinge gives the proof.
C.2 Existantial
In this subsection, we prove the existence of matrices with and satisfying and .
This existential proof relies on an “indicator to function” lemma that was used in prior work ; however, for the purpose of this paper we have to revise it to include a trainable bias term (or equivalently, to support vectors of the form ). We treat that carefully in Appendix E.
for all and , .
Finally, choosing finishes the proof.
Next, we can combine coupling and existential lemmas:
Under the assumptions of Lemma C.1 and Lemma C.2, we have
For every -sparse vectors , it satisfies with high probability (see Proposition B.2). We also have . Therefore, where is the maximum sparsity of , which satisfies by Lemma lem:couplinga. This, combining with Lemma lem:exist-priora gives
Again, for every -sparse vectors , it satisfies with high probability. We also have . Therefore,
where is the maximum sparsity of , which satisfies by Lemma lem:couplingd. This, combining with Lemma lem:exist-priorb gives
This combines Lemma lem:couplingb and Lemma lem:exist-and-couplea, together with our sufficiently large choice of .
C.3 Optimization
In this subsection we give some structural results that shall be later used in the optimization step. The first fact gives an explicit formula of the gradient.
When , we can write its gradient as follows.
The next claim gives simple upper bound on the norm of the gradient.
For all in the support of , with high probability over , we have that for all satisfying and , it holds that
For the gradient in , we derive using the gradient formula Fact C.4 that
Above, the last inequality uses and with high probability (using random matrix theory, see Proposition B.2), as well as . Similarly, using the gradient formula Fact C.4, we derive that
where the last inequality uses Lemma lem:couplingc and . ∎
The next claim gives a careful approximation to , which according to Fact C.4 is related to the correlation between the gradient direction and .
In the same setting as Lemma C.1 and Lemma C.2, suppose we set parameters according to Table 1. Then, we can write
and for every , with high probability .
For the term, under expectation over ,
where the last inequality uses Lemma lem:couplingf and Lemma lem:exist-and-couplec, together with .
For the term, under expectation over ,
where the first inequality uses Lemma lem:exist-and-couplea and Lemma lem:exist-and-coupleb, as well as the Lipscthiz continuity of (which satisfies ); and the second inequality uses and the definition of .
For the term, under expectation over ,
where the inequality uses Lemma lem:couplingb, Lemma lem:couplinge and .
Combining this with Claim C.7, and using , we have
As for the absolute value bound, one can naively derive that with high probability , , , and (by Lemma lem:couplingc and lem:couplingg). Combining them with and \alpha\mathfrak{B}_{\mathcal{F}\circ\mathcal{G}}\leq\alpha\big{(}\mathfrak{B}_{\mathcal{F}}\mathfrak{L}_{\mathcal{G}}+\mathfrak{C}_{\mathfrak{s}}(\mathcal{G})\big{)}\leq\frac{1}{kp_{\mathcal{G}}\mathfrak{C}_{\mathfrak{s}}(\mathcal{G})}\big{(}\mathfrak{B}_{\mathcal{F}}\mathfrak{L}_{\mathcal{G}}+\mathfrak{C}_{\mathfrak{s}}(\mathcal{G})\big{)}\leq\tau_{w} finishes the proof. ∎
Finally, we state a simple claim that bounds the norm of given the norm of .
In the same setting as Lemma C.1, if we additionally have , for every fixed , with high probability over ,
Using Lemma lem:couplingg we have , and using the boundedness we have . We also have . Together, we have
Using we finish the proof. ∎
C.4 Proof of Theorem 1
Under Concept 1 or Concept 2, for every \alpha\in\big{(}0,\widetilde{\Theta}(\frac{1}{kp_{\mathcal{G}}\mathfrak{C}_{\mathfrak{s}}(\mathcal{G})})\big{)} and . There exist satisfying that for every , with high probability over , for a wide range of random initialization parameters (see Table 1), choosing
With high probability, the SGD algorithm satisfies
We first assume that throughout the SGD algorithm, it satisfies
We shall prove in the end that (C.3) holds throughout the SGD algorithm.
On one hand, using Claim C.6, at any point , we have
where comes from Claim C.6. On the other hand, using and , we have
Therefore, as long as , it satisfies
After telescoping for ,
Choosing , taking expectation with respect to on both sides, and using Claim C.6 (by noticing ) and the definition of , we have
Above, the last inequality uses (see Fact A.3) and the choice of from Lemma C.2.
Using , , we have as long as ,
Finally, we need to check that (C.3) holds. To do so, we use from Claim C.6 and apply martingale concentration on (C.4) and derive that, with high probability
Using and , and using the relationship , we have
we can ensure that with high probability for all (so (C.3) holds).
Finally, we note that it satisfies with the choice . ∎
Appendix D Theorem 2 and Theorem 3 Proof Details
Our proof relies on the following two structural lemmas. The first one is a simple corollary of the Parseval’s equality from Boolean analysis.
For every , for every function , suppose there exists of size and such that
Then we must have and .
The lemma follows from the following equality that can be easily verified:
The next one can be proved by carefully bounding the matrix rank (see Section D.3).
Throughout the proof of Theorem 2, for notational simplicity, we re-scale inputs by so that , and also re-scale in the target function (7.1) to .
For notation simplicity, below we restate Theorem 2 with respect to one single output and . The full statement for multiple outputs and more general distributions is a simple corollary (see Remark D.3).
However, according to Lemma D.2, as long as , we know that the above condition cannot hold for at least fraction of the of size . This completes the proof. ∎
In the full statement of Theorem 2, there are multiple outputs . It suffices to focus on an arbitrary (say the first) coordinate and then apply the above lower bound.
and the final statement can be derived using the following simple property, for every
D.2 Proof of Theorem 3
For notation simplicity, we re-scale inputs by so that , and also re-scale in the target function (7.1) to .
Again for notation simplicity, below we restate Theorem 3 with respect to one single output and . The full statement for multiple outputs and more general distributions is analogous (in the same spirit as Remark D.3).
This is exactly (D.2) in the proof of Theorem 2, so the rest of the proof follows analogously by applying Lemma D.2. ∎
D.3 Proof of Lemma D.2
Let us define so they become
where is matrix with zero diagonals. Since for every , it satisfies , we conclude that .
To the contrary, we have . This gives a contradiction. ∎
D.4 Proof of Corollary 7.1
To apply Theorem 1, we need to carefully verify Concept 1 by appropriately re-scaling. Without loss of generality suppose . For every , let us define
which satisfies , , and . Next, let us define
and one can verify that and therefore . It also satisfies and . In sum, we have constructed
and we can thus apply Theorem 1 (after rescaling the label by ). ∎
Appendix E Existential Tool
In this section we include a simple variant of the existential lemma from . We include the proofs only for completeness’ sake.
Consider random function in which
We have the following main lemma of this section:
be the similarly defined random function. We have the following:
We stress that Lemma E.1’ is a modified version of Lemma G.1 from [4, ver.4]. The only difference is that in their original Lemma G.1, the indicator function has an additional random bias term (that is, becomes ). In our Lemma E.1’, we do not allow such bias and thus we can only fit functions whose Taylor expansions have only zero-order and odd-order terms (as opposed to arbitrary smooth functions in the original Lemma G.1).
where are independent random variables.
where is an -dimensional Gaussian.
In the remainder of this section, for sake of completeness, we first prove Lemma E.2 in Section E.2, and then prove Lemma E.1’ and Section E.3.
E.2 Proof of Lemma E.2: Indicator to Function
Recall from by renaming variables it suffices to prove Lemma lem:fit_fun_main_nobiasa. For notation simplicity, let us denote and where are two independent random standard Gaussians.
Throughout the proof, we also take an alternative view of the randomness. We write and for two independent .This is possible for the following reason. Let be unit vector orthogonal to . We can write where are two independent Gaussians.
We first make a technical claim involving in fitting monomials in . It is a simplified version of Claim B.1 of [4, ver.4].
Let be the degree- Hermite polynomial (see Definition A.4 of [4, ver.4]). For every odd integer there exists constant with such that
(The proof of Claim E.3 is identical to that of the original Claim B.1 of [4, ver.4] by forcing the bias term .)
We next use Claim E.3 to fit arbitrary functions . By Taylor expansion, we have
Next, recall the following claim on absolute values of the Hermite polynomials (see Claim B.2 of [4, ver.4]).
where uses Claim claim:fit_fun:UP-LOa and Claim claim:fit_fun:UP-LOb. In other words, if we define
As for the range of , we use Claim claim:fit_fun:UP-LOb and Claim claim:fit_fun:UP-LOc to derive that
As for the Lipschitz continuity of on its first coordinate , we observe that for each , has zero sub-gradient for all . Therefore, it suffices to bound \big{|}\frac{d}{dz}h_{i}(z)\big{|} for . Replacing the use of Claim claim:fit_fun:UP-LOc by Claim claim:fit_fun:UP-LOd immediately gives us the same bound on the Lipschitz continuity of with respect to .
Above, ① uses inequality for all .
This finishes the proof of Lemma lem:fit_fun_main_nobiasa.
E.3 Proof of Lemma E.1’
Without loss of generality we assume in this proof. (Both and are positive homogeneous in .)
where has the same distribution with in Lemma E.2. By Lemma E.2, we have that
Fit a combination . We can re-define (the norm grows by a maximum factor of )
Fit multiple outputs. If there are outputs let us re-define (the norm grows by a maximum factor of )
Now, re-scaling each by a factor of and re-scaling by , we can write
Now, we use and apply the concentration from Lemma B.3, which implies for our parameter choice of , with probability at least
Norm on . According to its definition in (E.3), we have for each , with high probability \|w^{\divideontimes}_{j}\|_{2}\leq\widetilde{O}\big{(}\frac{kp\mathfrak{C}_{\varepsilon}(\Phi,1)}{m}\big{)} (here the additional is because we have re-scaled by ). This means \|\mathbf{W}^{\divideontimes}\|_{2,\infty}\leq\widetilde{O}\big{(}\frac{kp\mathfrak{C}_{\varepsilon}(\Phi,1)}{m}\big{)}. As for the Frobenius norm,
Now, for each , we know that is a summation of i.i.d. random variables, each with expectation at most by Lemma E.2. Applying Hoeffding’s concentration, we have with probability at least
Putting this back to (E.4) we have . This finishes the proof of Lemma E.1’.