Mean Field Analysis of Neural Networks: A Law of Large Numbers

Justin Sirignano, Konstantinos Spiliopoulos

Introduction

Neural networks have achieved immense practical success over the past decade. Neural networks are nonlinear statistical models whose parameters are estimated from data using stochastic gradient descent. They have been employed as critical components of many important technologies in a variety of industries. This practical success has sparked significant interest in their mathematical analysis. Currently, there is limited mathematical understanding of neural networks. This paper analyzes the asymptotic behavior of neural networks, rigorously proving that the empirical distribution of their parameters converges to the solution of a nonlinear partial differential equation (PDE).

Neural network models have revolutionized fields such as image, text, and speech recognition. They are actively used in a variety of applications. In image recognition, neural networks are able to accurately identify and recognize objects in images using only the raw pixels. Neural networks are used for image recognition in applications such as self-driving cars, image searches on search engines such as Google, and facial recognition for security systems (see , , , and ). In speech recognition, neural networks are used to develop computer systems that automatically understand human speech (see , , , and ). Applications include voice control of certain systems in vehicles, transcription (automatically converting human speech to written text), interactive voice response for customer service, and spoken commands for smartphones. In text recognition, neural networks are used to automatically translate text from one language (e.g., English) to another language (e.g., Italian); see and . They have also been used for automatically generating summaries of long documents; see and .

In addition, there is growing interest in applying neural networks to engineering, robotics, medicine, and finance. Neural networks are being used in reduced-form models of the Navier-Stokes equation in turbulent conditions (see and ). , , and describe applications in robotics. Neural networks have been used to identify cancer and to model protein folding . In finance, neural networks have been used to model loan default and prepayment risk and to model high frequency financial data . Neural networks have also been used to solve high-dimensional PDEs in financial applications .

Due to the impact that neural networks have had on practical applications, there is a significant interest in better understanding their mathematical properties. However, the existing literature is relatively limited, with only a few recent papers such as , , and . There also exist classical results regarding the approximation power of neural networks , , and .

Our result characterizes neural networks with a single hidden layer in the asymptotic regime of large network sizes and large numbers of stochastic gradient descent iterations. We rigorously prove that the empirical distribution of the neural network parameters will weakly converge to a distribution. This distribution satisfies a nonlinear partial differential equation. The proof relies upon weak convergence analysis for interacting particle systems. The result can be considered a “law of large numbers” for neural networks when both the network size and the number of stochastic gradient descent steps grow to infinity.

Recently, rigorously established a weak convergence result for a class of machine learning algorithms. Weak convergence analysis has been widely used in other fields (for example, see , , , , , , and for a non-exhaustive list). In fact, mean field analysis has been actively used for many years to study biological neural networks and physical systems of interacting particles; see for example , , , , and the references therein.

Upon completion of this work, we became aware of the very recent work of where a related PDE limit result for neural networks is derived; see also the recent work . Our convergence analysis, setup, and assumptions are different. In , it is assumed that the gradient of the neural network is a priori globally Lipschitz and bounded and under this assumption a similar PDE result as well as certain rates of convergence are established. In our work, we do not assume that the gradient of the neural network is a priori globally Lipschitz or bounded. Often, neural network models (and their gradients) are not globally Lipschitz and not bounded. In this paper, we assume that the data come from a distribution that has its first moments bounded and that the initialization is done according to distributions with certain moment bounds. Based on this assumption, we rigorously prove relative compactness of the pre-limit measure valued process, identification of its limit, and uniqueness of the limit point in the appropriate space. Our method of proof leverages on weak convergence analysis in an appropriate Skorokhod space for measure-valued processes (similar to the approaches in and ). In particular, the relative compactness and uniqueness proof addresses the challenge of neural networks not being a priori globally Lipschitz nor globally bounded using the structure of the stochastic gradient descent algorithm.

where the data (Y,X)(Y,X) is assumed to have a joint distribution π(dx,dy)\pi(dx,dy). We shall write X,Y\mathcal{X},\mathcal{Y} for the state spaces of XX and YY, respectively. The parameters θ=(c1,…,cN,w1,…,wN)\theta=(c^{1},\ldots,c^{N},w^{1},\ldots,w^{N}) are estimated using stochastic gradient descent:

where α\alpha is the learning rate and (xk,yk)∼π(dx,dy)(x_{k},y_{k})\sim\pi(dx,dy). Stochastic gradient descent minimizes (1.2) using a sequence of noisy (but unbiased) gradient descent steps ∇θ[(yk−gθkN(xk))2]\nabla_{\theta}[(y_{k}-g_{\theta_{k}}^{N}(x_{k}))^{2}]. Note that typically ∇θ[(y−gθN(x))2]\nabla_{\theta}[(y-g_{\theta}^{N}(x))^{2}] is not a priori globally Lipschitz nor globally bounded as a function of θ\theta. Stochastic gradient descent typically converges more rapidly than gradient descent for large datasets. For this reason, stochastic gradient descent is widely used in machine learning.

The neural network’s output can be re-written in terms of the empirical measure:

⟨f,h⟩\left\langle f,h\right\rangle denotes the inner product of ff and hh. For example, ⟨cσ(w⋅x),νkN⟩=∫cσ(w⋅x)νkN(dc,dw)\left\langle c\sigma(w\cdot x),\nu^{N}_{k}\right\rangle=\int c\sigma(w\cdot x)\nu^{N}_{k}(dc,dw).

Our main results are stated below. Theorem 1.2 (and the associated Remark 1.3) is a law of large numbers describing the distribution of the trained parameters when NN is large. Theorem 1.6 describes the behavior of individual parameters when NN is large. Theorem 1.6 is a “propagation of chaos” result. Section 1.1 presents several insights provided by these asymptotic results.

where ∇f=(∂cf,∇wf)\nabla f=(\partial_{c}f,\nabla_{w}f).

Since weak convergence to a constant implies convergence in probability, Theorem 1.2 leads to the stronger result of convergence in probability

for every δ>0\delta>0 and where dEd_{E} is the metric for DE([0,T])D_{E}([0,T]).

Assume Assumption 1.1. Suppose that μˉ0\bar{\mu}_{0} admits a density p0(c,w)p_{0}(c,w) and there exists a unique solution to the nonlinear partial differential equation

such that p(t,c,w)p(t,c,w) vanishes as ∣c∣,∥w∥→∞|c|,\parallel w\parallel\rightarrow\infty. Then, we have that the solution to the measure evolution equation (1.7) is such that

Notice that by setting θ=(c,w)\theta=(c,w), the partial differential equation for p(t,θ)p(t,\theta) in Corollary 1.4 can be written as

where divθ\textrm{div}_{\theta} is the divergence operator with respect to the variable θ\theta and v(θ,p(t,⋅))v(\theta,p(t,\cdot)) is defined as

In addition, Theorem 1.2 and Corollary 1.4 imply that the objective function LN(θ)L^{N}(\theta) from (1.2) satisfies

In Theorem 1.6 we prove that the neural network has the “propagation of chaos” property.

The law of large numbers (1.7) suggests several interesting characteristics of trained neural networks (at least in the setting studied in this paper).

As N→∞N\rightarrow\infty, the neural network converges (in probability) to a deterministic model. This is despite the fact that the neural network is randomly initialized and it is trained on a random sequence of data samples via stochastic gradient descent.

The learning rate α\alpha was assumed to be constant and to not decay with time. However, notice that the hidden layer has been normalized by 1/N1/N and it is this normalization by 1/N1/N in the hidden layer that replaces the role of the learning rate decay, enabling convergence.

The propagation of chaos result (1.10) indicates that, as N→∞N\rightarrow\infty, the dynamics of the weights (cki,wki)(c^{i}_{k},w^{i}_{k}) will become independent of the dynamics of the weights (ckj,wkj)(c^{j}_{k},w^{j}_{k}) for any i≠ji\neq j. Note that the dynamics (cki,wki)(c^{i}_{k},w^{i}_{k}) are still random due to the random initialization. However, the dynamics of the ii-th set of weights will be uncorrelated with the dynamics of the jj-th set of weights in the limit as N→∞N\rightarrow\infty.

In order to illustrate some aspects of the theoretical results of this paper, we performed the following numerical study.

Figure 1 displays the convergence of the distribution of the parameters in a trained neural network as the number of hidden units N→∞N\rightarrow\infty. The neural network has a single hidden layer followed by a softmax function. Figure 1 reports the distribution of the parameters connecting the hidden layer to the softmax function. The distributions are presented as histograms. The neural network is trained on the MNIST dataset, which is a standard image dataset in machine learning . The dataset includes 60,00060,000 images of handwritten numbers {0,1,2,…,9}\{0,1,2,\ldots,9\}. The neural network is trained to identify the handwritten numbers using only the image pixels as an input (i.e., it learns to recognize images as a human would). In the MNIST dataset, each image has 784784 pixels. A pixel takes values in {0,1,…,255}\{0,1,\ldots,255\}.The pixel values are normalized to $$ for the purposes of training the neural network. Neural networks can achieve 98-99% out-of-sample accuracy on the MNIST dataset.

Figure 1 shows that the distribution of parameters converges to a fixed distribution as N→∞N\rightarrow\infty. This can be seen by the fact that the distributions for N=10,000N=10,000, N=100,000N=100,000, and N=250,000N=250,000 are nearly identical. A priori it is unclear if the distribution of neural network parameters should converge as N→∞N\rightarrow\infty. Our theory and numerical results confirm that this is indeed the case. Indeed, as NN gets large, we see that the empirical distribution of the parameters connecting the hidden layer to the softmax function converges to a specific deterministic distribution.

2 Overview of the Proof

Relative Compactness

For each η>0\eta>0, there is a compact subset K\mathcal{K} of E such that

Given now that lim⁡L→∞∑j=1∞C(L+j)3/2=0\lim_{L\to\infty}\sum_{j=1}^{\infty}\frac{C}{(L+j)^{3/2}}=0, the proof of the lemma is concluded. ∎

We start by noticing that a Taylor expansion gives for 0≤s≤t≤T0\leq s\leq t\leq T

for points cˉi,wˉi\bar{c}^{i},\bar{w}^{i} in the segments connecting c⌊Ns⌋ic^{i}_{\left\lfloor Ns\right\rfloor} with c⌊Nt⌋ic^{i}_{\left\lfloor Nt\right\rfloor} and w⌊Ns⌋iw^{i}_{\left\lfloor Ns\right\rfloor} with w⌊Nt⌋iw^{i}_{\left\lfloor Nt\right\rfloor}, respectively.

Let’s now establish a bound on ∣c⌊Nt⌋i−c⌊Ns⌋i∣|c^{i}_{\left\lfloor Nt\right\rfloor}-c^{i}_{\left\lfloor Ns\right\rfloor}| for s<t≤Ts<t\leq T. Let 0<p<10<p<1.

where Assumption 1.1 was used. Let’s now establish a bound on ∥w⌊Nt⌋i−w⌊Ns⌋i∥\parallel w^{i}_{\left\lfloor Nt\right\rfloor}-w^{i}_{\left\lfloor Ns\right\rfloor}\parallel for s<t≤Ts<t\leq T. Making use of the uniform bounds established in Lemma 2.1, we obtain similarly to the previous bound

Now, we return to equation (2.1). By Lemma 2.1, the quantities (cˉ⌊Nt⌋i,wˉ⌊Nt⌋i)(\bar{c}^{i}_{\left\lfloor Nt\right\rfloor},\bar{w}^{i}_{\left\lfloor Nt\right\rfloor}) are bounded in expectation for 0<s<t≤T0<s<t\leq T. Therefore, for 0<s<t≤T0<s<t\leq T,

where C<∞C<\infty is some unimportant constant. Then, the statement of the Lemma follows. ∎

Given Lemmas 2.2 and 2.3, Theorem 8.6 of Chapter 3 of , gives the statement of the lemma. (See also Remark 8.7 B of Chapter 3 of regarding replacing sup⁡N\sup_{N} with lim⁡N\lim_{N} in the regularity condition B of Theorem 8.6.) ∎

We conclude this section with the proof of the a-priori bound of Lemma 2.1.

We start by establishing some useful a-priori bounds on ckic_{k}^{i} and wkiw_{k}^{i}. The unimportant finite constant C<∞C<\infty may change from line to line. We first observe that

where to derive the last line we used the definition of gθkN(x)g_{\theta_{k}}^{N}(x) via (1.1) and the uniform boundedness assumption on σ\sigma. Then, we subsequently obtain that

Let us now define mkN=1N∑i=1N∣cki∣m_{k}^{N}=\frac{1}{N}\sum_{i=1}^{N}|c_{k}^{i}| and bkN=1N∑i=1N∣c0i∣+∑j=1kαC∣yj−1∣Nb_{k}^{N}=\frac{1}{N}\sum_{i=1}^{N}|c_{0}^{i}|+\sum_{j=1}^{k}\frac{\alpha C|y_{j-1}|}{N}. Then we have

which by the discrete Gronwall lemma gives the bound

for a possibly different constant that may depend on TT, where the relation k/N≤Tk/N\leq T was used in the last step. Going back now to the bound for ckic_{k}^{i} we obtain

Raising this to power 1≤p≤41\leq p\leq 4, we have for a constant CpC_{p} that may depend on pp

Let us bound now each of the terms on the right hand side of the last display. We have for some constant Cp<∞C_{p}<\infty that may change from line to line

for a constant C<∞C<\infty that may change from line to line. Taking now expectation, using Assumption 1.1, the a-priori bound (2.2) and the fact that k/N≤Tk/N\leq T we obtain

Identification of the Limit

for points cˉki,wˉki\bar{c}^{i}_{k},\bar{w}^{i}_{k} in the segments connecting ck+1ic^{i}_{k+1} with ckic^{i}_{k} and wk+1iw^{i}_{k+1} with wkiw^{i}_{k}, respectively. Notice now that the uniform bounds of Lemma 2.1 and the relation (1.3) imply that as NN gets large

The term Op(N−2)O_{p}\left(N^{-2}\right) Recall that when we write Z=Op(b)Z=O_{p}(b) we mean that Z/bZ/b is stochastically bounded. is a result of f∈Cb2f\in C^{2}_{b}, the bounds from Lemma 2.1 as well as the moment bounds on (xk,yk)(x_{k},y_{k}) from Assumption 1.1. We next define the drift and martingale components:

Combining the different terms together, we then obtain

Next, we define the scaled versions of D1,N,D2,N,M1,ND^{1,N},D^{2,N},M^{1,N} and M2,NM^{2,N}:

The scaled empirical measure satisfies, as NN grows,

In fact as we show below M1,N(t)M^{1,N}(t) and M2,N(t)M^{2,N}(t) converge to in L2L^{2} as N→∞N\rightarrow\infty.

Let FkN\mathcal{F}_{k}^{N} be the σ−\sigma-algebra generated by (c0i,w0i)i=1N(c^{i}_{0},w^{i}_{0})_{i=1}^{N} and (xj,yj)j=0k−1(x_{j},y_{j})_{j=0}^{k-1}. If j>kj>k, then

Let πN\pi^{N} be the probability measure of a convergent subsequence of (μN)0≤t≤T\left(\mu^{N}\right)_{0\leq t\leq T}. Each πN\pi^{N} takes values in the set of probability measures \mathcal{M}\big{(}D_{E}([0,T])\big{)}. Relative compactness, proven in Section 2, implies that there is a subsequence πNk\pi^{N_{k}} which weakly converges. We must prove that any limit point π\pi of a convergent subsequence πNk\pi^{N_{k}} will satisfy the evolution equation (1.7).

Let πNk\pi^{N_{k}} be a convergent subsequence with a limit point π\pi. Then π\pi is a Dirac measure concentrated on μˉ∈DE([0,T])\bar{\mu}\in D_{E}([0,T]) and μˉ\bar{\mu} satisfies the measure evolution equation (1.7).

Then, by the proof of Lemma 3.1, we obtain for large NN

Since F(⋅)F(\cdot) is continuous and F(μN)F(\mu^{N}) is uniformly bounded (due to the uniform boundedness results of Section 2),

It remains to prove that the evolution equation (1.7) has a unique solution. This is the content of Section 4.

Uniqueness

We prove uniqueness of a solution to the evolution equation (1.7). We will set up a Picard type of iteration and prove that it has a unique fixed point through a contraction mapping. We start by noticing that we can write

We remark here that a solution to (4.1), μˉ⋅\bar{\mu}_{\cdot}, is associated to the nonlinear random process ZtZ_{t} (see for example ) satisfying the random ordinary differential equation (ODE)

This ODE is random due to the random initial data.

It is clear that if (μt)t∈[0,T](\mu_{t})_{t\in[0,T]} is a fixed point of HH, then Law(Zt)=Ht(μ⋅)\text{Law}(Z_{t})=H_{t}(\mu_{\cdot}) is a solution to (4.1). Conversely, if (Zt)t∈[0,T](Z_{t})_{t\in[0,T]} is a solution to (4.2) then its law will be a fixed point of HH, implying that Law(Zt)=Ht(μ)\text{Law}(Z_{t})=H_{t}(\mu). In addition, if μ\mu is a weak measure valued solution to (4.1), then it must be a fixed point of HH and thus satisfy (4.2), proving our result.

Lemma 4.1 shows that there is regularity in time and it also provides us with some useful a-priori uniform bounds.

Let 1≤p≤41\leq p\leq 4 and T<∞T<\infty be given. Then, there are constants C1,C2,C3<∞C_{1},C_{2},C_{3}<\infty, depending on pp, such that

and for every 0≤s≤t≤T0\leq s\leq t\leq T we have that

Let’s examine ctc_{t} first and establish a bound on its growth. The constant CC may change from line to line and it may also depend upon the final time TT and on pp.

Therefore, by Gronwall’s inequality, there exists a constant C2<∞C_{2}<\infty such that

for 0≤s≤T0\leq s\leq T. Therefore, returning to (4.4) and recalling Assumption 1.1 we get that uniformly in t∈[0,T]t\in[0,T], there exist constants C1,C2<∞C_{1},C_{2}<\infty such that

and the claimed bound follows by taking supremum over all t∈[0,T]t\in[0,T], expectation and using the previously derived uniform bound for ctc_{t}. Let us now prove the second statement of the lemma. Similarly to the calculations above and using the uniform moment bounds on ctc_{t} and wtw_{t} together with Assumption 1.1, we have

For m,m′∈MTm,m^{\prime}\in M_{T} and p≥1p\geq 1 define the metric

where P(m,m′)P(m,m^{\prime}) is the set of probability measures on CT×CTC_{T}\times C_{T} such that the marginal distributions are mm and m′m^{\prime}, respectively.

Now we show existence and uniqueness of a fixed point Law(ct,wt)\text{Law}(c_{t},w_{t}) for the mapping HH, as defined via (4.5). If a solution to (4.2) exists, then it must be a fixed point of HH (defined via equation (4.5)). This is an immediate consequence of Lemma 4.1. Therefore, if HH has a unique solution, there can be at most one solution to (4.2). If (4.2) has at most one solution, (4.1) has at most one solution. Therefore, if HH has a unique fixed point, this proves uniqueness for (4.1).

Due to Lemma 4.1 we need only to consider the space of measures MTM_{T} that have bounded moments up to order p=4p=4. By known results, see for example , the space of measures with p=4p=4 finite moments endowed with the DT,4D_{T,4} metric is complete and separable. Due to closedness, the space of measures with bounded moments of order four is a complete and separable metric space when endowed with the Wasserstein metric DT,4D_{T,4}. Therefore, in the arguments below we work with the space of measures that have bounded the first four moments and we consider the metric DT,4D_{T,4}. We will show that there is a unique fixed point by proving a contraction.

Lemma 4.2 shows that for a large enough bound, H(m)H(m) maps from a subspace of bounded moments to the same subspace of bounded moments.

Assume that the measure mm is such that ⟨sup⁡0≤t≤T(∣ct∣4+∥wt∥4),m⟩<K\left\langle\sup_{0\leq t\leq T}(|c_{t}|^{4}+\left\lVert w_{t}\right\rVert^{4}),m\right\rangle<K (where K<∞K<\infty will be chosen below). Using the same steps as in Lemma 4.1, we can show that for some T1<TT_{1}<T (to be chosen later),

We can now prove a contraction and then apply the Banach fixed-point theorem to prove that there is a unique fixed point.

For two elements m1,m2∈MTm^{1},m^{2}\in M_{T}, let us set Law(Y⋅i)=Law((c⋅i,w⋅i))=H(m⋅i)\text{Law}(Y^{i}_{\cdot})=\text{Law}((c^{i}_{\cdot},w^{i}_{\cdot}))=H(m^{i}_{\cdot}) for t∈[0,T]t\in[0,T] with i=1,2i=1,2. So, let (ct1,wt1)(c_{t}^{1},w_{t}^{1}) satisfying (4.5) with m=m1m=m^{1} and (ct2,wt2)(c_{t}^{2},w_{t}^{2}) satisfying (4.5) with m=m2m=m^{2}. The processes (ct1,wt1)(c_{t}^{1},w_{t}^{1}) and (ct2,wt2)(c_{t}^{2},w_{t}^{2}) have the same initial conditions. That is,

We now prove a contraction for the mapping HH for some 0<T0<T0<T_{0}<T. By definition, (ct1,wt1)(c_{t}^{1},w_{t}^{1}) and (ct2,wt2)(c_{t}^{2},w_{t}^{2}) have marginal distributions H(m1)H(m^{1}) and H(m2)H(m^{2}), respectively, on the time interval [0,T0][0,T_{0}]. Once this is proven, we can extend this to the entire interval [0,T][0,T] since T0T_{0} is not affected by the input measures m1,m2m^{1},m^{2} or by which subinterval of [0,T][0,T] we are considering. We have the following lemma.

Let m1,m2∈MTm^{1},m^{2}\in M_{T} and T<∞T<\infty. Then, there exist constants C1,C2<∞C_{1},C_{2}<\infty that may depend on TT such that

for any 0<t<T0<t<T. In addition, if μˉ(0,dc,dw)\bar{\mu}(0,dc,dw) has compact support, there exists a constant C<∞C<\infty that may depend on TT such that

First, let’s address the mean-field term. Recall that σ′(⋅)\sigma^{\prime}(\cdot) is bounded and that π(dx,dy)\pi(dx,dy) has bounded marginal moments via Assumption 1.1. Therefore, for 0≤t≤T0\leq t\leq T,

We next bound the term \bigg{|}\int_{0}^{t}\int_{\mathcal{X}\times\mathcal{Y}}\left\langle c^{\prime}_{s}\sigma(w^{\prime}_{s}x),m^{2}-m^{1}\right\rangle\sigma(w_{s}^{1}\cdot x)\pi(dx,dy)ds\bigg{|}. We have that

Let the random variables (cs2,′,ws2,′)(c_{s}^{2,^{\prime}},w_{s}^{2,^{\prime}}) have marginal distribution m2m^{2} and (cs1,′,ws1,′)(c_{s}^{1,^{\prime}},w_{s}^{1,^{\prime}}) have marginal distribution m1m^{1}. Then, for 0≤s≤T0\leq s\leq T,

where again Assumption 1.1 was used for the moment bounds of π(dx,dy)\pi(dx,dy). The inequality holds for any joint distribution γ(m1,m2)\gamma(m^{1},m^{2}) of m1m^{1} and m2m^{2}. Then, the auxiliary calculations provided in Appendix A show that (4.6) can be bounded in terms of Ds,4(m1,m2)D_{s,4}(m^{1},m^{2}):

Thus, we overall get that there is a constant C<∞C<\infty such that

Similar calculations also give the necessary bound for ∥wt1−wt2∥\parallel w^{1}_{t}-w^{2}_{t}\parallel. For completeness, the details are provided in Appendix B.

Hence, for 0≤s≤T0\leq s\leq T, we have the bound

Setting for notational convenience Zs=∣cs2−cs1∣+∥ws2−ws1∥Z_{s}=|c_{s}^{2}-c_{s}^{1}|+\parallel w_{s}^{2}-w_{s}^{1}\parallel, the latter relation gives

where we used the fact that u↦Du,2(m1,m2)u\mapsto D_{u,2}(m^{1},m^{2}) is monotonically increasing.

Now, note that ∣cs1∣|c_{s}^{1}| can be bounded in terms of ∣c01∣|c_{0}^{1}|, the initial condition. In particular, using the boundedness of σ(⋅)\sigma(\cdot), the bound on ∣⟨Gs,x,m1⟩∣|\left\langle G_{s,x},m^{1}\right\rangle|, the moments bounds for the distribution π(dx,dy)\pi(dx,dy), and the fact that 0≤t≤T<∞0\leq t\leq T<\infty, we get for some constant C<∞C<\infty that changes from line to line

This bound holds for any 0≤t≤T0\leq t\leq T. Then,

Raising this to the power four gives for some constants C1,C2<∞C_{1},C_{2}<\infty different than before

Next, we take expectation and apply the Cauchy-Schwartz inequality on the right hand side. We obtain

The latter concludes the proof due to Assumption 1.1.

By Assumption 1.1 we have that there exists a 0<q<∞0<q<\infty such that the moment generating function exists, i.e.

Lemma 4.3 immediately proves there is a contraction on the interval [0,T0][0,T_{0}]. Indeed,

Then, choose T0T_{0} such that C21/4CM1/8T0<1C_{2}^{1/4}C_{M}^{1/8}T_{0}<1, C1T0<qC_{1}T_{0}<q,and T0≤T1T_{0}\leq T_{1}, where T1T_{1} is from Lemma 4.2. That is, we choose T0<min⁡{1C21/4CM1/8,qC1,T1}.T_{0}<\min\left\{\frac{1}{C_{2}^{1/4}C_{M}^{1/8}},\frac{q}{C_{1}},T_{1}\right\}.

If T0<min⁡{1C21/4CM1/8,qC1,T1}T_{0}<\min\left\{\frac{1}{C_{2}^{1/4}C_{M}^{1/8}},\frac{q}{C_{1}},T_{1}\right\}, then DT0,4(H(m1),H(m2))≤kDT0,4(m1,m2)D_{T_{0},4}(H(m^{1}),H(m^{2}))\leq kD_{T_{0},4}(m^{1},m^{2}) for k<1k<1 and we have proven uniqueness on the sub-interval [0,T0][0,T_{0}] (via the Banach fixed-point theorem).

In fact, this directly proves our next Lemma 4.4 regarding uniqueness of the limit point over the entire interval [0,T][0,T].

Let T<∞T<\infty. The mapping HT=(F∘F)TH_{T}=(F\circ F)_{T} has a unique fixed point.

By Lemmas 4.2, 4.3 and the Banach fixed-point theorem we readily obtain that there is 0<T0<∞0<T_{0}<\infty such that HT0(m)H_{T_{0}}(m) will be a contraction map leading to (4.5) having a unique solution on [0,T0][0,T_{0}]. We then extend this construction to the whole interval [0,T][0,T] by dividing the interval [0,T][0,T] into sub-intervals [0,T0],[T0,2T0],…,[T−T0,T][0,T_{0}],[T_{0},2T_{0}],\ldots,[T-T_{0},T]. In each sub-interval, it can be shown that the solution is unique by proving a contraction as was done in Lemma 4.3, which can be done as T0T_{0} can be always taken to be of the same magnitude, i.e. it does not depend on which sub-interval is being examined. This concludes the proof. ∎

Proof of the Main Results

We now collect the results to prove Theorem 1.2, Corollary 1.4, and Theorem 1.6.

Let πN\pi^{N} be the probability measure corresponding to μN\mu^{N}. Each πN\pi^{N} takes values in the set of probability measures \mathcal{M}\big{(}D_{E}([0,T])\big{)}. Relative compactness, proven in Section 2, implies that every subsequence πNk\pi^{N_{k}} has a further sub-sequence πNkm\pi^{N_{k_{m}}} which weakly converges. Section 3 proves that any limit point π\pi of πNkm\pi^{N_{k_{m}}} will satisfy the evolution equation (1.7). Section 4 proves that the solution of the evolution equation (1.7) is unique. Therefore, by Prokhorov’s Theorem, πN\pi^{N} weakly converges to π\pi, where π\pi is the distribution of μˉ\bar{\mu}, the unique solution of (1.7). That is, μN\mu^{N} converges in distribution to μˉ\bar{\mu}. ∎

The result follows from applying integration by parts to (1.7) using the assumption that p(t,c,w)→0p(t,c,w)\rightarrow 0 as ∣c∣,∥w∥→∞|c|,\parallel w\parallel\rightarrow\infty. We also note that if a solution exists to (1.4), then it is unique due to the uniqueness of (1.7). ∎

Conclusion

In this paper we develop a law of large numbers result for neural networks with a single hidden layer as the number of hidden units and stochastic gradient descent iterations grow. The limiting distribution of the parameters is rigorously shown to satisfy an explicitly stated first-order nonlinear deterministic PDE, in the form of a measure evolution equation. The limiting PDE is a function of the inputs to the model, such as the learning rate, activation function, and distribution of the observed data. A numerical study on the well-known MNIST dataset illustrates the theoretical results of this paper. In related work which builds upon the results in this paper, a central limit theorem has been proven for single-layer neural networks in and a law of large numbers has been proven for deep neural networks in .

Appendix A Proof of (4.7)

We will show that (4.6) can be bounded in terms of Ds,4(m1,m2)D_{s,4}(m^{1},m^{2}). For notational convenience, define Zs:=∣cs2,′−cs1,′∣+∥ws2,′−ws1,′∥Z_{s}\vcentcolon=|c_{s}^{2,^{\prime}}-c_{s}^{1,^{\prime}}|+\parallel w^{2,^{\prime}}_{s}-w^{1,^{\prime}}_{s}\parallel.

The sixth line uses the Cauchy-Schwartz inequality and Young’s inequality. The seventh line uses the facts that m1m^{1} and m2m^{2} have bounded fourth order moments. The eighth line uses Young’s inequality. We have also used the facts that (z∧1)4=z4∧1(z\wedge 1)^{4}=z^{4}\wedge 1 and (Kz)∧1≤K(z∧1)(Kz)\wedge 1\leq K(z\wedge 1) when z≥0z\geq 0 and K≥1K\geq 1.

Since this inequality holds for any joint distribution γ(m1,m2)\gamma(m^{1},m^{2}), we have that (4.7) holds.

Appendix B Proof of (4.8)

Due to m1m^{1} having bounded moments, ∣⟨Gs,x,m1⟩∣<C|\left\langle G_{s,x},m^{1}\right\rangle|<C (see Section 4 for similar calculations). Due to Assumption 1.1 on σ\sigma,

Using these inequalities and the bounded moments of π(dx,dy)\pi(dx,dy), we can calculate the upper bound

Using the same approach as in the bound for (4.6), see Appendix A, we have the bound

References