A Dynamical Central Limit Theorem for Shallow Neural Networks

Zhengdao Chen, Grant M. Rotskoff, Joan Bruna, Eric Vanden-Eijnden

Theoretical analyses of neural networks aim to understand their computational and statistical advantages seen in practice. On the computation side, the training of neural networks often succeed despite being a non-convex optimization problem known to be hard in certain settings . On the statistics side, neural networks often generalize well despite having large numbers of parameters . In this context, the notion of over-parametrization has been useful, by providing insights into the optimization and generalization properties as the network widths tend to infinity . In particular, under appropriate scaling, one can view shallow (a.k.a. single-hidden-layer or two-layer) networks as interacting particle systems that admit a mean-field limit. Their training dynamics can then be studied as Wasserstein Gradient Flows , leading to global convergence guarantees in the mean-field limit under certain assumptions. On the statistics side, such an approach lead to powerful generalization guarantees for learning high-dimensional functions with hidden low-dimensional structures, as compared to learning in Reproducing Kernel Hilbert Spaces (RKHS) . However, since ultimately we are concerned with neural networks of finite width, it is key to study the deviation of finite-width networks from their infinite-width limits, and how it scales with the width mm. At the random initial state, neurons do not interact and therefore a standard Monte-Carlo (MC) argument shows that the fluctuations in the underlying measure scale as m−1/2m^{-1/2}, which we refer to as the Central Limit Theorem (CLT) scaling. As optimization introduces complex dependencies among the parameters, the key question is to understand how the fluctuation evolves during training. To make this investigation tractable, we aim to obtain insight on an asymptotic scale as the width grows, and focus on the evolution in time. An application of Grönwall’s inequality shows that this asymptotic deviation remains bounded at all finite time , but the dependence on time is exponential, making it difficult to assess the long-time behavior.

The main focus of this paper is to investigate this question in-depth, by analyzing the interplay between the deviations from the mean-field limit and the gradient flow dynamics. First, we prove a dynamical CLT to capture how the fluctuations away from the mean-field limit evolve as a function of training time to show that the fluctuations remain on the initial m−1/2m^{-1/2}-scale for all finite times. Next, we examine the long-time behavior of the fluctuations, proving that, in several scenarios, the long-time fluctuations are controlled by the error of Monte-Carlo resampling from the limiting measure. We focus on two main setups relevant for supervised learning and scientific computing: the unregularized case with global convergence of mean-field gradient flows to minimizers that interpolate the data, and the regularized case where the limiting measure has atomic support and is nondegenerate. In the former setup, we prove particularly that the fluctuations eventually vanish in the CLT scaling. These asymptotic predictions are complemented by empirical results in a teacher-student model.

This paper continues the line of work initiated in that studies optimization of over-parameterized shallow neural networks under the mean-field scaling. Global convergence for the unregularized setting is discussed in . In the regularized setting, establishes global convergence in the mean-field limit under specific homogeneity conditions on the neuron activation. Other works that study asymptotic properties of wide neural networks include , notably investigating the transition between the so-called lazy and active regimes , corresponding respectively to linear versus nonlinear learning. Our focus is on the dynamics under the mean-field scaling, which encompasses the active, nonlinear regime.

A relevant work concerning the sparse optimization of measures is , where under a different metric for gradient flow and additional assumptions on the nature of the minimizer, it can be established that fluctuations vanish for sufficiently large mm. Our results are only asymptotic in mm but apply to broader settings in the context of shallow neural networks. Concerning the next-order deviations of finite neural networks from their mean-field limit, show that the scale of fluctuations is below that of MC resampling for unregularized problems using non-rigorous arguments. provides a CLT for the fluctuations at finite time under stochastic gradient descent (SGD) and proves that the fluctuations decay in time in the case where there is a single critical point in the parameter space. Our focus is on the long-time behavior of the fluctuations in more general settings. Another relevant topic is the propagation of chaos in McKean-Vlasov systems, which study the deviations of randomly-forced interacting particle systems from their infinite-particle limits . In particular, a line of work provides uniform-in-time bounds to the fluctuations in various settings , but the conditions are not applicable to shallow neural networks. Concurrently to our work, studies quantitative propagation of chaos of shallow neural networks trained by SGD, but the bound grows exponentially in time, and therefore cannot address the long-time behavior of the fluctuations.

Learning with neural networks exhibits the phenomenon that generalization error can decrease with the level of overparameterization . proposes a bias-variance decomposition that contains a variance term initialization in optimization. They show in experiments that this term decreases as the width of the network increases, and justifies this theoretically under the strong assumption that model parameters remain Gaussian-distributed in the components that are irrelevant for the task, which does not hold in the scenario we consider, for example. provides scaling arguments for the dependence of this term on the width of the network. Our work provides a more rigorous analysis of the dependence of this term on the width of the network and training time.

Background

As many of our results hold for general models of the form (1), we will invoke Assumption 2.1 only when needed. We shall also assume the following:

Ω\Omega is compact; DD is a Euclidean space (or a subset thereof); φ(θ,x)\varphi(\bm{\theta},\bm{x}) is twice differentiable in θ\bm{\theta}; ∇θ∇θφ(θ,x)\nabla_{\bm{\theta}}\nabla_{\bm{\theta}}\varphi(\bm{\theta},\bm{x}) is Lipschitz in θ\bm{\theta}, uniformly in x\bm{x}.

As observed in , a model of the form (1) can be expressed in integral form in terms of a probability measure over DD as f(m)=f[μ(m)]f^{(m)}=f[\mu^{(m)}], where we define

and μ(m)\mu^{(m)} is the empirical measure of the parameters {θi}i=1m\{\bm{\theta}_{i}\}_{i=1}^{m}:

Suppose we are given a dataset {(xl,yl)}l=1n\{(\bm{x}_{l},y_{l})\}_{l=1}^{n}, which can be represented by an empirical data measure ν^=1n∑l=1nδxl\hat{\nu}=\tfrac{1}{n}\sum_{l=1}^{n}\delta_{\bm{x}_{l}}, and yl=f∗(xl)y_{l}=f_{*}(\bm{x}_{l}) are generated by an target function f∗f_{*} that we wish to estimate using least-squares regression. A canonical approach to this regression task is to consider an Empirical Risk Minimization (ERM) problem of the form

where P(D)\mathcal{P}(D) is the space of probability measures on DD, ∥f−f∗∥ν^2:=∫Ω∣f(x)−f∗(x)∣2ν^(dx)\|f-f_{*}\|_{\hat{\nu}}^{2}:=\int_{\Omega}|f(\bm{x})-f_{*}(\bm{x})|^{2}\hat{\nu}(d\bm{x}) denotes the L2L_{2} function reconstruction error averaged over the data, and λ∫Dr(θ)μ(dθ)\lambda\int_{D}r(\bm{\theta})\mu(d\bm{\theta}) is some optional regularization term. While we can allow rr to be a general convex function, in Section 3.3 we will motivate a choice of rr in the shallow neural networks setting that is related to the variation norm or Barron norm of functions.

2 Approximation and Optimization with a Finite Number of Neurons

Integral representations with a probability measure such as those defined in (2) are amenable to efficient approximation in high dimensions via Monte-Carlo sampling. Namely, if the parameters θi\bm{\theta}_{i} in f(m)f^{(m)} are drawn i.i.d. from an underlying measure μ\mu on DD, then by the Law of Large Numbers (LLN), the resulting empirical measure μ(m)\mu^{(m)} converges μ\mu almost surely, and moreover,

Such a Monte-Carlo estimator showcases the benefit of normalized integral representations for high-dimensional approximation, as the ambient dimension appears in the rate of approximation only through the term ∫D∥φ(θ,⋅)∥ν^2μ(dθ)\int_{D}\|\varphi(\bm{\theta},\cdot)\|_{\hat{\nu}}^{2}\mu(d\bm{\theta}). In the case of shallow neural networks, this is connected to the variation norm or Barron norm of the function we wish to approximate (see Section 3.3 for details).

While the Monte-Carlo sampling strategy above can be seen as a ‘static’ approximation of a function representable as (2), it also gives rise to an efficient algorithm to optimize (4). Indeed, in terms of the empirical distribution μ(m)\mu^{(m)}, the loss L(μ(m))\mathcal{L}(\mu^{(m)}) becomes a function of the parameters {θi}i=1m\{\bm{\theta}_{i}\}_{i=1}^{m}, which we can seek to minimize by adjusting the parameters:

In the shallow neural network setting, with suitable choices of the function rr, the regularization term corresponds to weight decay over the parameters.

3 From Particle to Wasserstein Gradient Flows

where we have defined Cf=12∥f∥ν^2C_{f}=\frac{1}{2}\|f\|_{\hat{\nu}}^{2}, and

Performing GD on L{L} amounts to discretizing in time the following ODE system that governs the evolution of for {θi}i=1m\{\bm{\theta}_{i}\}_{i=1}^{m}:

Heuristically, the ‘particles’ θi\bm{\theta}_{i} perform GD according to the potential V(θ,μt(m))V(\bm{\theta},\mu_{t}^{(m)}) which itself evolves, depending on the particles positions through their empirical measure. Such dynamics can also be expressed in terms of the empirical measure via the continuity equation:

4 Law of Large Numbers and Mean-Field Gradient Flow

From now on, we assume that the particle gradient flow is initialized in the following way:

The ODE (9) is solved for the initial condition θi(0)=θi0\bm{\theta}_{i}(0)=\bm{\theta}_{i}^{0}, with θi0\bm{\theta}_{i}^{0} drawn i.i.d. from a compactly supported measure μ0∈P(D)\mu_{0}\in\mathcal{P}(D) for each i=1,…,mi=1,\ldots,m. Hence, μ0(m)(dθ)=1m∑i=1mδθi0(dθ)\mu^{(m)}_{0}(d\bm{\theta})=\tfrac{1}{m}\sum_{i=1}^{m}\delta_{\bm{\theta}_{i}^{0}}(d\bm{\theta}).

The solution to this equation can be understood via the representation formula

Using expression (10) for VV as well as (13), this equation can be written in closed form explicitly as

It is easy to see that this equation is itself a gradient flow since it is the continuous-time limit of a proximal scheme (mirror descent), which we state as:

5 Long-Time Properties of the Mean-Field Gradient Flow

In the shallow neural networks setting, a series of earlier works has established that under certain assumptions μt\mu_{t} will converge to a global minimizer of the loss functional L\mathcal{L}. In particular, studies global convergence for the regularized loss L\mathcal{L} under homogeneity assumptions on φ^\hat{\varphi}, and considers modified dynamics using double-lifting. Here, to study the long time behavior of the fluctuations, we will often work with the following weaker assumptions:

The solution to (15) exists for all time, and has a limit:

The limiting Θ∞\bm{\Theta}_{\infty} is a local minimizer of (18).

and μt⇀μ∞\mu_{t}\rightharpoonup\mu_{\infty} weakly as t→∞t\to\infty, with μ∞\mu_{\infty} satisfying

We prove this proposition in Appendix B. Here, ∇∇V(Θ∞(θ),μ∞)\nabla\nabla V(\bm{\Theta}_{\infty}(\bm{\theta}),\mu_{\infty}) denotes

which will become useful in Section 3.2 when we analyze the long time properties of the fluctuations around the mean-field limit.

Assumptions 2.5 and 2.6 impose conditions on the initial measure μ0\mu_{0} . While the convergence of gradient flows in finite-dimensional Euclidean space to local minimizers is guaranteed under mild assumptions , its infinite-dimensional counterpart, Assumption 2.6, may require further technical assumptions, left for future study. Also, while Assumption 2.5 implies that μ∞\mu_{\infty} is a stationary point of (12), Assumption 2.6 does not imply that μ∞\mu_{\infty} minimizes L\mathcal{L}.

Fluctuations from Mean-Field Gradient Flow

The main goal of this section is to characterize the deviations of finite-particle shallow networks from their mean-field evolution, by first deriving an estimate for ft(m)−ftf^{(m)}_{t}-f_{t} for t≥0t\geq 0 (Section 3.1), and then analyzing its long-time properties (Section 3.2). In Section 3.3, we then motivate a choice of the regularization term in (4) that controls the bound on the long-time fluctuations derived in Section 3.2, and which is also connected to generalization via the variation norm or Barron norm of functions.

By the static Central Limit Theorem (CLT) we know that, if we draw the initial values of the parameters θi\bm{\theta}_{i} independently from μ0\mu_{0} as specified in Assumption 2.3, g0(m)g^{(m)}_{0} has a limit as m→∞m\to\infty, leading to estimates similar to (5) with μ(m)\mu^{(m)} and μ\mu replaced by the initial μ0(m)\mu_{0}^{(m)} and μ0\mu_{0}, respectively. For t>0t>0, however, this estimate is not preserved by the gradient flow: the static CLT no longer applies and needs to be replaced by a dynamical variant . Next, we derive this dynamical CLT in the context of neural network optimization.

To this end let us define the discrepancy measure ωt(m)\omega^{(m)}_{t} such that

Hence, we will first establish how the limit of ωt(m)\omega^{(m)}_{t} as m→∞m\to\infty evolves over time. This can be done by noting that the representation formula (13) implies that

where Θt(m)\bm{\Theta}^{(m)}_{t} solves (15) with μ0\mu_{0} replaced by μ0(m)\mu_{0}^{(m)}. Defining

As shown in Appendix C.1, we can take the limit m→∞m\to\infty of this formula to obtain:

Here ω0\omega_{0} is the Gaussian measure with mean zero and covariance

with initial condition T0=0\bm{T}_{0}=0 and where Θt\bm{\Theta}_{t} solves (14) and ∇∇V(Θt(θ),μt)\nabla\nabla V(\bm{\Theta}_{t}(\bm{\theta}),\mu_{t}) is a shorthand for

A direct consequence of this proposition and formula (27) is:

It is interesting to comment on the origin of both terms at the right hand side of (31) and, consequently, (35). The first term captures the deviations induced by fluctuations of μ0(m)\mu_{0}^{(m)} around μ0\mu_{0} assuming that the flow Θt(m)\bm{\Theta}^{(m)}_{t} is unaffected by these fluctuations, and remains equal to Θt\bm{\Theta}_{t}. In particular, this term is the one we would obtain if we were to resample μt(m)\mu_{t}^{(m)} from μt\mu_{t} at every t≥0t\geq 0, i.e. use μˉt(m)=m−1∑i=1mδθˉti\bar{\mu}_{t}^{(m)}=m^{-1}\sum_{i=1}^{m}\delta_{\bar{\bm{\theta}}_{t}^{i}} with {θˉti}i=1m\{\bar{\bm{\theta}}_{t}^{i}\}_{i=1}^{m} sampled i.i.d. from μt\mu_{t}, so that Θt(m)\bm{\Theta}^{(m)}_{t} is identical to Θt\bm{\Theta}_{t} in (28). In this case, the limiting discrepancy measure ωˉt\bar{\omega}_{t} would simply be given by

while the associated deviation in the represented function would read

The second term at right hand side of (31) and (35) captures the deviations to the flow Θt\bm{\Theta}_{t} in (15) induced by the perturbation of μ0\mu_{0}, i.e. how much Θt(m)\bm{\Theta}^{(m)}_{t} differs from Θt\bm{\Theta}_{t} in (28). In the limit as m→∞m\to\infty, these deviations are captured by the solution Tt\bm{T}_{t} to (33), as is apparent from (30).

The difference between gtg_{t} and gˉt\bar{g}_{t} can also be quantified via the following Volterra equation, which can be derived from Proposition 3.1 and relates the evolution of gtg_{t} to that of gˉt\bar{g}_{t}.

Here gˉt\bar{g}_{t} is given in (37) and we defined

This corollary is proven in Appendix C.2. In a nutshell, (38) can be established using Duhamel’s principle on (33) by considering all terms at the right hand side except the first as the source term (hence the role of Jt,sJ_{t,s}) and inserting the result in (35).

2 Long-Time Behavior of the Fluctuations

Next, we study the long-time behavior of gtg_{t} and, in particular, evaluate

It is useful to start by considering an idealized case, namely when the initial conditions are sampled as in Assumption 2.3 with μ0=μ∞\mu_{0}=\mu_{\infty}. In that case, there is no evolution at mean field level, i.e. Θt(θ)=Θ∞(θ)=θ\bm{\Theta}_{t}(\bm{\theta})=\bm{\Theta}_{\infty}(\bm{\theta})=\bm{\theta}, μt=μ∞\mu_{t}=\mu_{\infty}, and ft=f∞=∫Dφ∞(θ,⋅)μ∞(dθ)f_{t}=f_{\infty}=\int_{D}\varphi_{\infty}(\bm{\theta},\cdot)\mu_{\infty}(d\bm{\theta}), but the CLT fluctuations still evolve. In particular, it is easy to see that the Volterra equation in (38) for gtg_{t} becomes

Here Γt−s∞(x,x′)\Gamma^{\infty}_{t-s}(\bm{x},\bm{x}^{\prime}) is the Volterra kernel obtained by solving (40) with ∇∇V(Θt(θ),μt)\nabla\nabla V(\bm{\Theta}_{t}(\bm{\theta}),\mu_{t}) replaced by ∇∇V(θ,μ∞)\nabla\nabla V(\bm{\theta},\mu_{\infty}) and inserting the result in (39) with Θt(θ)=θ\bm{\Theta}_{t}(\bm{\theta})=\bm{\theta} and μ0=μ∞\mu_{0}=\mu_{\infty},

and gˉ∞\bar{g}_{\infty} is the Gaussian field with variance

From (23) in Proposition 2.7 we know that ∇∇V(θ,μ∞)\nabla\nabla V(\bm{\theta},\mu_{\infty}) is positive semidefinite for μ∞\mu_{\infty}-almost all θ\bm{\theta}. As a result, we prove in D.1 that the Volterra kernel (43) viewed as an operator on functions defined on Ω×[0,T]\Omega\times[0,T] is positive semidefinite. Therefore, we have

Under Assumptions 2.2, 2.3, 2.5 and 2.6, with μ0=μ∞\mu_{0}=\mu_{\infty} and μ∞\mu_{\infty} as specified in Proposition 2.7, we have

This theorem indicates that, if we knew μ∞\mu_{\infty} and could sample initial conditions for the parameters from it, it would still be favorable to train these parameters as this would reduce the approximation error. Of course, in practice we have no a priori access to μ∞\mu_{\infty}, and so the relevant question is whether (46) also holds if we sample initial conditions from any μ0\mu_{0} such that Proposition 2.7 holds.

In light of (35), one way to address this question is to study the long-time behavior of Tt\bm{T}_{t}. In the setup without regularization (λ=0\lambda=0), we can do so by leveraging existing results that, under certain assumptions, the mean-field gradient flow converges to a global minimizer which interpolates the training data points exactly . In this case, the following theorem shows that we can actually obtain stronger controls on the fluctuations than (46), which we prove in Appendix D.2.

Consider the ERM setting with λ=0\lambda=0 and under Assumptions 2.2, 2.3 and 2.5. Suppose that as t→∞t\to\infty, μt\mu_{t} converges to a global minimizer μ∞\mu_{\infty} that interpolates the data, i.e. the function f∞=∫Dφ(θ,⋅)μ∞(dθ)f_{\infty}=\int_{D}\varphi(\bm{\theta},\cdot)\mu_{\infty}(d\theta) satisfies

and, furthermore, the convergence satisfies

if Assumption 2.1 also holds, i.e., in the shallow neural network setting, we further have

if μ0=μ∞\mu_{0}=\mu_{\infty}, then ∥gt∥ν^\|g_{t}\|_{\hat{\nu}} decreases monotonically in tt.

Hence, in the shallow neural networks setting and under these assumptions, the fluctuations will eventually vanish in the O(m−1/2)O(m^{-1/2}) scale of CLT. Note that for (48) to hold, it is sufficient that L(μt)\mathcal{L}(\mu_{t}) decays at an asymptotic rate of O(t−α)O(t^{-\alpha}) with α>4\alpha>4. For instance, proves that in an ERM setting where the size of the training dataset is no larger than the input dimension (i.e. n≤dn\leq d), the loss converges to zero at a linear rate, which will satisfy the condition (48). We leave the search for weaker sufficient conditions for future work.

When the limiting measure μ∞\mu_{\infty} does not necessarily interpolate the training data, such as when regularization is added, we can proceed with the analysis of the long-time behavior of Tt\bm{T}_{t} under the following assumption on the long-time behavior of the curvature:

Let Λt(θ)\Lambda_{t}(\bm{\theta}) denote the smallest eigenvalue of the tensor ∇∇V(Θt(θ),μt)\nabla\nabla V(\bm{\Theta}_{t}(\bm{\theta}),\mu_{t}) defined in (34) and assume that for a constant CC (to be specified in Appendix D.3) such that

This theorem is proven in Appendix D.3. To intuitively understand (50), note that we know from (23) in Proposition 2.7 that Λt(θ)→0\Lambda_{t}(\bm{\theta})\to 0 μ0\mu_{0}-almost surely as t→∞t\to\infty. Condition (50) can therefore be satisfied by having Λt(θ)\Lambda_{t}(\bm{\theta}) converge to zero sufficiently fast in the regions of DD where it is negative, or having the measure of these regions with respect to μ0\mu_{0} converge to zero sufficiently fast, or both.

Alternatively, in the regularized (λ>0\lambda>0) ERM setting, we can obtain the following result when the support of μ∞\mu_{\infty} is atomic, as expected on general grounds :

Consider the ERM setting under Assumptions 2.2, 2.3 and 2.5. Suppose further that as t→∞t\to\infty, μt\mu_{t} converges to μ∞\mu_{\infty} satisfying

Then (46) holds with the “lim⁡\lim" replaced by “lim sup⁡\limsup" on its LHS.

Theorem 3.7 is proven in Appendix D.4 by analyzing directly the Volterra equation (38) and establishing that its solution coincides with that of (42) in the limit as t→∞t\to\infty, a property that we also expect to hold more generally than under the assumptions of Theorem 3.7. In fact, we prove in Appendix D.4 that (52) can be replaced by a weaker condition, (238). We also discuss the relation between Theorem 3.7 and the work of in Appendix D.4.3.

3 The Monte-Carlo Bound and Regularization

The bound (46) on the long-time fluctuations motivates us to control the term ∫D∥φ(θ,⋅)∥ν^2μ∞(dθ)\int_{D}\|\varphi(\bm{\theta},\cdot)\|_{\hat{\nu}}^{2}\mu_{\infty}(d\bm{\theta}) using a suitable choice of regularization in (4). In the following, we restrict our attention to the shallow neural networks setting, and further assume that

where K^M=max⁡z∈D^∥φ^(z,⋅)∥ν^2\hat{K}_{M}=\max_{\bm{z}\in\hat{D}}\|\hat{\varphi}(\bm{z},\cdot)\|_{\hat{\nu}}^{2}. Thus, we consider regularization with r(θ)=12c2r(\bm{\theta})=\frac{1}{2}c^{2}, in which case (4) becomes

Interestingly, this choice of regularization leads to learning in the function space F1\mathcal{F}_{1} (or alternatively, the Barron space ) associated with φ^\hat{\varphi}, which is equipped with the variation norm (or the Barron norm) defined as

The space F1\mathcal{F}_{1} contains any RKHS whose kernel is generated as an expectation over features k(x,x′)=∫D^φ^(z,x)φ^(z,x′)μ^0(dz)k(\bm{x},\bm{x}^{\prime})=\int_{\hat{D}}\hat{\varphi}(\bm{z},\bm{x})\hat{\varphi}(\bm{z},\bm{x}^{\prime})\hat{\mu}_{0}(d\bm{z}) with a base measure μ^0∈P(D^)\hat{\mu}_{0}\in\mathcal{P}(\hat{D}), but it provides crucial approximation advantages over such RKHS at approximating certain non-smooth, high-dimensional functions with hidden low-dimensional structure, giving rise to powerful generalization guarantees . This also motivates the study of overparametrized shallow networks with the scaling as in (1), as opposed to the NTK scaling of m−1/2m^{-1/2} .

To learn in F1\mathcal{F}_{1}, a canonical approach is to consider the ERM problem

By (55), this is indeed equivalent to (54). In Appendix E, we prove the following proposition, which shows that the measure obtained from (54) indeed has its 22-norm controlled:

Under Assumptions 2.1, 2.2, and 3.8, L\mathcal{L} has no local minima and its global minimum value can only be attained at measures μλ∈P(D)\mu_{\lambda}\in\mathcal{P}(D) such that both fλ=∫Dφ(θ,⋅)μλ(dθ)f_{\lambda}=\int_{D}\varphi(\bm{\theta},\cdot)\mu_{\lambda}(d\bm{\theta}) and cλ=∫D∣c∣μλ(dθ)=(∫D∣c∣2μλ(dθ))1/2≤γ1(f∗)c_{\lambda}=\int_{D}|c|\mu_{\lambda}(d\bm{\theta})=\left(\int_{D}|c|^{2}\mu_{\lambda}(d\bm{\theta})\right)^{1/2}\leq\gamma_{1}(f_{*}) are unique, and

where K^M=max⁡z∈D^∥φ^(z,⋅)∥ν^2\hat{K}_{M}=\max_{\bm{z}\in\hat{D}}\|\hat{\varphi}(\bm{z},\cdot)\|_{\hat{\nu}}^{2}.

Numerical Experiments

We first perform numerical experiments in a student-teacher setting, using a shallow teacher network as the target function to be learned by shallow student networks with different widths mm of the hidden layer. Both D^\hat{D} and Ω\Omega are taken to be the unit sphere of d=16d=16 dimensions, and we take φ^(z,x)=max⁡(0,⟨z,x⟩)\hat{\varphi}(\bm{z},\bm{x})=\max(0,\langle\bm{z},\bm{x}\rangle). The teacher network has two neurons, (c1,z1)(c_{1},\bm{z}_{1}) and (c2,z2)(c_{2},\bm{z}_{2}), in the hidden layer, with c1=c2=1c_{1}=c_{2}=1 and z1\bm{z}_{1} and z2\bm{z}_{2} sampled i.i.d. from the uniform distribution on D^\hat{D} and then fixed across the experiments. We vary the width of the student network in the range of m=128,256,512,1024m=128,256,512,1024 and 20482048, with their initial zi\bm{z}_{i}’s sampled i.i.d. from the uniform distribution on D^\hat{D}. We consider two ways for initializing the cic_{i}’s of the student networks: 1) Gaussian-initialization, where the cic_{i}’s are sampled i.i.d. from N(0,1)\mathcal{N}(0,1); and 2) zero-initialization, where each cic_{i} is set to be .

We train the student networks in two ways: using the population loss or the empirical loss. For the former scenario, the data distribution ν\nu is chosen to be uniform on Ω\Omega, which allows an analytical formula for the loss as well as its gradient. The student networks are trained by gradient descent under L2L_{2} loss. Moreover, we rescale both the squared loss and the gradient by dd in order to adjust to the 1d\frac{1}{d} factor resulting from spherical integrals, and set the learning rate (which is the step size for discretizing (9)) to be 11. The models are trained for 2000020000 epochs. For each choice of mm, we run the experiment κ=20\kappa=20 times with different random initializations of the student network. The average fluctuation of the population loss is defined as 1κ∑k=1κ∥fk(m)−fˉ(m)∥ν2\frac{1}{\kappa}\sum_{k=1}^{\kappa}\|f^{(m)}_{k}-\bar{f}^{(m)}\|_{\nu}^{2} for the population loss, with fˉ(m)=1κ∑k=1κfk(m)\bar{f}^{(m)}=\frac{1}{\kappa}\sum_{k=1}^{\kappa}f^{(m)}_{k} being the averaged model, similar to the approach in . The other plotted quantities – loss, TV-norm and 22-norm – are averaged across the κ\kappa number of runs. The TV-norm (i.e., 11-norm) and 22-norm are defined as in Appendix 3.3.

The results for the scenario of training under the population loss are presented in Figures 1. As seen from Column 3 the average loss values remain similar over time for different choices of mm, justifying the approximation by a mean-field dynamics. In the unregularized case with non-zero initialization, the fluctuation of the population loss (shown in Column 2) remains close to a 1/m1/m scaling in roughly the first 10310^{3} epochs, after which it decays faster for smaller mm. Interestingly, this coincides with the tendency for the student neurons with z\bm{z} not aligned with the teacher neurons to slowly have their ∣c∣|c| decrease to zero due to a finite-mm effect, which is also reflected in the decrease in TV-norm. Aside from this phenomenon, the fluctuations decay at similar rates for different choices of mm, which is consistent with our theory, since their dynamics are governed by the same dynamical CLT. Also, when regularization is added, each student neuron becomes aligned with one of the teacher neurons in both z\bm{z} and cc after training; without regularization but using zero-initialization, after training, each student neuron either becomes aligned with one of the teacher neurons in z\bm{z} or has cc close to zero. Both of these choices result in lower TV-norms and 22-norms compared to using non-zero initialization and without regularization.

Next, we consider the empirical loss scenario (ERM setting), using n=32n=32 random vectors sampled i.i.d. from the uniform distribution ν\nu on Ω\Omega as the training dataset, which then define the empirical data measure ν^(dx)=1n∑l=1nδxl(dx)\hat{\nu}(d\bm{x})=\frac{1}{n}\sum_{l=1}^{n}\delta_{\bm{x}_{l}}(d\bm{x}). We use the full training dataset for computing the gradient at every iteration. The other training setups are the same as when the population loss is used. We additionally plot the average fluctuation of the training loss, defined as 1κ∑k=1κ∥fk(m)−fˉ(m)∥ν^2\frac{1}{\kappa}\sum_{k=1}^{\kappa}\|f^{(m)}_{k}-\bar{f}^{(m)}\|_{\hat{\nu}}^{2}.

The results for the scenario of training under the empirical loss is presented in Figures 2. Compared to the scenario of training under the population loss, we wee that in the unregularized cases, both the average training loss and the average fluctuation of the training loss decay to below 10−810^{-8} within 10310^{3} iterations, and the latter observation is consistent with (49). In the regularized case, neither of them vanishes, but the average fluctuation of the training loss indeed remains below the asymptotic Monte-Carlo bound given in (46), whose analytical expression and numerical value in this setup (under the approximation of replacing μ∞\mu_{\infty}, f∞f_{\infty} and ν^\hat{\nu} by the target measure, the target function and ν\nu, respectively) are given in Appendix F. Regularization and zero-initialization have a weaker effect in aligning the student neurons with the teacher neurons after training compared to the scenario of training under the population loss, but they still result in lower TV-norm and 22-norm, and moreover, lower average fluctuation and (slightly) lower average value of the population loss. This demonstrates their positive effects on both approximation and generalization.

2 Non-planted Case

The results are shown in Figure 3. We observe that the behaviors of the fluctuation are qualitatively similar to those found in Figure 1.

Conclusions

Here we studied the deviations of shallow neural networks from their infinite-width limit, and how these deviations evolve during training by gradient flow. In the ERM setting, we established that under different sets of conditions, the long-term deviation under the Central Limit Theorem (CLT) scaling is controlled by a Monte Carlo (MC) resampling error, giving width-asymptotic guarantees that do not depend on the data dimension explicitly. The MC resampling bound motivates a choice of regularization that is also connected to generalization via the variation-norm function spaces.

Our results thus seem to paint a favorable picture for high-dimensional learning, in which the optimization and generalization guarantees for the idealized mean-field limit could be transferred to their finite-width counterparts. However, we stress that these results are asymptotic, in that we take limits both in the width and time. In the face of negative results for the computational efficiency of training shallow networks , an important challenge is to leverage additional structure in the problem (such as the empirical data distribution , or the structure of the minimizers ) to provide nonasymptotic versions of our results, along the lines of or . Finally, another clear direction for future research is to extend our techniques to deep neural architectures, in light of recent works that consider deep or residual models .

Acknowledgements

This work benefited from discussions with Lenaic Chizat and Carles Domingo-Enrich, and the authors sincerely thank Jiaheng Chen for pointing out an error in Theorem 3.5 in the previous version of this manuscript. Z.C. acknowledges support from the Henry MacCraken Fellowship. G.M.R. acknowledges support from the James S. McDonnell Foundation. J.B. acknowledges support from the Alfred P. Sloan Foundation, NSF RI-1816753, NSF CAREER CIF 1845360, and the Institute for Advanced Study. E. V.-E. acknowledges support from the National Science Foundation (NSF) Materials Research Science and Engineering Center Program Grant No. DMR-1420073, and from NSF Grant No. DMS-1522767.

References

Appendix

We will use ∇φ(θ,x)\nabla\varphi(\bm{\theta},\bm{x}) and ∇∇φ(θ,x)\nabla\nabla\varphi(\bm{\theta},\bm{x}) to denote ∇θφ(θ,x)\nabla_{\bm{\theta}}\varphi(\bm{\theta},\bm{x}) and ∇θ∇θφ(θ,x)\nabla_{\bm{\theta}}\nabla_{\bm{\theta}}\varphi(\bm{\theta},\bm{x}), respectively. We will use ∇K(θ,θ′)\nabla K(\bm{\theta},\bm{\theta}^{\prime}) to denote ∇θK(θ,θ′)\nabla_{\bm{\theta}}K(\bm{\theta},\bm{\theta}^{\prime}), ∇∇K(θ,θ′)\nabla\nabla K(\bm{\theta},\bm{\theta}^{\prime}) to denote ∇θ∇θK(θ,θ′)\nabla_{\bm{\theta}}\nabla_{\bm{\theta}}K(\bm{\theta},\bm{\theta}^{\prime}), ∇′∇K(θ,θ′)\nabla^{\prime}\nabla K(\bm{\theta},\bm{\theta}^{\prime}) to denote ∇θ′∇θK(θ,θ′)\nabla_{\bm{\theta}^{\prime}}\nabla_{\bm{\theta}}K(\bm{\theta},\bm{\theta}^{\prime}), and ∇′∇′K(θ,θ′)\nabla^{\prime}\nabla^{\prime}K(\bm{\theta},\bm{\theta}^{\prime}) to denote ∇θ′∇θ′K(θ,θ′)\nabla_{\bm{\theta}^{\prime}}\nabla_{\bm{\theta}^{\prime}}K(\bm{\theta},\bm{\theta}^{\prime}). We will write Vt(⋅)V_{t}(\cdot) for V(⋅,μt)V(\cdot,\mu_{t}) and V∞(⋅)V_{\infty}(\cdot) for V(⋅,μ∞)V(\cdot,\mu_{\infty}).

Let D′=∪t>0supp⁡μtD^{\prime}=\cup_{t>0}\operatorname{supp}\mu_{t}. Under Assumption 2.5 and Proposition 2.7, D′D^{\prime} is bounded, and we denote its diameter by ∣D′∣|D^{\prime}|. We will use CφC_{\varphi}, C∇φC_{\nabla\varphi} and C∇∇φC_{\nabla\nabla\varphi} to denote the supremum of ∣φ(θ,x)∣|\varphi(\bm{\theta},\bm{x})|, ∣∇φ(θ,x)∣|\nabla\varphi(\bm{\theta},\bm{x})| and ∣∇∇φ(θ,x)∣|\nabla\nabla\varphi(\bm{\theta},\bm{x})| over θ∈D′\bm{\theta}\in D^{\prime} and x∈supp⁡ν^\bm{x}\in\operatorname{supp}\hat{\nu}, which are all finite under Assumptions 2.2 and the boundedness of D′D^{\prime}. We will use L∇∇φL_{\nabla\nabla\varphi} to denote the (uniform-in-x\bm{x}) Lipschitz constant of ∇∇φ(θ,x)\nabla\nabla\varphi(\bm{\theta},\bm{x}) in θ\bm{\theta}, which is also finite under Assumption 2.2.

The following notations will be used in Appendix D.2: Assuming that DD is Euclidean (under Assumption 2.2), let V(D)\mathcal{V}(D) denote the space of random vector fields on DD. It becomes a Hilbert space once equipped with the inner product

where ξ1\bm{\xi}_{1}, ξ2\bm{\xi}_{2} denotes two random vector fields in V(D)\mathcal{V}(D). This inner product gives rise to the norm

For each tt, we define bt∈V(D)\bm{b}_{t}\in\mathcal{V}(D) as

which depends on the random measure ω0\omega_{0}. We define two linear operators, At(K)\mathcal{A}_{t}^{(K)} and At(V)\mathcal{A}_{t}^{(V)} on V(D)\mathcal{V}(D), as

for ξ∈V(D)\bm{\xi}\in\mathcal{V}(D). Under Assumption 2.5, we also define b∞\bm{b}_{\infty}, A∞(K)\mathcal{A}_{\infty}^{(K)}, and A∞(V)\mathcal{A}_{\infty}^{(V)} similarly by replacing Θt(⋅)\bm{\Theta}_{t}(\cdot) with Θ∞(⋅)\bm{\Theta}_{\infty}(\cdot).

Let Wn(Ω)\mathcal{W}_{n}(\Omega) denote the space of random functions on Ω\Omega. It becomes a Hilbert space once equipped with the inner product

which maps a vector field ξ∈V(D)\bm{\xi}\in\mathcal{V}(D) back into Wn(Ω)\mathcal{W}_{n}(\Omega).

Appendix B Long-Time Properties of the Mean-Field Gradient Flow

Proof of Proposition 2.7: The compactness of ∪t≥0supp⁡μt\cup_{t\geq 0}\operatorname{supp}{\mu_{t}} follows from (20) and the compactness of supp⁡μ0\operatorname{supp}{\mu_{0}} assumed in Assumption 2.3. μt⇀μ∞\mu_{t}\rightharpoonup\mu_{\infty} follows from (13) and (20).

Under Assumption 2.5, Θ∞\bm{\Theta}_{\infty} is a local minimizer of the energy E\mathcal{E} defined in (18). Consider a local perturbation ϵΘΔ\epsilon\bm{\Theta}_{\Delta} to Θ\bm{\Theta}. The energy value after the perturbation is

Under Assumptions 2.2, using Taylor expansion, we have

Since ΘΔ\bm{\Theta}_{\Delta} is arbitrary can ϵ\epsilon can be taken arbitrarily small, we see that for Θ∞\bm{\Theta}_{\infty} to be a local minimizer, the first-order condition is, ∀θ∈supp⁡μ0\forall\bm{\theta}\in\operatorname{supp}\mu_{0},

and the second-order condition is, ∀ΘΔ\forall\bm{\Theta}_{\Delta},

Therefore, for JJ large enough, we will have

which contradicts (76). Hence, we can conclude that μ0\mu_{0}-almost surely, ∇∇V(Θ∞(θ),μ∞)\nabla\nabla V(\bm{\Theta}_{\infty}(\bm{\theta}),\mu_{\infty}) is positive semidefinite.

Appendix C Derivations of the Dynamical Central Limit Theorem

The following derivation is an adaptation of the approach in for Vlasov interacting particle systems to our scenario. To start, Θt\bm{\Theta}_{t} and Θt(m)\bm{\Theta}_{t}^{(m)} are governed by the following equations, respectively:

Taking the difference between the two equations in (81) and using the mean value theorem, we get

This ends the proof of Proposition 3.1. □\square

C.2 Proof of Proposition 3.3 (Dynamical CLT - II)

Since T0(θ)=0\bm{T}_{0}(\bm{\theta})=0, we can use Duhamel’s principle to deduce that

where the tensor Jt,s(θ)J_{t,s}(\bm{\theta}) is the Jacobian defined in Proposition 3.3. As a result

with gˉt(x)\bar{g}_{t}(\bm{x}) and Γt,s(x,x′)\Gamma_{t,s}(\bm{x},\bm{x}^{\prime}) defined in (37) and (39), respectively. This is (38). □\square

Appendix D Long-Time Behavior of the Fluctuations

With the argument outlined in Section 3.2, what remains to be shown is that Γt−s∞\Gamma_{t-s}^{\infty} is positive-semidefinite as a Volterra kernel, according to the definition in . We will utilize the following known result:

because by assumption, ∀θ∈D\forall\bm{\theta}\in D, ∇∇V∞(Θ∞(θ))\nabla\nabla V_{\infty}(\bm{\Theta}_{\infty}(\bm{\theta})) is positive semidefinite, and hence e−t∇∇V∞(Θ∞(θ))e^{-t\nabla\nabla V_{\infty}(\bm{\Theta}_{\infty}(\bm{\theta}))} is a positive semidefinite operator;

(2) nonincreasing: Taking derivative with respect to time,

because again, ∇∇V∞(Θ∞(θ))\nabla\nabla V_{\infty}(\bm{\Theta}_{\infty}(\bm{\theta})) is positive semidefinite;

(3) convex: Taking one more derivative with respect to time,

Therefore, we can apply Proposition D.1 to conclude that Γt−s∞\Gamma_{t-s}^{\infty} is PSD as a Volterra kernel, and so ∫t0T∫t0t⟨gt,Γt−s∞gs⟩dsdt≥0\int_{t_{0}}^{T}\int_{t_{0}}^{t}\langle g_{t},\Gamma^{\infty}_{t-s}g_{s}\rangle dsdt\geq 0.

D.2 Proof of Theorem 3.5 (Unregularized case)

where here and below we denote \fint0t[⋅] dt=1t∫0t[⋅] dt\fint_{0}^{t}[\cdot]\ dt=\frac{1}{t}\int_{0}^{t}[\cdot]\ dt. As a result, to prove (46) or (49) in Theorem 3.5, it suffices to establish that

To this end, we examine (33) as an infinite-dimensional ODE. With the Hilbert space V(D)\mathcal{V}(D) defined in Appendix A and bt\bm{b}_{t}, At(K)\mathcal{A}_{t}^{(K)} and At(V)\mathcal{A}_{t}^{(V)} defined by (61), (63) and (64), respectively, we can rewrite (33) as the following ODE on V(D)\mathcal{V}(D):

Note that for all tt, At(K)\mathcal{A}_{t}^{(K)} is a positive semidefinite (PSD) operator on V(D)\mathcal{V}(D), as ∀ξ∈V(D)\forall\bm{\xi}\in\mathcal{V}(D),

This implies that \fint0T⟨Tt,At(K)Tt⟩0dt≥0\fint_{0}^{T}\langle\bm{T}_{t},\mathcal{A}_{t}^{(K)}\bm{T}_{t}\rangle_{0}dt\geq 0. Hence, to establish (99), it is sufficient to show that

To this end, we need two lemmas that are proved below in Appendices D.2.1 and D.2.2, respectively:

Assuming (47) and (48) together with Assumptions 2.2, 2.3 and 2.5, we have

Assuming (47) and (48) together with Assumptions 2.2, 2.3 and 2.5, we have

and therefore (109) is satisfied. This finishes the proof of (46) under (47) and (48) together with Assumptions 2.2, 2.3 and 2.5.

Next, we show (49) under the additional condition of Assumption 2.1. Thanks to (107) and (109), it is sufficient to establish that

Heuristically, if T∞:=lim⁡t→∞Tt\bm{T}_{\infty}:=\lim_{t\to\infty}\bm{T}_{t} exists, then from (102), it has to satisfy

as A∞(V)=0\mathcal{A}_{\infty}^{(V)}=0 (because ∇∇V(θ,μ∞)=∫Ωφ(θ,x)(f∞(x)−f∗(x))ν^(dx)=0\nabla\nabla V(\bm{\theta},\mu_{\infty})=\int_{\Omega}\varphi(\bm{\theta},\bm{x})(f_{\infty}(\bm{x})-f_{*}(\bm{x}))\hat{\nu}(d\bm{x})=0 under the assumption of (47)). This equation implies that

where (T∞)∣∣\left(\bm{T}_{\infty}\right)^{||} denotes the component of T∞\bm{T}_{\infty} in the range of A∞(K)\mathcal{A}_{\infty}^{(K)}, and (A∞(K))†\left(\mathcal{A}_{\infty}^{(K)}\right)^{\dagger} denotes the Moore-Penrose pseudoinverse of A∞(K)\mathcal{A}_{\infty}^{(K)}. As a result,

Rigorously, without assuming the existence of T∞\bm{T}_{\infty}, we can establish that

Assuming (47) and (48) together with Assumptions 2.2, 2.3 and 2.5, we have

This lemma is proved in D.2.3. It implies that we only need to show that

This requires us to further exploit the relationship among A∞(K)\mathcal{A}_{\infty}^{(K)}, b∞\bm{b}_{\infty} and gˉ∞\bar{g}_{\infty}. With the Hilbert space WL(Ω)\mathcal{W}_{L}(\Omega) defined in Appendix A and Bt\mathcal{B}_{t} defined by (67), we can rewrite (63) as

Similar formulas hold when we replace tt by ∞\infty. With these relations, we see that

Lemma D.5 is proven in Appendix D.2.4 and it concludes the proof of (49) in Theorem 3.5.

To show that ∥gt∥ν^\|g_{t}\|_{\hat{\nu}} decreases monotonically when μ0=μ∞\mu_{0}=\mu_{\infty}, note that in this case μt=μ∞\mu_{t}=\mu_{\infty}, ∀t≥0\forall t\geq 0, and so At(V)=A∞(V)=0\mathcal{A}_{t}^{(V)}=\mathcal{A}_{\infty}^{(V)}=0, At(K)=A∞(K)\mathcal{A}_{t}^{(K)}=\mathcal{A}_{\infty}^{(K)} and bt=b∞\bm{b}_{t}=\bm{b}_{\infty}, ∀t≥0\forall t\geq 0. Thus, (102) becomes

As will be shown in Lemma D.6, b∞\bm{b}_{\infty} is in the range of A∞(K)\mathcal{A}_{\infty}^{(K)}. Therefore, defining

whose solution can be written analytically as

Therefore, as b∞=B∞gˉ∞\bm{b}_{\infty}=\mathcal{B}_{\infty}\bar{g}_{\infty}, there is

In the ERM setting, A∞(K)\mathcal{A}_{\infty}^{(K)} is PSD with a finite number of nonzero eigenspaces. Consider a set of its orthonormal eigenfunctions that span those nonzero eigenspaces, v1,...,vkv_{1},...,v_{k}, corresponding to eigenvalues λ1,...,λk>0\lambda_{1},...,\lambda_{k}>0, respectively. As b∞\bm{b}_{\infty} is in the range of A∞(K)\mathcal{A}_{\infty}^{(K)} by Lemma D.6, we can decompose it as

for some real numbers cic_{i}’s. Thus, we can write

which is decreasing in time. This completes the proof of Theorem 3.5. □\square

Proof of (110): ∫0∞∥At(V)∥0dt<∞\int_{0}^{\infty}\|\mathcal{A}_{t}^{(V)}\|_{0}dt<\infty. By the definition of the operator norm induced by ∥⋅∥0\|\cdot\|_{0} on V(D)\mathcal{V}(D), ∥At(V)∥0\|\mathcal{A}_{t}^{(V)}\|_{0} is the smallest number CtC_{t} such that ∀ξ\forall\bm{\xi}, there is

In the unregularized case, a straightforward bound of ∣⟨ξ,At(V)ξ⟩0∣\left|\langle\bm{\xi},\mathcal{A}_{t}^{(V)}\bm{\xi}\rangle_{0}\right| is

which gives us the desired bound. □\square Proof of (111): ∫0∞∥A∞(K)−At(K)∥0dt<∞\int_{0}^{\infty}\|\mathcal{A}_{\infty}^{(K)}-\mathcal{A}_{t}^{(K)}\|_{0}dt<\infty. We have

Hence, the absolute value of the expression above is upper-bounded by

□\square Proof of (112): ∫0∞∥bt−b∞∥0dt<∞\int_{0}^{\infty}\|\bm{b}_{t}-\bm{b}_{\infty}\|_{0}dt<\infty. There is

By the property of ω0\omega_{0}, there is

Hence, with the assumption of (48), we can conclude that

Our goal is to show that ∥Tt∥0\|\bm{T}_{t}\|_{0} remains bounded for all time. First note that, for all tt, At(K)\mathcal{A}_{t}^{(K)} is a positive semidefinite (PSD) operator on V(D)\mathcal{V}(D) since

Second, by Assumption 2.5, for μ0\mu_{0}-almost-every θ∈D\bm{\theta}\in D, Θ∞(θ)=lim⁡t→∞Θt(θ)\bm{\Theta}_{\infty}(\bm{\theta})=\lim_{t\to\infty}\bm{\Theta}_{t}(\bm{\theta}) exists, which allows us to define b∞\bm{b}_{\infty}, A∞(K)\mathcal{A}_{\infty}^{(K)}, and A∞(V)\mathcal{A}_{\infty}^{(V)} similarly to (61), (63) and (64) by replacing Θt(⋅)\bm{\Theta}_{t}(\cdot) with Θ∞(⋅)\bm{\Theta}_{\infty}(\cdot). Since we assume that

This implies that A∞(V)\mathcal{A}_{\infty}^{(V)} is the zero operator on V(D)\mathcal{V}(D).

Third, we have the following observation:

where λmin⁡\lambda_{\min} is the least nonzero eigenvalue of the matrix M∞\mathcal{M}_{\infty} (and hence λmin⁡−1\lambda_{\min}^{-1} is the largest eigenvalue of M∞†\mathcal{M}_{\infty}^{\dagger}). Since

(End of the proof of Lemma D.6) □\square

Coming back to the prof of Lemma D.3, we have shown that, as t→∞t\to\infty, (102) approaches the asymptotic dynamics

with A∞(K)\mathcal{A}_{\infty}^{(K)} positive semidefinite and b∞\bm{b}_{\infty} in the range of A∞(K)\mathcal{A}_{\infty}^{(K)}. This is a stable system. Hence, the rest of the task is to examine what happens at finite time. To do so, we perform a change-of-variable with

as is defined in the proof of Lemma D.6. The dynamics of zt\bm{z}_{t} is governed by

where Π(t,s)\Pi(t,s) is the fundamental solution (a.k.a. Green’s function) associated with the time-variant homogeneous system

Since At(K)\mathcal{A}_{t}^{(K)} is positive semidefinite for all tt, there is ∥Π(t,s)∥0≤1\|\Pi(t,s)\|_{0}\leq 1 for t>st>s, where with a slight abuse of notation we also use ∥⋅∥0\|\cdot\|_{0} for the operator norm. Hence,

Therefore, ∥zt∥0\|\bm{z}_{t}\|_{0} remains bounded for all time if we can show that

we see that (172) is guaranteed by Lemmas D.2 and D.6.

This completes the proof of Lemma D.3. □\square

By (110) in Lemma D.2 as well as Lemma D.3, we know that

Next, by (111) and (112) in Lemma D.2 as well as Lemma D.3, we know that

Let ξ∣∣\bm{\xi}^{||} denote the component of a vector field ξ∈V(D)\bm{\xi}\in\mathcal{V}(D) that is in the range of A∞(K)\mathcal{A}_{\infty}^{(K)}. In the ERM setting, A∞(K)\mathcal{A}_{\infty}^{(K)} has a least nonzero eigenvalue that is positive, and hence the above implies that

Similar to (111), it can be shown that ∫0∞∥Bt−B∞∥0dt<∞\int_{0}^{\infty}\|\mathcal{B}_{t}-\mathcal{B}_{\infty}\|_{0}dt<\infty. Therefore, we have

we know that when viewed as a LL-dimensional random vector, gˉ∞\bar{g}_{\infty} has the distribution

by the covariance of ω0\omega_{0}, (32). Thus, we decompose Cˉ∞\bar{C}_{\infty} as Cˉ∞=Cˉ∞(1)−Cˉ∞(2)\bar{C}_{\infty}=\bar{C}_{\infty}^{(1)}-\bar{C}_{\infty}^{(2)}, with

Since Cˉ∞\bar{C}_{\infty} is PSD, its square root (Cˉ∞)1/2\left(\bar{C}_{\infty}\right)^{1/2} is well-defined. By the property of multivariate Gaussian, we can write

D.3 Proof of Theorem 3.6 (Under assumptions on the curvature in the long-time)

When the limiting measure μ∞\mu_{\infty} does not necessarily interpolate the training data, such as in the regularized case, we have the following condition on Tt\bm{T}_{t} which guarantees that (46) holds:

(including when this limit is +∞+\infty) then (46) holds.

Proof of Lemma D.7: With Dt\mathfrak{D}_{t} defined in (101), for (46) to hold, it is sufficient to show that

Since T0=0\bm{T}_{0}=0 and At(K)\mathcal{A}_{t}^{(K)} is PSD, we see that the assumption (200) is sufficient. □\square

Note that condition (200) is natural since we know from Proposition 2.7 that lim⁡t→∞∇∇V(Θt(θ),μt)=∇∇V(Θ∞(θ),μ∞)\lim_{t\to\infty}\nabla\nabla V(\bm{\Theta}_{t}(\bm{\theta}),\mu_{t})=\nabla\nabla V(\bm{\Theta}_{\infty}(\bm{\theta}),\mu_{\infty}) exists and is positive semidefinite μ0\mu_{0}-almost surely. This lemma then allows us to prove Theorem 3.6: Proof of Theorem 3.6: Our goal is to verify (200) in order to apply Lemma D.7. We first see that

where we define, for ξ∈V(D)\bm{\xi}\in\mathcal{V}(D),

Hence, if we assume that ∣∫Dmin⁡{λmin⁡(∇∇V(θ,μt)),0}μ0(dθ)∣\left|\int_{D}\min\left\{\lambda_{\min}(\nabla\nabla V(\bm{\theta},\mu_{t})),0\right\}\mu_{0}(d\bm{\theta})\right| is small asymptotically, then what remains is to upper-bound ∥Tt∥sup⁡\|\bm{T}_{t}\|_{\sup}. Recall from (102) that the dynamics of Tt\bm{T}_{t} is governed by

Thus, in the ∥⋅∥sup⁡\|\cdot\|_{\sup} norm defined above, we have

We then want to bound the growth of ∥Tt∥sup⁡\|\bm{T}_{t}\|_{\sup} by upper-bounding the RHS. Note that for ξ∈V(D)\bm{\xi}\in\mathcal{V}(D),

To bound ∥bt∥sup⁡\|\bm{b}_{t}\|_{\sup}, we recall that

This implies that ∀θ∈supp⁡μ0\forall\bm{\theta}\in\operatorname{supp}\mu_{0},

On the other hand, similar to (162), we have

Thus, there is ∀θ∈supp⁡μ0\forall\bm{\theta}\in\operatorname{supp}\mu_{0},

Now, using (203), we see that in order for (200) to hold, it is sufficient to have

To intuitively understand (50), note that we know from (23) in Proposition 2.7 that Λt(θ)→0\Lambda_{t}(\bm{\theta})\to 0 μ0\mu_{0}-almost surely as t→∞t\to\infty. Condition (50) can therefore be satisfied by having Λt(θ)\Lambda_{t}(\bm{\theta}) converge to zero sufficiently fast in the regions of DD where it is negative, or having the measure of these regions with respect to μ0\mu_{0} converge to zero sufficiently fast, or both.

D.4 Proof of Theorem 3.7 (Regularized case)

Recall from Proposition 3.3 that the dynamics of gtg_{t} is governed by

with Jt,sJ_{t,s} being the Jacobian of the flow Θt\bm{\Theta}_{t}.

In the ERM setting, supp⁡ν^\operatorname{supp}\hat{\nu} is singular, thus we have ν^(dx)=n−1∑l=1nδxl(dx)\hat{\nu}(d\bm{x})=n^{-1}\sum_{l=1}^{n}\delta_{\bm{x}_{l}}(d\bm{x}), where nn is the total number of training data points. We define Wn(Ω)\mathcal{W}_{n}(\Omega) together with the inner product ⟨⋅,⋅⟩ν^,0\langle\cdot,\cdot\rangle_{\hat{\nu},0} and the norm ∥⋅∥ν^,0\|\cdot\|_{\hat{\nu},0} as in Appendix A. We will also continue to consider gtg_{t} and gˉt\bar{g}_{t} equivalently as nn-dimensional vectors,

respectively. Thus, Γt,s\Gamma_{t,s} can also be represented by the n×nn\times n matrix

Under such an abuse of notations, we can simplify (221) into

where for simplicity, we write Vt(⋅)V_{t}(\cdot) for V(⋅,μt)V(\cdot,\mu_{t}) and V∞(⋅)V_{\infty}(\cdot) for V(⋅,μ∞)V(\cdot,\mu_{\infty}). Then the heuristic argument outlined in Section 3.2 before Theorem 3.4 amounts to rewriting (225) as

and then arguing that 1) Γ∞\Gamma^{\infty} is a nonnegative convolution-type Volterra kernel, and 2) the second term on the RHS is small. Rigorously, we need to introduce an extra level of complication: for every t0>0t_{0}>0, we can rewrite (225) into

Then, for any T>t0T>t_{0}, by multiplying gtg_{t} and integrating from t0t_{0} to TT, we get

Then firstly, the second term on the LHS is nonnegative because of the nonnegativity of Γt∞\Gamma_{t}^{\infty} as a convolution-type Volterra kernel, as proven in Appendix D.1.

Therefore, putting everything together, we have

and hence, using \fintab⋅ dt\fint_{a}^{b}\cdot\ dt to denote the averaged integral 1b−a∫ab⋅ dt\frac{1}{b-a}\int_{a}^{b}\cdot\ dt,

Under all assumptions in Theorem 3.7 except for (52) being replaced by a weaker condition,

We will prove in Appendix D.4.2 that (52) indeed implies (238).

The lemma will be proved in Appendix D.4.1, and let us first proceed with the proof of the theorem assuming this lemma. Suppose for contradiction that (226) does not hold, meaning that

for some ϵ>0\epsilon>0. We will select a pair of t0t_{0} and TT for which the inequality (237) cannot be satisfied. Firstly, by the convergence of gˉt\bar{g}_{t} to gˉ∞\bar{g}_{\infty}, ∃ta>0\exists t_{a}>0 such that ∀t1,t2>ta\forall t_{1},t_{2}>t_{a},

Secondly, by our assumption (241) and the first part of Lemma D.8, ∃t0>ta\exists t_{0}>t_{a} such that both

are satisfied. In particular, (243) implies

By the second part of Lemma D.8, ∃tb>t0\exists t_{b}>t_{0} such that ∀T>tb\forall T>t_{b},

By our assumption (241), we can choose a T>tbT>t_{b} such that

we can assume without loss of generality that Tt0\frac{T}{t_{0}} is large enough so that

Thus, back to the inequality (237), the LHS is strictly lower-bounded by

whereas the RHS is strictly upper-bounded by

This gives contradiction and we are done with the proof of Theorem 3.7. □\square

It remains to prove Lemma D.8. To do so we will need an auxiliary result, that we state and prove first:

Let ΔΓt,s:=Γt,s−Γt−s∞\Delta\Gamma_{t,s}:=\Gamma_{t,s}-\Gamma_{t-s}^{\infty}. If ∇∇V\nabla\nabla V is uniformly positive definite with eigenvalues lower-bounded by λ\lambda, then there exists constants CC and C′C^{\prime} whose values depend on ∣D′∣|D^{\prime}|, CφC_{\varphi}, C∇φC_{\nabla\varphi}, C∇∇φC_{\nabla\nabla\varphi}, and L∇∇φL_{\nabla\nabla\varphi} such that

where ΔΘt(θ)=Θt(θ)−Θ∞(θ)\Delta\bm{\Theta}_{t}(\bm{\theta})=\bm{\Theta}_{t}(\bm{\theta})-\bm{\Theta}_{\infty}(\bm{\theta}).

We will first try to bound ξt(θ)−ξt′(θ)\bm{\xi}_{t}(\bm{\theta})-\bm{\xi}^{\prime}_{t}(\bm{\theta}) as a function of η\eta. Define Δξt(θ)=ξt(θ)−ξt′(θ)\Delta\bm{\xi}_{t}(\bm{\theta})=\bm{\xi}_{t}(\bm{\theta})-\bm{\xi}^{\prime}_{t}(\bm{\theta}). Then

Since ∇∇V∞(Θ∞(θ))−λId\nabla\nabla V_{\infty}(\bm{\Theta}_{\infty}(\bm{\theta}))-\lambda I_{d} is positive semidefinite, we first have

To prepare for an application of Gronwall’s inequality, we introduce a change-of-variable by defining, for r∈[s,t]r\in[s,t],

Then we can rewrite the equation above as

or, back in the original variable that we are interested in,

and, since ∇∇Vr(θ)=∫Ω∇∇φ(θ,x)(fr(x)−f∗(x))ν^(dx)\nabla\nabla V_{r}(\bm{\theta})=\int_{\Omega}\nabla\nabla\varphi(\bm{\theta},\bm{x})(f_{r}(\bm{x})-f_{*}(\bm{x}))\hat{\nu}(d\bm{x}) and ∇∇V∞(θ)=∫Ω∇∇φ(θ,x)(f∞(x)−f∗(x))ν^(dx)\nabla\nabla V_{\infty}(\bm{\theta})=\int_{\Omega}\nabla\nabla\varphi(\bm{\theta},\bm{x})(f_{\infty}(\bm{x})-f_{*}(\bm{x}))\hat{\nu}(d\bm{x}),

where we use ∥f∥ν^,∞\|f\|_{\hat{\nu},\infty} to denote sup⁡x∈supp⁡ν^∣f(x)∣\sup_{\bm{x}\in\operatorname{supp}\hat{\nu}}|f(\bm{x})| and we defined Δft=ft−f∞\Delta f_{t}=f_{t}-f_{\infty}.

Therefore, using C0C_{0}, C1C_{1}, etc. to represent constants that depend on CφC_{\varphi}, C∇φC_{\nabla\varphi}, C∇∇φC_{\nabla\nabla\varphi}, C∇∇φC_{\nabla\nabla\varphi} and L∇∇φL_{\nabla\nabla\varphi}, we have

Note that ∥Δfr∥ν^,∞\|\Delta f_{r}\|_{\hat{\nu},\infty} can be further upper-bounded by Cφ∫D∣ΔΘr(θ)∣μ0(dθ)C_{\varphi}\int_{D}|\Delta\bm{\Theta}_{r}(\bm{\theta})|\mu_{0}(d\bm{\theta}). Furthermore, defining

(End of the proof of Lemma D.9.) □\square

Proof of Lemma D.8: Lemma D.9 entails that, ∃C,C′>0\exists C,C^{\prime}>0 such that

where for the last inequality, we assume that ∣D′∣≥1|D^{\prime}|\geq 1 (or, to accommodate the more general case, just replace ∣D′∣|D^{\prime}| by max⁡{∣D′∣,1}\max\{|D^{\prime}|,1\}).

To prove Lemma D.8, the first goal is to show

By our assumption, the RHS is finite for t0>0t_{0}>0. Hence, by taking t0t_{0} large enough, the value of ∫t0∞∫t0t∥ΔΓt,s∥ν^2dsdt\int_{t_{0}}^{\infty}\int_{t_{0}}^{t}\|\Delta\Gamma_{t,s}\|_{\hat{\nu}}^{2}dsdt can be made arbitrarily close to zero.

The second goal is to show that ∀t0>0\forall t_{0}>0,

because ∀η∈WL(Ω)\forall\eta\in\mathcal{W}_{L}(\Omega), there is

and M∞\mathcal{M}_{\infty} is defined as M∞:=B∞⊺B∞\mathcal{M}_{\infty}:=\mathcal{B}_{\infty}^{\intercal}\mathcal{B}_{\infty}, or concretely, for η∈WL(ω)\eta\in\mathcal{W}_{L}(\omega),

In the ERM setting, M∞\mathcal{M}_{\infty} is effectively an L×LL\times L matrix. Thus,

This concludes the proof of Lemma D.8. □\square

Below, we will illustrate the assumption (238)

in Theorem 3.7 by giving examples that satisfy this condition.

First, consider an example where ∃κ>0,α>1\exists\kappa>0,\alpha>1 such that ∀θ∈supp⁡μ0\forall\bm{\theta}\in\operatorname{supp}\mu_{0} and ∀ t>0\forall~{}t>0,

that is, all characteristic flows share a uniform asymptotic convergence rate on the order of t−αt^{-\alpha}. Then ∀θ∈supp⁡μ0\forall\bm{\theta}\in\operatorname{supp}\mu_{0},

which is finite as long as α>32\alpha>\frac{3}{2}. Thus,

If ∃κ>0,α>32\exists\kappa>0,\alpha>\frac{3}{2} such that ∀θ∈supp⁡μ0\forall\bm{\theta}\in\operatorname{supp}\mu_{0} and ∀t≥0\forall t\geq 0,

such that ∀θ∈supp⁡μ0\forall\bm{\theta}\in\operatorname{supp}\mu_{0},

Appendix E Properties of the Minimizers of the Regularized Loss

First, under Assumption 2.1, i.e. in the shallow neural networks setting, define

We prove Proposition 3.9, which we extend into:

Under Assumptions 2.1, 2.2, and 3.8, the minimizers of the loss L(μ)\mathcal{L}(\mu) defined in (4) are all in the form

where cλ≥0c_{\lambda}\geq 0 and μ^±∈P(D^)\hat{\mu}_{\pm}\in\mathcal{P}(\hat{D}) satisfy

In addition, the constant cλc_{\lambda} is unique and positive if F^(z)\hat{F}(\bm{z}) is not identically zero on D^\hat{D}, the closure of the supports of μ^±\hat{\mu}_{\pm} are disjoint (i.e. supp⁡μ^+‾∩supp⁡μ^−‾=∅\overline{\operatorname{supp}\hat{\mu}_{+}}\cap\overline{\operatorname{supp}\hat{\mu}_{-}}=\emptyset), and the function

is the same for all minimizers and satisfies

where K^M=max⁡z∈D^∥φ^(z,⋅)∥ν^2=max⁡z∈D^K^(z,z)\hat{K}_{M}=\max_{\bm{z}\in\hat{D}}\left\|\hat{\varphi}(\bm{z},\cdot)\right\|_{\hat{\nu}}^{2}=\max_{\bm{z}\in\hat{D}}\hat{K}(\bm{z},\bm{z}).

Note that the proposition automatically implies that γ1(fλ)≤γ1(f∗)<∞\gamma_{1}(f_{\lambda})\leq\gamma_{1}(f_{*})<\infty. It also implies that

with equality on the support of μ\mu and where Vˉ\bar{V} is the expectation of the left hand side with respect to μ(dc,dz)\mu(dc,d\bm{z}). Minimizing the left hand side of (309) over cc at fixed z\bm{z}, we deduce that

If we insert this equality back in c(z)V^(z)+12λ∣c(z)∣2=Vˉc(\bm{z})\hat{V}(\bm{z})+\frac{1}{2}\lambda|c(\bm{z})|^{2}=\bar{V}, we deduce that ∣c(z)∣=cλ|c(\bm{z})|=c_{\lambda}, with the constant cλc_{\lambda} related to Vˉ\bar{V} as

and furthermore, ∀z∈supp⁡μ^\forall\bm{z}\in\operatorname{supp}{\hat{\mu}},

These considerations imply that the minimizer must be of the form (304), and if we combine (310) and (312) and evaluate the minimum on cc explicitly we deduce that μ^±\hat{\mu}_{\pm} and cλc_{\lambda} must satisfy the equations in (305). It is also clear from (305) that we must have supp⁡μ^+‾∩supp⁡μ^−‾=∅\overline{\operatorname{supp}\hat{\mu}_{+}}\cap\overline{\operatorname{supp}\hat{\mu}_{-}}=\emptyset: indeed if there was a point z∈supp⁡μ^+‾∩supp⁡μ^−‾\bm{z}\in\overline{\operatorname{supp}\hat{\mu}_{+}}\cap\overline{\operatorname{supp}\hat{\mu}_{-}}, then at that point V^(z)\hat{V}(\bm{z}) would be discontinuous, which is not possible since this function is continuously differentiable for any μ\mu by our assumptions on φ^\hat{\varphi}. Finally, to show that we must have that cλ>0c_{\lambda}>0 if F(z)F(\bm{z}) is not identically zero on D^\hat{D}, note that if cλ=0c_{\lambda}=0, (309) reduces to

which can only be satisfied if F^(z)=0\hat{F}(\bm{z})=0.

To show that cλc_{\lambda} and the function in (306) are unique, let μλ\mu_{\lambda} and μλ′\mu^{\prime}_{\lambda} be two different minimizers and consider

Let us evaluate the loss on aμλ+(1−a)μλ′∈P(D)a\mu_{\lambda}+(1-a)\mu^{\prime}_{\lambda}\in\mathcal{P}(D) with a∈a\in. By convexity of Eλ\mathcal{E}_{\lambda} we have

Since aμλ+(1−a)μλ′a\mu_{\lambda}+(1-a)\mu^{\prime}_{\lambda} cannot have a lower loss than this minimum, we must have equality in (316), which reduces to

where cλc_{\lambda} and cλ′c_{\lambda}^{\prime} are associated with μλ\mu_{\lambda} and μλ′\mu_{\lambda}^{\prime}, respectively. Clearly these equations can only be fulfilled for all a∈a\in if cλ=cλ′c_{\lambda}=c_{\lambda}^{\prime} and fλ=fλ′f_{\lambda}=f_{\lambda}^{\prime} ν^{\hat{\nu}}-a.e. on Ω\Omega.

To establish (307), notice that if μλ\mu_{\lambda} is a minimizer and fλf_{\lambda} is given by (306), then we can derive from (313) that

Using (320) in (319) and reorganizing gives the first inequality in (307). To establish the second, let μ∗∈M+(D)\mu_{*}\in\mathcal{M}_{+}(D) be the measure that minimizes ∫D∣c∣μ(dc,dz)\int_{D}|c|\mu(dc,d\bm{z}) under the constraint that f∗=∫Dcφ^(z,⋅)μ∗(dc,dz)f_{*}=\int_{D}c\hat{\varphi}(\bm{z},\cdot)\mu_{*}(dc,d\bm{z}), so that ∫D∣c∣μ∗(dc,dz)=γ1(f∗)\int_{D}|c|\mu_{*}(dc,d\bm{z})=\gamma_{1}(f_{*})—the measure μ∗\mu_{*} exists since we assumed that f∗∈F1f_{*}\in\mathcal{F}_{1}. Evaluated on μ∗\mu_{*}, the loss is

Any minimizer μλ\mu_{\lambda} of L(μ)\mathcal{L}(\mu) must do at least as well, i.e we must have

This establishes the second inequality in (307). □\square

Appendix F Analytical Calculations of the Resampling Error

with α\alpha being the angle between z\bm{z} and z′\bm{z}^{\prime}, and

Thus, taking μ∗\mu_{*} to be the measure representing the teacher network, μ∗=1mt∑i=1mtδzi(dz)δ1(dc)\mu_{*}=\frac{1}{m_{t}}\sum_{i=1}^{m_{t}}\delta_{\bm{z}_{i}}(d\bm{z})\delta_{1}(dc), we have

In the experiments described in the main text, we take mt=2m_{t}=2, and z1\bm{z}_{1} and z2\bm{z}_{2} are initialized with a fixed random seed such that their angle, α12\alpha_{12}, equal to 1.7661.766. Thus,

Together, we get a numerical value of the RHS of (46) if we replace μ∞\mu_{\infty}, f∞f_{\infty} and ν^\hat{\nu} by μ∗\mu_{*}, f∗f_{*} and ν\nu, respectively.