The merged-staircase property: a necessary and nearly sufficient condition for SGD learning of sparse functions on two-layer neural networks
Emmanuel Abbe, Enric Boix-Adsera, Theodor Misiakiewicz
Introduction
Major research activity has recently been devoted to understanding what function classes can be learned by SGD on neural networks. Two extremal cases are well understood. On one extreme, neural networks can be parametrized to collapse under SGD to linear models, for which a clear picture has been drawn [JGH18, LL18, Du+18, Du+19, ALS19, ALL19, Aro+19, Zou+20, OS20]. On the other extreme, neural networks with zero parametrization constraint (besides polynomial size) have been shown to be able to emulate essentially any efficient learning algorithm [AS20, Abb+21] albeit with non-regularHere we refer to ‘regular’ for architectures used in tangent kernel results or more generally architectures used in neural network applications. architectures. So both of these extremes admit a fairly complete characterization. However, none of these seem to capture the right behavior behind deep learning, or more specifically, behind non-linear but regular networks. Such networks are known to go beyond linear learning [Bac17, Gho+21a, DM20, Ref+21, AL19, Gho+19, YS19, AL20, LMZ20] (even though the NTK can be competitive on several instances [Gei+20]), and seem to exploit structural properties of the target functions in order to build efficiently their features.
Can we thus characterize learning in the non-linear regime for regular networks? Various important results have been developed in this direction, we focus here on the most relevant to us. [CB18, MMN18, RV18, SS20] show that for a certain scaling at initialization, the SGD dynamics on large-width neural networks concentrates on a fully non-linear dynamics, the mean-field dynamics, described by a Wasserstein gradient flow, contrasting with the linear dynamics of the NTK regime [JGH18]. In [AL19, AL20a], the power of deep networks is demonstrated by showing how SGD and quadratic activations can efficiently learn a non-trivial teacher class hierarchically, with the notion of backward feature correction [AL20a].
However, no tight necessary and sufficient characterization of what functions are learnable emerges from these works. The difficulty being that tight necessity results are difficult to obtain in such a setting since SQ-like arguments [Blu+94, FGV17, Kea98, BKW03, Fel16, Yan05, Fel+17, SVW15, AS20, Abb+21, Goe+20] are not expected to be tight (besides for the extreme case of unconstrained networks [AS20, Abb+21]), and sufficiency results are significantly more difficult to obtain due to the more complex (non-linear) dynamics of SGD training.
Is there hope to characterize tight necessary and sufficient conditions for function classes to be learnable by standard SGD on standard neural networks?
As a first attempt in that direction, we focus in this paper on a natural setting: learning sparse functions on the -dimensional hypercube, i.e., functions that depend on a small latent (unknown) subset of coordinates of the input. We further restrict the optimization regime considered to two layers neural networks trained by one-pass batch-SGD in the mean-field regime. This allows us to study a regime of optimization that goes beyond the linear regime while averaging out some of the complexity of studying non-linear SGD.
The motivation for the setting of learning sparse function is three-fold: (1) Linear (fixed features) methods do not adapt to latent sparsity, and suffer from the curse of dimensionality [Bac17]. (2) On the contrary, [Bac17, Sch20] shows that neural networks can overcome this curse and learn sparse functions sample-efficiently. However, these works do not provide tractable algorithms and the question of when SGD-trained neural networks can adapt to sparsity remains largely open. (3) Some sparse functions, such as monomials, are known to be much harder to learn than others from SQ-like lower bounds [Kea98, Blu+94, Abb+21], and we expect SGD to inherit some of this complex behavior. Therefore, the problem of learning sparse functions presents a clear-cut separation between fixed-feature and feature learning methods, and can help understand the limits of SGD-training on neural networks.
Both of these functions are -sparse, and both present the same tight sample-complexity lower bound of to be learned by any linear method. However, are these functions equivalent for SGD-trained neural networks? If not, can we obtain a fine-grained analysis that separates them?
In this paper, we introduce the following notion: we say that a latent function is strongly SGD-learnable in -scaling, if samples are enough to learn for arbitrary latent subspace and dimension , using batch-SGD on a two-layer neural network in the mean-field regime. The main contribution of this paper is then to characterize with a necessary and nearly sufficient condition the class of functions that are strongly SGD-learnable in -scaling. This is achieved with the merged-staircase property (MSP), stating that the non-zero Fourier coefficients of can be ordered as subsets such that for any ,
For instance, has Fourier coefficients (monomials) that can be ordered as , and each new set is incremented only by one element at each time. So satisfies the MSP (or is an MSP function with a slight abuse of terminology) and so is the function . However, the function directly makes a leap to a degree-3 Fourier coefficient and does not therefore satisfy the MSP. Our main results thus imply that can be learned with samples in this regime, but not . The near sufficiency part in our result stands for the fact that the sufficiency result is proved for “generic” merged-staircase functions, i.e., excluding a measure zero subclass. This ‘genericity’ is in fact needed, as we provide degenerate examples in Section 4 for which the strong SGD-learnability in -scaling is indeed not achievable.
The terminology MSP comes from the fact that this condition generalizes the basic staircase property introduced in [Abb+21a], which only encompasses nested chains of coefficients with , such as the vanilla staircase function (e.g., ) and slight generalizations with multiple chains. In [Abb+21a] it is shown that staircase functions are learnable by neural nets that are deep bur sparse, and with an unconventional gradient-based training algorithm (see Section 1.2 for further discussion). Further [Abb+21a] does not provide necessary conditions for learning, nor fine-grained complexity guarantees (beyond ‘polynomial’).
Finally, while strong SGD-learnability is defined for a fixed latent function and fixed , the number of samples required to fit MSP functions remains polynomial in for growing sufficiently slowly in . This is of interest because in this regime, we can show that the considered functions are not learnable by any linear methods with any sample complexity (or feature space dimension) that is polynomial (using contribution (4) below). Thus the merged-staircase functions of such degree are efficiently learnable by SGD on networks of depth two but not by linear methods.
We now formally define the Merged-Staircase Property. Let us call any a set structure.
We say that is a Merged-Staircase Property (MSP) set structure if the sets can be ordered so that for each , .
Let be the non-zero Fourier coefficients of , i.e., iff . We say that satisfies the merged-staircase property (MSP) if is a MSP set structure.
In words, satisfies the MSP if the monomials in its Fourier decomposition can be ordered sequentially such that the supports of the monomials grow by at most one at a time. Examples of MSP functions include vanilla staircases (i.e., ), , or , but not , , or . We briefly summarize our results here:
We show that for non-MSP , the associated dimension-free dynamics stays bounded away from . From the previous equivalence, we deduce that MSP is necessary for a function to be strongly -SGD-learnable.
We first show that vanilla staircases are strongly -SGD-learnable for smooth activation functions as long as for .
For general MSP functions, however, some symmetric MSP functions have degenerate dynamics and are not strongly -SGD-learnable (see Section 4). We show instead that MSP are almost surely strongly -SGD-learnable. I.e., the degenerate examples are a measure-zero set. This is proved for generic degree- polynomial activations, and we explain how one can extend this result to generic smooth activations in the appendix.
One can take MSP functions (e.g., vanilla staircases) with slowly growing with so that the overall sample complexity of the above neural network results stay as , while we show that any linear method requires a sample complexity of .
These main results are further achieved with several side results of independent interest: (i) The approximation of the standard mean-field dynamics by the dimension-free dynamics, valid for -sparse target functions and . We provide a new version of the non-asymptotic bounds from [MMN18, MMM19], which now compares SGD with this dimension-independent dynamics; (ii) A new proof technique to study layer-wise SGD dynamics which reduces the proof of global convergence to a polynomial identity testing problem, i.e., whether a certain polynomial is non-identically zero; (iii) An improvement of prior dimension lower-bounds for linear (kernel) methods [Hsu+21, Hsu, KMS20] that is tighter for function classes that are non-almost orthogonal (such as staircase functions, allowing for contribution (4) above).
The rest of the paper is organized as follows. The next section overviews related work. Section 2 provides a formal definition of strong SGD-learnability in -scaling. In Section 3, we introduce the dimension-free dynamics and the equivalence with strong -SGD-learnability. The MSP necessary condition is then derived as a direct consequence of this equivalence. In Section 4, we provide our sufficient conditions for strong -SGD-learnability. In Section 5, we discuss how this implies a separation with linear methods.
2 Further related literature
[Abb+21a] introduces a class of staircase functions, which our merged-staircase function class generalizes. They show that staircase functions are learnable by some neural nets with a gradient-based training algorithm. However, the approach remains non-standard: (i) the network’s layers are sparse in order to guide the construction of the features; (ii) a coordinate descent variant of SGD is used that differs from the classical SGD algorithm. Further, the analysis is carried in the ‘polynomial scaling lens’ rather than a finer sample complexity, and no necessity results are derived. In contrast, we provide here both a necessary and nearly sufficient characterization for SGD-learning on a two-layer neural networks in the fine-grained -scaling.
Multiple works have used mean-field (also called distributional) dynamics to approximate the SGD trajectory. Relevant to us is [CB20] which showed that neural networks trained in the mean-field regime converge to a max-margin classifier that is independent of the dimension for latent low-dimensional target functions. However, these works do not provide quantitative results in terms of sample-complexity. A notable exception is [MMN18] which studies classifying anisotropic gaussians: they show that the mean-field dynamics concentrates on a simplified low-dimensional dynamics as . However, this simplification is due to rotational invariance of the problem and not the sparsity of the target function.
In approximation theory, it has been understood for a long time that sparse functions are naturally well approximated by neural networks [Bar93]. Recent work [Bac17, Sch20, Gho+21a, CMM21] have shown that neural networks can learn sparse functions more sample-efficiently than linear methods. However, these works do not provide tractable algorithms.
Finally, a string of works [YS19, AL19, AL20, LMZ20, DM20, Ref+21, Gho+21, Gho+21a, Mal+21, Kar+21, SA20] have shown separation results between gradient-trained neural networks and fixed-features models. We refer to Appendix B of [Mal+21] for a detailed survey. In particular, [DM20] considers the learning of parity functions, with a modified input distribution that gives correlation to the response and allows for domain extraction; it also uses the population dynamics (infinite samples). In [MS20], the learning of Boolean circuits of logarithmic depth is considered via neural networks with layer-wise gradient descent, but with an architecture that is required to match the Boolean circuit being learned, i.e., not with a ‘regular’ or ‘blackbox’ architecture. Lastly, [Bas+19, Cao+21] show that during training, SGD on 2-layer networks learns faster the lower frequency components of a target function, in similar spirit to low degree monomials, but the approach relies on the linear regime rather than the non-linear regime of interest here, and suffers from an exponential dependency on the degree.
Strong SGD-learnability in O(d)𝑂𝑑O(d)-scaling
We first consider a general definition for a class of sparse functions to be learnable. We take a sequence of integers (here, we allow the sparsity parameter to grow with ) and consider a general class of functions defined as with .
This definition covers many scenarios that occur in practice where the practitioner is allowed to tune the hyperparameters of the dynamics. While this choice leaves the question of tractability open, we note that the requirement that learnability must hold uniformly over all possible latent subspaces excludes many irregular scenarios. Furthermore, the next definition will require strong regularity on the hyperparameters, and our sufficiency results will hold for simple choices of hyperparameters.
In order to introduce strong SGD-learnability, we will restrict the previous definition in three major ways: (1) we consider a fixed dimension and function ; (2) we consider the scalingExtending our results to , and establishing how this relates to the ‘leap’ in the staircase definition (i.e., how can one jump monomial degrees) is a natural future direction to this work. of ; (3) we restrain the hyperparameters to be in either two regimes (i) small batch size and step size trained for steps (“continuous”); and (ii) large batch size and step size trained for a total number of steps (“discrete”). For the sake of presentation, we will only present the continuous regime in the main text and defer the presentation of the discrete regime to Appendix C. We will assume that the hyperparameters obey the following for some constant (independent of ):
(One-pass) We have fresh samples at each steps, meaning are iid. Furthermore, the response variable is bounded .
(Boundedness and lipschitzness of hyperparameters) There exists a constant such that , and . Furthermore, .
Conditions - guarantee that as long as are taken sufficiently large, there exists a continuous mean-field dynamics that well-approximates batch-SGD up to (continuous) time depending on . An analogous statement is true for strong-SGD-learnability in the “discrete regime”, except convergence is to a family of limiting discrete-time dynamics (deferred to Appendix C). This allows us to get a necessary condition for strong-learnability by studying the limiting dynamics (see next section).
Finally, we note that for any degree- sparse function , any linear method (e.g., arbitrary kernel or random feature methods) will require samples to fit functions uniformly well over all latent subspaces (see Section 5 for a formal statement). As emphasized in the introduction, this bound is not adaptive to the sparsity parameter . In particular, any non-linear that is strongly -SGD-learnable provides a separation result between SGD-trained neural networks and linear methods.
Continuous dimension-free dynamics and necessary condition
For simplicity, the results in this section are stated in the ‘continuous regime’ of strong SGD-learnability. Discrete versions can be found, with little modification, in Appendix C.
are bounded Lipschitz and .
Note that for any obeying , there exists functions such that holds with same constant . Conversely, any discretization of obeys with constants .
and we denote with a slight abuse of notation, .
We see that can be seen as a two layer neural network in dimension , with adaptive Gaussian smoothing. Taking with fixed, (with distribution satisfying ) converges in distribution to with , and , and the dynamics (MF-PDE) simplifies into the following dimension-free dynamics
The following theorem provides a non-asymptotic bound between the (bSGD) solution and the (DF-PDE) solution :
Assume conditions -, hold, and let . There exist constants and depending only on the constants in -, (in particular, independent of ), such that for any , , , we have
The proof of Thm. 3.1 can be found in App. B.2.1. An extension of the results in [MMM19] bounds the difference between (bSGD) and (MF-PDE) dynamics, and then we use a propagation-of-chaos argument to bound the distance between the (MF-PDE) and (DF-PDE) solutions.
From Theorem 3.1, (DF-PDE) is a good approximation of (bSGD) as long as are taken sufficiently large while keeping bounded. This leads to the equivalence described in the introduction (the proof can be found in Appendix B.2.1):
For generic activation, we have . Hence, Theorem 3.2 states that is strongly -SGD-learnable if and only if the global minimizer is dynamically reachable by a gradient flow initialized at . See Appendix A for additional discussions and numerical illustrations. In Figure 1, we plotted a comparison between (bSGD) and (DF-PDE) for and shifted sigmoid activation . We fix , , , , and . Let us emphasize a few prominent features of this plot: 1) The (DF-PDE) approximation tracks well (bSGD) until convergence even for moderate , despite a convergence with nontrivial structure. 2) The monomials are picked up sequentially with increasing degree, which agrees with the intuition that lower-degree monomials guide SGD to learn higher degree monomials. 3) (DF-PDE) reaches a global minimum, which by Theorem 3.2 implies that is strongly SGD-learnable in -scaling.
We can show that the (DF-PDE) dynamics with without MSP cannot reach arbitrarily small test error when initialized with . By Theorem 3.2, this implies that MSP is necessary for strong SGD-learnability in -scaling.
for some using the mean value theorem. Recalling that , we deduce that .
Sufficient conditions for strong SGD-learnability
In the previous section, we saw that having MSP is necessary for strong -SGD-learnability. Is the converse true? Is any MSP function strongly SGD-learnable in the -scaling?
To bypass this difficulty, we prove a learnability result that holds for “generic” MSP functions – i.e., that holds almost surely over a random choice of non-zero Fourier coefficients. Formally, for any set structure , let us define a measure over functions that have those Fourier coefficients.
Our main sufficiency result shows that the degenerate cases are a measure-zero set. In this sense, there are very few bad examples, and so MSP structure is “nearly” sufficient for strong -SGD-learnability.
For any MSP set structure , is strongly -SGD-learnable almost surely with respect to , using activation function where .Technically speaking, for the strong SGD-learnability definition we cannot take as it is not bounded. However, we take an activation function that equals on the interval and is bounded elsewhere.
The converse to this result is implied by the necessity result of the previous section, which states that for any with non-zero Fourier coefficients (set structure) that is not MSP, is not strongly -SGD-learnable. While we prove Theorem 4.2 for a particular activation, we note that the proof implies that the same is true for any degree- polynomial activation almost surely over its -coefficients (see Theorem E.5 in Appendix E). In Appendix F we show how this result extends to generic smooth (non-polynomial) activations as long as a certain polynomial is not identically for a given set structure (which we show with a small technical caveat).
In the special case of functions with “vanilla staircase” structure we do not need a genericity assumption, and we require weaker assumptions on the activation function.
The proofs for Theorems 4.2 and 4.3 follow a similar approach. From the equivalence stated in Theorem 3.2, it is sufficient to display, for each , hyperparameters such that the (DF-PDE) dynamics reaches -risk. We choose (no regularization) and initialization and (this choice simplifies the analysis as ). We split the learning in two phases: in Phase 1, we train the first layer weights for time while keeping fixed, and in Phase 2, we train the second layer weights for time while keeping fixed.
The goal of the analysis in Phase 1 is therefore to prove this lower bound on the eigenvalues of the kernel matrix. Phase 1 corresponds to a nonlinear dynamics, and is a priori unclear how to analyze. In the case of vanilla staircases, we show that it is enough to track the leading order in for each coordinates and take small enough: the lower bound on the eigenvalues of follows from a simple algebraic fact (see Appendix D for the detailed proof). For general MSP set structure, it is not enough to only track the leading order term. We show instead that it is enough to lower bound a kernel matrix obtained from a simplified dynamics . The weights can be written in terms of polynomials in , and , with coefficients defined explicitly by a recurrence relation and only depending on the set structure . Using algebraic facts about the linear independence of large powers of polynomials and plugging , we show that for small enough, by anti-concentration of polynomials, which implies the lower bound on . The proof can be found in Appendix E. We present a more general argument in Appendix F for non-polynomial activations, where we show instead that the polynomials are not identically by adding a perturbation to the activation.
Separation with linear methods
It is well known that any SQ algorithm (adaptive or not) with polynomially-many queries and polynomial query precision cannot learn the class of degree monomials if grows with the input dimension [Kea98, Blu+94], and likewise no linear method with polynomially many features or samples can learn this function class [Hsu+21, Hsu, KMS20]. But the implication is not obvious for staircase functions of growing degree. These functions contain monomials of growing degree, but the hierarchical structure could potentially allow a sequential learning of these monomials; in fact, staircases of degree are efficiently SQ learnable with adaptive queries as one can sequentially query the monomials of increasing degree (making at most queries per degree, e.g., at most queries for vanilla staircases). We thus need a lower-bound on linear methods that goes beyond general SQ lower-bounds, which we obtain by separating the analysis using subspace projections.
We will further denote . Popular examples include random feature models ( is equal to the number of random features) and kernel methods ( typically). While the optimization problem (72) is over a (potentially) infinite dimensional space , it is an easy exercise to verify that which has dimension bounded by .
Let a linear subspace. Let such that and for all . For any linear method, if , then we must have
For any linear method, if then we must have . Similarly, if then we must have .
Note that kernel and random features methods achieve the lower bound for [Gho+21, MMM21]. Comparing Proposition 5.1 with the result of Section 4, we get the following separation results between SGD-trained neural networks and linear methods:
SGD on two-layer neural networks outperforms linear methods almost surely on non-linear MSP functions ( versus for degree- MSP).
We obtain from Proposition 5.2 that for any , linear methods must have to learn the vanilla staircase of degree , while Theorem 4.3 can still guarantee a sample complexity of for growing slowly enough with .
Conclusion and future directions
In this paper, we considered learning sparse functions in arbitrarily large ambient dimension, using two-layer neural networks trained by batch-SGD in the mean-field regime. We proved that the merged-staircase property is a necessary and nearly-sufficient condition for such functions to be learnable on such models in sample-complexity. The near sufficiency part, which excludes a measure-zero subset, is unavoidable as there exist symmetric MSP functions with degenerate dynamics that are not strongly SGD-learnable in -scaling. This provides a regime where one can achieve a tight characterization of functions that are learnable by regular SGD on regular neural networks, while going beyond the linear regime.
Finally, it is natural to seek counterparts of the results in this work and counterparts of the staircase notions for other Hilbert spaces than the one considered here.
Acknowledgements
We thank Guy Bresler, Dheeraj Nagaraj, and Nati Srebro for stimulating discussions. We thank the Simons Foundations and the NSF for supporting us through the Collaboration on the Theoretical Foundations of Deep Learning (deepfoundations.ai). This work was done (in part) while E.B. and T.M. were visiting the Simons Institute for the Theory of Computing and while E.B. was visiting the Bernoulli Center at EPFL.
References
Appendix A Additional numerical simulations
In this Appendix, we provide further background and numerical illustrations on the strong -SGD learning setting, merged-staircase functions and the dimension-free dynamics.
While global convergence proofs are challenging, the (DF-PDE) dynamics is a low dimensional problem and can be efficiently solved numerically. In the rest of this section, we provide a few numerical simulations to illustrate phenomena alluded to in the main text. We will fix the activation to be a shifted sigmoid , and choose learning schedules , zero regularization parameters , and initialization and . In Figure 2, we consider four MSP functions and plot the evolution of their Fourier coefficients during the (DF-PDE) dynamics. In particular, the two top row examples, and , converge to the global minimum and are therefore strongly -SGD-learnable. The bottom row examples, and , do not converge and have risks bounded away from . Functions and are two examples of -invariant MSP functions.
In this paper, we only prove that the set of MSP functions that are not strongly -SGD-learnable is of Lebesgue measure . We do not characterize this set beyond this and do not prove that -invariant MSP functions coincides with this set (in particular, we do not show that -invariant MSP functions are the only functions that might not be strongly -SGD-learnable).
We conclude this section with a final comment about the necessity condition of MSP, which holds only when considering arbitrarily large .
The proof that non-MSP functions are not strongly -SGD-learnable relies on the fact that, when goes to infinity, the initialization for . However, for fixed, and waiting sufficiently long, one-pass (bSGD) escapes the neighborhood of the subspace . In this case, the time to escape the subspace has to grow with , and we are not in the -scaling anymore (indeed for one pass (bSGD)). In Figure 4, we consider the same experimental setting as Figure 1 but with missing one (left) or two (right) stairs. We see that (DF-PDE) remains trapped in the saddle-space, while one-pass (bSGD) escapes around and respectively. This agrees with the intuition that staircases with larger leaps are harder to learn with SGD.
Appendix B Proofs for continuous mean-field and dimension-free dynamics
In this appendix, we provide proofs and discussions for the results presented in Section 3, which corresponds to the ‘continuous-time regime’ of strong -SGD-learnability. A discrete version of these results and proofs are presented in Appendix C and require little modifications.
Throughout this section, we will denote by a constant that depends only on the constants in Assumptions -, (in particular, is independent of ). The value of this constant is allowed to change from line to line.
Here, we provide more details and intuition on how to derive the equations of the dimension-free dynamics (DF-PDE). We report to Section B.2.1 a rigorous proof of Theorem 3.1, which shows a non-asymptotic bound between (bSGD) and (DF-PDE) dynamics.
First, by Assumption , the coordinates of are iid and symmetric and therefore
By symmetry of (MF-PDE), the following lemma shows that the neural network stays independent of the uninformative part of the input during the whole trajectory.
The solution of (MF-PDE) with initialization satisfying , obeys:
where we used in the third line that . Hence is the solution of the (MF-PDE) dynamics with initialization . Hence by uniqueness of the solution, we deduce that for any . ∎
The evolution equations of associated to the (MF-PDE) dynamics are given by
where we used that to write the last equation.
Equivalently, this PDE corresponds to the gradient flow in the Wasserstein space (with rescaling) over the regularized risk functional:
B.2 Proof of the results in Section 3
In this section, we gather the proofs for the results on the dimension free dynamics and the necessity condition. The longer and more technical arguments are deferred to Sections B.3 and B.4.
We use the mean-field dynamics (MF-PDE) as an intermediary dynamics for the bound. Theorem 3.1 is a direct consequence of the following two bounds:
Assume conditions -,, and let . There exists constants and depending only on the constants in -, (in particular, independent of ), such that for any \eta\leq e^{-K_{0}T^{3}}\big{[}\{b/(d+\log(N))\}\wedge 1\big{]}, we have
This proposition follows from a straightforward extension of [MMM19] to batch-SGD and anisotropic step sizes, and can be found in Section B.3. In particular, Proposition B.2 implies that, if we consider , then and are sufficient for the mean-field PDE to be an accurate approximation of batch-SGD up to time (recall that by one-pass assumption and therefore ).
Assume conditions -,, and let . There exists a constant depending only on the constants in -, (in particular, independent of ), such that
The proof of Theorem B.3 can be found in Section B.4.
B.2.2 Proof of Theorem 3.2
Conversely, assume that is strongly SGD-learnable in -scaling. Let be the hyperparameters that satisfy strong learnability for : in particular, and with probability at least . Take and let be piecewise linear functions such that and . Consider the solution of (DF-PDE) with . From Theorem 3.1, there exists constants and that only depend on through the constants in assumption , such that
with probability at least . We can therefore take sufficiently big such that the right-hand side is less than . On the intersection of this event and the event (which happens with positive probability), we have
B.2.3 Proof of Theorem 3.3
This lower bound does not depend on the details of the dynamics (parameters , activation and initialization ,). Let and denote the vector , with and respectively, and note that by Lemma B.6, . Using Assumption , we have by integrating out :
Similarly, for and (in particular, since )
while if , then there exists with , hence
Denoting (recall ), we conclude that for any :
and therefore during the whole dynamics.
B.3 Proof of Proposition B.2
The proof is an application of an extension of Theorem 1.(B) in [MMM19] to batch-SGD and anisotropic step sizes. This extension is straightforward and we simply list below the two main differences with the proof in Appendix C of [MMM19]:
Recall that we defined the regularized risk . We have
where is defined in Eq. (MF-PDE) and we denoted . We conclude that is nonincreasing. The rest of the proof only uses that verifies .
The concentration between the batch-SGD and gradient descent (Appendix C.5 in [MMM19]) uses that there is an extra factor in the sub-Gaussian constant.
The proof of Proposition B.2 simply amounts to checking that our setting (with Assumptions -) falls under the general framework of Theorem 1.(B) in [MMM19].
We conclude that , and assumption in [MMM19] is verified. ∎
B.4 Proof of Theorem B.3: bound between (MF-PDE) and (DF-PDE) dynamics
We will assume throughout this section that the assumptions and the setting of Theorem B.3 hold. In particular, we will use Assumptions - without mention when clear from context. For clarity, we will write the proof in the case and . The general case follows easily, using by Assumption .
The value of the integrand in Eq. (11) only depends on and with and independent of . Conditioning on , we consider the -Wasserstein distance
where we recall that is defined by
The following lemma bounds the right hand-side through the value of at initialization:
Consider the same setting and assumptions as Theorem B.3. There exists a constant independent of and depending only on the Assumptions - such that for any ,
where we expanded the expectation on in the second line and used the mean value theorem, and used Eq. (40) in Lemma B.6 in the last line. We deduce that
Using Lemma B.4 in the bound (13) yields (conditional on ):
Using Eq. (15) and the coupling described above, we will bound (11). Introduce the random quantity
We will show the following technical bounds:
Consider the same setting and assumptions as Theorem B.3. There exists a constant independent of and depending only on the Assumptions - such that for any ,
From this lemma, we can now complete the proof of Theorem B.3:
From Gronwall’s lemma applied to Eq. (52) in Lemma B.5, we have
Injecting this bound in Eq. (18) concludes the proof. ∎
The proof consists in carefully bounding the evolution of the distance between the parameters in the two dynamics.
Step 1. Bound on .
We can bound the difference between the two functions with
while we use Eq. (20) for the second term
where we used Eq. (40) in Lemma B.6 and Eq. (15) with .
Combining bounds (21) and (22) and by Jensen’s inequality,
Step 2. Bound on .
Noting that , the first term can be bounded as in step 1 by
For the second term, we use Eq. (41) in Lemma B.6 and the decomposition (20):
Combining Eqs. (23) and (24) and applying Cauchy-Schwarz inequality yield
where we used the bound (13) on and Eq. (15) in Lemma B.8 in the last line. We deduce that for ,
where we used that at initialization.
Step 3. Bound on .
Combining inequalities (27) and (28) yields
where we again used the bound (15). We deduce that for ,
Step 4. Bound on \big{|}\overline{s}^{t}-\|{\bm{v}}^{t}\|_{2}\big{|}^{2}.
First, notice that we have the following simple upper bounds on the evolution of and :
Furthermore, we have by Gaussian integration by part
Similarly, we have by expanding the expectation over the ’s and using the mean-value theorem:
We can now bound the evolution in time of . Using the expressions in Eqs. (32) and (33), we decompose
These four quantities can be bounded as previously:
For the last term, we use Eq. (34) and that :
Combining Eqs. (35) and (36) and applying Cauchy-Schwarz inequality yield
We can now combine inequalities (26), (30) and (30) to get
B.5 Auxiliary lemmas
Denote the residuals of the dynamics and . By the properties of gradient flows, the risks
By definition and are the solutions of a gradient flow:
and similarly for .
A similar result holds for . Finally,
This is a simple application of Stein’s method. Consider twice differentiable such that , and . Introduce . By expanding, we get
where we used Jensen’s inequality in the last line. Combining bounds Eqs. (44) and (45) in the identity (43) yields
By sub-Gaussianity, there exists a universal constant such that
Consider t_{c}=\Big{(}\tau^{2}\frac{\log(2d)}{\kappa_{q}cd}\Big{)}^{q/2} with , such that . Then, we have the following upper bound:
Appendix C Strong SGD-learnability in the discrete-time regime
In this appendix, we define strong SGD-learnability in the discrete-time regime, i.e., for large batch size and large . We keep the same assumptions -, and replace Assumption by
(Boundedness of hyperparameters) We have and .
While the continuous-time regime requires step size to be small enough compared to , the discrete-time regime requires the batch size to be big enough compared to for (recall by one-pass assumption) in the discrete regime.
Again, conditions - guarantee that as long as are taken sufficiently large, there exist a discrete mean-field dynamics that well-approximates batch-SGD up to a constant number of steps that depends on .
where .
We have the new non-asymptotic bound between the (bSGD) and (d-DF-PDE) dynamics, analogous to Theorem 3.1, but with a worse dependency on the number of iterations.
Assume conditions -, hold, and let . There exists a constant depending only on the constants in -, (in particular, independent of ), such that
From there, it is straightforward, following the same arguments as for Theorems 3.2 and 3.3, to get the equivalence of strong -SGD-learnability in the discrete-time regime and global convergence of the discrete (d-DF-PDE) dynamics, and the MSP necessary condition:
C.2 Proof of Theorem C.2
The proof relies on first comparing the (bSGD) dynamics to the discrete mean-field dynamics (d-MF-PDE), using an extension of the results in [MMM19] to the discrete (d-DF-PDE) dynamics (see Appendix H.1).
The proof of this proposition follows from applying Proposition H.1, with the assumptions already verified in Appendix B.3.
The proof of Theorem C.2 then follows by combining the above result with the following bound between the discrete mean-field dynamics (d-MF-PDE) and the discrete dimension-free dynamics (d-DF-PDE):
Assume conditions -,, and let . There exists a constant depending only on the constants in -, (in particular, independent of ), such that
The proof follows similarly to the proof in the continuous case (see Section B.4) and we will simply highlight the differences. First, by the same argument as in the proof of Proposition H.1, we replace the bounds from Lemma B.6 by
The proof follows by using discrete Grönwall lemma in Lemma C.7 stated in the next section, which is the analogous of Lemma B.5 in discrete time. ∎
C.3 Auxiliary lemma
The proof proceeds similarly to the proof of Lemma B.5 in Section B.4.1, where we use discrete Grönwall instead. Step 1 to Step 3 are very similar, using that
Note that as defined in Eq. (34) and we can use the bound in Eq. (36):
We can further bound using the same decomposition as in Eq. (35):
Appendix D Vanilla staircase functions are strongly O(d)𝑂𝑑O(d)-SGD-learnable: Proof of Theorem 4.3
We start by providing the proof that vanilla staircases are strongly -SGD-learnabile, as described in Theorem 4.3. This proof will outline the main ideas behind our global convergence results, without the technical complexity of dealing with general MSP set structure.
We will assume the following hold for the activation :
In particular, this assumption implies that we have the following polynomial approximations of and around : for any ,
Recall from the equivalence with (DF-PDE) (Theorem 3.2) that it is sufficient to show for any , there exist hyperparameters satisfying -, such that (DF-PDE) dynamics reaches -risk. We consider the following hyperparameters:
We do not regularize, i.e., .
We initialize the first layer to deterministically weights, and the second layer to uniform random weights. I.e., we take and . Although initializing the first layer to 0 may at first glance seem restrictive, there turns out to be enough randomness in the initialization of the second layer to ensure that the neural network learns. For the dimension-free dynamics, this corresponds to taking with , and . In particular, during the whole dynamics, which allows for a simpler analysis.
Our learning rate schedule has two phases:
We train the first layer weights while keeping the second layer weights fixed . We set and for .
We train the second layer weights while keeping the first layer weights fixed at . We set and for .
We restate the sufficient condition in the case of the vanilla staircase.
D.1 Outline of the proof
The proof analyzes Phase 1 and Phase 2 of training separately.
In this phase, we train the first layer, which has nonlinear dynamics, and so it is a priori unclear how to analyze. Nevertheless, since is specially structured, the structure in the weights during training is particularly simple and it is enough to track the smallest order terms in the weights.
Specifically, in Proposition D.5 (see next section), we prove that there exist constants such that for all and , we have , where
Denote such that .
In this phase, we train the second layer, and the training has linear dynamics. Denote the residual function at time . During this phase, we have the following evolution on the risk:
(This is indeed the kernel, since at the end of Phase 1, the distribution of the parameters is given by with , and the first-layer weights are kept constant during Phase 2.)
It only remains to lower-bound . For this we use the structure on that we prove holds in Phase 1. For all , denote
From Lemma D.4 (see next section), there exists a constant depending only on (and independent of ) such that for any ,
Denote and . We have
where .
Note that takes value , and is the Gram matrix of the monomials in , which are linearly independent. We deduce that is bounded away from (independent of ). We can therefore take , so that , and .
First, we have the following simple bound on :
There exists a constant depending on such that .
By Assumptions and , we have and . Combining these bounds, we get for :
and therefore . Recalling, , we conclude . ∎
The following lemma give the leading order in approximation of the Fourier coefficients of :
There exists a constant that depend on such that for any , and ,
From Claim D.3, we can choose sufficiently small such that , and . We can therefore use the polynomial approximation Eq. (55) of :
Injecting these bounds in Eq. (62) yields the result. ∎
We can now prove the main structural result on the , on which the rest of the proof relies.
There exists constants depending on , such that for all and , .
Denote . Notice that
Denote . By Grönwall’s lemma, it is sufficient to show that for some constant . We will consider sufficiently small to apply Lemma D.4.
where we used Lemma D.4. Furthermore, note that for any . By expanding in the Fourier basis, we get
where we used Eq. (64) in the second line and Lemma D.4 in the third line. We see therefore that
We can separate the first term into three contributions:
where we used in the last line that from Claim D.3. In particular, notice that for any , . We can therefore prove recursively that by noting that 1) ; 2) and ; and 3) for any , and do not contribute to the leading terms. ∎
Appendix E Generic MSP functions are strongly O(d)𝑂𝑑O(d)-SGD-learnable: Proof of Theorem 4.2 (discrete-time regime)
In this appendix, we prove Theorem 4.2, which states that generic functions with MSP structure are strongly SGD-learnable in the -scaling. While the proof for vanilla staircases in Appendix D is done in the continuous-time regime, we use here the discrete-time regime as defined in Appendix C, with -steps of size . Furthermore, we will consider the activation function to be a degree- polynomial, with sufficiently large. In Appendix F, we provide a more general proof of this result for smooth (non-polynomial) activations (see Theorem F.3) and using the continuous-time regime, with one technical caveat: the activation function needs to be perturbed at some point during training (the result holds almost surely over this perturbation, see Appendix F.2 for a discussion on this technical caveat).
Recall the definition of an MSP set structure.
We say that is a Merged-Staircase Property (MSP) set structure on the variables if the sets are (without loss of generality) ordered so that for each , .
Ideally, we would like prove that for any MSP set structure , then any function with nonzero Fourier coefficients is strongly -SGD-learnable. However, there are degenerate examples of functions such as which satisfy MSP structure but are not strongly -SGD-learnable (see Section A). Therefore, it is not possible to prove a result that holds for every MSP function. The existence of degenerate functions satisfying MSP also adds difficulty to the problem of showing that specific functions satisfying MSP are learnable.
Nevertheless, in this section we are able to show that for any MSP set structure there are very few degenerate functions . In fact, almost all functions with MSP structure are non-degenerate and are strongly -SGD-learnable.
More precisely, for any set structure , define the following measure over functions:
For any MSP structure , we prove that is almost surely strongly -SGD-learnable with respect to :
For any MSP set structure , is strongly -SGD-learnable almost surely with respect to , using activation function where .
We note that although does not satisfy Assumption , we can instead use an activation function such that in the interval , and is smoothly thresholded outside this interval. In the proof, we control the growth of the first-layer weights and the input of the activation remains , so such a thresholding does not impact training.
We also prove the following variation on the theorem, which shows that we can take activation function that is a polynomial of degree with random coefficients. This proves that almost surely any polynomial activation will work, so it does not hold just for activation :
We train in the discrete-time regime with steps of size and batch size. Recall from (d-DF-PDE) (Theorem C.3) that it is sufficient to show for any , there exist hyperparameters satisfying -, such that (d-DF-PDE) reaches -risk. We consider the following hyperparameters.
We do not regularize. I.e., , and , same as Section D.
We initialize the first layer to deterministically weights, and the second layer to uniform random weights. I.e., we take and . This is the same as in the vanilla staircase proof of Section D. For the dimension-free dynamics, this corresponds to taking with , and . In particular, during the whole dynamics, which lets us ignore it and allows for a simpler analysis.
Our learning rate schedule has two phases, with learning rate given by parameter :
For steps we train the first layer weights while keeping the second layer weights fixed . We set and for .
For steps we train the second layer weights while keeping the first layer weights fixed at . We set and for .
We also take to be a small enough constant, and for a large enough constant depending on . For the first phase, we will train for time steps, since this turns out to be sufficient to prove learnability. For the second phase, we train for time steps, where is a constant depending on , and , to be determined later. We prove that (d-DF-PDE) with such hyperparameters will reach -risk, which, by the equivalence stated Theorem C.3, implies the strong SGD-learnability in -scaling.
We will assume that on the interval our activation is given by a polynomial of degree at most . I.e., for all , we have for .
E.1.1 Phase 2 (linear training)
So the residual , evolves, for any , as:
E.1.2 Phase 1 (nonlinear training)
First, we show that if we train for a constant number of steps, then we can write the weights obtained by the dimension-free dynamics as a constant-degree polynomial in the second-layer weights. This is because the activation is a polynomial in the interval , and the weights of the first layer do not grow enough to leave this interval.
For each define . For each , define with the recurrence relation:
There is a constant depending only on , such that for any ,
where has values given by, for all ,
Because of the term , which evolves nonlinearly, this is nontrivial to directly analyze. However, if the step size is taken small enough, then the interaction term is small, of order , and we show that it can be ignored. Formally, we define the simplified dynamics for each by letting and inductively setting for each ,
This differs from the definition of the dynamics for in that we have dropped the term in the update equation. By a similar argument, we may show:
There is a constant depending only on , such that for any , any and any , we have
where we abuse notation (since otherwise) and let be given by
We now show that the simplified dynamics is a good enough approximation to , and it suffices to analyze .
This matrix is motivated by the following fact:
There is a constant depending only on , such that for any , and any , we have
There is a constant depending on such that for any ,
There is depending only on , and there are depending only on such that if we write
Combining the above lemmas, it holds that if is a nonzero polynomial in , then is strongly- learnable:
Suppose that as a polynomial in . Then is strongly -SGD-learnable with any activation function that is equal to on the interval .
Let be a constant depending on , and let be constants depending on such that Lemmas E.9 and E.10 hold. Then taking any learning rate
which is a nonnegative constant that does not depend on . So by the analysis of Phase 2 in Section E.1.1, we can set to be a large enough constant that . By Theorem C.3 (which gives the equivalence between (d-DF-PDE) and strong -SGD-learnability in the discrete-time setting), this implies strong -SGD-learnability. ∎
By the above arguments, the problem has been reduced to proving that as a polynomial in . In other words, by Lemma E.8, this means that it suffices to analyze the simplified dynamics .
The matrix differs from only in that we have changed the variables from to variables , effectively incorporating the constraints on . This is helpful, because suppose that we can prove that
Then almost surely over the Lebesgue measure on , we have that as a polynomial over . And indeed, , which is what we wanted to show. So it suffices to prove (65).
We prove (65) by analyzing the recurrence relations for to show that to first-order the polynomials are distinct for all , and then leveraging the algebraic result of [NS79] that large powers of distinct polynomials are linearly independent. We show:
Suppose that and let for all , corresponding to activation function . Also let . Then (i.e., (65) holds).
This also yields the immediate corollary:
This allows us to prove Theorems 4.2 and E.5.
Taking corresponds to activation function . By Lemma E.12, we have almost surely over with respect to the Lebesgue measure. So by Lemma E.11, is strongly -SGD-learnable with activation , almost surely over with respect to . ∎
The argument is the same, except using Corollary E.13. ∎
E.2 Proof of Lemmas E.6, E.7, and E.8
We show that if the learning rate is small then for the weights of and remain small enough that the activation only ever has inputs in the range , meaning that we can treat the activation as exactly given by the polynomial .
For any time step any , and any learning rate , and any we have
The bound for is similar. ∎
This allows us to prove Lemmas E.6 and E.7.
Substituting in and , this recurrence relation is satisfied by with and by with . This is because by Claim E.14 and in the interval .
The proof is by induction on . For , it is true that . For the inductive step, notice that for any and , we can write
This is immediate from Lemmas E.6 and E.7, using the fact from Claim E.14 that , so , and in this interval . ∎
E.3 Proof of Lemma E.9
For short-hand write . By Lemma E.8, , so
E.4 Proof of Lemma E.10
There are constants depending on such that for any , any , and any ,
Write . Let us prove that there is a constant depending on such that for all . To see this, notice that is a polynomial in , whose degree and coefficients depend only on (this is because each entry of is a polynomial in with coefficients depending on , and it is a matrix). Since and , and by Claim E.15, we conclude that there is a constant depending on such that for all .
By anti-concentration of polynomials (i.e., Lemma H.3), we have that there exists a constant depending on such that
E.5 Proof of Lemma E.12
To show that , we first show that it suffices to consider “minimal” MSP set structures.
Let be such that is an MSP set structure. Then if
Substituting 0 for for all . ∎
Therefore it suffices to prove the lemma for minimal MSP structures. Without loss of generality (up to permutation of the variables), we assume that we can write
Otherwise, we could remove a set from and still have a MSP set structure.
E.5.2 Computing the weights to leading order
Let us define the polynomials in variables . For all and ,
Therefore has entries . Let us explicitly compute the nonzero term of that is of lowest-degree in . First, we show that many terms are zero.
Recursively define for all .The sum over an empty set is by convention. Then has no nonzero terms of degree less than in .
The proof is by induction on . In the base case of it is true since . In the inductive step, we assume it is true for all and we prove the claim for . By the recurrence dynamics,
The first term, , is handled by the inductive hypothesis. The second term is nonzero only in the case that , in which case and , so we do not have a contradiction. The last terms can be handled by the inductive hypothesis: for any , each has no terms of degree less than in . So has no terms of degree less than in . We break into cases. Case a. If , then , so , and so no new terms of degree less than are added. Case b. If for some , then either , in which case . Otherwise, we must have . But in this case since , so we also have and again no new terms of degree less than are added. In fact, only terms of degree strictly more than are added. ∎
Following the analysis of the previous claim used to prove that for all , only certain terms contribute in the recurrence. So we can simplify it to:
Next, for all we prove that
So since by nonnegativity. This concludes the induction for (67).
Recall that the interpretation of with respect to the simplified dynamics: for any second-layer weight , the first-layer weights after training the simplified dynamics are . What we have shown in the previous two claims is that for any to leading order and have different dependence on the Fourier coefficients of the target function . Now we use this to essentially show that and are distinct for all .
Then, for each distinct pair , we have as a polynomial in and .
Recall the definition of from Claim E.17. Let be such that and is minimized. By Claim E.17,
E.5.3 Applying linear independence of powers of polynomials
We conclude the proof of the lemma by using the following result of [NS79] showing that large powers of distinct polynomials are linearly independent.
We are ready to prove that .
Since we have chosen for all , we have
Finally notice that we can write .
Therefore as a polynomial in . So as a polynomial in and . ∎
In this appendix, we provide a more general approach to proving strong -SGD-learnability for generic MSP functions that goes beyond polynomial activation functions. The reason to include this second approach is two-fold:
We consider the continuous-time regime (as opposed to the discrete-time regime as in Appendix E), which is closer to practice, with small batch and step sizes. (Note that the extension to non-polynomial activations would also hold in discrete time.)
For continuous time and non-polynomial activations, the first layer weights are not polynomials in anymore. However, we show that they can still be approximated by polynomials and that global convergence reduces to showing that certain (universal) polynomials are not identically .
Using this approach, we show in Theorem F.3 that generic MSP functions are strongly -SGD-learnable for smooth activation functions (as long as for ), with one technical caveat: we need to introduce a random perturbation to the activation function at one point during the training dynamics. While unnatural, this modification allows us to prove that the polynomials are non-zero for general MSP structure, using a “Vandermonde trick”. See Section F.2 for a discussion on this technicality.
Recall the definition of the measure over functions with MSP set structure :
Recall from the equivalence with (DF-PDE) (Theorem 3.2) that it is sufficient to show for any , there exists hyperparameters satisfying such that (DF-PDE) reaches -risk. We consider the following hyperparameters, which are the same as in the proof for the vanilla staircase in Section D:
We do not regularize, i.e., , same as Section D.
We initialize the first layer to deterministically , and the second layer to uniform random weights on $\mu_{a}={\rm Unif}([+1,-1])\mu_{W}=\delta_{0}$.
Our learning rate schedule is the same as in Section D,
We train the first layer weights while keeping the second layer weights fixed . We set and for .
We train the second layer weights while keeping the first layer weights fixed at . We set and for .
As in Section D, the learning rate schedules can be made Lipschitz at with a change of variables, falling under the assumptions of strong SGD learnability.
The dynamics of (DF-PDE) in time with activation stitched together with the dynamics in time with activation corresponds to an algorithm that falls under the definition of strong -SGD-learnability, when extended to allow such a perturbation (in particular, the equivalent characterization and necessary condition in Theorems 3.2 and 3.3 would still hold). See Section F.2 for more discussion.
We restate the sufficient condition, proving that for any MSP set structure , generic functions with that set structure are strongly -SGD-learnable:
Consider a MSP set structure, and a perturbation parameter. Assume that the activation function satisfies 0’ and has nonzero derivatives for . Then, almost surely for with respect to to and almost surely for perturbation , the following hold: for any , there exist such that training with the above hyperparameters and activation perturbation will learn to accuracy .
This implies that almost surely over , is strongly -SGD-learnable (under the expanded definition of -SGD-learnability where the SGD algorithm is allowed to perturb the activation function once).
F.2 Discussion on the perturbation of the activation
The perturbation is convenient to show that a polynomial is not identically zero for arbitrary MSP set structure. Note that given a set structure , these polynomials are fully explicit (given by recurrent relations) and one can verify by hand that they have a non zero coefficient. It is an interesting direction to show this result directly without relying on perturbing the activation function. In the setting of discrete-time regime and polynomial activations (cf. Theorem 4.2), such a perturbation is not needed: the weights are exact polynomials of and one can use algebraic tricks involving linear independence of powers of polynomials (see Proposition E.20).
Note that we can extend the definition of strong SGD-learnability in -scaling to allow such a perturbation. In that case, the dimension-free dynamics (DF-PDE) corresponds to gluing two dynamics with activations between and between . The equivalent characterization (Theorem 3.2) and necessary condition (Theorem 3.3) still hold using this extended definition.
F.3 Outline of the proof
The proof analyzes Phase 1 and Phase 2 of training separately.
We break our analysis of the nonlinear training in Phase 1 into several parts. The goal is to understand the evolution under the dimension-free PDE of each neuron’s weights . Because we initialize the first layer to , it suffices to study the dynamics of , ignoring the dynamics of since it stays at throughout. The dynamics of are given by
where is the residual at time .
Analyzing the simplified dynamics with a recurrence relation. We analyze the dynamics by deriving recurrence relations for the coefficients . In particular, we may express each coefficient as a polynomial in , , and the nonzero Fourier coefficients of (see Section F.6). This allows us to prove that almost surely over the choice of each coordinate has distinct dynamics: namely, for all . This is where we must use the fact that the MSP function is “generic”, i.e., the coefficients are chosen randomly. (In fact, we prove and use the stronger result that for any , we have , and this difference has nonzero low-degree terms.)
As outlined above, we study the dynamics of the dimension-free PDE. Let us first analyze Phase 1, when we train for time using activation function , and keep the second layer fixed. In particular, we analyze the dynamics of given by eq. 68 and the initialization . In the proof below, we sometimes omit the dependence on and time , e.g., writing instead of , when the dependence on and is clear.
We first prove for each , that each coefficient of scales as .
There is a constant depending on such that for any , , and , .
We prove this by induction on . For the base case of , we know that
since throughout the dynamics, and . So for a constant . For the inductive step, let and suppose for all . Then
So , defining appropriately. ∎
The proof will use Gronwall’s inequality. First, by triangle inequality
for a constant depending on , where used Claim F.4 to bound and that and in the final bound.
F.5 Simplified dynamics without interaction term
To show that the new dynamics is close to the old dynamics, we first show that , is small when is small:
There is a constant depending on such that for all , .
We also prove the analogue of Claim F.4 for :
There is a constant depending on such that for all , , and , . Also, .
The bound on is the same as Claim F.4, but using the bound instead of the bound . The bound on is the same as Claim F.5, using the bound on . ∎
We show that for each :
There is a constant depending on such that for any , , .
We prove this by induction on . For ,
by Claim F.7, for some large enough constant . Therefore . For the inductive step, let , and assume that for all . Then
where the second-to-last-line was by the inductive hypothesis. Since , we conclude . ∎
The above lemma will be used in Section F.7 to show that it suffices to analyze the dynamics of instead of the dynamics of , and in turn instead of the dynamics of .
F.6 Recurrence relation of the coefficients in the simplified dynamics
For each , , we have , where is a polynomial in the Fourier coefficients of and in the first derivatives of . Furthermore, satisfies the recurrence relations and
The proof is by induction on . In the base case, for any ,
so . For the inductive step, suppose that the lemma is true for all and . Then
The recurrence relation follows by integrating with respect to . ∎
We will subsequently prove that it suffices to study , for which the recurrence relation in Lemma F.10 becomes useful.
F.7 Reduction to analyzing the simplified dynamics
There are constants depending on such that, for all ,
There is a constant depending on such that, for all ,
In other words, the determinant is a polynomial in of individual degree at most .
There is a constant depending on and such that for all ,
For each , there is a coefficient depending only on , , and such that
In other words, the determinant is a polynomial in of individual degree at most .
There is a constant depending on , such that for any ,
Furthermore, in fact has the special structure that each coefficient is of size proportional to if it is nonzero:
For any , there is a polynomial such that .
Since by Lemma F.10, we have
where is the polynomial defined by
which concludes the proof of the claim. ∎
Suppose that for some , we have . Then there is a small enough constant depending on , such that for all ,
By combining Claims F.14, F.16, and F.17, we know that there is a large enough constant and small enough constant such that
Choosing smaller than concludes the claim. ∎
We conclude by combining all of the above claims to get the result of this subsection:
Suppose that for some such that we have . Then there is a small enough constant depending on such that for all we have
This is immediate by combining Claims F.11, F.12 and F.18. ∎
F.8 Proving learnability of generic MSP functions, Theorem F.3
Here we give the final technical step to proving that generic MSP functions are learnable. The proof idea is to use Lemma F.19 to lower-bound the minimum eigenvalue of the kernel matrix . By Lemma F.19, it suffices to prove that for any minimal MSP structure , if we plug in for all the determinant almost surely is a non-zero polynomial in with nonzero low-order terms. In other words, the main technical lemma that remains to be proved is the following.
Let be any MSP set structure on variables. Then there are constants and depending only such that if we take the truncation to the dynamics to be then is a polynomial in that has a nonzero term with degree in .
Before we show this lemma, let us see how it implies the main theorem.
For , let denote the residual vector where . Here is but with the activation replaced by the perturbed activation that is used in Phase 2. Recall that during Phase 2 the dynamics are linear since we are training the second layer, and are governed by kernel . We have following bound on the norm of the residuals for :
Choose , and to achieve error . Since , we have that and are constants depending on . This proves strong -SGD learnability (with the variation that the activation function is perturbed at time ) almost surely over the Fourier coefficients and the perturbation . ∎
F.9 Proof of Lemma F.20
It only remains to show Lemma F.20. To show this lemma, we will use the fact from Claim F.17 that is a polynomial in all relevant parameters: .
There is a large enough integer depending on such that is a polynomial of degree at most in , and .
This is by writing where each is a polynomial, as proved in Claim F.17. ∎
To study this polynomial, we first reduce to studying “minimal” MSP set structures, defined as follows.
We say that is a minimal MSP set structure if the sets can be ordered such that for each we have and .
The following claim shows that it is sufficient to restrict our attention to minimal MSP set structures.
Suppose that for every there are constants depending only on such that for any , and every minimal MSP set structure , the polynomial has a nonzero term with degree at most in .
Then, for any and MSP set structure , the polynomial has a nonzero term with degree at most in .
For any MSP set structure , up to a permutation of the variables there is a minimal MSP set structure such that . Since has a nonzero term with degree at most , so does , because the former polynomial can be constructed from the latter by additionally setting , which could only zero out monomials. ∎
Because of the above claim, for the remainder of this section, we fix a minimal MSP set structure . Let us analyze the behavior of the dynamics of on a function with this structure, i.e., with for all . Let us explicitly compute the leading order terms of the weights using the recurrence relations for the simplified dynamics. Recall that .
Suppose that . For each , define
We have for all , and for we have
with the convention that a product over an empty set is and a sum over an empty set is .
We prove this by induction on using the recurrence relations for derived in Lemma F.10. For simplicity, we write . First consider the base case of . For any such that , we have . Therefore, from the base case of the recurrence relations, we have . On the other hand, if , then . By the minimality of the MSP structure we have so . Therefore .
For the inductive step, suppose and that the result is true for . Now consider any , any and any such that . Consider also any such that . Each of these corresponds to a possible contribution to in the recurrence relation of Lemma F.10. Suppose that .
Case 1: Suppose there is such that . Without loss of generality take . But since , we have by the inductive hypothesis, so the terms in case 1 do not contribute.
Case 2: Suppose for all we have . Then since otherwise and of course . If for some , then we have . And, as a consequence , because otherwise However, since , so this is a contradiction. We conclude that , and so . Since and , we conclude that either Case a: there is some such that , or Case b: for all . In Case a, we have by the inductive hypothesis, so the term does not contribute to . Case b occurs if and only if and are a permutation of . There are exactly such terms, so the recurrence relation for holds. ∎
For any , define the multivariable polynomial
There is a constant depending on such that for large enough truncation , for any , has a nonzero term of degree at most in .
Let us take a constant . Then the low-order solutions to the recursion from Claim F.24 are valid. There must be an index such that . Choose such that is minimized, breaking ties in favor larger . Consider the terms of which are of degree in . The degree part is equal to
Notice that if , then have by the choice of . And if then by Claim F.24. So
By the recurrence relations for in Claim F.24, one can see that is a monomial with degree 1 in . On the other hand, for all , the polynomial does not depend on . Therefore is a nonzero polynomial. So has a nonzero degree term in . One can prove using the recurrence relation of Claim F.24 inductively on that . ∎
We prove that has a low-order non-zero term in the analytic expansion of at . This is an auxiliary result that will allow us to prove the corresponding result for .
There is a constant depending on such that for large enough , there exists where
equals a nonzero polynomial in .
By the chain rule we may write , for a function defined inductively on as , and
So , where is the matrix with entries . Since each is a polynomial of degree in , is a polynomial of degree at most in . Let us consider the part of that has degree in . This must come from the degree part of each , which can inductively be shown to be . So , where is the matrix with entries
This matrix is Vandermonde, so its determinant is (up to a factor of or ):
From Claim F.25, we know that for each distinct , we have that has a nonzero term of degree at most in . Therefore has a nonzero term of degree at most in . In particular, we have proved that is a polynomial in that has a nonzero term of degree at most in . Let be the smallest such that . Then we have
since , since divides the polynomial by its definition.
Let us prove that has a low-order nonzero term in by comparing it to .
For any there is large enough truncation parameter , such that for there exists with .
Suppose that we were to make the substitution for each . Then we would get . Then since divides and is the first few order expansion of , for any , we have
Recall that by Claim F.26, there is a such that is a nonzero polynomial. Since we have derived the above by substituting , we must have that without substituting we have is a nonzero polynomial in . ∎
Furthermore, is related to .
.
Combining the above two claims allows us to conclude that there is a nonzero term in that has low degree in . This concludes the proof of the lemma, which implies the theorem.
By the above two claims, there is such that
This implies that has a nonzero term of degree in . ∎
Appendix G Lower bounds on learning with linear methods
Recall that we denote .
Popular examples of linear methods include
Ridge regression corresponds to taking the functional: L\big{(}(y_{i},\hat{f}_{i})_{i\in[n]}\big{)}=\frac{1}{n}\sum_{i\in[n]}\big{(}y_{i}-\hat{f}_{i}\big{)}^{2}.
We will be interested in providing lower bounds on the number of samples necessary to learn some classes of functions for any linear methods. We first present the following general dimension-based (see discussion bellow) approximation lower bound that is a slight variation of [Hsu+21, Hsu, KMS20]; it improves on [Hsu+21, Hsu] for target functions that are not (almost) orthogonal, and it uses the operator norm of the gram matrix rather than its min-eigenvalue as in [KMS20].
Define the averageThis is a lower-bound on the worst-case approximation error considered in [KMS20]. approximation error of the target functions by the subspace
and the Gram matrix associated to the ’s. Then
Note that the results in [Hsu+21, Hsu] are simply obtained by using
In the proofs in [Hsu+21, Hsu], we simply replace the Boas-Bellman inequality by (for any )
where we denoted . Noticing that is equal to the left-hand side of Eq. (74), we get
Let us explain how to derive lower-bounds on the performance of linear methods using Proposition G.1. Consider and the space of functions with . We can consider random or fixed conditional on (e.g., random feature map) and the ’s. We always have . Consider learning a set of functions with the linear estimator obtained by (72). From the above discussion, we must have that the estimator and the generalization error is lower bounded by the approximation error . Therefore lower bound the average generalization error over learning . Therefore, Proposition G.1 implies the following: if the average generalization error over is less than , then we must have
This bound is a dimension lower bound in the sense that it does not assume anything about the statistical model (e.g., the can be arbitrary and do not have to be independent), only that the estimator lies in a -dimensional subspace : this subspace can be a good approximation of orthogonal functions only if .
To get Proposition 5.1 in the main text, we make the following two modifications of the bound in Proposition G.1. In Eq. (75), we upper bound . Second, some linear subspaces are harder to fit for linear methods (see for example [Gho+21, MMM21]). For instance, vanilla staircase functions of large degree contain monomials of large degree that have a large dimension lower-bound, but the overall staircase functions do not have a large dimension lower-bound per se. We next present a corollary that applies to any decomposition , and distinguishes the error incurred on each of the two orthogonal subspaces. Denote and the orthogonal projections onto and respectively.
Define the average approximation error on of the target functions by the subspace
This is a direct consequence of Proposition G.1 whith and replaced by and , and the target functions by . Proposition 5.1 in the main text is simply Corollary G.2 rewritten in the context of linear methods.
Consider a set of target functions such that and for any . If the averaged generalization error is less than , we can take and get
Let us apply this bound to the examples described in the main text. We take . First consider the span of all degree monomials and a target function such that , and is supported on monomials , with , :
Applying Eq. (77), we obtain the following lower bound:
For any linear method, in order to get an average generalization error over that is smaller than , we must have
We can then apply Eq. (77) with and . ∎
Proposition G.3 shows that for fixed, samples are necessary to learn .
As a second example, consider the vanilla staircase function of degree :
and the function class of all staircase function of degree :
Let and . For any linear method, in order to get an average generalization error over that is smaller than , we must have
In our case, we are interested in . Letting decay at moderate rate, such as in Proposition G.4, we get the following superpolynomial lower bound on the number of samples .
Appendix H Technical results
In this appendix, we gather a few technical results needed to prove the main results in this paper.
We consider the same assumptions as [MMM19, Theorem 1], with the difference that is replaced by .
with probability at least .
with probability at least .
The proof of this proposition follows by adapting the proof of [MMM19, Theorem 1] to the discrete setting described above (see also Appendix B.3). In particular, part (A) (fixed second layer coefficients) follows from the Appendix B in [MMM19]: the comparison between discrete and continuous gradient is not needed anymore, and the only difference is in the first part of Proposition 16 in [MMM19], which can simply be rewritten by noting that
and the rest of the proof follows similarly.
For part (B), the main difference comes from bounding : we have
where we denoted and and used that by assumption and . We can then use the discrete Grönwall inequality to get . This explains the worse dependency (double exponential) in in the bound, than for continuous time, where one can use properties of continuous gradient flows to get a bound on linear in time. With this modification, the rest of the proof follow by adapting Appendix C in [MMM19], where we can assume that the activation function is bounded by . ∎
H.2 Anti-concentration of polynomials
We prove the technical lemma that polynomials anti-concentrate when evaluated at random inputs. Concretely, we lower-bound the variance of the polynomial evaluated at a random input based on the sum of the magnitudes of its coefficients. Our bound is crude, but suffices for our purposes. We remark that anti-concentration bounds for polynomials in terms of their variance (and other moments) are a well-studied subject. For instance, the seminal paper [CW01] bounds the probability that a polynomial of random variables lies in an interval in terms of the variance (or other moments) of the polynomial. In contrast, we bound the variance based on the sum of magnitudes of the polynomial’s coefficients.
The polynomials therefore form an orthonormal basis over the multivariate polynomials whose degree in each variable is bounded by . Writing in this basis, we get
for some constant depending on .
We will also use the following corollary:
we have, writing ,
The lemma follows by noting that , where , is equal in distribution to , where , and applying Lemma H.2. ∎