Mean-field theory of two-layers neural networks: dimension-free bounds and kernel limit

Song Mei, Theodor Misiakiewicz, Andrea Montanari

Introduction

Multi-layer neural networks, and in particular multi-layer perceptrons, present a number of remarkable features. They are effectively trained using stochastic-gradient descent (SGD) [LBBH98]; their behavior is fairly insensitive to the number of hidden units or to the input dimensions [SHK+14]; their number of parameters is often larger than the number of samples.

In this paper consider simple neural networks with one layer of NN hidden units:

Classical theory of universal approximation provides useful insights into the way two-layers networks capture arbitrary input-output relations [Cyb89, Bar93]. In particular, Barron’s theorem [Bar93] guarantees

The universal approximation property is then related to the fact that an arbitrary distribution ρ\rho can be approximated by one supported on NN pointsOf course, here we are hiding some important technical issues..

Approximation theory provides some insight into the peculiar properties of neural networks. Small population risk is achieved by many networks, since what matters is the distribution ρ\rho, not the parameters θ1,…,θN{\bm{\theta}}_{1},\dots,{\bm{\theta}}_{N}. The behavior is insensitive to the number of neurons NN, as long as this is large enough for ρ^(N)\hat{\rho}^{(N)} to approximate ρ\rho. Finally, the bound (4) is dimension-free.

(Here ξ(t)\xi(t) is a function that gauges the evolution of step size and will be defined below. In fact, there is little loss to the following discussion in setting ξ(t)=1\xi(t)=1.) We will refer to this as the mean field description, or distributional dynamics. This description has the advantage of being explicitly independent of the number of hidden units NN and hence accounts for one of the empirical findings described above (the insensitivity to the number of neurons). Further, it allows to focus on some key elements of the dynamics (global convergence, typical behavior) neglecting others (local minima, statistical noise).

Several papers used this approach over the last year to analyze learning in two-layers networks: this work will be succinctly reviewed in Section 2.

The results of [MMN18] present several limitations, that we overcome in the present paper. We briefly summarize our contributions.

As mentioned above, both classical approximation theory and the mean-field analysis of SGD approximate a certain target distribution ρ\rho by the empirical distributions of the network parameters ρ^(N)\hat{\rho}^{(N)}. However, while the approximation bound (4) is dimension-free, the approximation guarantees of [MMN18] are explicitly dimension-dependent. Even for very smooth functions f(x)f({\bm{x}}), and well behaved data distributions, the results of [MMN18] require N≫DN\gg D.

Here we prove a new bound that is dimension independent and therefore more natural. The proof follows a coupling argument which is different and more powerful than the one of [MMN18]. A key improvement consists in isolating different error terms, and developing a more delicate concentration-of-measure argument which controls the dependence of the error on NN.

Let us emphasize that capturing the correct dimension-dependence is an important test of the mean-field theory, and it is crucial in order to compare neural networks to other learning techniques (see Section 4).

The approximation guarantee of [MMN18] only applies to activation functions σ⋆(x;θi)\sigma_{\star}({\bm{x}};{\bm{\theta}}_{i}) that are bounded. This excludes the important case of unbounded second-layer coefficients as in Eq. (1). We extend our analysis to that case. This requires to develop an a priori bound on the growth of the coefficients aia_{i}. As in the previous point, our approximation guarantee is dimension-free.

Finally, in some cases it is useful to inject noise into SGD. From a practical perspective this can help avoiding local minima. From an analytical perspective, it corresponds to a modified PDE, which contains an additional Laplacian term Δθρt\Delta_{{\bm{\theta}}}\rho_{t}. This PDE has smoother solutions ρt\rho_{t} that are supported everywhere and converge globally to a unique fixed point [MMN18].

In this setting, we prove a dimension-free approximation guarantee for the case of bounded activations. We also obtain a guarantee for noisy SGD unbounded activations, but the latter is not dimension-free.

We analyze the PDE (DD) in a specific short-time limit and show that it is well approximated by a linearized dynamics. This dynamics can be thought as fitting a kernel ridge regression‘Kernel ridge regression’ and ‘kernel regression’ are used with somewhat different meanings in the literature. Kernel ridge regression uses global information and can be defined as ridge regression in reproducing kernel Hilbert space (RKHS), while kernel regression uses local averages. See Remark H.1 for a definition. model with respect to a kernel corresponding to the initial weight distribution ρ0\rho_{0}. We thus recover –from a different viewpoint– a connection with kernel methods that has been investigated in several recent papers [JGH18, DZPS18, DLL+18, AZLS18]. Beyond the short time scale, the dynamics is analogous to kernel boosting dynamics with a time-varying data-dependent kernel (a point that already appears in [RVE18]).

Mean-field theory allowed to prove global convergence guarantees for SGD in two-layers neural networks [MMN18, CB18b]. Unfortunately, these results do not provide (in general) useful bounds on the network size NN. We believe that the results in this paper are a required step in that direction.

The rest of this paper is organized as follows. The next section overviews related work, focusing in particular on the distributional dynamics (DD), its variants and applications. In Section 3 we present formal statements of our results. Section 4 develops the connection with kernel methods. Proofs are mostly deferred to the appendices.

Related work

As mentioned above, classical approximation theory already uses (either implicitly or explicitly) the idea of lifting the class of NN-neurons neural networks, cf. Eq. (1), to the infinite-dimensional space (5) parametrized by probability distributions ρ\rho, see e.g. [Cyb89, Bar93, Bar98, AB09]. This idea was exploited algorithmically, e.g. in [BRV+06, NS17].

Only very recently (stochastic) gradient descent was proved to converge (for large enough number of neurons) to the infinite-dimensional evolution (DD) [MMN18, RVE18, SS18, CB18b]. In particular, [MMN18] proves quantitative bounds to approximate SGD by the mean-field dynamics. Our work is mainly motivated by the objective to obtain a better scaling with dimension and to allow for unbounded second-layer coefficients.

The mean-field description was exploited in several papers to establish global convergence results. In [MMN18] global convergence was proved in special examples, and in a general setting for noisy SGD. The papers [RVE18, CB18b] studied global convergence by exploiting the homogeneity properties of Eq. (1). In particular, [CB18b] proves a general global convergence result. For initial conditions ρ0\rho_{0} with full support, the PDE (DD) converges to a global minimum provided activations are homogeneous in the parameters. Notice that the presence of unbounded second layer coefficients is crucial in order to achieve homogeneity. Unfortunately, the results of [CB18b] do not provide quantitative approximation bounds relating the PDE (DD) to finite-NN SGD. The present paper fills this gap by establishing approximation bounds that apply to the setting of [CB18b].

A different optimization algorithm was studied in [WLLM18] using the mean-field description. The algorithm resamples a positive fraction of the neurons uniformly at random at a constant rate. This allows the authors to establish a global convergence result (under certain assumed smoothness properties on the PDE solution). Again, this paper does not provide quantitative bounds on the difference between PDE and finite-NN SGD. While our theorems do not cover the algorithm of [WLLM18], we believe that their algorithm could be analyzed using the approach developed here. Exponentially fast convergence to a global optimum was proven in [JMM19] for certain radial-basis-function networks, using again the mean-field approach. While the setting of [JMM19] is somewhat different (weights are constrained to a convex compact domain), the technique presented here could be applicable to that problem as well.

Finally, a recent stream of works [JGH18, GJS+19, DZPS18, DLL+18, AZLS18] argues that, as N→∞N\to\infty two-layers networks are actually performing a type of kernel ridge regression. As shown in [CB18a], this phenomenon is not limited to neural network, but generic for a broad class of models. As expected, the kernel regime can indeed be recovered as a special limit of the mean-field dynamics (DD), cf. Section 4. Let us emphasize that here we focus on the population rather than the empirical risk.

A discussion of the difference between the kernel and mean-field regimes was recently presented in [DL19]. However, [DL19] argues that the difference between kernel and mean-field behaviors is due to different initializations of the coefficients aia_{i}’s. We show instead that, for a suitable scaling of the initialization, kernel and mean field regimes appear at different time scales. Namely, the kernel behavior arises at the beginning of the dynamics, and mean field characterizes longer time scales. It is also worth mentioning that the connection between mean field dynamics and kernel boosting with a time-varying data-dependent kernel was already present (somewhat implicitly) in [RVE18].

Dimension-free mean field approximation

We will work under a one-pass model, that is, each data point is visited once.

We also consider a noisy version of SGD, with a regularization term:

The infinite-dimensional evolution corresponding to noisy SGD is given by

In order to establish a non-asymptotic guarantee, we will make the following assumptions:

t↦ξ(t)t\mapsto\xi(t) is bounded Lipschitz:  ⁣∥ξ∥∞\mathinner{\!\left\lVert\xi\right\rVert}_{\infty},  ⁣∥ξ∥Lip≤K1\mathinner{\!\left\lVert\xi\right\rVert}_{\text{Lip}}\leq K_{1}.

The functions w↦v(w){\bm{w}}\mapsto v({\bm{w}}) and (w1,w2)↦u(w1,w2)({\bm{w}}_{1},{\bm{w}}_{2})\mapsto u({\bm{w}}_{1},{\bm{w}}_{2}) are differentiable, with bounded and Lipschitz continuous gradient: ∥∇v(w)∥2≤K3\|\nabla v({\bm{w}})\|_{2}\leq K_{3}, ∥∇u(w1,w2)∥2≤K3\|\nabla u({\bm{w}}_{1},{\bm{w}}_{2})\|_{2}\leq K_{3}, ∥∇v(w)−∇v(w′)∥2≤K3∥w−w′∥2\|\nabla v({\bm{w}})-\nabla v({\bm{w}}^{\prime})\|_{2}\leq K_{3}\|{\bm{w}}-{\bm{w}}^{\prime}\|_{2}, ∥∇u(w1,w2)−∇u(w1′,w2′)∥2≤K3∥(w1,w2)−(w1′,w2′)∥2\|\nabla u({\bm{w}}_{1},{\bm{w}}_{2})-\nabla u({\bm{w}}^{\prime}_{1},{\bm{w}}^{\prime}_{2})\|_{2}\leq K_{3}\|({\bm{w}}_{1},{\bm{w}}_{2})-({\bm{w}}^{\prime}_{1},{\bm{w}}^{\prime}_{2})\|_{2}.

We will consider two different cases for the SGD dynamics:

We initialize the parameters θi0=(ai0,wi0){\bm{\theta}}^{0}_{i}=(a^{0}_{i},{\bm{w}}^{0}_{i}) as (θi0)i≤N∼iidρ0({\bm{\theta}}^{0}_{i})_{i\leq N}\sim_{iid}\rho_{0}. Both the ai0a_{i}^{0} and wi0{\bm{w}}^{0}_{i} are updated during the dynamics.

We use the same initialization as described above, but the coefficients aia_{i} are not updated by SGD. The corresponding PDE is given by Eq. (DD) (or (diffusion-DD)), except that the space derivatives are to be interpreted only with respect to w{\bm{w}}, i.e. replace ∇θ\nabla_{\bm{\theta}} by (0,∇w)(0,\nabla_{\bm{w}}), and Δθ\Delta_{\bm{\theta}} by Δw\Delta_{\bm{w}}.

While the second setting is less relevant in practice, it is at least as interesting from a theoretical point of view, and some of our guarantees are stronger in that case.

Consider noiseless SGD with fixed coefficients. Then there exists a constant KK (depending uniquely on the constants KiK_{i} of assumptions A1-A4) such that

with probability at least 1−e−z21-e^{-z^{2}}.

Consider noiseless SGD with general coefficients. Then there exists constants KK and K0K_{0} (depending uniquely on the constants KiK_{i} of assumptions A1-A4) such that if ε≤1/[K0(D+log⁡N+z2)eK0T3]\varepsilon\leq 1/[K_{0}(D+\log N+z^{2})e^{K_{0}T^{3}}], we have

with probability at least 1−e−z21-e^{-z^{2}}.

As anticipated in the introduction, provided T,K=O(1)T,K=O(1), the error terms in Eqs. (9), (10), are small as soon as N≫1N\gg 1. In other words, the minimum number of neurons needed for the mean-field approximation to be accurate is independent of the dimension DD, and only depends on intrinsic features of the activation and data distribution.

On the other hand, the dimension DD appears explicitly in conjunction with the step size ε\varepsilon. We need ε≪1/D\varepsilon\ll 1/D in order for mean field to be accurate. This is the same trade-off between step size and dimension that was already achieved in [MMN18].

We next consider noisy SGD, cf. Eq. (noisy-SGD), and the corresponding PDE in Eq. (diffusion-DD). We need to make additional assumptions on the initialization in this case.

The initial condition ρ0\rho_{0} is such that, for θi0=(ai0,wi0)∼ρ0{\bm{\theta}}^{0}_{i}=(a^{0}_{i},{\bm{w}}^{0}_{i})\sim\rho_{0}, we have that wi0{\bm{w}}^{0}_{i} is K52/DK_{5}^{2}/D-sub-Gaussian.

The last condition ensures the existence of strong solutions for Eq. (diffusion-DD). The existence and uniqueness of solution of the PDE (DD) and the PDE (diffusion-DD) are discussed in Appendix F.

Consider noisy SGD with fixed coefficients. Then there exists a constant KK (depending uniquely on the constants KiK_{i} of assumptions A1-A5 and K6K_{6}) such that

with probability at least 1−e−z21-e^{-z^{2}}.

Consider noisy SGD with general coefficients. Then there exists a constant KK (depending uniquely on the constants KiK_{i} of assumptions A1-A5 and K6K_{6}) such that

with probability at least 1−e−z21-e^{-z^{2}}.

Unlike the other results in this paper, part (B)(B) of Theorem 2 does not establish a dimension-free bound. Further, while previous bounds allow to control the approximation error for any T=o(log⁡N)T=o(\log N), Theorem 2.(B)(B) requires T=o(log⁡log⁡N)T=o(\log\log N) . The main difficulty in part (B)(B) is to control the growth of the coefficients aia_{i}. This is more challenging than in the noiseless case, since we cannot give a deterministic bound on ∣ai∣|a_{i}|.

Despite these drawbacks, Theorem 2 (B)(B) is the first quantitative bound approximating noisy SGD by the distributional dynamics, for the case of unbounded coefficients. It implies that the mean field theory is accurate when N≫DN\gg D.

2 Example: Centered anisotropic Gaussians

To illustrate an application of the theorems, we consider the problem of classifying two Gaussians with the same mean and different covariance. This example was studied in [MMN18], but we restate it here for the reader’s convenience.

Consider the joint distribution of data (y,x)(y,{\bm{x}}) given by the following:

With probability 1/21/2: y=+1y=+1, x∼N(0,Σ+){\bm{x}}\sim{\mathsf{N}}(0,{\bm{\Sigma}}_{+}),

With probability 1/21/2: y=−1y=-1, x∼N(0,Σ−){\bm{x}}\sim{\mathsf{N}}(0,{\bm{\Sigma}}_{-}),

where Σ±=UTdiag((1±Δ)2Is0,Id−s0)U{\bm{\Sigma}}_{\pm}={\bm{U}}^{\mathsf{T}}\text{diag}((1\pm\Delta)^{2}{\bm{I}}_{s_{0}},{\bm{I}}_{d-s_{0}}){\bm{U}} for U{\bm{U}} to be an unknown orthogonal matrix. In other words, there exists a subspace V{\mathcal{V}} of dimension s0s_{0}, such that the projection of x{\bm{x}} on the subspace V{\mathcal{V}} is distributed according to an isotropic Gaussian with variance τ+2=(1+Δ)2\tau_{+}^{2}=(1+\Delta)^{2} (if y=+1y=+1) or τ−2=(1−Δ2)\tau_{-}^{2}=(1-\Delta^{2}) (if y=−1y=-1). The projection orthogonal to V{\mathcal{V}} has instead the same variance in the two classes.

We choose an activation function without offset or output weights, namely σ∗(x;θi)=σ(⟨wi,x⟩)\sigma_{*}({\bm{x}};{\bm{\theta}}_{i})=\sigma(\langle{\bm{w}}_{i},{\bm{x}}\rangle). While qualitatively similar results are obtained for other choices of σ\sigma, we will use a simple piecewise linear function (truncated ReLU) as a running example: take t1<t2t_{1}<t_{2},

We say that ρˉ∈\mathscrsfsPgood{\bar{\rho}}\in\mathscrsfs{P}_{{\rm good}} if: (i)(i) ρˉ{\bar{\rho}} is absolutely continuous with respect to Lebesgue measure, with bounded density; (ii)(ii) R‾∞(ρˉ)<1{\overline{R}}_{\infty}({\bar{\rho}})<1.

The following theorem is an improvement of [MMN18, Theorem 2] using Theorem 1, whose proof is just by replacing the last step of proof of [MMN18, Theorem 2] using the new bounds developed in 1 (A).

Comparing to [MMN18, Theorem 2], here we require N=O(1)N=O(1) neuron rather than previously N=O(d)N=O(d) neurons. The number of data used k=O(d)k=O(d) is still on the optimal order.

Connection with kernel methods

As discussed above, mean-field theory captures the SGD dynamics of two layers neural networks when the number of hidden units NN is large. Several recent papers studied a different description, that approximates the neural network as performing a form of kernel ridge regression [JGH18, DZPS18]. This behavior also arises for large NN: we will refer to this as to the ‘kernel regime’, or ‘kernel limit’. As shown in [CB18a] the existence of a kernel regime is not specific to neural networks but it is a generic feature of overparameterized models, under certain differentiability assumptions.

In the case of general coefficients aia_{i}, this amounts to rescaling the coefficients ai→ai/αa_{i}\to a_{i}/\alpha. Equivalently, this corresponds to a different initialization for the aia_{i}’s (larger by a factor α\alpha).

We first note that the theorems of the previous section obviously hold for the modified dynamics, with the PDE (DD) generalized to

where f^α(x;ρ)=α∫σ⋆(x;θ) ρ(dθ)\hat{f}_{\alpha}({\bm{x}};\rho)=\alpha\int\sigma_{\star}({\bm{x}};{\bm{\theta}})\,\rho({\rm d}{\bm{\theta}}). It is convenient to redefine time units by letting ρtα≡ρα−2t\rho^{\alpha}_{t}\equiv\rho_{\alpha^{-2}t}. This satisfies the rescaled distributional dynamics

Coupling the dynamics (Rescaled-DD) and (RD) suggests the following point of description. Gradient flow dynamics of two-layers neural network is a kernel boosting dynamics with a time-varying kernel. The scaling parameter α\alpha controls the speed that the kernel evolves.

The mean field residual dynamics (RD) implies that

so that the risk will be non-increasing along the gradient flow dynamics. However, since the kernel Hρtα{\mathcal{H}}_{\rho_{t}^{\alpha}} is not fixed, it is hard to analyze when the risk converges to (see [MMN18, Theorem 4], [CB18b, Theorem 3.3 and 3.5] for general convergence results).

2 Kernel limit of residual dynamics

The kernel regime corresponds to large α\alpha and allows for a simpler treatment of the dynamics. Heuristically, the reason for such a simplification is that the time derivative of ρtα\rho_{t}^{\alpha} is of order 1/α1/\alpha, cf. (Rescaled-DD). We are therefore tempted to replace Hρtα{\mathcal{H}}_{\rho^{\alpha}_{t}} in Eq. (RD) by Hρ0{\mathcal{H}}_{\rho_{0}}. Formally, we define the following linearized residual dynamics

We can also define the corresponding predictors by ft∗=f−ut∗f^{*}_{t}=f-u_{t}^{*}. The operator Hρ0{\mathcal{H}}_{\rho_{0}} is bounded and standard semigroup theory [Eva09] implies the following.

We have lim⁡t→∞ut∗=u∞∗=Pρ0u0∗\lim_{t\to\infty}u^{*}_{t}=u^{*}_{\infty}={\bm{P}}_{\rho_{0}}u^{*}_{0}, where Pρ0{\bm{P}}_{\rho_{0}} is the orthogonal projector onto the null space of Hρ0{\mathcal{H}}_{\rho_{0}}. In particular, if the null space of Hρ0{\mathcal{H}}_{\rho_{0}} is empty, then lim⁡t→∞∥ut∗∥L2→0\lim_{t\to\infty}\|u^{*}_{t}\|_{{L^{2}}}\to 0. Correspondingly f∞∗=Pρ0⊥f+Pρ0f0∗f^{*}_{\infty}={\bm{P}}^{\perp}_{\rho_{0}}f+{\bm{P}}_{\rho_{0}}f_{0}^{*} (where Pρ0⊥=I−Pρ0{\bm{P}}^{\perp}_{\rho_{0}}={\bm{I}}-{\bm{P}}_{\rho_{0}}).

Let utαu^{\alpha}_{t} and ut∗u^{*}_{t} be the residues in the mean-field dynamics (RD) and linearized dynamics (17), respectively. Let assumptions A1, A3, A4 hold, and additionally assume the following

∣yi∣|y_{i}|, ∥σ∥∞≤K2\|\sigma\|_{\infty}\leq K_{2}, and θ↦σ⋆(x;θ){\bm{\theta}}\mapsto\sigma_{\star}({\bm{x}};{\bm{\theta}}) is differentiable.

∥∇3u(w,w′)∥op,∥∇4u(w,w′)∥op≤κ\|\nabla^{3}u({\bm{w}},{\bm{w}}^{\prime})\|_{{\rm op}},\|\nabla^{4}u({\bm{w}},{\bm{w}}^{\prime})\|_{{\rm op}}\leq\kappa.

Then there exists a constant KK depending on {Ki}i=14\{K_{i}\}_{i=1}^{4}, such that

For SGD with general coefficients, we have

Unlike in similar results in the literature, we focus here on the population risk rather than the empirical risk. The recent paper [CB18a] addresses both the overparametrized and the underparametrized regime. The latter result (namely [CB18a, Theorem 3.4]) is of course relevant for the population risk. However, while [CB18a] proves convergence to a local minimum, here we show that the population risk becomes close to .

For the sake of completeness, we review the connection in Appendix H.7.

References

Appendix A Notations

For future reference, we copy the key definitions from the main text:

In the case of fixed coefficients, without loss of generality, we will fix in the proof ai=1a_{i}=1 for notational simplicity and freely denote (θi)i=1N=(wi)i=1N({\bm{\theta}}_{i})_{i=1}^{N}=({\bm{w}}_{i})_{i=1}^{N},

W2(⋅,⋅)W_{2}(\cdot,\cdot) is the Wasserstein distance between probability measures

K will denote a generic constant depending on KiK_{i} for i=1,2,3,4,5,6i=1,2,3,4,5,6, where the KiK_{i}’s are constants that will be specified from the context.

In the proof and the statements of the theorems, we will only consider the leading order in TT. In particular, we freely use that KTklog⁡lTeKT≤K′eK′TKT^{k}\log^{l}Te^{KT}\leq K^{\prime}e^{K^{\prime}T} for a constant K′≥KK^{\prime}\geq K.

For readers convenience, we copy here the two simplified versions of Gronwall’s lemma that will be used extensively in the proof.

Consider an interval I=[0,t]I=[0,t] and ϕ\phi a real-valued function defined on II, assume there exists positive constants α,β\alpha,\beta such that ϕ\phi satisfies the integral inequality

then ϕ(t)≤αeβt\phi(t)\leq\alpha e^{\beta t} for all t∈It\in I.

Consider a non-negative sequence {ϕk}k=0n\{\phi_{k}\}_{k=0}^{n} and assume there exists positive constants α,β\alpha,\beta such that {ϕk}k=0n\{\phi_{k}\}_{k=0}^{n} satisfies the summation inequality

then ϕk≤α+αβkeβk\phi_{k}\leq\alpha+\alpha\beta ke^{\beta k} for all k∈{0,1,…,n}k\in\{0,1,\ldots,n\}.

Appendix B Proof of Theorem 1 part (A)

Throughout this section, the assumptions of Theorem 1 (A) are understood to hold. These are assumptions A1-A4 in Section 3. In writing the proofs, for notational simplicity, we consider the following special setting:

The step size function ξ(t)≡1/2\xi(t)\equiv 1/2.

The proof can be easily generalized to the case of general bounded coefficient ∣ai∣≤K|a_{i}|\leq K, and non-constant function ξ(t)\xi(t).

In the proof of this theorem, we have (θi)i=1N=(wi)i=1N({\bm{\theta}}_{i})_{i=1}^{N}=({\bm{w}}_{i})_{i=1}^{N}, and

We will consider four dynamics (note we choose ξ(t)=1/2\xi(t)=1/2 in these equations):

The nonlinear dynamics (ND): we introduce (θˉit)i∈[N],t≥0(\bar{\bm{\theta}}^{t}_{i})_{i\in[N],t\geq 0} with initialization θˉi0∼ρ0\bar{\bm{\theta}}^{0}_{i}\sim\rho_{0} i.i.d.:

Equivalently, we have the integral equation

where we denoted G(θ;ρ)=−∇Ψ(θ;ρ)=−∇V(θ)−∫∇1U(θ,θ′)ρ(dθ′){\bm{G}}({\bm{\theta}};\rho)=-\nabla\Psi({\bm{\theta}};\rho)=-\nabla V({\bm{\theta}})-\int\nabla_{1}U({\bm{\theta}},{\bm{\theta}}^{\prime})\rho({\rm d}{\bm{\theta}}^{\prime}). Note that θˉit\bar{\bm{\theta}}^{t}_{i} is random because of its random initialization, and its law is ρt\rho_{t}.

The particle dynamics (PD): we introduce (θ‾it)i∈[N],t≥0(\underline{\bm{\theta}}^{t}_{i})_{i\in[N],t\geq 0} with initialization θ‾i0=θˉi0\underline{\bm{\theta}}_{i}^{0}=\bar{\bm{\theta}}_{i}^{0}:

We introduce the particle distribution ρ‾t(N)=(1/N)∑i=1Nδθ‾it{\underline{\rho}}^{(N)}_{t}=(1/N)\sum_{i=1}^{N}\delta_{\underline{\bm{\theta}}_{i}^{t}}. In integration form, we get:

The GD dynamic corresponds to the discretized particle dynamic (25).

where Fi(θk;zk+1)=(yk+1−y^k+1)∇θσ⋆(xk+1;θik){\bm{F}}_{i}({\bm{\theta}}^{k};{\bm{z}}_{k+1})=(y_{k+1}-\hat{y}_{k+1})\nabla_{{\bm{\theta}}}\sigma_{\star}({\bm{x}}_{k+1};{\bm{\theta}}^{k}_{i}), with zk≡(xk,yk){\bm{z}}_{k}\equiv({\bm{x}}_{k},y_{k}) and y^k+1=(1/N)∑j=1Nσ⋆(xk+1;θjk)\hat{y}_{k+1}=(1/N)\sum_{j=1}^{N}\sigma_{\star}({\bm{x}}_{k+1};{\bm{\theta}}^{k}_{j}). In summation form, we have

By Proposition 1, 2, 3, 4 proved below, we have with probability at least 1−e−z21-e^{-z^{2}},

Combining these inequalities gives the conclusion of Theorem 1 (A). In the following subsections, we prove all the above interpolation bounds, under the setting of Theorem 1 (A).

Assumptions A1 - A3 immediately implies that

There exists a constant KK depending on K1,K2,K3K_{1},K_{2},K_{3}, such that

For any θ=(θi)i=1N{\bm{\theta}}=({\bm{\theta}}_{i})_{i=1}^{N} and θ′=(θi′)i=1N{\bm{\theta}}^{\prime}=({\bm{\theta}}_{i}^{\prime})_{i=1}^{N}, we have

The boundedness of VV and UU are implied by the boundedness of ∥σ∥∞\|\sigma\|_{\infty} and ∣y∣|y| in Assumption A1. The boundedness of ∥∇V∥2,∥∇U∥2,∥∇2V∥op,∥∇2U∥op\|\nabla V\|_{2},\|\nabla U\|_{2},\|\nabla^{2}V\|_{{\rm op}},\|\nabla^{2}U\|_{{\rm op}} are implied by Assumption A3.

and by the Lipschitz property of VV and UU. ∎

Using Eq. (24) and (25), we immediately have

There exists a constant KK such that for any time s,ts,t

The first two inequalities are simply implied by the boundedness of ∇V\nabla V and ∇1U\nabla_{1}U, and Eq. (24) and (25). The third inequality is simply implied by

B.2 Bound between PDE and nonlinear dynamics

There exists a constant KK depending only on the KiK_{i}, i=1,2,3i=1,2,3, such that with probability at least 1−e−z21-e^{-z^{2}}, we have

We decompose the difference into the following two terms

where the expectation is taken with respect to θˉi0∼ρ0\bar{\bm{\theta}}_{i}^{0}\sim\rho_{0}. The result holds simply by combining Lemma 4 and Lemma 5. ∎

Let θ=(θ1,…,θi,…,θN){\bm{\theta}}=({\bm{\theta}}_{1},\ldots,{\bm{\theta}}_{i},\ldots,{\bm{\theta}}_{N}) and θ′=(θ1,…,θi′,…θN){\bm{\theta}}^{\prime}=({\bm{\theta}}_{1},\ldots,{\bm{\theta}}_{i}^{\prime},\ldots{\bm{\theta}}_{N}) be two configurations that differ only in the ii’th variable. Then

Hence taking the union bound over s∈η{0,1,…,⌊T/η⌋}s\in\eta\{0,1,\ldots,\lfloor T/\eta\rfloor\} and bounding the difference between time in the interval and grid, we have

Now taking η=1/N\eta=1/\sqrt{N} and δ=K[log⁡(NT)+z]/N\delta=K[\sqrt{\log(NT)}+z]/\sqrt{N}, we get the desired result. ∎

B.3 Bound between nonlinear dynamics and particle dynamics

There exists a constant KK, such that with probability at least 1−e−z21-e^{-z^{2}}, we have

We would like to prove a uniform bound for IitI_{i}^{t} for i∈[N]i\in[N] and t∈[0,T]t\in[0,T].

By Lemma 3, there exists KK such that, for any 0≤t,s≤T0\leq t,s\leq T and i∈[N]i\in[N], we have

Taking the union bound over i∈[N]i\in[N] and s∈η{0,1,…,⌊T/η⌋}s\in\eta\{0,1,\ldots,\lfloor T/\eta\rfloor\} and bounding time in the interval and the grid, we have

Taking η=1/N\eta=\sqrt{1/N}, and δ=K[log⁡(NT)+z]/N\delta=K[\sqrt{\log(NT)}+z]/\sqrt{N}, we get the desired result. ∎

Let δ(N,T,z)=K[log⁡(NT)+z]/N\delta(N,T,z)=K[\sqrt{\log(NT)}+z]/\sqrt{N}, and define

We condition on the good event in Lemma 6 to happen. By Eq. (32), we have

By Eq. (28), this proves Eq. (30) and (31) hold with probability at least 1−e−z21-e^{-z^{2}}. ∎

B.4 Bound between particle dynamics and GD

B.5 Bound between GD and SGD

There exists a constant KK, such that with probability at least 1−e−z21-e^{-z^{2}}, we have

where ρk(N)≡(1/N)∑i∈[N]δθik\rho^{(N)}_{k}\equiv(1/N)\sum_{i\in[N]}\delta_{{\bm{\theta}}^{k}_{i}} is the empirical distribution of the SGD iterates. Hence we get:

Note Fi(θl;zl+1)=(yl+1−y^l+1)∇wσ(xl+1;wil){\bm{F}}_{i}({\bm{\theta}}^{l};{\bm{z}}_{l+1})=(y_{l+1}-\hat{y}_{l+1})\nabla_{{\bm{w}}}\sigma({\bm{x}}_{l+1};{\bm{w}}_{i}^{l}) for zl+1=(yl+1,xl+1){\bm{z}}_{l+1}=(y_{l+1},{\bm{x}}_{l+1}). Since we assumed in A2 that ∇wσ(x;w)\nabla_{\bm{w}}\sigma({\bm{x}};{\bm{w}}) is KK-sub-Gaussian, and since yl+1y_{l+1} and y^l+1\hat{y}_{l+1} are KK bounded, we have that Zil{\bm{Z}}_{i}^{l} is KK-sub-Gaussian (the product of a bounded random variable and a sub-Gaussian random variable is sub-Gaussian). We can therefore apply Azuma-Hoeffding inequality (Lemma 31) and get:

Taking the union bound over i∈[N]i\in[N], we get:

Assuming the bad events in Eq. (35) does not happen, we have

Applying Gronwall’s inequality and applying Eq. (28) concludes the proof. ∎

Appendix C Proof of Theorem 1 part (B)

The difference in the proof of part (B) with the proof of part (A) comes from the fact that the functions VV and UU are not bounded and Lipschitz anymore, and that f^(x;θ)\hat{f}({\bm{x}};{\bm{\theta}}) is not bounded by a constant. However, we show that when starting from an initial distribution ρ0\rho_{0} with compact support in the variable aa, the support of ρt\rho_{t} in the variable aa remains bounded uniformly on the interval [0,T][0,T] by a constant that only depends on the KiK_{i}, i=1,2,3,4i=1,2,3,4, and TT.

For θ=(a,w){\bm{\theta}}=(a,{\bm{w}}) and θ′=(a′,w′){\bm{\theta}}^{\prime}=(a^{\prime},{\bm{w}}^{\prime}), remember we have

Throughout this section, the assumptions A1 - A4 are understood to hold. For the sake of simplicity we will write the proof under the following restriction:

The step size function ξ(t)≡1/2\xi(t)\equiv 1/2.

The proof for a general function ξ(t)\xi(t) is obtained by a straightforward adaptation.

We define the four dynamics with the same definitions as at the beginning of Section B. We copy them here for reader’s convenience.

The nonlinear dynamics (ND): (θˉit)i∈[N],t≥0(\bar{\bm{\theta}}^{t}_{i})_{i\in[N],t\geq 0} with initialization θˉi0∼ρ0\bar{\bm{\theta}}^{0}_{i}\sim\rho_{0} i.i.d.:

where we denoted G(θ;ρ)=−∇Ψ(θ;ρ)=−∇V(θ)−∫∇1U(θ,θ′)ρ(dθ′){\bm{G}}({\bm{\theta}};\rho)=-\nabla\Psi({\bm{\theta}};\rho)=-\nabla V({\bm{\theta}})-\int\nabla_{1}U({\bm{\theta}},{\bm{\theta}}^{\prime})\rho({\rm d}{\bm{\theta}}^{\prime}).

The particle dynamics (PD): (θ‾it)i∈[N],t≥0(\underline{\bm{\theta}}^{t}_{i})_{i\in[N],t\geq 0} with initialization θ‾i0=θˉi0\underline{\bm{\theta}}_{i}^{0}=\bar{\bm{\theta}}_{i}^{0}:

where ρ‾t(N)=(1/N)∑i=1Nδθ‾it{\underline{\rho}}^{(N)}_{t}=(1/N)\sum_{i=1}^{N}\delta_{\underline{\bm{\theta}}_{i}^{t}}.

where Fi(θk;zk+1)=(yk+1−y^k+1)∇θσ⋆(xk+1;θik){\bm{F}}_{i}({\bm{\theta}}^{k};{\bm{z}}_{k+1})=(y_{k+1}-\hat{y}_{k+1})\nabla_{{\bm{\theta}}}\sigma_{\star}({\bm{x}}_{k+1};{\bm{\theta}}^{k}_{i}), with zk≡(xk,yk){\bm{z}}_{k}\equiv({\bm{x}}_{k},y_{k}) and y^k+1=(1/N)∑j=1Najkσ(xk+1;wjk)\hat{y}_{k+1}=(1/N)\sum_{j=1}^{N}a_{j}^{k}\sigma({\bm{x}}_{k+1};{\bm{w}}^{k}_{j}).

By Proposition 5, 6, 7, 8, there exists constants KK and K0K_{0}, such that if we take ε≤1/[K0(D+log⁡N+z2)eK0(1+T)3]\varepsilon\leq 1/[K_{0}(D+\log N+z^{2})e^{K_{0}(1+T)^{3}}], with probability at least 1−e−z21-e^{-z^{2}}, we have

Combining these inequalities, and noting that KeK(1+T)3≤K′eK′T3Ke^{K(1+T)^{3}}\leq K^{\prime}e^{K^{\prime}T^{3}} for some K′≥KK^{\prime}\geq K, give the conclusion of Theorem 1 (B). In the following subsections, we prove all the above interpolation bounds, under the setting of Theorem 1 (B).

There exists a constant K depending only on the KiK_{i}, i=1,2,3,4i=1,2,3,4, such that

Step 1. Let θˉit=(aˉit,wˉit)\bar{\bm{\theta}}_{i}^{t}=({\bar{a}}_{i}^{t},{\bar{\bm{w}}}_{i}^{t}), and y^(x;ρt)=∫aσ(x;w)ρt(dθ)\hat{y}({\bm{x}};\rho_{t})=\int a\sigma({\bm{x}};{\bm{w}})\rho_{t}({\rm d}{\bm{\theta}}). Note that along the PDE, we have

The nonlinear dynamics for aˉit{\bar{a}}_{i}^{t} gives

Step 2. Denote θ‾it=(a‾it,w‾it)\underline{\bm{\theta}}_{i}^{t}=({\underline{a}}_{i}^{t},{\underline{{\bm{w}}}}_{i}^{t}), ρ‾t(N)=(1/N)∑i=1Nδθ‾it{\underline{\rho}}_{t}^{(N)}=(1/N)\sum_{i=1}^{N}\delta_{\underline{\bm{\theta}}_{i}^{t}}, and denote y‾(x;θ‾t)=(1/N)∑i∈[N]a‾itσ(x;w‾it)\underline{y}({\bm{x}};\underline{\bm{\theta}}^{t})=(1/N)\sum_{i\in[N]}{\underline{a}}_{i}^{t}\sigma({\bm{x}};{\underline{{\bm{w}}}}_{i}^{t}). Note along the PDE, we have

Hence we have (note ∣y∣≤K|y|\leq K, ∣σ∣≤K|\sigma|\leq K, and ∣a‾i0∣≤K|{\underline{a}}_{i}^{0}|\leq K)

The nonlinear dynamics for a‾it{\underline{a}}_{i}^{t} gives

Denoting θ=(a,w){\bm{\theta}}=(a,{\bm{w}}), θ1=(a1,w1){\bm{\theta}}_{1}=(a_{1},{\bm{w}}_{1}) and θ2=(a2,w2){\bm{\theta}}_{2}=(a_{2},{\bm{w}}_{2}). We have

There exists a constant KK such that for any time 0≤s<t0\leq s<t

This lemma holds by the bounds of ∇V\nabla V and ∇1U\nabla_{1}U in Lemma 8 and the bounds for ∣aˉit∣,∣a‾it∣|{\bar{a}}_{i}^{t}|,|{\underline{a}}_{i}^{t}| in Lemma 7, and by the inequality

C.2 Bound between PDE and nonlinear dynamics

There exists a constant KK, such that with probability at least 1−e−z21-e^{-z^{2}}, we have

We decompose the difference into the following two terms

where the expectation is taken with respect to θˉi0∼ρ0\bar{\bm{\theta}}_{i}^{0}\sim\rho_{0}. The result holds simply by combining Lemma 10 and Lemma 11. ∎

Let θ=(θ1,…,θi,…,θN){\bm{\theta}}=({\bm{\theta}}_{1},\ldots,{\bm{\theta}}_{i},\ldots,{\bm{\theta}}_{N}) and θ′=(θ1,…,θi′,…θN){\bm{\theta}}^{\prime}=({\bm{\theta}}_{1},\ldots,{\bm{\theta}}_{i}^{\prime},\ldots{\bm{\theta}}_{N}) be two configurations that differ only in the ii’th variable. Assuming a,a′∈[−K(1+t),K(1+t)]a,a^{\prime}\in[-K(1+t),K(1+t)], then

Note we have aˉit∈[−K(1+t),K(1+t)]{\bar{a}}_{i}^{t}\in[-K(1+t),K(1+t)], applying McDiarmid’s inequality, we have

By Lemma 9, 8 and 7, for 0≤s<t0\leq s<t, we have

Hence taking union bound over s∈η{0,1,…,⌊T/η⌋}s\in\eta\{0,1,\ldots,\lfloor T/\eta\rfloor\} and bounding difference between time in the interval and grid, we have

Now taking η=1/N\eta=1/\sqrt{N} and δ=K(1+T)4[log⁡(NT)+z]/N\delta=K(1+T)^{4}[\sqrt{\log(NT)}+z]/\sqrt{N}, we get the desired inequality. ∎

C.3 Bound between nonlinear dynamics and particle dynamics

There exists a constant KK, such that with probability at least 1−e−z21-e^{-z^{2}}, we have

The last inequality follows by Lemma 8 and 7. Now we would like to prove a uniform bound for IitI_{i}^{t} for i∈[N]i\in[N] and t∈[0,T]t\in[0,T].

By Lemma 9, there exists KK such that, for any 0≤s<t≤T0\leq s<t\leq T and i∈[N]i\in[N], we have

Taking the union bound over i∈[N]i\in[N] and s∈η[T/η]s\in\eta[T/\eta] and bounding time in the interval and the grid, we have

Taking η=1/N\eta=\sqrt{1/N}, and δ=K[log⁡(NT)+z]/N\delta=K[\sqrt{\log(NT)}+z]/\sqrt{N}, we get the desired result. ∎

Denote δ(N,T,z)=K(1+T)2[log⁡(NT)+z]/N\delta(N,T,z)=K(1+T)^{2}[\sqrt{\log(NT)}+z]/\sqrt{N} and

We condition on the good event in Lemma 12 to happen. By Eq. (43), we have

This happens with probability 1−e−z21-e^{-z^{2}}. This proves Eq. (41). Finally, Eq. (42) holds by Lemma 8. ∎

C.4 Bound between particle dynamics and GD

There exists constants KK and K0K_{0} such that, letting ε≤1/(K0eK0(1+T)3)\varepsilon\leq 1/(K_{0}e^{K_{0}(1+T)^{3}}), we have for any t≤Tt\leq T,

By Lemma 9 and 8, for 0≤s≤t0\leq s\leq t, we have

Let TΔ=inf⁡{t\mathchar58Δ(t)≥1}T_{\Delta}=\inf\{t\mathrel{\mathop{\mathchar 58\relax}}\Delta(t)\geq 1\}. For t≤TΔt\leq T_{\Delta}, we have Δ(s)2≤Δ(s)\Delta(s)^{2}\leq\Delta(s). Applying Gronwall’s lemma, we get for any t≤TΔt\leq T_{\Delta},

Note we assumed ε≤1/(K0eK0(1+T)3)\varepsilon\leq 1/(K_{0}e^{K_{0}(1+T)^{3}}), which gives KeK(1+T)2Tε≤1/2Ke^{K(1+T)^{2}T}\varepsilon\leq 1/2. This shows that TΔ≥TT_{\Delta}\geq T. Hence we get

Finally, applying the last inequality in Lemma 8 concludes the proof. ∎

C.5 Bound between GD and SGD

There exists constants KK and K0K_{0}, such that if we take ε≤1/[K0(D+log⁡N+z2)eK0(1+T)3]\varepsilon\leq 1/[K_{0}(D+\log N+z^{2})e^{K_{0}(1+T)^{3}}], the following holds with probability at least 1−e−z21-e^{-z^{2}}: for any t≤Tt\leq T, we have

where ρk(N)≡(1/N)∑i∈[N]δθik\rho^{(N)}_{k}\equiv(1/N)\sum_{i\in[N]}\delta_{{\bm{\theta}}^{k}_{i}} denotes the empirical distribution of the iterates of SGD. Hence we get:

where y^(xk+1,θk)=(1/N)∑j=1najkσ(xk+1;wjk)\hat{y}({\bm{x}}_{k+1},{\bm{\theta}}^{k})=(1/N)\sum_{j=1}^{n}a_{j}^{k}\sigma({\bm{x}}_{k+1};{\bm{w}}_{j}^{k}).

The following discussion is under the conditional law L( ⋅ ∣Fk){\mathcal{L}}(\,\cdot\,|{\mathcal{F}}_{k}). Note that ∣σ(xk+1;wik)∣≤K|\sigma({\bm{x}}_{k+1};{\bm{w}}_{i}^{k})|\leq K, and ∣yk+1−y^k+1(θk)∣≤K(1+max⁡j∣ajk∣)|y_{k+1}-\hat{y}_{k+1}({\bm{\theta}}^{k})|\leq K(1+\max_{j}|a_{j}^{k}|), hence (yk+1−y^(xk+1,θk))σ(xk+1;wik)(y_{k+1}-\hat{y}({\bm{x}}_{k+1},{\bm{\theta}}^{k}))\sigma({\bm{x}}_{k+1};{\bm{w}}_{i}^{k}) is K(1+max⁡i∣aik∣)K(1+\max_{i}|a_{i}^{k}|)-sub-Gaussian. Furthermore, ∇wσ(xk+1;wik)\nabla_{\bm{w}}\sigma({\bm{x}}_{k+1};{\bm{w}}_{i}^{k}) is a KK-sub-Gaussian random vector, and ∣(yk+1−y^(xk+1,θk))aik∣≤K(1+max⁡i∣aik∣)2|(y_{k+1}-\hat{y}({\bm{x}}_{k+1},{\bm{\theta}}^{k}))a_{i}^{k}|\leq K(1+\max_{i}|a_{i}^{k}|)^{2}, hence (yk+1−y^(xk+1,θk))aik∇wσ(xk+1;wik)(y_{k+1}-\hat{y}({\bm{x}}_{k+1},{\bm{\theta}}^{k}))a_{i}^{k}\nabla_{\bm{w}}\sigma({\bm{x}}_{k+1};{\bm{w}}_{i}^{k}) is a K(1+max⁡j∣ajk∣)2K(1+\max_{j}|a_{j}^{k}|)^{2}-sub-Gaussian random vector. As a result, we have Fi(θk;zk+1){\bm{F}}_{i}({\bm{\theta}}^{k};{\bm{z}}_{k+1}) under the conditional law L( ⋅ ∣Fk){\mathcal{L}}(\,\cdot\,|{\mathcal{F}}_{k}) is a K(1+max⁡j∣ajk∣)2K(1+\max_{j}|a_{j}^{k}|)^{2}-sub-Gaussian random vector (concatenation of two possibly dependent sub-Gaussian random vectors is sub-Gaussian).

Let Ta=min⁡{l\mathchar58max⁡i∈[N]∣ail∣≥MT}T_{a}=\min\{l\mathrel{\mathop{\mathchar 58\relax}}\max_{i\in[N]}|a_{i}^{l}|\geq M_{T}\} where MT≡2K(1+T)M_{T}\equiv 2K(1+T). Then we have

Now let Aˉik=Aik∧Ta{\bar{\bm{A}}}_{i}^{k}={\bm{A}}_{i}^{k\wedge T_{a}}. Then Aˉik{\bar{\bm{A}}}_{i}^{k} is also a martingale. Furthermore, we have

Hence we can apply Azuma-Hoeffding’s concentration bound (Lemma 31) to ∥Aˉil∥2\|{\bar{\bm{A}}}_{i}^{l}\|_{2},

and taking the union bound over i∈[N]i\in[N], we get:

Denote the above event to be a good event EgoodE_{{\rm good}},

Since we choose ε≤1/[K0(D+log⁡N+z2)eK0(1+T)3]\varepsilon\leq 1/[K_{0}(D+\log N+z^{2})e^{K_{0}(1+T)^{3}}], we have

Moreover, for t≤Ta∧TΔ∧Tt\leq T_{a}\wedge T_{\Delta}\wedge T, we have

This means that the stopping times Ta,TΔ≥TT_{a},T_{\Delta}\geq T. Hence, for any t≤Tt\leq T, we have

Note all these happens when event EgoodE_{{\rm good}} happens. Hence, the probability such that the events above happens is at least 1−e−z21-e^{-z^{2}}. Finally, by Lemma 8, we have the desired bound on RNR_{N}. This concludes the proof. ∎

Appendix D Proof of Theorem 2 part (A)

The proof follows the same scheme as for Theorem 1 (A) and we will limit ourselves to describing the differences.

Throughout this section, the assumptions A1-A6 of Theorem 2 are understood to hold. For the sake of simplicity we will write the proof under the following restriction:

The step size function ξ(t)≡1/2\xi(t)\equiv 1/2.

The proof for a general function ξ(t)\xi(t) is obtained by a straightforward adaptation.

For the reader’s convenience, we copy here the limiting PDE:

We will consider four different coupled dynamics with same initialization (θˉi0)i≤N∼iidρ0(\bar{\bm{\theta}}^{0}_{i})_{i\leq N}\sim_{iid}\rho_{0} and stochastic term. We will denote {Wi(s)}s≥0\{{\bm{W}}_{i}(s)\}_{s\geq 0} for i∈[N]i\in[N] independent DD-dimensional Brownian motions. The integral equations and summation forms of the four dynamics are as follows:

where we denoted G(θ;ρ)=−∇Ψλ(θ;ρ)=−λθ−∇V(θ)−∫∇θU(θ,θ′)ρ(dθ′){\bm{G}}({\bm{\theta}};\rho)=-\nabla\Psi_{\lambda}({\bm{\theta}};\rho)=-\lambda{\bm{\theta}}-\nabla V({\bm{\theta}})-\int\nabla_{{\bm{\theta}}}U({\bm{\theta}},{\bm{\theta}}^{\prime})\rho({\rm d}{\bm{\theta}}^{\prime}), and θˉ∼ρ0\bar{\bm{\theta}}\sim\rho_{0} i.i.d.

where θ‾i0=θˉi0\underline{\bm{\theta}}^{0}_{i}=\bar{\bm{\theta}}^{0}_{i}.

where we denoted Fi(θk;zk+1)=−λθik+(yk+1−y^k+1)∇θiσ⋆(xk+1;θik){\bm{F}}_{i}({\bm{\theta}}^{k};{\bm{z}}_{k+1})=-\lambda{\bm{\theta}}_{i}^{k}+(y_{k+1}-\hat{y}_{k+1})\nabla_{{\bm{\theta}}_{i}}\sigma_{\star}({\bm{x}}_{k+1};{\bm{\theta}}^{k}_{i}), and θi0=θˉi0{\bm{\theta}}^{0}_{i}=\bar{\bm{\theta}}^{0}_{i}.

By Proposition 9, 10, 11, 12, there exists constants KK and K0K_{0}, such that with probability at least 1−e−z21-e^{-z^{2}}, we have

Combining these inequalities gives the conclusion of Theorem 2 (A). In the following subsections, we prove all the above interpolation bounds, under the setting of Theorem 2 (A).

Define the maximum and the average of the norm of the initialization:

Similarly define the following bounds on the Brownian noise:

Let us first consider a generic DD-dimensional K2K^{2}-sub-Gaussian random vector X{\bm{X}}, we have:

Taking the union bound over i∈[N]i\in[N], and noting that ∣ai0∣≤K|a_{i}^{0}|\leq K, we get:

Taking μ=D/(2K2)\mu=D/(2K^{2}) and u=2K[D+log⁡N+z]/Du=2K[\sqrt{D+\log N}+z]/\sqrt{D}, we get:

Let us now consider the average over i∈[N]i\in[N] of the ∥wi0∥2\|{\bm{w}}^{0}_{i}\|_{2}, which are independent, we get:

Taking μ=D/(2K2)\mu=D/(2K^{2}) and u=2K[1+z]u=2K\left[1+z\right], noting (1/N)∑i=1N∣ai0∣≤K(1/N)\sum_{i=1}^{N}|a_{i}^{0}|\leq K, we get:

Similarly, we consider W‾i(t)≡τ/DWi(t)\overline{\bm{W}}_{i}(t)\equiv\sqrt{\tau/D}{\bm{W}}_{i}(t) which is a DD-dimensional Gaussian random variable with variance Var(W‾ij(t))=∫0t(τ/D)ds=τt/D\text{Var}(\overline{W}^{j}_{i}(t))=\int_{0}^{t}(\tau/D){\rm d}s=\tau t/D. We note that exp⁡{μ∥Wi(t)∥22}\exp\{\mu\|{\bm{W}}_{i}(t)\|_{2}^{2}\} is a sub-martingale and by Doob’s martingale inequality, we have:

Taking the union bound over i∈[N]i\in[N] gives:

Taking μ=D/(4τT)\mu=D/(4\tau T) and u=4Tτ[D+log⁡N+z]/Du=4\sqrt{T\tau}[\sqrt{D+\log N}+z]/\sqrt{D}, we get:

We can consider the average over i∈[N]i\in[N] of the preceding bound, by noticing that:

where W(t){\bm{W}}(t) is a NDND-dimensional Brownian motion. We can therefore apply Doob’s martingale inequality to the sub-martingale exp⁡{μ∥W(t)∥22}\exp\{\mu\|{\bm{W}}(t)\|^{2}_{2}\}. We have

Taking μ=D/(4τT)\mu=D/(4\tau T) and u=4Tτ[1+z]u=4\sqrt{T\tau}[1+z], we get:

The two following lemmas are modified from [MMN18, Section 7.2, Lemma 7.5].

Define Δi(t)≡sup⁡s≤t∥θˉit∥2\Delta_{i}(t)\equiv\sup_{s\leq t}\|\bar{\bm{\theta}}^{t}_{i}\|_{2}. From Eq. (45),

which gives, after applying Gronwall’s inequality with the bounds of Lemma 13:

Consider Δi(h;k,ε)=sup⁡0≤u≤ε∥θˉikε+u−θˉikε∥2\Delta_{i}(h;k,\varepsilon)=\sup_{0\leq u\leq\varepsilon}\|\bar{\bm{\theta}}_{i}^{k\varepsilon+u}-\bar{\bm{\theta}}_{i}^{k\varepsilon}\|_{2}. We have

where we defined W‾i,k(u)≡∫kεkε+uτ/DdWi(s)\overline{\bm{W}}_{i,k}(u)\equiv\int_{k\varepsilon}^{k\varepsilon+u}\sqrt{\tau/D}{\rm d}{\bm{W}}_{i}(s). By a similar computation as in Lemma 13, we have

Combining this bound and Eq. (47) yields:

We now bound W2(ρt,ρt+h)W_{2}(\rho_{t},\rho_{t+h}):

Integrating this upper bound on the probability yields the desired inequality. ∎

The exact same proof shows a similar lemma for the particle dynamics.

D.2 Bound between PDE and nonlinear dynamics

There exists a constant KK such that with probability at least 1−e−z21-e^{-z^{2}}, we have

We will follow the same decomposition as in the proof of Proposition 1. The proof of term II only depend on the upper bound on the potential UU and still apply. The term I bound follow from a similar proof as lemma 5.

Furthermore we have the following increment bound for t,h≥0t,h\geq 0:

with probability at least 1−e−z21-e^{-z^{2}}. Hence taking an union bound over s∈η{0,1,…,⌊T/η⌋}s\in\eta\{0,1,\ldots,\lfloor T/\eta\rfloor\} and bounding the variation inside the grid intervals, we have

Taking η=1/N\eta=1/N and δ=K[log⁡(NT)+z]/N\delta=K[\sqrt{\log(NT)}+z]/\sqrt{N} concludes the proof. ∎

D.3 Bound between nonlinear dynamics and particle dynamics

There exists a constant KK, such that with probability at least 1−e−z21-e^{-z^{2}}, we have

The nonlinear dynamics and the particle dynamics are coupled by using the same Brownian motion, and the noise term cancel out. By the same calculation as in Proposition 2, we get

Now we would like to prove a uniform bound for IitI^{t}_{i} for i∈[N]i\in[N] and t∈[0,T]t\in[0,T].

We then bound the variation of IisI_{i}^{s} over an interval [t,t+h][t,t+h], with t,h≥0t,h\geq 0:

By Lemma 14, there exists KK such that, we have

Taking an union bound for i∈[N]i\in[N] and s∈η{0,1,…,⌊T/η⌋}s\in\eta\{0,1,\ldots,\lfloor T/\eta\rfloor\} and bounding the variation inside the grid intervals, we have

Taking η=1/N\eta=1/N, and δ=K[log⁡(NT)+z]/N\delta=K[\sqrt{\log(NT)}+z]/\sqrt{N}, we get the desired result. ∎

Denote δN(T,z)=KeKT[log⁡(NT)+z]/N\delta_{N}(T,z)=Ke^{KT}[\sqrt{\log(NT)}+z]/\sqrt{N} and

With probability at least 1−e−z21-e^{-z^{2}}, we have

which, after applying Gronwall’s inequality, concludes the proof. ∎

D.4 Bound between particle dynamic and GD

There exists a constant KK such that with probability at least 1−e−z21-e^{-z^{2}}, we have

with probability at least 1−e−z21-e^{-z^{2}}. Denote δ(N,T,z)=TKeKT[log⁡(N(T/ε∨1))+z]ε\delta(N,T,z)=TKe^{KT}\left[\sqrt{\log{(N(T/\varepsilon\vee 1))}}+z\right]\sqrt{\varepsilon} and

With probability at least 1−e−z21-e^{-z^{2}}, we get

Applying Gronwall’s inequality concludes the proof. ∎

D.5 Bound between GD and SGD

There exists a constant KK such that, with probability at least 1−e−z21-e^{-z^{2}}, we have

Appendix E Proof of Theorem 2 part (B)

We remind the notations used in the proof of Theorem 1 (B): for θ=(a,w){\bm{\theta}}=(a,{\bm{w}}) and θ′=(a′,w′){\bm{\theta}}^{\prime}=(a^{\prime},{\bm{w}}^{\prime}),

For convenience, we copy here the properties of the potentials V(θ)V({\bm{\theta}}) and U(θ,θ′)U({\bm{\theta}},{\bm{\theta}}^{\prime}) listed in Lemma 8. Denoting θ=(a,w){\bm{\theta}}=(a,{\bm{w}}), θ1=(a1,w1){\bm{\theta}}_{1}=(a_{1},{\bm{w}}_{1}) and θ2=(a2,w2){\bm{\theta}}_{2}=(a_{2},{\bm{w}}_{2}). We have

Throughout this section, the assumptions A1 - A6 are understood to hold. For the sake of simplicity we will write the proof under the following restriction:

The step size function ξ(t)≡1/2\xi(t)\equiv 1/2.

The proof for a general function ξ(t)\xi(t) is obtained by a straightforward adaptation.

We will consider four different coupled dynamics with same initialization (θˉi0)i≤N∼iidρ0(\bar{\bm{\theta}}^{0}_{i})_{i\leq N}\sim_{iid}\rho_{0}. The integral equations and summation form are as follows:

where we denoted G(θ;ρ)=−∇Ψλ(θ;ρ)=−λθ−∇V(θ)−∫∇θU(θ,θ′)ρ(dθ′){\bm{G}}({\bm{\theta}};\rho)=-\nabla\Psi_{\lambda}({\bm{\theta}};\rho)=-\lambda{\bm{\theta}}-\nabla V({\bm{\theta}})-\int\nabla_{{\bm{\theta}}}U({\bm{\theta}},{\bm{\theta}}^{\prime})\rho({\rm d}{\bm{\theta}}^{\prime}), and θˉ∼ρ0\bar{\bm{\theta}}\sim\rho_{0} iid.

where θ‾i0=θˉi0\underline{\bm{\theta}}^{0}_{i}=\bar{\bm{\theta}}^{0}_{i}.

where we defined Fi(θk;zk+1)=−λθik+(yk+1−y^k+1)∇θiσ⋆(xk+1;θik){\bm{F}}_{i}({\bm{\theta}}^{k};{\bm{z}}_{k+1})=-\lambda{\bm{\theta}}_{i}^{k}+(y_{k+1}-\hat{y}_{k+1})\nabla_{{\bm{\theta}}_{i}}\sigma_{\star}({\bm{x}}_{k+1};{\bm{\theta}}^{k}_{i}), and θi0=θˉi0{\bm{\theta}}^{0}_{i}=\bar{\bm{\theta}}^{0}_{i}.

By Proposition 13, 14, 15, 16, there exists constants KK, such that with probability at least 1−e−z21-e^{-z^{2}}, we have

Combining these inequalities gives the conclusion of Theorem 2 (B). In the following subsections, we prove all the above interpolation bounds, under the setting of Theorem 2 (B).

The bounds on the potentials U,VU,V, and their derivatives scales with the coefficients aa, which can be arbitrarily large with non-zero probability due to the Brownian noise. In our analysis we will need to keep track of the maximum and the first moment of ∣a∣|a| for each of the different dynamics. In this section we will show that there exists high probability bounds along the trajectories.

We recall the following notations introduced in Appendix Section D.1,

For convenience, we recall here the bounds derived in Lemma 13:

There exists a constant KK, such that denoting M2(t)=KeKtM_{2}(t)=Ke^{Kt}, we have

Furthermore, letting (aˉt,wˉt)∼ρt({\bar{a}}^{t},{\bar{\bm{w}}}^{t})\sim\rho_{t}, then aˉt{\bar{a}}^{t} is M2(t)M_{2}(t)-sub-Gaussian.

Denote A(t)=∫a2ρt(da)/2A(t)=\int a^{2}\rho_{t}({\rm d}a)/2. For simplicity, we will directly take the derivative of this function. This computation can be made rigorous by considering smooth approximation of a truncated squared function, with bounded second derivative, and using the definition of weak solution. We get:

which implies by applying Gronwall’s lemma we have

Let us consider the nonlinear dynamics for the variable aˉt∼ρt{\bar{a}}^{t}\sim\rho_{t}:

Denote uλ(t)=aˉteλtu_{\lambda}(t)={\bar{a}}^{t}e^{\lambda t} and

We deduce that we can rewrite aˉt∼ρt{\bar{a}}^{t}\sim\rho_{t} as the sum of three random variables:

By assumption a0a_{0} is KK-bounded, and thus Γ1\Gamma_{1} is K2K^{2}-sub-Gaussian. By the boundedness of uu and vv, Cauchy Schwartz inequality, and by A(t)≤M2(t)A(t)\leq M_{2}(t), then for s≤ts\leq t, we have ∣K(wˉs,ρs)∣≤KeKt|K({\bar{\bm{w}}}^{s},\rho_{s})|\leq Ke^{Kt}, hence the random variable Γ2\Gamma_{2} is KeKtKe^{Kt}-bounded and thus KeKtKe^{Kt}-sub-Gaussian. The random variable Γ3\Gamma_{3} is a Gaussian random variable with variance

We deduce that aˉt{\bar{a}}^{t} is the sum of three (dependent) sub-Gaussian random variables with parameters K2,KeKt,KtK^{2},Ke^{Kt},Kt respectively, and therefore the sum aˉt{\bar{a}}^{t} is KeKtKe^{Kt}-sub-Gaussian. ∎

There exists a constant KK such that with probability at least 1−e−z21-e^{-z^{2}}, we have

Let us start with the non-linear dynamics trajectories. We have in integral form:

where we recall that W‾ia(t)=τ/DWia(t)\overline{W}^{a}_{i}(t)=\sqrt{\tau/D}W^{a}_{i}(t). Applying Gronwall’s lemma to Δ(t)=sup⁡s∈[0,t]∣aˉis∣\Delta(t)=\sup_{s\in[0,t]}|\bar{a}^{s}_{i}| with Lemma 13 gives:

and by Gronwall’s lemma: sup⁡t∈[0,T]∥aˉs∥1/N≤KeKT[1+z]\sup_{t\in[0,T]}\|\bar{\bm{a}}^{s}\|_{1}/N\leq Ke^{KT}[1+z]. The same proof applies to the other trajectories and we will only write down the corresponding inequality on the integral or summation form:

Furthermore, we have for t,h≥0,t+h≤Tt,h\geq 0,t+h\leq T,

We will only show the result for the non-linear dynamic. The proof for the particle dynamic will be exactly the same, upon replacing M2\sqrt{M_{2}} by M1M_{1}.

Step 1. Let us consider Δi(t)≡sup⁡s≤t∥θˉit∥2\Delta_{i}(t)\equiv\sup_{s\leq t}\|\bar{\bm{\theta}}^{t}_{i}\|_{2} and Δ0(t)≡sup⁡s≤t1N∑i≤N∥θˉit∥2\Delta_{0}(t)\equiv\sup_{s\leq t}\frac{1}{N}\sum_{i\leq N}\|\bar{\bm{\theta}}^{t}_{i}\|_{2} :

which gives, after applying Gronwall’s inequality with the bounds of Lemma 13 and 19:

Step 2. Let us bound sup⁡0≤u≤ε∥θˉikε+u−θˉikε∥2\sup_{0\leq u\leq\varepsilon}\|\bar{\bm{\theta}}_{i}^{k\varepsilon+u}-\bar{\bm{\theta}}_{i}^{k\varepsilon}\|_{2}:

where we defined W‾i,k(u)≡∫kεkε+uτ/DdWi(s)\overline{\bm{W}}_{i,k}(u)\equiv\int_{k\varepsilon}^{k\varepsilon+u}\sqrt{\tau/D}{\rm d}{\bm{W}}_{i}(s). By a similar computation as in Lemma 13, we have

Injecting this bound in the above inequality yields:

Another useful bound can be obtained by taking the average over i∈[N]i\in[N]:

We get by a similar computation as in Lemma 13, we have

Step 3. We now bound W2(ρt,ρt+h)W_{2}(\rho_{t},\rho_{t+h}):

Integrating this upper bound on the probability yields the desired inequality. ∎

E.2 Bound between PDE and nonlinear dynamics

The proof will use the same decomposition in two terms as in the proof of proposition 1.

where we used the upper bound on the second moment of variable aa in Lemma 18. ∎

We will bound each of these terms separately. For any fixed tt, we have (θˉit)i∈[N]∼ρt(\bar{\bm{\theta}}^{t}_{i})_{i\in[N]}\sim\rho_{t} independently. Define:

which is the absolute value of the sum of martingale differences. Furthermore, we can rewrite V(θˉit)=aˉitv(wˉit)V(\bar{\bm{\theta}}^{t}_{i})={\bar{a}}^{t}_{i}v({\bar{\bm{w}}}^{t}_{i}) which is KeKTKe^{KT}-sub-Gaussian (product of a sub-Gaussian random variable, by Lemma 18, and a bounded random variable). We can therefore apply Azuma-Hoeffding’s inequality (Lemma 31),

where we used that ∫a2ρt(da)≤KeKT\int a^{2}\rho_{t}({\rm d}a)\leq Ke^{KT}. Using Lemma 19, we get:

Because θˉit\bar{\bm{\theta}}_{i}^{t} is independent of the (θˉjt)j∈[N],j≠i(\bar{\bm{\theta}}^{t}_{j})_{j\in[N],j\neq i}, we can condition on θˉit\bar{\bm{\theta}}_{i}^{t}, and restrict ourselves to the event where θˉit≤M∞\bar{\bm{\theta}}_{i}^{t}\leq M_{\infty}. Q2i(t)Q_{2}^{i}(t) is the absolute value of a sum of martingale difference, with U(θˉit,θˉjt)=aˉitaˉjtu(wˉit,wˉjt)U(\bar{\bm{\theta}}_{i}^{t},\bar{\bm{\theta}}_{j}^{t})={\bar{a}}^{t}_{i}{\bar{a}}^{t}_{j}u({\bar{\bm{w}}}^{t}_{i},{\bar{\bm{w}}}^{t}_{j}) which is KeKT∣aˉit∣2Ke^{KT}|{\bar{a}}^{t}_{i}|^{2}-sub-Gaussian (product of a sub-Gaussian random variable and a bounded random variable). We apply Azuma-Hoeffding’s inequality (Lemma 31),

We take the union bound over i∈[N]i\in[N] and get:

Combining the above bounds with the bound on sup⁡s∈[0,T]{∥aˉs∥1,∥aˉs∥∞}\sup_{s\in[0,T]}\{\|\bar{\bm{a}}^{s}\|_{1},\|\bar{\bm{a}}^{s}\|_{\infty}\} of Lemma 19 yields:

In order to extend this concentration uniformly on the interval [0,T][0,T], we use the following result:

with probability at least 1−e−z21-e^{-z^{2}}.

Consider t,h≥0,t+h≤Tt,h\geq 0,t+h\leq T. From Lemma 21,

Using Lemma 20 without the union bound over s∈η{0,1,…,⌊T/η⌋}s\in\eta\{0,1,\ldots,\lfloor T/\eta\rfloor\} and the bounds on sup⁡t∈[0,T]{∥aˉt∥1}\sup_{t\in[0,T]}\{\|\bar{\bm{a}}^{t}\|_{1}\} of Lemma 19, we get

The difference in expectation, where the expectation is taken over (θˉi)i∈[N](\bar{\bm{\theta}}_{i})_{i\in[N]}, is therefore bounded by

with probability at least 1−e−z21-e^{-z^{2}}. ∎

Taking an union bound over s∈η{0,…,⌊T/η⌋}s\in\eta\{0,\ldots,\lfloor T/\eta\rfloor\} in Eq. (57) and bounding the variation inside the grid intervals, we get

Taking η=1/(Nlog⁡N)\eta=1/(N\log N) and z=[log⁡(NTlog⁡N)+z′]z=[\sqrt{\log(NT\log N)}+z^{\prime}] concludes the proof. ∎

E.3 Bound between nonlinear dynamics and particle dynamics

There exists a constant KK, such that with probability at least 1−e−z21-e^{-z^{2}}, we have

Define Δ(t)≡sup⁡s≤tmax⁡i∈[N]∥θˉis−θ‾is∥2\Delta(t)\equiv\sup_{s\leq t}\max_{i\in[N]}\|\bar{\bm{\theta}}_{i}^{s}-\underline{\bm{\theta}}_{i}^{s}\|_{2}. We have

Let us bound each term separately. We have

We decompose the second term into two terms

The last term in Eq. (58) can be decomposed into two terms. Consider j=ij=i:

where we used that \int|a|\rho_{s}({\rm d}{\bm{\theta}})\leq\Big{(}\int a^{2}\rho_{s}({\rm d}{\bm{\theta}})\Big{)}^{1/2} and Lemma 18. We consider j≠ij\neq i and denote:

The concentration of Qi(s)Q^{i}(s) follows from a similar method as in the proof of Lemma 23. For any fixed ss, we have (θˉis)i∈[N]∼ρs(\bar{\bm{\theta}}^{s}_{i})_{i\in[N]}\sim\rho_{s} independently. In particular, we have

and Qi(s)Q^{i}(s) conditioned on θˉis\bar{\bm{\theta}}^{s}_{i} is the norm of a martingale difference sum. We furthermore restrict ourselves to the event where aˉis≤M∞\bar{a}_{i}^{s}\leq M_{\infty}. We have ∇1U(θˉis,θˉjs)=aˉjt⋅(u(wˉit,wˉjt),aˉis∇1u(wˉit,wˉjt))\nabla_{1}U(\bar{\bm{\theta}}_{i}^{s},\bar{\bm{\theta}}_{j}^{s})={\bar{a}}^{t}_{j}\cdot(u({\bar{\bm{w}}}^{t}_{i},{\bar{\bm{w}}}^{t}_{j}),{\bar{a}}^{s}_{i}\nabla_{1}u({\bar{\bm{w}}}^{t}_{i},{\bar{\bm{w}}}^{t}_{j})) which is KeKTM∞2Ke^{KT}M_{\infty}^{2}-sub-Gaussian (the product of a sub-Gaussian random variable and a bounded random variable is sub-Gaussian). We can therefore apply Azuma-Hoeffding ’s inequality (Lemma 31),

Taking the union bound over the i∈[N]i\in[N]

Furthermore, let us consider t,h≥0,t+h≤Tt,h\geq 0,t+h\leq T:

Considering Lemma 20 without the union bound over s∈η{0,1,…,⌊T/η⌋}s\in\eta\{0,1,\ldots,\lfloor T/\eta\rfloor\} and the high probability bounds on sup⁡t∈[0,T]{∥aˉt∥∞,∥aˉt∥1}\sup_{t\in[0,T]}\{\|\bar{\bm{a}}^{t}\|_{\infty},\|\bar{\bm{a}}^{t}\|_{1}\} of Lemma 19, we get:

The difference in expectation, where the expectation is taken over θˉj\bar{\bm{\theta}}_{j}, is bounded by

Noticing that (1+z)[log⁡N+z]2≤(log⁡N+z)3(1+z)\left[\sqrt{\log N}+z\right]^{2}\leq(\sqrt{\log N}+z)^{3} and doing a change of variable, we get:

and the bounds derived above, with an union bound over t∈η{0,1,…,⌊T/η⌋}t\in\eta\{0,1,\ldots,\lfloor T/\eta\rfloor\}, we get

We can therefore take the supremum over the interval [0,T][0,T] :

Taking η=1/N\eta=1/N and z=[log⁡(NT)+z′]z=[\sqrt{\log(NT)}+z^{\prime}]:

Using the high probability bound on sup⁡s∈[0,T]{∥aˉs∥1/N,∥aˉs∥∞}\sup_{s\in[0,T]}\{\|\bar{\bm{a}}^{s}\|_{1}/N,\|\bar{\bm{a}}^{s}\|_{\infty}\} of Lemma 19, we get with probability at least 1−e−z21-e^{-z^{2}} that for all t∈[0,T]t\in[0,T]

E.4 Bound between particle dynamics and GD

There exists constant KK, such that with probability at least 1−e−z21-e^{-z^{2}}, we have

which combined with the upper bound on sup⁡s∈[0,T]{∥a‾s∥1/N,∥a‾s∥∞}\sup_{s\in[0,T]}\{\|\underline{\bm{a}}^{s}\|_{1}/N,\|\underline{\bm{a}}^{s}\|_{\infty}\} of Lemma 19, shows that with probability at least 1−e−z21-e^{-z^{2}}, we have

Applying Gronwall’s inequality, we get with probability at least 1−e−z21-e^{-z^{2}},

This bound combined with Lemma 21 concludes the proof. ∎

E.5 Bound between GD and SGD

There exists KK, such that with probability at least 1−e−z21-e^{-z^{2}}, we have

where we denoted ρk(N)≡(1/N)∑i∈[N]δθik\rho^{(N)}_{k}\equiv(1/N)\sum_{i\in[N]}\delta_{{\bm{\theta}}^{k}_{i}} the particle distribution of SGD. Hence we get

The following discussion is under the conditional law L(⋅∣Fk){\mathcal{L}}(\cdot|{\mathcal{F}}_{k}). Note ∣σ(xk+1;wik)∣≤K|\sigma({\bm{x}}^{k+1};{\bm{w}}_{i}^{k})|\leq K, and ∣yk+1−y^(xk+1;θk)∣≤K(1+∥ak∥1/N)|y^{k+1}-\hat{y}({\bm{x}}^{k+1};{\bm{\theta}}^{k})|\leq K(1+\|{\bm{a}}^{k}\|_{1}/N), hence (yk+1−y^(xk+1;θk))σ(xk+1;wik)(y^{k+1}-\hat{y}({\bm{x}}^{k+1};{\bm{\theta}}^{k}))\sigma({\bm{x}}^{k+1};{\bm{w}}_{i}^{k}) is K(1+∥ak∥1/N)2K(1+\|{\bm{a}}^{k}\|_{1}/N)^{2}-sub-Gaussian. Note that by assumption, ∇wσ(xk+1;wik)\nabla_{\bm{w}}\sigma({\bm{x}}^{k+1};{\bm{w}}_{i}^{k}) is KK-sub-Gaussian (random vector), and ∣(yk+1−y^(xk+1;θk))aik∣≤K(1+∥ak∥1/N)∥ak∥∞|(y^{k+1}-\hat{y}({\bm{x}}^{k+1};{\bm{\theta}}^{k}))a_{i}^{k}|\leq K(1+\|{\bm{a}}^{k}\|_{1}/N)\|{\bm{a}}^{k}\|_{\infty}, hence (yk+1−y^(xk+1;θk))aik∇wσ(xk+1;wik)(y^{k+1}-\hat{y}({\bm{x}}^{k+1};{\bm{\theta}}^{k}))a_{i}^{k}\nabla_{\bm{w}}\sigma({\bm{x}}^{k+1};{\bm{w}}_{i}^{k}) is a K(1+∥ak∥1/N)2∥ak∥∞2K(1+\|{\bm{a}}^{k}\|_{1}/N)^{2}\|{\bm{a}}^{k}\|_{\infty}^{2}-sub-Gaussian random vector. As a result, we have Fk(θk;zk+1){\bm{F}}_{k}({\bm{\theta}}^{k};{\bm{z}}_{k+1}) under the conditional law L(⋅∣Fk){\mathcal{L}}(\cdot|{\mathcal{F}}_{k}) is a K(1+∥ak∥1/N)2∥ak∥∞2K(1+\|{\bm{a}}^{k}\|_{1}/N)^{2}\|{\bm{a}}^{k}\|_{\infty}^{2}-sub-Gaussian random vector..

Let τ≡inf⁡{k∣∥ak∥∞≥M∞ or ∥ak∥1≥N⋅M1}\tau\equiv\inf\{k|\|{\bm{a}}^{k}\|_{\infty}\geq M_{\infty}\text{ or }\|{\bm{a}}^{k}\|_{1}\geq N\cdot M_{1}\}. Notice that Ait∧τ−Ait∧τ−1=Zik∧τ−1{\bm{A}}^{t\wedge\tau}_{i}-{\bm{A}}_{i}^{t\wedge\tau-1}={\bm{Z}}_{i}^{k\wedge\tau-1}. Following the same argument as in the proof of Proposition 8, we deduce that for A‾ik≡Aik∧τ\overline{{\bm{A}}}^{k}_{i}\equiv{\bm{A}}^{k\wedge\tau}_{i}, the martingale difference A‾ik−A‾ik−1\overline{{\bm{A}}}^{k}_{i}-\overline{{\bm{A}}}^{k-1}_{i} is ε2K2M12M∞2\varepsilon^{2}K^{2}M_{1}^{2}M_{\infty}^{2}-sub-Gaussian under the conditional law L(⋅∣Fk){\mathcal{L}}(\cdot|{\mathcal{F}}_{k}). We apply Azuma-Hoeffding’s inequality (Lemma 31)

This bound combined with Lemma 21 concludes the proof. ∎

Appendix F Existence and uniqueness of PDEs solutions

For the readers convenience, we reproduce here the form of the limiting PDE

For fixed coefficient, under assumptions A1, A2, A3, A4, we have ∇V(θ)\nabla V({\bm{\theta}}) and ∇1U(θ,θ′)\nabla_{1}U({\bm{\theta}},{\bm{\theta}}^{\prime}) bounded Lipschitz. By [Szn91, Theorem 1.1], these assumptions are sufficient to guarantee the existence and uniqueness of solution of PDE (59).

For general coefficients, the potentials are not bounded and Lipschitz anymore. The existence and uniqueness under assumptions A1, A2, A3, A4, can be derived by a similar argument as in [SS18, Section 4], which uses an adaptation of the argument of [Szn91, Theorem 1.1].

F.2 Equation (diffusion-DD) (noisy SGD)

For the readers convenience, we reproduce here the form of the limiting PDE

Note that this notion of weak solution is equivalent to the one introduced earlier in Eq. (61), see for instance [San15, Proposition 4.2].

For fixed coefficients, the existence and uniqueness of solution of Eq. (62) was proven in [MMN18, Section 10.2], under the assumptions A1, A2, A3, A6. The proof follows from an adaptation of the proof of [JKO98, Theorem 5.1].

For general coefficients, we can follow a similar contraction argument as in [SS18, Section 4] and [Szn91, Theorem 1.1], by bounding more carefully each term.

Assume conditions A1-A5. Then PDE (62) admits a weak solution (ρt)t≥0(\rho_{t})_{t\geq 0} which is unique.

where |K({\bar{\bm{w}}}^{s},m_{s})|=\Big{|}-v({\bar{\bm{w}}}^{s})-\int au({\bar{\bm{w}}}^{s},{\bm{w}})m_{s}({\rm d}a,{\rm d}{\bm{w}})\Big{|}\leq K+K\sqrt{C_{0}}e^{C_{0}s/2}. We get:

where BtB_{t} is a normal random variable with variance bounded by 9tτ/D9t\tau/D. Taking the expectation with respect to ΦT(m)\Phi_{T}(m), we get:

We show that for T1≤T0T_{1}\leq T_{0} sufficiently small, the mapping ΦT1\Phi_{T_{1}} is a contraction with respect to this distance.

where KK is a constant depending on the constants of the assumptions and C0C_{0}. Taking the square and using Cauchy-Schwartz inequality

where MT0=(1+sup⁡t≤T0(∣aˉ1t∣∨∣aˉ2t∣))2M_{T_{0}}=(1+\sup_{t\leq T_{0}}(|\bar{a}^{t}_{1}|\vee|\bar{a}^{t}_{2}|))^{2}. Applying Gronwall’s lemma, we get, for any T<T0T<T_{0},

for T0T_{0} small enough. We conclude that there exists a constant K<∞K<\infty such that

where we used that the coupling γ\gamma was chosen arbitrarily. ∎

Further, Duhamel’s principle for PDE (62) holds. Denote \mathscrsfsG(θ,θ′;t)\mathscrsfs{G}({\bm{\theta}},{\bm{\theta}}^{\prime};t) the heat kernel:

Assume conditions A1-A5. Let ρ\rho be a weak solution of PDE (62). Then, for any t>0t>0, ρt(dθ)\rho_{t}({\rm d}{\bm{\theta}}) has a density, denoted ρ(t,⋅)\rho(t,\cdot), which satisfies

Take ζ(θ,s)=\mathscrsfsGη(θ;t−s)\zeta({\bm{\theta}},s)=\mathscrsfs{G}_{\eta}({\bm{\theta}};t-s) (which indeed decays to at infinity) as a test function in Eq. (64) for T=tT=t. We get:

where η\eta is an arbitrary function with bounded support, which concludes the proof. ∎

The proof follows exactly from the proof of Lemma [MMN18, Lemma 10.7]. ∎

F.3 The noisy PDE as a gradient flow in the space of probability distributions

We include a second independent proof of the existence of a weak solution, which is interesting in itself. It relies on a deep connection pioneered by [JKO98], between Fokker-Planck PDEs and gradient flow in probability space. The proof follows closely the steps detailed in [JKO98]. The arguments are similar to [MMN18, Section 10.2], and we will only detail the differences.

We will consider the set K\mathcal{K} of admissible probability densities,

Assume conditions A1, A2, A3, A6. Let initialization ρ0∈K\rho_{0}\in\mathcal{K} so that F(ρ0)<∞F(\rho_{0})<\infty. Then the PDE (62) admits a weak solution (ρt)t≥0(\rho_{t})_{t\geq 0} which is unique. Moreover, for any fixed tt, ρt∈K\rho_{t}\in\mathcal{K} is absolutely continuous with respect to the Lebesgue measure, and M(ρt)M(\rho_{t}) and Ent(ρt){\rm Ent}(\rho_{t}) are uniformly bounded in tt.

Given an initialization ρ0∈K\rho_{0}\in\mathcal{K}, there exists a unique solution of the scheme (65).

Moreover, there exists a constant CC such that M(ρν)≤CM(\rho_{\nu})\leq C and M(ρ∗)≤CM(\rho^{*})\leq C by lower semi-continuity of M(ρ)M(\rho). We only need to check lower semi-continuity of R(ρ)R(\rho) to conclude that ρ∗\rho^{*} is indeed a minimizer. Uniqueness comes from convexity of the functional and strict convexity of −Ent(ρ)-{\rm Ent}(\rho).

where we used that ∫B(r)∣a∣ρν(da)≤∫a2/rρν(da)≤C/r\int_{\mathsf{B}(r)}|a|\rho_{\nu}({\rm d}a)\leq\int a^{2}/r\rho_{\nu}({\rm d}a)\leq C/r. Because mm is arbitrarily large, we conclude that

or equivalently ντ=1det⁡∇Φτρ‾kh∘Φτ−1\nu_{\tau}=\frac{1}{\det\nabla\Phi_{\tau}}\overline{\rho}^{h}_{k}\circ\Phi_{\tau}^{-1}. We only need to consider the term R(ρ)R(\rho). See the proof of [MMN18, Lemma 10.6] for more details.

Hence applying Gronwall’s inequality to u(τ)=sup⁡θ∈B(r)∥Φτ(θ)∥2u(\tau)=\sup_{{\bm{\theta}}\in\mathsf{B}(r)}\|\Phi_{\tau}({\bm{\theta}})\|_{2}, and considering τ≤1\tau\leq 1, we get u(τ)≤Ku(\tau)\leq K. Therefore, for τ≤1\tau\leq 1, we get ∣(∂2/∂τ2)Φτ(θ)∣=∣Φτ(ξ(ξ(θ)))∣≤K|(\partial^{2}/\partial\tau^{2})\Phi_{\tau}({\bm{\theta}})|=|\Phi_{\tau}(\bm{\xi}(\bm{\xi}({\bm{\theta}})))|\leq K. We deduce that

Let us consider the derivative of R(vτ)R(v_{\tau}) with respect to τ\tau. Recall that UU is symmetric.

Denote (a1τ,w1τ)=Φτ(θ1)(a_{1}^{\tau},{\bm{w}}_{1}^{\tau})=\Phi_{\tau}({\bm{\theta}}_{1}) and (a2τ,w2τ)=Φτ(θ2)(a_{2}^{\tau},{\bm{w}}_{2}^{\tau})=\Phi_{\tau}({\bm{\theta}}_{2}), and ξ(θ)=(ξa(θ),ξw(θ))\bm{\xi}({\bm{\theta}})=(\xi_{a}({\bm{\theta}}),\bm{\xi}_{w}({\bm{\theta}})). Consider the first term

Using that ∥∇u∥op,∥∇2u∥op≤K\|\nabla u\|_{\text{op}},\|\nabla^{2}u\|_{\text{op}}\leq K, and Eq. (67) and Eq. (68), we get for τ≤1\tau\leq 1

where we used that ∣aτ∣≤∣a∣+Kτ|a^{\tau}|\leq|a|+K\tau from Eq. (67), and M(ρ‾kh)≤CM(\overline{\rho}^{h}_{k})\leq C. The same computation shows that the second and third terms, as well as the term depending on V(θ)V({\bm{\theta}}) are O(τ2)O(\tau^{2}).

Taking τ→0\tau\rightarrow 0, we conclude that:

This equality combined with the analysis of [JKO98, Theorem 5.1] shows that ρ(t)\rho(t) is indeed a weak solution of PDE (62). The proof of uniqueness follows from the regularity Lemma 28 and a standard method from elliptic-parabolic equations (see [JKO98, Theorem 5.1] for details). ∎

Appendix G Proof of Theorem 4

We prove the case for general coefficients. The proof of fixed coefficient is the same but simpler.

Step 1. Bound the support of aˉt,α{\bar{a}}^{t,\alpha}.

Let θˉt,α=(aˉt,α,wˉt,α)\bar{\bm{\theta}}^{t,\alpha}=({\bar{a}}^{t,\alpha},{\bar{\bm{w}}}^{t,\alpha}) satisfying the non-linear dynamics

with initialization θˉ0,α∼ρ0\bar{\bm{\theta}}^{0,\alpha}\sim\rho_{0}, and ρtα\rho_{t}^{\alpha} given by Eq. (Rescaled-DD). Then we have

The last inequality follows from the assumption that ∥σ∥∞≤K\|\sigma\|_{\infty}\leq K. Note Rα(ρtα)R_{\alpha}(\rho_{t}^{\alpha}) will always decrease along the trajectory, i.e., we have Rα(ρtα)≤Rα(ρ0)≤BR_{\alpha}(\rho_{t}^{\alpha})\leq R_{\alpha}(\rho_{0})\leq B. As a result, we have ∣daˉt,α/dt∣≤KB1/2/α|{\rm d}{\bar{a}}^{t,\alpha}/{\rm d}t|\leq KB^{1/2}/\alpha, so that

Denoting A(ρ)=sup⁡(a,w)∈supp(ρ)∣a∣A(\rho)=\sup_{(a,{\bm{w}})\in{\rm supp}(\rho)}|a|. Since (aˉt,α,wˉt,α)∼ρtα({\bar{a}}^{t,\alpha},{\bar{\bm{w}}}^{t,\alpha})\sim\rho_{t}^{\alpha}, we have

Step 2. Bound W2(ρtα,ρ0)W_{2}(\rho_{t}^{\alpha},\rho_{0}).

For θ=(a,w){\bm{\theta}}=(a,{\bm{w}}), we have

The last inequality follows from ∥σ∥∞≤K\|\sigma\|_{\infty}\leq K and

Note that, by the coupling in terms of nonlinear dynamics, for any s≤ts\leq t, we have

Step 2. Bound ∥Hρ0−Hρtα∥\mboxop\|{\mathcal{H}}_{\rho_{0}}-{\mathcal{H}}_{\rho_{t}^{\alpha}}\|_{\mbox{\tiny\rm op}}.

Letting γ\gamma denote the coupling that achieves the W2W_{2} distance between ρ1\rho_{1} and ρ2\rho_{2}, we have

and the assumption that ∣u∣,∥∇u∥2,∥∇2u∥op≤K|u|,\|\nabla u\|_{2},\|\nabla^{2}u\|_{\rm op}\leq K. This gives

and ∥∇3u∥op,∥∇4u∥op≤κ\|\nabla^{3}u\|_{{\rm op}},\|\nabla^{4}u\|_{{\rm op}}\leq\kappa. This gives

Remember the notation A(ρ)=sup⁡(a,w)∈supp(ρ)∣a∣A(\rho)=\sup_{(a,{\bm{w}})\in{\rm supp}(\rho)}|a| and we have shown A(ρtα)≤Mt,α=K(1+B1/2t/α)A(\rho_{t}^{\alpha})\leq M_{t,\alpha}=K(1+B^{1/2}t/\alpha) in step 1, we have

Step 3. Bound the difference of mean field and linearized residue dynamics vt=utα−ut∗v_{t}=u^{\alpha}_{t}-u^{*}_{t}.

We now consider the mean field residual dynamics (RD) and the linearized residual dynamics (17). Defining vt=utα−ut∗v_{t}=u^{\alpha}_{t}-u^{*}_{t}, we have

Since Hρtα⪰0{\mathcal{H}}_{\rho_{t}^{\alpha}}\succeq{\bm{0}}, this implies

Using the bound (75), and ∥ut∗∥L22≤∥u0∗∥L22=Rα(ρ0)≤Bα\|u^{*}_{t}\|_{{L^{2}}}^{2}\leq\|u^{*}_{0}\|_{{L^{2}}}^{2}=R_{\alpha}(\rho_{0})\leq B_{\alpha}, we obtain

Integrating this inequality yields Eq. (20). Eq. (21) follows by triangle inequality.

which is independent of α\alpha. Hence we have in both cases

Appendix H The mean field limit and kernel limit

This section is a self-contained note comparing the mean field limit and kernel limit. We introduce the distributional dynamics and residual dynamics, which we consider in the pre-limit and in the limit of infinite number of neurons.

Let us emphasize that the material presented here is not new and appears in the literature, possibly in a slightly different formulations.

Here α{\alpha} serves as a scale parameter, which can be used to explore different regimes of the learning dynamics. We minimize the population risk over θ=(θ1,…,θN){\bm{\theta}}=({\bm{\theta}}_{1},\ldots,{\bm{\theta}}_{N}):

In the rest of this appendix, we will first consider the gradient flow dynamics of the finite neuron risk function. This can be described via a distributional dynamics, which is a flow in the space of probability measures. The distributional dynamics induces an evolution of the residuals at the data points, which we call residual dynamics. We then consider the limit N→∞N\to\infty, which we refer to as the mean field limit.

Finally, we consider the limit of both α→∞{\alpha}\to\infty after N→∞N\to\infty, that we call the kernel limit. Of course, it is also possible (and interesting) to study joint limits α,N→∞\alpha,N\to\infty [JGH18]. Our rationale for the focusing on α→∞\alpha\to\infty after N→∞N\to\infty (following [CB18a]) is that it allows to explore the crossover between mean field and kernel behaviors.

H.2 The residual dynamics in the pre-limit

Calculating the gradient ∇θjRα,N(θ)\nabla_{{\bm{\theta}}_{j}}R_{{\alpha},N}({\bm{\theta}}) using chain rule, we get

We consider the gradient flow ODE with time reparameterization given by N/(2α2)N/(2{\alpha}^{2}),

The time derivative of f^α,N(z;θt)\hat{f}_{{\alpha},N}({\bm{z}};{\bm{\theta}}^{t}) can be calculated using the chain rule. We have

Taking the residue function to be utα,N(z)=f(z)−f^α,N(z;θt)u_{t}^{{\alpha},N}({\bm{z}})=f({\bm{z}})-\hat{f}_{{\alpha},N}({\bm{z}};{\bm{\theta}}^{t}), we have

with initialization u0α,N(z)=f(z)−fα,N(z;θ0)u_{0}^{{\alpha},N}({\bm{z}})=f({\bm{z}})-f_{{\alpha},N}({\bm{z}};{\bm{\theta}}^{0}) and θi0∼ρ0{\bm{\theta}}_{i}^{0}\sim\rho_{0} independently. We call Eq. (79) the residual dynamics. The residual dynamics is not a self-contained equation and depends on θt{\bm{\theta}}^{t}.

H.3 The distributional dynamics in the pre-limit

Define the prediction function with distribution ρ\rho and scaled parameter α{\alpha} to be

Consider again the gradient flow dynamics

with θi0∼ρ0{\bm{\theta}}_{i}^{0}\sim\rho_{0} independently. We call dynamics (80) the distributional dynamics. The distributional dynamics is equivalent to the gradient flow.

H.4 The coupled dynamics

Writing the distributional dynamics and residual dynamics together (in the pre-limit), we have

with initialization conditions ρ0N=(1/N)∑i=1Nδθi0\rho_{0}^{N}=(1/N)\sum_{i=1}^{N}\delta_{{\bm{\theta}}_{i}^{0}}, uN(0,x)=f(x)−f^α,N(x;θ0)u_{N}(0,{\bm{x}})=f({\bm{x}})-\hat{f}_{{\alpha},N}({\bm{x}};{\bm{\theta}}^{0}), and (θi0)i≤N∼i.i.d.ρ0({\bm{\theta}}_{i}^{0})_{i\leq N}\sim_{i.i.d.}\rho_{0}.

Note these coupled dynamics are random, where the randomness comes from the random initialization (θi0)i≤N∼i.i.d.ρ0({\bm{\theta}}_{i}^{0})_{i\leq N}\sim_{i.i.d.}\rho_{0}.

H.5 The mean field limit

In the mean field limit, we fix α{\alpha} and take N→∞N\to\infty. Under some conditions, it can be shown that there exists (ρt)t≥0(\rho_{t})_{t\geq 0} satisfying the mean field distributional dynamics

with initialization condition ρ0α=ρ0\rho_{0}^{\alpha}=\rho_{0}. Moreover, we have almost surely (over θi0∼ρ0{\bm{\theta}}_{i}^{0}\sim\rho_{0} independently)

The mean field distributional dynamics was proposed and studied in [MMN18, SS18, RVE18, CB18b] under various conditions.

Now define the mean field residual function utα(z)u_{t}^{\alpha}({\bm{z}}) to be

For any fixed z{\bm{z}}, we have almost surely

Under some regularity conditions, it is not hard to show that this mean field residual function satisfies mean field residual dynamics

The mean field residual dynamics is not a self-contained equation. It depends on the distribution through the kernel Hρtα{\mathcal{H}}_{\rho_{t}^{{\alpha}}}. The mean field residual dynamics was first explicitly given in [RVE18, Proposition 2.5].

H.6 The kernel limit

Theorem 4 shows that, as α{\alpha} becomes large, for any fixed tt, we have

In this limit, the mean field residual dynamics converges to the linearized residual dynamics,

The linearized residual dynamics is exactly the same as the continuous time kernel boosting dynamics with kernel Hρ0{\mathcal{H}}_{\rho_{0}}, whose solution can be written down explicitly

When the kernel is strictly positive definite, one can show that the L2{L^{2}}-norm of the residual function converges to as time goes to infinity.

The kernel limit is studied in [JGH18, GJS+19] in the joint limit α=N1/2→∞\alpha=N^{1/2}\to\infty, and in a multi-layer neural network settings. The specific limit considered here (N→∞N\to\infty followed by α→∞\alpha\to\infty) is discussed in [CB18a].

H.7 Kernel limit as kernel ridge regression

The following proposition considers the scaling limit (kernel limit) of the prediction function at time tt,

where ρtα\rho_{t}^{\alpha} is the solution of the rescaled distributional dynamics (Rescaled-DD).

This fact already appears (implicitly or explicitly) in several of the papers mentioned above. We state and prove it here for the sake of completeness.

Given a data set {(xi,yi)}i∈[n]\{({\bm{x}}_{i},y_{i})\}_{i\in[n]}, kernel ridge regression is a function estimator f^λ\hat{f}_{\lambda} that solves the following minimization problem

The norm ∥f∥Hρ0\|f\|_{{\mathcal{H}}_{\rho_{0}}} is the reproducible kernel Hilbert space (RKHS) norm of function ff, where the RKHS is associated to the kernel Hρ0{\mathcal{H}}_{\rho_{0}}. The solution of the minimization problem above gives

Proposition 19 shows that, the mean field prediction function in the kernel limit is performing a kernel ridge regression with regularization parameter λ=0\lambda=0.

Using chain rule, the time derivative of the prediction function f^α(z;ρtα)=α∫σ⋆(x;θ)ρtα(dθ)\hat{f}_{\alpha}({\bm{z}};\rho_{t}^{\alpha})=\alpha\int\sigma_{\star}({\bm{x}};{\bm{\theta}})\rho_{t}^{\alpha}({\rm d}{\bm{\theta}}) gives

By the same argument as Step 2 of Theorem 4, we have

Now, we denote f^t(z)\hat{f}_{t}({\bm{z}}) be the solution of the following linearized prediction dynamics,

together with f^0(z)=f^α(z;ρ0α)=0\hat{f}_{0}({\bm{z}})=\hat{f}_{\alpha}({\bm{z}};\rho_{0}^{\alpha})=0 we get

Appendix I Technical lemmas

Denote f(X1,…,XN)=∥(1/N)∑i=1NXi∥2f({\bm{X}}_{1},\ldots,{\bm{X}}_{N})=\|(1/N)\sum_{i=1}^{N}{\bm{X}}_{i}\|_{2}. Then we have

This lemma is proven in [MMN18, Section A, Lemma A.1]. ∎