Mean-field Analysis of Piecewise Linear Solutions for Wide ReLU Networks

Alexander Shevchenko, Vyacheslav Kungurtsev, Marco Mondelli

Introduction

Neural networks are the key ingredient behind many recent advances in machine learning. They achieve state-of-the-art performance on various practical tasks, such as image classification [HZRS16] and synthesis [BDS19], natural language processing [VSP+17] and reinforcement learning [SHM+16]. However, these results would not be possible without computational advances which enabled the training of highly overparameterized models with billions of weights. Such complex networks are capable of extracting more sophisticated patterns from the data than their less parameter-heavy counterparts. Nonetheless, in the view of classical learning theory, models with a large number of parameters are prone to over-fitting [VLS11]. Contrary to the conventional statistical wisdom, overparameterization turns out to be a rather desirable property for neural networks. This was even observed in a classical paper by [Bar98], which demonstrated that in the overparameterized setting, the size of the network is less important than the magnitude of the weights. More recently, phenomena such as double descent [BHMM19, SGd+19, NKB+20] and benign overfitting [BLLT20, LZG21, BMR21] suggest that understanding the generalization properties of overparameterized models lies beyond the scope of the usual control of capacity via the size of the parameter set [NTS15].

One way to explain the generalization capability of large neural networks lies in characterizing the properties of solutions found by stochastic gradient descent (SGD). In other words, the question is whether the optimization procedure is implicitly selective, i.e., it finds the functionally simple solutions that exhibit superior generalization ability in comparison to other candidates with roughly the same value of the empirical risk. For instance, [CB20] consider shallow networks minimizing the logistic loss, and show that SGD converges to a max-margin classifier on a certain functional space endowed with the variation norm. In the machine learning literature, it has been suggested that large margin classifiers inherently exhibit better performance on unseen data [BMR21, CV95].

In this work, we develop a novel approach towards understanding the implicit bias of gradient descent methods applied to overparameterized neural networks. In particular, we focus on the following key questions:

Once stochastic gradient descent has converged, how does the distribution of the weights of the neural network look like? What functional properties of the resulting solution are induced by this stationary distribution? Can we quantitatively characterize the trade-off between the complexity of the solution and the size of the training data in the overparameterized regime?

To answer these questions, we consider training a wide two-layer ReLU (rectified linear unit) network for univariate regression, and we focus on the mean-field regime [MMN18, RVE18, CB18, SS20]. In this regime, the idea is that, as the number of neurons of the network grows, the weights obtained via SGD are close to i.i.d. samples coming from the solution of a certain Wasserstein gradient flow. As a consequence, the output of the neural network approaches the following quantity:

Here, xx is the input, σ∗\sigma^{*} denotes the activation function, and ρ\rho is the solution of the Wasserstein gradient flow minimizing the free energy

\beta=+\infty, while in (c) we have a sufficiently large regularization coefficient, which does not allow the network to fit the training data perfectly. Note that the piecewise linear solution exhibits tangent changes also at points different from the training data. Furthermore, the number of “knot” points may differ from the minimum required to fit the data: for instance, in (a) the minimum amount of tangent changes is 11, but the solution has two of them. A number of works has exploited this connection to provide a rigorous justification to various phenomena attributed to neural networks. [MMN18, MMM19] give global convergence guarantees for two-layer networks by studying the energy dissipation along the trajectory of the flow. The paper by [CB18] takes a different route and exploits a lifting property enabled by a certain type of initialization and regularization, and [JMM20] put forward an argument based on displacement convexity. [NP20] and [AOY19] tackle the multi-layer case, and, in particular, [NP20] establish convergence guarantees for a three-layer network. [FLYZ21] introduce a mean-field dynamics capturing the evolution of the features (instead of the network parameters) and show global convergence of ResNet type of architectures. [SM20] prove two properties commonly observed in practice (see e.g. [GIP+19, DVSH18, KWL+19]), namely dropout stability and mode connectivity, for multi-layer networks trained under the mean-field regime. [DBDFS20] consider different scalings of the step size of SGD, and identify two regimes under which different mean-field limits are obtained. [WTS+19] show that the gradient flow for unregularized objectives forces the neurons of a two-layer ReLU network to concentrate around a subset of the training data points.

In this paper, we take a mean-field view to show that SGD is biased towards functionally simple solutions, namely, piecewise linear functions. Our idea is to analyze the stationary distribution ρ∗\rho^{*} minimizing the free energy (1.1). We show that, in the low temperature regime (β→∞\beta\rightarrow\infty), the estimator’s curvature vanishes everywhere except for a certain cluster set. More precisely, for each interval between two consecutive training inputs, aside for a set of small measure, the second derivative vanishes, i.e.,

Furthermore, we provide a characterization of the cluster set and show that its measure vanishes while it concentrates around at most 3 points per interval. Ultimately, this analysis guarantees that, in the regime of decreasing temperature (corresponding to a small noise injected in the gradient updates), the solution found by SGD is piecewise linear. Our main contribution can be summarized in the following informal statement:

Under the low temperature regime, i.e., β→∞\beta\rightarrow\infty, the estimator obtained by training a two-layer ReLU network via noisy-SGD converges to a piecewise linear solution. Furthermore, the number of “knot” points – i.e., points at which distinct linear pieces connect – between two consecutive training inputs is at most 3.

Let us remark on a few important points. In the overparameterized regime, the number of neurons NN is significantly larger than the number of training samples MM, i.e., N≫MN\gg M. The output of the two-layer ReLU network is a linear combination of NN ReLU units, hence the function implemented by the network is clearly piecewise linear with O(N)\mathcal{O}(N) knot points. Here, we show that the number of knot points is actually O(M)≪O(N)\mathcal{O}(M)\ll\mathcal{O}(N). Our analysis applies for both constant (λ→λˉ>0\lambda\to\bar{\lambda}>0) and vanishing (λ→0\lambda\rightarrow 0) regularization, and it does not require a specific form for the initialization of the parameters of the networks (as long as some mild technical conditions are satisfied).

Organization of the paper. The rest of the paper is organized as follows. In Section 2, we review the related work and a more detailed comparison is deferred to Section 8. In Section 3, we provide some preliminaries, including a background on the mean-field analysis in Section 3.1. Our main results are stated in Section 4 and proved in Section 5. In Section 6, we provide an example of a dataset for which the estimator found by SGD has a knot at a location different from the training inputs. We validate our findings with numerical simulations for different regression tasks in Section 7. We conclude and discuss some future directions in Section 9. Some of the technical lemmas and the corresponding proofs are deferred to Appendix A.

Related Work

The line of works [WTS+19, JM20] shows that, in the lazy training regime [COB19, JGH18] and for a uniform initialization, SGD converges to a cubic spline interpolating the data. Furthermore, for multivariate regression in the lazy training regime, [JM20] proved that the optimization procedure is biased towards solutions minimizing the 2-norm of the Radon transform of the fractional Laplacian. Similar results (although without the connection to the training dynamics) are obtained in [SESS19, OWSS20], which analyze the solutions with zero loss and minimum norm of the parameters. [EP21] develop a convex analytic framework to explain the bias towards simple solutions. In particular, an explicit characterization of the minimizer is provided, which implies that an optimal set of parameters yields linear spline interpolation for regression problems involving one dimensional or rank-one data. [CFW+21] show that, for overparameterized models, the lower degree spherical harmonics are easier to learn. This observation comes from the fact that, in the lazy training regime, the convergence occurs faster along the directions given by the top eigenfunctions of the neural tangent kernel. Classification with linear networks on separable data is considered in [SHN+18], where it is shown that gradient descent converges to the max-margin solution. This max-margin behavior is demonstrated in [CB20] for non-linear wide two-layer networks using a mean-field analysis. In particular, in the mean-field regime, optimizing the logistic loss is equivalent to finding the max-margin classifier in a certain functional space. The paper by [ZXLM20] focuses on the lazy training regime, and it shows that the optimization procedure finds a solution that fits the data perfectly and is closest to the starting point of the dynamics in terms of Euclidean distance in the parameter space. [WZBG21] characterize the directional bias of GD and SGD in the case of moderate (but annealing) learning rate.

The behavior of SGD with label noise near the zero-loss manifold is studied in [BGVV20]. Here, it is shown that the training algorithm implicitly optimizes an auxiliary objective, namely, the sum of squared norms of the gradients evaluated at each training sample. This allows the authors of [BGVV20] to show that SGD with label noise for a two-layer ReLU network with skip-connections is biased towards a piecewise linear solution. In particular, this piecewise linear solution has the minimum number of tangent changes required to fit the data. [WTS+19] consider the Wasserstein gradient flow on a certain space of reduced parameters (in polar coordinates), and show that the points where the solution changes tangent are concentrated around a subset of training examples. A trade-off between the scale of the initialization and the training regime is also provided in [WTS+19, SPD+20]. [MBG18] prove that the gradient flow enforces the weight vectors to concentrate at a small number of directions determined by the input data. Through the lens of spline theory, [PN20b] explain that a number of best practices used in deep learning, such as weight decay and path-norm, are connected to the ReLU activation and its smooth counterparts. [NLB+19] suggest a novel complexity measure for neural networks that provides a tighter generalization for the case of ReLU activation.

Preliminaries

where the integral is taken over the support of ρ\rho. For the forthcoming analysis, a certain regularity is required for the weight distribution ρ\rho. In particular, the weight distribution is restricted to a set of admissible densities

stands for the differential entropy of ρ\rho, which is equal to −∞-\infty if the distribution ρ\rho is singular. In this view, the distributional dynamics (3.1) is the Wasserstein gradient flow that minimizes the free energy

over the set of admissible densities K\mathcal{K}. Furthermore, this free energy has a unique minimizer and the solution of (3.1) converges to it as t→∞t\rightarrow\infty:

The unique minimizer ρσ∗∗\rho^{*}_{\sigma^{*}} is absolutely continuous, and it has the Gibbs form

where Zσ∗(β,λ)Z_{\sigma^{*}}(\beta,\lambda) is the normalization constant, also referred to as partition function.

2 Approximation of the ReLU Activation

Let us elaborate on the properties which σ∗\sigma^{*} should satisfy so that the results of Section 3.1 hold. First, the distributional dynamic (3.1) is known to be well-defined for a smooth and bounded potential Ψλ\Psi_{\lambda}. In particular, it suffices to choose a bounded, Lipschitz σ∗\sigma^{*} with Lipschitz gradient, see assumptions A2-A3 in [MMN18]. Furthermore, the minimizer of the free energy (3.5) exists and has a Gibbs form even for non-smooth potentials and, in particular, it suffices that σ∗\sigma^{*} is bounded and Lipschitz (this allows the first derivative to be discontinuous), see Lemmas 10.2-10.4 in [MMN18].

In the case of a ReLU activation, the corresponding σ∗\sigma^{*} has the following form

which does not satisfy some of the aforementioned conditions. The first salient problem is the lack of continuity of the derivative at zero. This issue can be dealt with by considering a soft-plus activation with scale τ\tau:

Notice that, as τ\tau grows large, we have that (⋅)τ→(⋅)+(\cdot)_{\tau}\rightarrow(\cdot)_{+}. Another issue is that the function σ∗(x,θ)\sigma^{*}(x,{\bm{\theta}}) is not Lipschitz in the parameters θ{\bm{\theta}}, and it is unbounded. This problem can be solved by an appropriate truncation applied to the parameter aa of the activation. The truncation should be Lipschitz and smooth for the dynamics to be well-defined.

We define the smooth mm-truncation (⋅)+m(\cdot)_{+}^{m} of the ReLU activation as

Finally, we define the smooth mm-truncation (⋅)τm(\cdot)_{\tau}^{m} of the softplus activation as

Notice that, for τ≥1\tau\geq 1, the soft-plus activation can be sandwiched as follows:

In order to establish the continuity of a certain limit and smoothness properties, we also pick ϕτ,m\phi_{\tau,m} such that the smooth mm-truncation of soft-plus activation satisfies a similar bound:

At this point, we remark that the activation (θ,x)↦aτ,m(wτ,mx+b)τm({\bm{\theta}},x)\mapsto a^{\tau,m}(w^{\tau,m}x+b)^{m}_{\tau} satisfies all the conditions necessary for the results of Section 3.1 to hold. In what follows, we will also use the activation (θ,x)↦am(wmx+b)τm({\bm{\theta}},x)\mapsto a^{m}(w^{m}x+b)^{m}_{\tau} as an auxiliary object. This map is not smooth, but it satisfies all the assumptions required for the existence of a free energy minimizer ρσ∗∗\rho^{*}_{\sigma^{*}}. We also note that the truncation of the parameter ww might seem unnatural (we are truncating the ReLU activation anyway), but it simplifies our analysis. In particular, it allows us to establish a connection between the derivatives (w.r.t. the input xx) of the predictor implemented by the solution of the flow (3.1) and the same quantity evaluated on the minimizer, as tt grows large.

We will use the following notation for the values of the risks corresponding to different activations

Here, Riτ,mR^{\tau,m}_{i} and RimR^{m}_{i} represent the rescaled error on the ii-th training sample, and Rτ,mR^{\tau,m} and RmR^{m} are the standard expected square losses. In this way, we can write the Gibbs minimizers in a compact form, namely,

where Zτ,m(β,λ)Z_{\tau,m}(\beta,\lambda) and Zm(β,λ)Z_{m}(\beta,\lambda) denote the partition functions.

Main Results

Before presenting the main results, let us introduce the notion of a cluster set. This set allows us to identify the locations of the knot points of an estimator function that is implemented by the neural network. In particular, we consider the second derivative of the predictor evaluated at the Gibbs distribution with activation (θ,x)↦aτ,m(wτ,mx+b)τm({\bm{\theta}},x)\mapsto a^{\tau,m}(w^{\tau,m}x+b)^{m}_{\tau}, for large τ\tau, i.e.,

Then, the cluster set is associated to the inputs on which the quantity (4.1) might grow unbounded in absolute value, in the low temperature regime (β−1→0\beta^{-1}\rightarrow 0). Intuitively, this indicates that on some points of the cluster set, the tangent of the predictor changes abruptly, resulting in “knots”. We denote the cluster set by Ω(m,β,λ)\Omega(m,\beta,\lambda), and we define it below.

Let I\mathcal{I} be the set of prediction intervals, i.e.,

where L>max⁡{∣x1∣,⋯ ,∣xM∣}L>\max\{|x_{1}|,\cdots,|x_{M}|\} is any fixed positive constant independent of (τ,m,β,λ)(\tau,m,\beta,\lambda). For each Ij:=[xj,xj+1]∈II_{j}:=[x_{j},x_{j+1}]\in\mathcal{I}, the intersection of the cluster set with the prediction interval IjI_{j} is denoted by Ω‾j(m,β,λ)\overline{\Omega}_{j}(m,\beta,\lambda), i.e.,

Thus, in order to define the cluster set Ω(m,β,λ)\Omega(m,\beta,\lambda), it suffices to give the definition of Ω‾j(m,β,λ)\overline{\Omega}_{j}(m,\beta,\lambda). To do so, consider the second-degree polynomials fj(x)f^{j}(x) and fj(x)f_{j}(x) given by

Here, if the summation set is empty (e.g., for A0A_{0}), the corresponding coefficient is equal to zero. Then, the set Ω‾j(m,β,λ)\overline{\Omega}_{j}(m,\beta,\lambda) is defined as the union of the non-positive sets of the second-degree polynomials fj(x)f^{j}(x) and fj(x)f_{j}(x):

We now provide an informal explanation on how the non-positive sets of the second-degree polynomials fj(x)f^{j}(x) and fj(x)f_{j}(x) come into play. A central object of interest in our analysis is the second derivative of the estimator implemented by the neural network, and our strategy is to bound its magnitude by a particular Gaussian-like integral. This integral does not diverge as long as the corresponding covariance matrix is non-degenerate, i.e., it has strictly positive eigenvalues. In this view, the non-positive sets of the polynomials fj(x)f^{j}(x) and fj(x)f_{j}(x) precisely characterize the inputs xx for which this covariance matrix is degenerate. Hence, for such inputs xx, this upper bound on the second derivative of the estimator diverges, which implies that the predictor may have a “knot”.

Since fj(x)f^{j}(x) and fj(x)f_{j}(x) are second-degree polynomials, the set Ω‾j(m,β,λ)\overline{\Omega}_{j}(m,\beta,\lambda) can be always written as the union of at most 33 intervals. Moreover, Ω‾j(m,β,λ)\overline{\Omega}_{j}(m,\beta,\lambda) depends only on the errors of the estimator at the training points and on the penalty parameter λ\lambda. Thus, if one has access to the value of the errors at each training point for the optimal estimator, i.e., Rim(ρm∗)R^{m}_{i}(\rho^{*}_{m}), an explicit expression for the cluster set can be readily obtained. Figure 3 shows three different configurations of the polynomials fj(x)f^{j}(x) and fj(x)f_{j}(x), together with the corresponding cluster set.

The size of the set Ω‾j(m,β,λ)\overline{\Omega}_{j}(m,\beta,\lambda) can be controlled explicitly as a function of the parameters (m,β,λ)(m,\beta,\lambda). More formally, in Lemma 5.3, we show that the Lebesgue measure of Ω‾j(m,β,λ)\overline{\Omega}_{j}(m,\beta,\lambda) can be upper bounded as

where C>0C>0 denotes a numerical constant independent of (τ,m,β,λ)(\tau,m,\beta,\lambda) and we have made the following assumption:

τ≥1\tau\geq 1, \beta\geq\max\Big{\{}C_{1},\frac{1}{\lambda},\frac{1}{\lambda}\log\frac{1}{\lambda}\Big{\}}, m>C2m>C_{2} and λ<C3\lambda<C_{3} for some numerical constants C1,C2,C3>0C_{1},C_{2},C_{3}>0.

In particular, (4.7) implies that the cluster set vanishes as β→∞\beta\rightarrow\infty and m=eΘ(β)m=e^{\Theta(\beta)}. Therefore, as Ω‾j(m,β,λ)\overline{\Omega}_{j}(m,\beta,\lambda) is the union of at most 33 intervals, the cluster set concentrates on at most 3 points per prediction interval.

We note that our use of A1 throughout the sequel is with the flexibility of C1C_{1}, C2C_{2}, and C3C_{3} in mind; we are interested in the behavior as mm and β\beta grow large, so we permit liberty in the determination of the constants implying the formal statements we intend to show.

A key step of our analysis (cf. Theorem 1) consists in showing that, outside the cluster set, the absolute value of the second derivative vanishes. Our bound on this absolute value is connected to the speed of decay to zero of the polynomials fj(x)f^{j}(x) and fj(x)f_{j}(x), as the input xx approaches the cluster set. In order to establish a quantitative bound for such a decay, we introduce an auxiliary quantity, namely, a critical point, that is associated to each input point outside of the cluster set. Given the polynomial fj(⋅)f^{j}(\cdot) and the input x∈Ij∖Ωj(m,β,λ)x\in I_{j}\setminus\Omega^{j}(m,\beta,\lambda), the critical point xcx_{c} associated to xx is defined below.

Figure 4 provides a visualization of the critical point associated to xx for several configurations of fjf^{j}. For the polynomial fj(⋅)f_{j}(\cdot) and an input x∈Ij∖Ωj(m,β,λ)x\in I_{j}\setminus\Omega_{j}(m,\beta,\lambda), the critical point xˉc\bar{x}_{c} is defined in a similar fashion. In this view, we show in Lemma 5.5 that the following lower bounds on fj,fjf^{j},f_{j} hold for x∈Ij∖Ω‾(m,β,λ)x\in I_{j}\setminus\overline{\Omega}(m,\beta,\lambda),

The coefficients γ1,γ2,γ3,γ4>0\gamma_{1},\gamma_{2},\gamma_{3},\gamma_{4}>0 satisfy the following condition: either γ1>ε\gamma_{1}>\varepsilon or γ2>ε\gamma_{2}>\varepsilon, and either γ3>ε\gamma_{3}>\varepsilon or γ4>ε\gamma_{4}>\varepsilon, where ε>0\varepsilon>0 is a numerical constant independent of the choice of (m,β,λ)(m,\beta,\lambda).

At this point, we are ready to state our upper bound on the second derivative outside the cluster set.

Assume that condition A1 is satisfied and that m>eK1βm>e^{K_{1}\beta} for some numerical constant K1>0K_{1}>0 independent of (τ,m,β,λ)(\tau,m,\beta,\lambda). Then, for each x∈Ij∖Ω‾j(m,β,λ)x\in I_{j}\setminus\overline{\Omega}_{j}(m,\beta,\lambda), the following upper bound on the second derivative holds

where the coefficient Cˉj(x)\bar{C}^{j}(x) is defined as

with Cj(x)C^{j}(x) and Cj(x)C_{j}(x) given by (4.8). Furthermore, the following upper-bound on the size of the cluster set holds

for some numerical constant K2>0K_{2}>0 independent of (τ,m,β,λ)(\tau,m,\beta,\lambda).

Some remarks are in order. First, the inequality (4.9) shows that, in the low temperature regime, the curvature vanishes outside the cluster set, and it also provides a decay rate. Second, we will upper bound the measure of the cluster set as in (4.7), thus the condition m>eK1βm>e^{K_{1}\beta} ensures that the upper bound (4.11) holds. Finally, the presence of the coefficient Cˉj(x)\bar{C}^{j}(x) is due to the fact that the second derivative can grow unbounded for points approaching the cluster set. Let us highlight that this growth is solely dictated by the distance to the cluster set, and it does not depend on (m,β,λ)(m,\beta,\lambda). In fact, (4.8) holds, where one of the coefficients in {γ1,γ2}\{\gamma_{1},\gamma_{2}\} and in {γ3,γ4}\{\gamma_{3},\gamma_{4}\} is lower bounded by a strictly positive constant independent of (m,β,λ)(m,\beta,\lambda).

Figure 5 provides some examples of piecewise linear solutions: (a) and (b) are admissible (in the sense of Definition 4.2), while (c) is not admissible, since it has two knots in the interior of the prediction interval and one located at the right endpoint. As mentioned before, the location of the knot points is associated with the limiting behaviour of the corresponding polynomials fj(x)f^{j}(x) and fj(x)f_{j}(x). For instance, consider the prediction interval [x2,x3]∈I[x_{2},x_{3}]\in\mathcal{I}. Then, the configuration of Figure 5a corresponds to the case described in Figure 3a. In fact, fjf^{j} has a negative leading coefficient, and its roots are converging to the end points of the interval. Moreover, fjf_{j} has positive curvature and the minimizer is located inside the interval. The same parallel can be drawn between Figure 5b and Figure 3c. Furthermore, one can verify that the situation described in Figure 5c cannot be achieved for any configuration of fj(x)f^{j}(x) and fj(x)f_{j}(x).

We are now ready to state our result concerning the structure of the function obtained from the Gibbs distribution ρτ,m∗\rho^{*}_{\tau,m}.

Assume that condition A1 is satisfied and that m>eK1βm>e^{K_{1}\beta}, where K1>0K_{1}>0 is a constant independent of (τ,m,β,λ)(\tau,m,\beta,\lambda). Then, given a set of prediction intervals I\mathcal{I}, there exists a family of admissible piecewise linear solutions {fm,β,λ}\{f_{m,\beta,\lambda}\} as per Definition 4.2, such that, for any I∈II\in\mathcal{I} and x∈Ix\in I, the following convergence result holds

The proof of Theorem 2 crucially relies on the fact that the second moment of ρτ,m∗\rho^{*}_{\tau,m} is uniformly bounded along the sequence βλ7/4→∞\beta\lambda^{7/4}\rightarrow\infty. In fact, the uniform bound on the second moment implies that the first derivatives of the predictors w.r.t. the input are uniformly bounded (even for points inside the cluster set), and therefore the sequence of predictors is equi-Lipschitz. This, in particular, allows us to show that the limit is well-behaved, as function changes can be controlled via Lipschitz bounds.

Let us clarify that Theorem 2 does not establish the uniqueness of the limit in (m,β,λ)(m,\beta,\lambda), i.e., that the limiting piecewise linear function is the same regardless of the subsequence. Our numerical results reported in Figures 1, 6b, 7 and 8 suggest that the limit is unique. However, a typical line of argument (see e.g. [JKO98]) would require the lower-semicontinuity of the free energy (which does not hold for m=∞m=\infty). Furthermore, even the uniqueness of the minimizer for β=∞\beta=\infty remains unclear in our setup. Nevertheless, let us point out that the sequence {ρτ,m∗}\{\rho^{*}_{\tau,m}\} is tight, since the second moments are uniformly bounded by Lemma A.6, and Proposition 2.3 in [HRŠS21] suggests that at least the cluster points of the sequence {ρτ,m∗}\{\rho^{*}_{\tau,m}\} as β→∞\beta\rightarrow\infty coincide with the set of minimizers of the limiting objective (β=∞\beta=\infty). Another piece of evidence comes from the fact that the annealed dynamics converges to the minimizers of the noiseless objective [Chi22]. We leave for future work the resolution of these issues.

We remark that providing a quantitative bound on the parameter τ\tau appears to be challenging. The current analysis relies on a dominated convergence argument which does not lead to an explicit convergence rate. Obtaining such a rate requires understanding the trade-off between the terms in the free energy (3.5) for varying τ\tau, and it is also left for future work.

Finally, by combining Theorem 2 with the mean-field analysis in [MMN18], we obtain the desired result on finite-width networks trained via noisy SGD in the low temperature regime.

where the limit in N,εN,\varepsilon is taken along any subsequence {(N,ε=εN)}\{(N,\varepsilon=\varepsilon_{N})\} with N/log⁡(N/εN)→∞N/\log\left(N/\varepsilon_{N}\right)\rightarrow\infty and εNlog⁡(N/εN)→0\varepsilon_{N}\log\left(N/\varepsilon_{N}\right)\rightarrow 0.

In words, Corollary 4.3 means that, at convergence, the estimator implemented by a wide two-layer ReLU network approaches a piecewise linear function, in the regime of vanishingly small noise. In fact, as τ,m→∞\tau,m\to\infty, the activation function σ∗(x,θ)=aτ,m(wτ,mx+b)τm\sigma^{*}(x,{\bm{\theta}})=a^{\tau,m}(w^{\tau,m}x+b)^{m}_{\tau} converges pointwise to the ReLU activation a(wx+b)+a(wx+b)_{+}. We also remark that our result holds for any initialization of the weights of the network, as long as some mild technical conditions are fulfilled (absolute continuity, sub-Gaussian tails, finite second moment and entropy).

Let us clarify some technical aspects of the statement of Corollary 4.3. The result holds for a particular sequence of minimizers, since some of the limits (t→∞t\rightarrow\infty, (N,ε−1)→∞(N,\varepsilon^{-1})\rightarrow\infty, and β→∞\beta\rightarrow\infty) are not interchangeable. Furthermore, it appears to be difficult to prove the same statement directly for the noiseless case (β=∞\beta=\infty). We also point out that the stochasticity of the gradient descent algorithm does not play a role in our analysis, since its impact is seen to be inconsequential by the usual concentration argument [MMN18] when passing to its non-stochastic counterpart.

As concerns the limit in tt, describing the dependence of the mixing time of the diffusion dynamics (3.1) on the temperature parameter β\beta is a cumbersome task. In particular, [GBEK04] show that an exponentially bad dependence could occur if the target function has multiple small risk regions. However, some recent studies show an exponentially fast convergence of the noisy dynamics under some reasonable but particular conditions on the objective landscape [Chi22, NWS22].

As concerns the limit in (N,ε)(N,\varepsilon), the analyses in [MMN18, MMM19] lead to an upper bound on the error term that, with probability at least 1−e−z21-e^{-z^{2}}, is given by

where a∨ba\lor b denotes the maximum between aa and bb. The exponential dependence of (4.12) in the time tt of the dynamics is a common drawback of existing mean-field analyses, and improving it is an open problem which lies beyond the scope of this work. Let us conclude by mentioning that the numerical results presented in Section 7 suggest that, in practical settings, the convergence to the limit occurs rather quickly in the various parameters.

Proof of the Main Results

To do so, in Lemma A.4 we prove that, as τ→∞\tau\rightarrow\infty, the sequence ρτ,m∗(θ)\rho^{*}_{\tau,m}({\bm{\theta}}) of minimizers of the free energy Fτ,m\mathcal{F}^{\tau,m} converges pointwise for all θ{\bm{\theta}} to a minimizer ρm∗(θ)\rho^{*}_{m}({\bm{\theta}}) of the free energy Fm\mathcal{F}^{m} with truncated ReLU activation. Then, a dominated convergence argument allows us to obtain (5.1). Next, in Lemma 5.7 we show that, as β→∞\beta\rightarrow\infty, the absolute value of the integral

can be made arbitrary small for all xx except those in the cluster set. The idea is that the absolute value of (5.2) can be bounded by a certain Gaussian integral, and the corresponding covariance matrix is well-defined everywhere except in the cluster set (see Lemmas 5.4 and 5.5). The definition of the cluster set (see (4.2)-(4)) together with the fact that the partition function of ρm∗\rho^{*}_{m} is uniformly bounded in mm (see Lemma 5.2) allows us to show that the cluster set concentrates on at most three points per interval as β→∞\beta\rightarrow\infty.

In Section 5.3, we show that the predictor evaluated at the Gibbs distribution ρτ,m∗\rho^{*}_{\tau,m} can be approximated arbitrarily well by an admissible piecewise linear solution (Theorem 2). First, via a Taylor argument, since the curvature vanishes, the estimator can be approximated by a linear function on each interval of I∖Ω(m,β,λ)\mathcal{I}\setminus\Omega(m,\beta,\lambda). Since the cluster set vanishes concentrating on at most three points per prediction interval, the predictor converges to an admissible piecewise linear solution. However, there is one technical subtlety to consider before reaching this conclusion. Namely, we must consider the possibility that the sequence of predictors experiences unbounded oscillations inside the cluster set, which might ultimately result in a discontinuous limit. Fortunately, this scenario is ruled out because the sequence ρτ,m∗\rho^{*}_{\tau,m} has uniformly bounded second moments. This fact in conjunction with the structure of the first derivative of the predictor yields the conclusion that the sequence of predictors is equi-Lipschitz, and therefore the limit is well-behaved.

Finally, the proof of Corollary 4.3 follows from similar arguments together with the application of the result established in [MMN18]. More specifically, first, the truncation of the parameter ww ensures that, as t→∞t\rightarrow\infty, the curvature of the predictor evaluated on the solution ρt\rho_{t} of the flow (3.1) converges pointwise in xx to the corresponding evaluation on the Gibbs distribution ρτ,m∗\rho^{*}_{\tau,m}. Next, following [MMN18], we couple the weights obtained after ⌊t/ε⌋\left\lfloor t/\varepsilon\right\rfloor steps of the SGD iteration (3.3) with NN i.i.d. particles with distribution ρt\rho_{t}, thus obtaining that the curvature of the SGD predictor converges to the curvature of the flow predictor. By using this coupling again, together with the fact that along the trajectory of the flow M(ρt)<CM(\rho_{t})<C (see [MMN18] or [JKO98]), we obtain a uniform bound on the second moment of the empirical distribution ρ^⌊t/ε⌋N\hat{\rho}^{N}_{\left\lfloor t/\varepsilon\right\rfloor} of the SGD weights. The final result then follows from the same Lipschitz argument described above.

2 Proof of Theorem 1

Let us start with the proof of the vanishing curvature phenomenon. The quantity

is hard to analyze directly due to the presence of the τ\tau-smoothing in the soft-plus activation. However, the structure of the activation (⋅)τm(\cdot)_{\tau}^{m} alongside with the pointwise convergence of the minimizers ρτ,m∗\rho^{*}_{\tau,m} to ρm∗\rho^{*}_{m} (cf. Lemma A.4) allows us to infer the properties of (5.3) through the analysis of the auxiliary object:

Formally, we show that the approximation result below holds.

Assume that condition A1 holds. Let ρτ,m∗\rho^{*}_{\tau,m} and ρm∗\rho^{*}_{m} be the minimizers of the free energy for truncated softplus and ReLU activations, respectively, as defined in (3.9)-(3.10). Then,

where CC is a constant independent of (m,τ,β,λ)(m,\tau,\beta,\lambda).

Recall the definition of the activation (⋅)mτ(\cdot)^{\tau}_{m} provided in (3.7). We can decompose the integral into two pieces with respect to the domain of truncation and obtain

Let us focus on the first term in the RHS of (5.2). The second derivative has the following form

Thus, the following chain of equalities holds

where in the last step we have performed the change of variables y=τ(wτ,mx+b)y=\tau(w^{\tau,m}x+b). By Lemma A.4, we have that, as τ→∞\tau\to\infty, ρτ,m∗(θ)\rho^{*}_{\tau,m}({\bm{\theta}}) converges to ρm∗(θ)\rho^{*}_{m}({\bm{\theta}}) pointwise in θ{\bm{\theta}}. Furthermore, as τ→∞\tau\to\infty, aτ,ma^{\tau,m} converges to ama^{m} for any aa, and wτ,mw^{\tau,m} converges to wmw^{m} for any ww. Thus, as the Gibbs distributions ρτ,m∗(θ)\rho^{*}_{\tau,m}({\bm{\theta}}) and ρm∗(θ)\rho^{*}_{m}({\bm{\theta}}) are continuous with respect to θ{\bm{\theta}}, we have that

Furthermore, combining (A.1) and (A.5) from Lemma A.2, we get the following bound

for some constant C′>0C^{\prime}>0 independent of θ{\bm{\theta}} and τ\tau. Thus, we have

which is integrable in (y,a,w)(y,a,w). Hence, by using the Dominated Convergence theorem and integrating out yy using Tonelli’s theorem, we have

Now, by triangle inequality, it remains to show that the absolute value of the second term in the RHS of (5.2) can be upper bounded by O(1mλ)\mathcal{O}\left(\frac{1}{m\lambda}\right) as τ→∞\tau\rightarrow\infty. Recall that, by construction,

In addition, we have the following pointwise convergence of the integrand

Furthermore, by using (5.7), we conclude that the integrand can be dominated by an integrable function. Hence, an application of the Dominated Convergence theorem gives that

where the last inequality follows from Lemma A.2, which gives that M(ρm∗)<C′′/λM(\rho^{*}_{m})<C^{\prime\prime}/\lambda for some C′′>0C^{\prime\prime}>0 that is independent of (m,λ)(m,\lambda). By combining (5.2), (5.8), (5.9) and (5.10), we conclude that (5.5) holds. Finally, by using a standard line of arguments, i.e., Mean Value theorem and Dominated Convergence, the derivative can be pushed inside the integral sign, which finishes the proof. ∎

Next, we study the set on which (5.4) might grow unbounded. In particular, in Lemma 5.3, we provide an upper bound on the measure of the set Ω‾j(m,β,λ)\overline{\Omega}_{j}(m,\beta,\lambda) defined in (4.5)-(4). To do so, we will first show that the partition function of ρm∗\rho^{*}_{m} is uniformly bounded in mm, as stated and proved below.

Consider σ∗(θ,x)=aτ,m(wτ,mx+b)τm\sigma^{*}({\bm{\theta}},x)=a^{\tau,m}(w^{\tau,m}x+b)^{m}_{\tau} or σ∗(θ,x)=am(wmx+b)+m\sigma^{*}({\bm{\theta}},x)=a^{m}(w^{m}x+b)^{m}_{+}, and let ρσ∗∗\rho^{*}_{\sigma^{*}} be the Gibbs distribution with activation σ∗\sigma^{*}. Then, the following upper bound holds for its partition function Zσ∗(β,λ)Z_{\sigma^{*}}(\beta,\lambda):

where C>0C>0 is a constant independent of (m,τ,β,λ)(m,\tau,\beta,\lambda).

Let Riσ∗(ρσ∗∗)R^{\sigma^{*}}_{i}(\rho^{*}_{\sigma^{*}}) be defined as follows

By substituting the form (3.6) of the Gibbs distribution into the free energy functional (3.5), we have that

Note that, by Fubini’s theorem, we can interchange summation and integration in the first integral, since the activation and the labels are bounded. By using also the definition of Riσ∗(ρσ∗∗)R^{\sigma^{*}}_{i}(\rho_{\sigma^{*}}^{*}), we have that

where C>0C>0 is independent of (m,τ,β,λ)(m,\tau,\beta,\lambda). From Lemma 10.2 in [MMN18], we obtain that, for any ρ∈K\rho\in\mathcal{K},

where the last inequality follows from non-negativity of R(ρ)R(\rho) and M(ρ)M(\rho). Combining the upper and lower bounds gives

In order to bound the measure of Ω‾j(m,β,λ)\overline{\Omega}_{j}(m,\beta,\lambda), the idea is to combine the upper bound on the partition function of Lemma 5.2 with a lower bound that diverges in mm unless ∣Ω‾j(m,β,λ)∣|\overline{\Omega}_{j}(m,\beta,\lambda)| vanishes. In particular, we derive a lower bound with the structure of a Gaussian integral which grows unbounded for a certain set of inputs. This set of inputs corresponds to the scenario when the Gaussian covariance has non-positive eigenvalues, and it can be expressed as the set in which the polynomials fjf_{j} and fjf^{j} defined in (4.3) are non-negative. For brevity, we suppress the dependence of Ωj\Omega_{j} and Ωj\Omega^{j} on (m,β,λ)(m,\beta,\lambda) in the proofs below.

Assume that condition A1 holds. For j∈{0,…,M}j\in\{0,\ldots,M\}, let Ωj\Omega^{j} and Ωj\Omega_{j} be defined as in (4). Then,

where K1,K2>0K_{1},K_{2}>0 is independent of (m,β,λ)(m,\beta,\lambda).

We start with the proof for Ωj\Omega^{j}. For j=Mj=M, the corresponding polynomial fM(x)f^{M}(x) is equal to 1+x21+x^{2} and therefore ∣ΩM∣=0|\Omega^{M}|=0. Let us now consider the case j≠Mj\neq M, and assume that μ(Ωj)>0\mu(\Omega^{j})>0. (If that’s not the case, the claim trivially holds.)

Now, we can lower bound the partition function as

Here, the equality in the second line follows from the following observation: if i∈[j]i\in[j] and (w,b)∈Ω(w,b)\in\Omega, then wmxi+b≤0w^{m}x_{i}+b\leq 0 and therefore (wmxi+b)+m=0(w^{m}x_{i}+b)_{+}^{m}=0; if i>ji>j and (w,b)∈Ω(w,b)\in\Omega, then 0<wmxi+b<m20<w^{m}x_{i}+b<m^{2} (∣x∣,∣xi∣≤L|x|,|x_{i}|\leq L, hence ∣xi−x∣≤m|x_{i}-x|\leq m, as LL is a numerical constant independent of mm and mm is sufficiently large by assumption A1) and therefore (wmxi+b)+m=wmxi+b(w^{m}x_{i}+b)_{+}^{m}=w^{m}x_{i}+b for all (w,b)∈Ω(w,b)\in\Omega. Thus, after the change of variables (a,w,b)↦(a,w,−wmx)(a,w,b)\mapsto(a,w,-w^{m}x) and an application of Tonelli’s theorem, the RHS in (5.12) reduces to

Here the coefficients AjA^{j} and BjB^{j} are defined as per (4). The term under the exponent can be rewritten as

By definition of Ωj\Omega^{j} in conjunction with Sylvester’s criterion, we have that Σ−1\Sigma^{-1} has a non-positive eigenvalue with corresponding eigenvector

Furthermore, the other eigenvalue with corresponding eigenvector is given by

Note that v−v_{-} and v+v_{+} are orthogonal, and consider the following change of variables for the integral

As the matrix QQ is unitary, the quantity in (5.13) can be rewritten as

as the determinant of the Jacobian is 1 for any unitary linear transformation. As λ−≤0\lambda_{-}\leq 0, this quantity is lower bounded by

Notice that ∥v−∥≥1\|v_{-}\|\geq 1, ∥v+∥≥1\|v_{+}\|\geq 1 and w(z)=z1/∥v−∥2+z2/∥v+∥2.w(\mathbf{z})=z_{1}/\|v_{-}\|_{2}+z_{2}/\|v_{+}\|_{2}. Thus, picking z1∈(0,m/2]z_{1}\in(0,m/2] and z2∈(0,m/2]z_{2}\in(0,m/2] ensures that 0<w(z)<m0<w(\mathbf{z})<m. Furthermore, these conditions on z\mathbf{z} do not violate the requirement on a(z)a(\mathbf{z}), since ∣a(z)∣≤∣z1∣+∣z2∣≤m.|a(\mathbf{z})|\leq|z_{1}|+|z_{2}|\leq m. Consequently, as the integrand is non-negative, the integral in (5.14) is lower bounded by

By Lemma A.5, ∣Rim(ρm∗)∣|R_{i}^{m}(\rho^{*}_{m})| is bounded by a constant independent of (m,β,λ)(m,\beta,\lambda), since λ<C3\lambda<C_{3} from condition A1. Hence, λ∣Ajx−Bj∣\lambda|A^{j}x-B^{j}| is also uniformly bounded in (m,β,λ)(m,\beta,\lambda). This, in particular, implies that

where K1>0K_{1}>0 is independent of (m,β,λ)(m,\beta,\lambda). Furthermore, by definition of Ωj\Omega^{j}, ∣Bj−Ajx∣>1|B^{j}-A^{j}x|>1, which implies that ∥v+∥2\|v_{+}\|_{2} and ∥v−∥2\|v_{-}\|_{2} are also upper bounded by a constant K2>0K_{2}>0 independent of (m,β,λ)(m,\beta,\lambda), and therefore

With this in mind, we can then further lower bound the integral in (5.15) by

In regards to the argument for Ωj\Omega_{j}, for j=0j=0 the result trivially holds, since f0(x)=1+x2f_{0}(x)=1+x^{2} and, thus, ∣Ω0∣=0|\Omega_{0}|=0. For j>0j>0, the partition function can be lower bounded by

where the set Ω\Omega is defined on non-positive ww and x∈Ωjx\in\Omega_{j}, i.e.,

The rest of the argument remains the same by noting that with the change of variable

which is exactly as in (5.13), but with x∈Ωjx\in\Omega_{j} and the polynomial (Bj−Ajx)(B_{j}-A_{j}x) in place of x∈Ωjx\in\Omega^{j} and the polynomial (Bj−Ajx)(B^{j}-A^{j}x). ∎

In order to control the magnitude of (5.4), it is also necessary to understand the behavior of the polynomials defined in (4.3). The worst case scenario, in terms of presenting a challenge to bounding the curvature, corresponds to fjf^{j} or fjf_{j} being arbitrarily close to zero on the whole area outside of cluster set. In fact, this would imply that the Gaussian-like integral arising in the computation of (5.4) has arbitrary small eigenvalues. More specifically, our plan is to exploit the following bound for x∈Ij∖Ω‾j(m,β,λ)x\in I_{j}\setminus\overline{\Omega}_{j}(m,\beta,\lambda):

Now, the RHS of (5.18) diverges (and, therefore, the bound is useless), if either of the polynomials is arbitrarily close to zero outside of the cluster set. Fortunately, we are able to prove that this cannot happen: in Lemma 5.5 we show that fj(x)f^{j}(x) and fj(x)f_{j}(x) can be small only when xx approaches the cluster set, i.e.,

where Cj(x),Cj(x)C^{j}(x),C_{j}(x) are defined in (4.8) and, because of the condition on their coefficients {Ki}i=14\{K_{i}\}_{i=1}^{4}, they cannot be arbitrarily close to in any interval IjI_{j}.

where we suppress the dependence on (a,b)(a,b), i.e., P2(x;a,b)=P2(x)P_{2}(x;a,b)=P_{2}(x), for more compact notation. In addition, let Ω+\Omega_{+} be the subset of II on which P2P_{2} is strictly positive, i.e.,

For a fixed small constant CΩ>0C_{\Omega}>0, define the set of admissible coefficients as follows

Given (a,b)∈U(a,b)\in\mathcal{U} and x∈Ω+x\in\Omega_{+}, we define the critical point xcx_{c} of the polynomial P2P_{2} associated with xx and Ω+\Omega_{+} in the same fashion as in Definition 4.1, after replacing fj(⋅)f^{j}(\cdot) with P2(⋅)P_{2}(\cdot) and Ij∖Ωj(m,β,λ)I_{j}\setminus\Omega^{j}(m,\beta,\lambda) with Ω+\Omega_{+}. Notice that, since Ω+\Omega_{+} has strictly positive Lebesgue measure for (a,b)∈U(a,b)\in\mathcal{U}, the critical point is well-defined and, in particular, xc∈Ix_{c}\in I always holds.

Fix some CΩC_{\Omega} such that U\mathcal{U}, as defined in (5.20), is of positive measure. Pick some interval (a,b)∈U(a,b)\in\mathcal{U}. Let x∈Ω+x\in\Omega_{+} and xcx_{c} be the critical point associated to xx. Then, the following holds

where α0,α1,α2≥0\alpha_{0},\alpha_{1},\alpha_{2}\geq 0 and at least one of them is lower bounded by a strictly positive constant depending on CΩC_{\Omega} but independent of the choice of (a,b)∈U(a,b)\in\mathcal{U}.

We defer the proof of Lemma 5.4 to Appendix A.3. Recall the definition of the polynomial fj(x)f^{j}(x) given in (4.3), and notice that expression can be rearranged such that fj(x)f^{j}(x) is in the form of (5.19), namely

In this view, the following result follows from Lemma 5.4.

Assume that (Aj,Bj)∈U(A^{j},B^{j})\in\mathcal{U}, i.e., ∣Ij∖Ωj∣|I_{j}\setminus\Omega^{j}| is lower bounded by a positive constant. Given x∈Ij∖Ωjx\in I_{j}\setminus\Omega^{j}, let xcx_{c} be the critical point associated to xx. Then, we have that

where γ1,γ2>0\gamma_{1},\gamma_{2}>0 and either γ1>ε\gamma_{1}>\varepsilon or γ2>ε\gamma_{2}>\varepsilon for some ε>0\varepsilon>0 that is independent of (Aj,Bj)(A^{j},B^{j}) but depending on CΩC_{\Omega} as appearing in the definition of U\mathcal{U}.

Note that Ij∖ΩjI_{j}\setminus\Omega^{j} is the set in which fjf^{j} is strictly positive. Hence, since ∣Ij∖Ωj∣|I_{j}\setminus\Omega^{j}| is lower bounded by a positive constant independent of Aj,BjA^{j},B^{j}, we can apply Lemma 5.4 to get

where α0,α1,α2≥0\alpha_{0},\alpha_{1},\alpha_{2}\geq 0 and at least one of them is lower bounded by a strictly positive constant independent of (Aj,Bj)(A^{j},B^{j}). Thus, since each term of the RHS above is non-negative, we get

where i=arg⁡max⁡j∈{1,2}αji=\arg\max_{j\in\{1,2\}}\alpha_{j}. Furthermore, as ∣x−xc∣≤∣Ij∣|x-x_{c}|\leq|I_{j}|, we have

Now, either αi\alpha_{i} or α0\alpha_{0} as well as 1/∣Ij∣1/|I_{j}| are lower bounded by strictly positive constants independent of (Aj,Bj)(A^{j},B^{j}). Thus, taking γ1=αi/∣Ij∣2−i\gamma_{1}=\alpha_{i}/|I_{j}|^{2-i} and γ2=α0\gamma_{2}=\alpha_{0} concludes the proof. ∎

Let us point out that, although ε\varepsilon does not depend on the values of (Aj,Bj)∈U(A^{j},B^{j})\in\mathcal{U}, the position of a critical point xcx_{c} depends on (Aj,Bj)(A^{j},B^{j}).

In a similar fashion, we define Uˉ\bar{\mathcal{U}} to be the set of admissible (Aj,Bj)(A_{j},B_{j}) as in (5.20), and given x∈Ij∖Ωjx\in I_{j}\setminus\Omega_{j}, we let xˉc\bar{x}_{c} be the critical point associated to xx and Ωj\Omega_{j}. Then, a result analogous to Lemma 5.5 holds for fj(x)f_{j}(x):

where γ3,γ4>0\gamma_{3},\gamma_{4}>0 and either γ3>ε\gamma_{3}>\varepsilon or γ4>ε\gamma_{4}>\varepsilon for some ε>0\varepsilon>0 that is independent of the choice of (Aj,Bj)∈Uˉ(A_{j},B_{j})\in\bar{\mathcal{U}}.

The last ingredient for the proof of the vanishing curvature phenomenon is the control of the decay of the partition function Zm(β,λ)Z_{m}(\beta,\lambda) as β→0\beta\rightarrow 0.

for some C>0C>0 that is independent of (m,β,λ)(m,\beta,\lambda).

The proof of Lemma 5.6 is deferred to Appendix A.2. At this point, we are ready to provide an upper bound on the magnitude of (5.4).

Assume that condition A1 holds. Furthermore, assume that m>eβK2m>e^{\beta K_{2}}, where K2K_{2} is given in (5.11). Fix j∈{0,…,M}j\in\{0,\ldots,M\}. Then, for any x∈Ij∖(Ωj∪Ωj)x\in I_{j}\setminus\left(\Omega^{j}\cup\Omega_{j}\right),

where K>0K>0 is independent of (m,β,λ)(m,\beta,\lambda), Cˉj(x):=min⁡{Cj(x),Cj(x),1}\bar{C}^{j}(x):=\min\left\{C_{j}(x),C^{j}(x),1\right\}, and Cj(x),Cj(x)C^{j}(x),C_{j}(x) are given by (5.22) and (5.23), respectively.

Note that the following upper bound holds

Let us now decompose the integral I(x)I(x) depending on the sign of ww, i.e.,

and, recalling the form of ρm∗(a,w,−wmx)\rho^{*}_{m}(a,w,-w^{m}x) from (3.10), the corresponding potentials are given by

By recalling from (4) the definitions of Aj,Aj,BjA^{j},A_{j},B^{j} and BjB_{j}, we obtain the following upper bounds.

Let us analyze the RHS of (5.24). This term can be rewritten as

where the first inequality follows from Lemma 5.3, and the second inequality uses that m>eβK2m>e^{\beta K_{2}}. Therefore, for sufficiently large β\beta, ∣Ωj∣|\Omega^{j}| is smaller than ∣Ij∣/2|I_{j}|/2, and therefore ∣Ij∖Ωj∣|I_{j}\setminus\Omega^{j}| is lower bounded by ∣Ij∣/2|I_{j}|/2. At this point, we can apply Lemma 5.5 which gives that 1+x2−(Ajx−Bj)2≥Cj(x)≥Cˉj(x):=min⁡{Cj(x),Cj(x),1}1+x^{2}-(A^{j}x-B^{j})^{2}\geq C^{j}(x)\geq\bar{C}^{j}(x):=\min\left\{C^{j}(x),C_{j}(x),1\right\}. Thus, (5.26) is upper bounded by

where A∼N(∣Bj−Ajx∣wm,(βλ)−1)A\sim\mathcal{N}(|B^{j}-A^{j}x|w^{m},(\beta\lambda)^{-1}). Furthermore, the following chain of inequalities hold:

where the second passage follows from Jensen’s inequality. By using (5.28), the RHS of (5.27) is upper bounded by

Applying Lemma 5.5 again to obtain (Ajx−Bj)2≤1+x2−Cˉj(x)≤1+x2(A^{j}x-B^{j})^{2}\leq 1+x^{2}-\bar{C}^{j}(x)\leq 1+x^{2} and noting by definition that (wm)2≤w2(w^{m})^{2}\leq w^{2}, we now upper bound this last term by

where in the second line we use that 1−Cˉj(x)≥01-\bar{C}^{j}(x)\geq 0 and again that (wm)2≤w2(w^{m})^{2}\leq w^{2}, and in the third line we use that u+v≤u+v\sqrt{u+v}\leq\sqrt{u}+\sqrt{v}.

Finally, computing explicitly the last integral gives the following upper bound on the RHS of (5.24) and consequently on Ij(x)I^{j}(x):

By following the similar passages, we obtain the same upper bound for Ij(x)I_{j}(x). By using the lower bound on the partition function shown in Lemma 5.6, we conclude that

where K>0K>0 is independent of (m,β,λ)(m,\beta,\lambda), and the proof is complete. ∎

The proof of Theorem 1 is an immediate consequence of the results presented so far.

The proof of (4.9) follows from Lemmas 5.1 and 5.7, and the proof of (4.11) follows from Lemma 5.3. ∎

3 Proof of Theorem 2

To summarize, at this point we have shown that as β→∞\beta\to\infty the second derivative of the predictor vanishes outside the cluster set, and that the size of the cluster set shrinks to concentrate on at most 3 points per prediction interval. With these results in mind, we are ready to provide the proof for Theorem 2.

The predictor evaluated at the Gibbs distribution is given by

where n=(τ,m,β,λ)n=(\tau,m,\beta,\lambda) denotes the aggregated index and we suppress the dependence on (β,λ)(\beta,\lambda) in ρτ,m∗\rho^{*}_{\tau,m} for convenience. By Lemma A.6, there exists τ(m,β,λ)\tau(m,\beta,\lambda) such that, for any τ>τ(m,β,λ)\tau>\tau(m,\beta,\lambda),

for some C>0C>0 independent of (τ,m,β,λ)(\tau,m,\beta,\lambda). We start by showing that the family of predictors {yn}\{y_{n}\} is equi-Lipschitz for ∞>τ>τ(m,β,λ)\infty>\tau>\tau(m,\beta,\lambda). First, note that

since the derivative can be pushed inside by the same line of arguments as given in the proof of Lemma 5.1. Next, we have that, by construction of the activation, the following holds

Using the Cauchy-Schwartz inequality and (5.30), we obtain that

By combining (5.31) and (5.32), we have shown that the family {yn}\{y_{n}\} for τ>τ(m,β,λ)\tau>\tau(m,\beta,\lambda) is equi-Lipschitz, as the derivatives are uniformly bounded. By using a similar argument, we can show that the same result holds for the predictor itself, i.e., for all x∈⋃j=0MIjx\in\bigcup_{j=0}^{M}I_{j}, yn(x)y_{n}(x) is uniformly bounded.

Note that Theorem 1 considers the curvature of points outside the cluster set, and it gives an upper bound which diverges when Cˉj(x)\bar{C}^{j}(x) approaches for some j∈[M]j\in[M]. Thus, our next step is to develop the analytical machinery to make this scenario impossible. Let us recall Definitions (4.8) and (4.10). Then, by Lemma 5.5, we have that

where γ1,γ2,γ3,γ4>0\gamma_{1},\gamma_{2},\gamma_{3},\gamma_{4}>0 and min⁡{max⁡{γ1,γ2},max⁡{γ3,γ4}}>ε\min\{\max\{\gamma_{1},\gamma_{2}\},\max\{\gamma_{3},\gamma_{4}\}\}>\varepsilon, for some ε>0\varepsilon>0 that is independent of (m,β,λ)(m,\beta,\lambda). Let us focus on the term γ1(x−xc)2+γ2\gamma_{1}(x-x_{c})^{2}+\gamma_{2}. If γ2=0\gamma_{2}=0 or it approaches (as m,β→∞m,\beta\to\infty), then we extend Ωj(m,β,λ)\Omega^{j}(m,\beta,\lambda) as

where {Aij}i=13\{A_{i}^{j}\}_{i=1}^{3} denote such (possibly empty) open intervals. Furthermore, Ij∖ΩˉextjI_{j}\setminus\bar{\Omega}^{j}_{\rm ext} is the union of at most three disjoint closed intervals, i.e.,

where {Bij}i=13\{B_{i}^{j}\}_{i=1}^{3} denote such (possibly empty) closed intervals.

where we use that ∣x−xc∣≥δ|x-x_{c}|\geq\delta by construction of the extended set Ωˉextj\bar{\Omega}^{j}_{\rm ext}. Let us define

Then, by picking a sufficiently small δ\delta, (5.33) implies that, as mλ→∞m\lambda\rightarrow\infty and βλ7/4→∞\beta\lambda^{7/4}\rightarrow\infty, for all x∈Bijx\in B_{i}^{j},

Let us now consider the open intervals {Aij}i=13\{A_{i}^{j}\}_{i=1}^{3}. For any x∈Aijx\in A_{i}^{j}, let

where the second inequality is due to the fact that the families {yn}\{y_{n}\} and {fni}\{f_{n}^{i}\} are equi-Lipschitz. From (5.34) the second term in the RHS in (5.3) vanishes. As for the first term, by construction of the extension, together with the result of Lemma 5.3, we have that

for some K2>0K_{2}>0 independent of (m,β,λ)(m,\beta,\lambda). Thus, by picking a sufficiently small δ\delta and m>eβK2m>e^{\beta K_{2}}, we conclude that the first term in the RHS in (5.3) also vanishes.

So far, we have showed that, both inside and outside of the extension of the cluster set, the predictor yny_{n} is well approximated by linear functions. It remains to prove that the linear pieces connect, i.e., there exists x^∈Ωˉextj\hat{x}\in\bar{\Omega}^{j}_{\rm ext} such that, for two neighboring linearities fnif_{n}^{i} and fni+1f_{n}^{i+1} (possibly belonging to different intervals), the following holds

This claim follows from Lipschitz arguments similar to those presented above, and the proof is complete. ∎

4 Proof of Corollary 4.3

At this point, we have proved a result about the structure of the predictor coming from the minimizer of the free energy (3.5). By using the mean-field analysis in [MMN18], we finally show that this structural result holds for the predictor obtained from a wide two-layer ReLU network.

First, we show that, as t→∞t\to\infty, the second derivative of the predictor evaluated on the solution ρt\rho_{t} of the flow (3.1) converges to the same quantity evaluated on the Gibbs minimizer ρτ,m∗\rho^{*}_{\tau,m}. To do so, we decompose the integral involving ρt\rho_{t} as in Lemma 5.1 (cf. (5.2)):

Next, we show that a technical condition bounding the free energy at initialization appearing in the statement of Theorem 4 in [MMN18] is satisfied under the assumption M(ρ0)<∞M(\rho_{0})<\infty and H(ρ0)>−∞H(\rho_{0})>-\infty. Recalling the sandwich bound for the truncated soft-plus activation (3.8) and the fact that that τ≥1\tau\geq 1 by condition A1, an application of Cauchy-Schwarz inequality gives

where C,C′>0C,C^{\prime}>0 are some numerical constants independent of (τ,m)(\tau,m). This readily implies that

since λ\lambda and β−1\beta^{-1} are upper-bounded by assumption A1.

Now we can apply Theorem 4 in [MMN18] to conclude that, as t→∞t\rightarrow\infty,

Thus, as the terms inside the integrals in (5.4) are all bounded for fixed (τ,m,β,λ)(\tau,m,\beta,\lambda), by definition of weak convergence, we get that, as t→∞t\rightarrow\infty,

Consequently, since the derivative operator can be pushed inside by the same arguments as in Lemma 5.1, we have that, as t→∞t\rightarrow\infty, the following pointwise convergence holds

Next, we show that the second derivative of the predictor obtained from the two-layer ReLU network also converges to the same limit. Recall that σ∗(x,θ)=aτ,m(wτ,mx+b)τm\sigma^{*}(x,{\bm{\theta}})=a^{\tau,m}(w^{\tau,m}x+b)^{m}_{\tau}. Then, by Theorem 3 in [MMN18], we have that, almost surely, as N→∞,  εN→0N\rightarrow\infty,\,\,\varepsilon_{N}\rightarrow 0

along any sequence {εN}\{\varepsilon_{N}\} such that εNlog⁡(N/εN)→0\varepsilon_{N}\log(N/\varepsilon_{N})\rightarrow 0 and N/log⁡(N/εN)→∞N/\log(N/\varepsilon_{N})\rightarrow\infty. By combining (5.37) and (5.38), we obtain that the desired convergence result holds for the LHS of (5.37).

Another application of Theorem 3 of [MMN18], together with the fact that the second moment of the flow solution ρt\rho_{t} is uniformly bounded along the sequence t→∞t\rightarrow\infty (cf. Lemma 10.2 in [MMN18], following Proposition 4.1 in [JKO98]), gives that the gradients

are almost surely uniformly bounded. This fact, in turn, implies that the corresponding predictor is almost surely equi-Lipschitz. In a similar fashion, we also have that the predictor itself is almost surely uniformly bounded in absolute value.

At this point, the desired result follows from the same line of arguments as in the proof of Theorem 2. ∎

Knots Inside the Interval

In this section, we provide an explicit example of a 2-point dataset such that the SGD solution exhibits a change of tangent (or “knot”) inside the training interval. To do so, we will show that neural networks implementing a linear function without knots on the prediction interval cannot minimize the free energy (3.5). To simplify the analysis, throughout the section we omit the limits in (τ,m)(\tau,m), i.e., we consider directly ReLU activations (this corresponds to taking τ=m=∞\tau=m=\infty). Similar arguments apply to the case of sufficiently large parameters τ\tau and mm.

We start with the case of noiseless SGD training, i.e., β=+∞\beta=+\infty. Here, the free energy has no entropy penalty and it can be expressed as

We consider the following dataset which consists of two points:

Let f∗(x)f^{*}(x) be the piecewise linear function that interpolates the training data {(−xˉ,yˉ),(xˉ,yˉ)}\{(-\bar{x},\bar{y}),(\bar{x},\bar{y})\} and passes through the point (0,0)(0,0), where it exhibits a knot (see the orange curve in Figure 6a). Note that

and δ(a0,w0,b0)\delta_{(a_{0},w_{0},b_{0})} denotes the Dirac delta function centered at (a0,w0,b0)(a_{0},w_{0},b_{0}). Note that R(ρ∗)=0R(\rho^{*})=0 and M(ρ∗)=25M(\rho^{*})=\frac{2}{5}. Thus, the free energy is given by

Let f(x)f(x) be a linear function on the interval [−xˉ,xˉ][-\bar{x},\bar{x}] such that f(−xˉ)=yˉ+ε1f(-\bar{x})=\bar{y}+\varepsilon_{1} and f(xˉ)=yˉ+ε2f(\bar{x})=\bar{y}+\varepsilon_{2} (see the blue dashed line in Figure 6a), and let ρ\rho be the corresponding distribution of the parameters, i.e.,

In the rest of this section, we will show that, for all λ≤1\lambda\leq 1,

In words, the minimizer of the free energy cannot be a linear function on the interval [−xˉ,xˉ][-\bar{x},\bar{x}]. As ff is linear, we have that

First, we consider the case f(0)=0f(0)=0. From (6.7), we have that ε1+ε2=−2yˉ\varepsilon_{1}+\varepsilon_{2}=-2\bar{y}. Hence,

By combining (6.8) and (6.4), we conclude that (6.6) holds for all λ≤1\lambda\leq 1 (under the additional restriction f(0)=0f(0)=0).

Next, we consider the case f(0)≠0f(0)\neq 0. By using (6.7) and applying Cauchy-Schwarz inequality, we have that

With this in mind, we can lower bound the regularization term as

where the last inequality follows from the fact that g(t)=(f(0))2/t+tg(t)=(f(0))^{2}/t+t is minimized over t≥0t\geq 0 by taking t=∣f(0)∣t=|f(0)|. Therefore, we have that

Note that, for a fixed value of the sum ε1+ε2\varepsilon_{1}+\varepsilon_{2}, the quantity ε12+ε22\varepsilon_{1}^{2}+\varepsilon_{2}^{2} is minimized when ε1=ε2\varepsilon_{1}=\varepsilon_{2}. Thus, by recalling that yˉ=2\bar{y}=2, we have

One can readily verify that, for any λ≤2\lambda\leq 2, the minimizer is given by ε∗=−λ\varepsilon^{*}=-\lambda. Thus,

where the first inequality uses (6.9) and that the minimizer is ε∗=−λ\varepsilon^{*}=-\lambda, and the next two inequalities use that λ≥1\lambda\geq 1. Merging two cases regarding f(0)f(0), we conclude that (6.6) holds, as desired.

2 Low Temperature Regime

We now focus on the case of noisy SGD with temperature β−1\beta^{-1}. Here, the free energy can be expressed as

We consider the two-point dataset (6.2) and we recall that f∗(x)f^{*}(x) has a knot inside the training interval. In this section we will show that the following two results hold for all λ≤1\lambda\leq 1:

There exists a sequence of distributions {ρβ∗}β\{\rho^{*}_{\beta}\}_{\beta} such that, for any x∈[−xˉ,xˉ]x\in[-\bar{x},\bar{x}],

Let ρ\rho be a distribution such that the function f(x)f(x) given by (6.5) is linear in the interval [−xˉ,xˉ][-\bar{x},\bar{x}]. Pick a sequence of distributions {ρβ}β\{\rho_{\beta}\}_{\beta} such that ρβ⇀ρ\rho_{\beta}\rightharpoonup\rho and for any x∈[−xˉ,xˉ]x\in[-\bar{x},\bar{x}],

Combining these two results gives that, for sufficiently large β\beta, the minimizer of the free energy (6.11) cannot yield a linear estimator on the interval between the two data points. In Figure 6b, we represent the function obtained by training via SGD a two-layer ReLU network with 500 neurons on the dataset (6.2). Clearly, the blue curve approaches the piecewise linear function f∗(x)f^{*}(x), which contains a knot inside the interval $.TheplotrepresentedintheFigurecorrespondstothecasewithnoregularization(. The plot represented in the Figure corresponds to the case with no regularization (\lambda=0$), but similar results are obtained for small (but non-zero) regularization.

where we have used that the support of ρ∗\rho^{*} lies inside the ball BrB_{r}. The first term in the RHS of (6.16) vanishes as β→∞\beta\rightarrow\infty by weak convergence, since the function a(wx+b)+a(wx+b)_{+} is bounded inside BrB_{r}. For the second term, we have that, for any x∈[−xˉ,xˉ]x\in[-\bar{x},\bar{x}],

where C>0C>0 is a constant independent of (β,r)(\beta,r). Since the sequence {∥Xβ∥22}β\{\|X_{\beta}\|_{2}^{2}\}_{\beta} is uniformly integrable, we can make the RHS arbitrary small by picking a sufficiently large rr (uniformly for all β\beta). As a result, (6.12) readily follows.

Note that (6.12) immediately implies that, as β→∞\beta\rightarrow\infty, R(ρβ∗)→R(ρ∗)=0R(\rho^{*}_{\beta})\rightarrow R(\rho^{*})=0. Furthermore, with similar arguments we obtain that, as β→∞\beta\to\infty, M(ρβ∗)→M(ρ∗)M(\rho^{*}_{\beta})\to M(\rho^{*}). By convexity of the differential entropy, we have that H(12ρ1+12ρ2)≥12H(ρ1)+12H(ρ2)H(\frac{1}{2}\rho_{1}+\frac{1}{2}\rho_{2})\geq\frac{1}{2}H(\rho_{1})+\frac{1}{2}H(\rho_{2}). Hence, H(ρβ∗)≥Clog⁡(2πe/β)H(\rho_{\beta}^{*})\geq C\log(2\pi e/\beta), where C>0C>0 is independent of β\beta. By combining these bounds on R(ρβ∗)R(\rho^{*}_{\beta}), M(ρβ∗)M(\rho^{*}_{\beta}) and H(ρβ∗)H(\rho^{*}_{\beta}), we conclude that

which, combined with (6.4), completes the proof of (6.13).

Proof of (ii).

From (6.14), we obtain that lim⁡β→∞R(ρβ)=R(ρ)\lim_{\beta\to\infty}R(\rho_{\beta})=R(\rho). As the second moment is lower-semicontinuous and bounded from below, we have that lim inf⁡β→∞M(ρβ)≥M(ρ)\liminf_{\beta\to\infty}M(\rho_{\beta})\geq M(\rho). Furthermore, Lemma 10.2 in [MMN18] implies that

By replicating the argument leading to (6.10) (but now with regularization coefficient λ/2\lambda/2 instead of λ\lambda), we obtain that the RHS of (6.17) can be lower bounded as

for all λ≤1\lambda\leq 1. Then, the desired result follows from (6.17) and (6.18).

Numerical Simulations

We consider training the two-layer neural network (3.1) with NN neurons and ReLU activation functions, i.e., σ∗(x,θ)=a(wx+b)+\sigma^{*}(x,{\bm{\theta}})=a(wx+b)_{+}, with θ=(a,w,b){\bm{\theta}}=(a,w,b). We run the SGD iteration (3.3) (no momentum or weight decay, batch size equal to 11), and we plot the resulting predictor once the algorithm has converged. The results for two different unidimensional datasets are reported in Figures 7 and 8. In these experiments, we set N=500N=500 and we remark that the plots for wider networks (N∈{1000,2000,5000}N\in\{1000,2000,5000\}) look identical. We also point out that the shape of the predictor does not change for different runs of the SGD algorithm (with different initializations, and order of the training samples). This is in agreement with the mean-field predictions when β<∞\beta<\infty, λ>0\lambda>0 and the variance of the initialization does not depend on NN. The same setup is employed to obtain the numerical results of Figure 1 and 6b, discussed in Section 1 and 6, respectively.

Comparison with Related Work

The work by [WTS+19] considers a noiseless setting with no regularization, and it studies the properties of gradient flow on the space of reduced parameters. In particular, the initial ReLU neurons depending on three parameters (aa, bb and ww, in our notation) are mapped to a two-dimensional space, where each neuron is defined by its magnitude and angle. Then, it is proven that the Wasserstein gradient flow on this reduced space drives the activation points of the ReLU neurons to the training data. As a consequence, the solution found by SGD is piecewise linear and the knot points are located at a subset of the training samples. [BGVV20] consider SGD with label noise and no regularization, and show that, once the squared loss is close to zero, the algorithm minimizes an auxiliary quantity, i.e., the sum of the squared norms of the gradients evaluated at each training point. By instantiating this result in the case of a two-layer ReLU network with a skip connection, the authors show that the solution found by SGD is piecewise linear with the minimum amount of knots required to fit the data.

Concluding Remarks

We focus on ReLU networks. However, only the following two properties of the activation appear to be crucial for the analysis: (i) its second derivative behaves like a Dirac delta, and (ii) its growth is at most linear. In fact, the first property reduces the computation of the curvature to an integral over a lower-dimensional subspace; and the second property leads to a uniform bound on the second moment of the network parameters. Hence, our approach may be extendable to a more general class of piecewise linear activations, although this would come at the cost of a more intricate structure for the cluster set containing the location of the tangent changes.

We focus on univariate regression. The natural ordering on one-dimensional features allows for a convenient characterization of the activation regions that correspond to each input conditioned on the sign of ww. For larger input dimension, such a characterization appears to be cumbersome, as the structure of these regions is induced by the intersection of hyperplanes. Furthermore, in the setting considered in this work, the cluster set is the union of intervals where certain second-degree polynomials are non-positive. For multivariate regression, we expect the cluster set to be connected to the non-positive set of quadratic forms. Hence, the structure of the cluster set may be highly non-linear, and its concentration can occur on subspaces which are hard to define explicitly.

We provide an upper bound on the number of tangent changes of the predictor. The numerical simulations of Section 6 suggest that one and two knots between consecutive training inputs can occur. Showing whether our theoretical bound of three knots is tight by providing an explicit example, or by proving a tighter bound of two, is an open question for possible future work. We also remark that, given the errors RiR_{i} of the neural network estimator at the data points, one can deduce the location of the knot points. Such implicit characterization is similar in spirit to the attractive/repulsive condition on the training points of [WTS+19].

In conclusion, in this work we demonstrate how to exploit the Gibbs form of the minimizer in order to accurately characterize a functional property of the predictor learnt by the neural network using limiting arguments of the training process. The general spirit of this technique could potentially be informative in additional ways. For instance, utilizing the properties of the Gibbs distribution reached at convergence may be of additional interest for future study. We conjecture that this could yield insight into the stability of the predictor with respect to perturbations in the training data at finite temperature β\beta.

Acknowledgements

We would like to thank Mert Pilanci for several exploratory discussions in the early stage of the project, Jan Maas for clarifications about [JKO98], and Max Zimmer for suggestive numerical experiments. A. Shevchenko and M. Mondelli are partially supported by the 2019 Lopez-Loreta Prize. V. Kungurtsev acknowledges support to the OP VVV project CZ.02.1.01/0.0/0.0/16_019/0000765 Research Center for Informatics.

References

Appendix A Technical Results

In this appendix, we prove a few technical results which are used in the arguments of Section 5.2. More specifically, in Section A.1 we show that, as τ→∞\tau\to\infty, the minimizer ρτ,m∗(θ)\rho_{\tau,m}^{*}({\bm{\theta}}) of the free energy Fτ,m\mathcal{F}^{\tau,m} converges pointwise in θ{\bm{\theta}} to the minimizer ρm∗(θ)\rho_{m}^{*}({\bm{\theta}}) of the free energy Fm\mathcal{F}^{m}. This pointwise convergence is needed to establish the result of Lemma 5.1. In Section A.2, we derive upper bounds on the risk of the minimizer (used in Lemma 5.3) and on its second moment (which implies that the sequence of predictors is equi-Lipschitz), and we also prove the lower bound on the partition function in Lemma 5.6. Finally, in Section A.3 we give the proof of Lemma 5.4, which lower bounds the growth of the polynomials fjf^{j} and fjf_{j}.

Let {ρn}n\{\rho_{n}\}_{n} be a sequence of densities in K\mathcal{K} with uniformly bounded truncated entropy, that is

for some C>0C>0 that is independent of nn, and uniformly bounded second moment, i.e., M(ρn)≤CM(\rho_{n})\leq C for all nn. Then, there exists a subsequence {ρn′}n′\{\rho_{n^{\prime}}\}_{n^{\prime}} of {ρn}n\{\rho_{n}\}_{n} and ρ∈K\rho\in\mathcal{K} such that ρn′⇀ρ\rho_{n^{\prime}}\rightharpoonup\rho and

Since z↦max⁡{zlog⁡z,0}z\mapsto\max\{z\log z,0\}, z∈[0,+∞)z\in[0,+\infty), has super-linear growth, this result in conjunction with the de la Vallée Poussin criterion (see for instance [HR11]) guarantees that the sequence of densities {ρn}n\{\rho_{n}\}_{n} is uniformly integrable. By Dunford-Pettis Theorem (for σ\sigma-finite measure spaces, see for instance [Lau15]), relative weak compactness in L1L_{1} is equivalent to uniform integrability. Hence, there exists a density ρ\rho and a subsequence {ρn′}n′\{\rho_{n^{\prime}}\}_{n^{\prime}} of {ρn}n\{\rho_{n}\}_{n} such that ρn′⇀ρ\rho_{n^{\prime}}\rightharpoonup\rho.

As M(⋅)M(\cdot) is lower-semicontinuous with respect to the topology of weak convergence in L1L_{1} and bounded from below, we have that lim inf⁡n′→∞M(ρn′)≥M(ρ).\liminf_{n^{\prime}\rightarrow\infty}M(\rho_{n^{\prime}})\geq M(\rho). Furthermore, as M(ρn)≤CM(\rho_{n})\leq C, we get that M(ρ)≤CM(\rho)\leq C and, thus, ρ∈K\rho\in\mathcal{K}. ∎

Assume that condition A1 holds. Consider the sequence of minimizing Gibbs distributions {ρτ,m∗}τ\{\rho^{*}_{\tau,m}\}_{\tau}. The following results hold:

M(ρτ,m∗)M(\rho^{*}_{\tau,m}) is uniformly bounded in (τ,m)(\tau,m). Moreover, if βλ>1\beta\lambda>1,

where C3>0C_{3}>0 is independent of (τ,m,β,λ)(\tau,m,\beta,\lambda).

Given any mm consistent with A1, there exists ρm∈K\rho_{m}\in\mathcal{K} and a subsequence {ρτ′,m∗}τ′\{\rho^{*}_{\tau^{\prime},m}\}_{\tau^{\prime}} (which with an abuse of notation we identify with {ρτ,m∗}τ\{\rho^{*}_{\tau,m}\}_{\tau}) such that ρτ,m∗⇀ρm\rho^{*}_{\tau,m}\rightharpoonup\rho_{m} as τ→∞\tau\to\infty.

Given any mm consistent with A1, lim⁡τ→∞Riτ,m(ρτ,m∗)=Rim(ρm)\lim_{\tau\to\infty}R^{\tau,m}_{i}(\rho^{*}_{\tau,m})=R^{m}_{i}(\rho_{m}) for all i∈[M]i\in[M], and lim inf⁡τ→∞Fτ,m(ρτ,m∗)≥Fm(ρm)\liminf_{\tau\rightarrow\infty}\mathcal{F}^{\tau,m}(\rho^{*}_{\tau,m})\geq\mathcal{F}^{m}(\rho_{m}).

Note that for this ρ\rho, Rτ,m(ρ)R^{\tau,m}(\rho), in fact, does not depend on (τ,m,β,λ)(\tau,m,\beta,\lambda).

From Lemma 10.2 in [MMN18], since ρτ,m∗\rho^{*}_{\tau,m} is the unique minimizer of the free energy Fτ,m\mathcal{F}^{\tau,m}, we have that the following inequalities hold

Furthermore, by using (A.1) and the fact that β>C1\beta>C_{1} and λ<C2\lambda<C_{2}, we obtain

for some K1,K2>0K_{1},K_{2}>0 that are independent of (τ,m,β,λ)(\tau,m,\beta,\lambda). By combining (A.3) and (A.2) and using that Rτ,m(ρm∗)≥0R^{\tau,m}(\rho^{*}_{m})\geq 0, we conclude that

where K3>0K_{3}>0 is independent of (τ,m,β,λ)(\tau,m,\beta,\lambda). As βλ>1\beta\lambda>1, the first claim immediately follows.

Since the activation and the labels are uniformly bounded in τ\tau and {i}i∈[M]\{i\}_{i\in[M]} is finite, ∣Riτ,m(ρτ,m∗)∣|R_{i}^{\tau,m}(\rho^{*}_{\tau,m})| is uniformly bounded in (τ,i)(\tau,i). Hence, the following lower bound on the partition function Zτ,m(β,λ)Z_{\tau,m}(\beta,\lambda) holds

for some K4,K5,K6>0K_{4},K_{5},K_{6}>0 independent of τ\tau (but dependent on (m,β,λ)(m,\beta,\lambda)). In the same way, one can upper bound ρτ,m∗⋅Zτ,m(β,λ)\rho^{*}_{\tau,m}\cdot Z_{\tau,m}(\beta,\lambda) as

where K7>0K_{7}>0 is independent of τ\tau (but dependent on (m,β,λ)(m,\beta,\lambda)). Notice that we can increase K7K_{7} to be arbitrarily large and still satisfy (A.5), and in particular, increase it to satisfy K7/K6>1K_{7}/K_{6}>1. Thus, by combining (A.1) and (A.5), we get

where the RHS is independent of τ\tau. As M(ρτ,m∗)M(\rho^{*}_{\tau,m}) is uniformly bounded in τ\tau, we can invoke Lemma A.1 to finish the proof of the second statement.

We now prove the third statement. By the triangle inequality, we have that, for all i∈[M]i\in[M],

By upper bounding ρτ,m∗\rho^{*}_{\tau,m} as in (A.1)-(A.5), we have

where K9>0K_{9}>0 is independent of τ\tau. Thus, an application of the Dominated Convergence theorem gives that the term A1A_{1} vanishes. Furthermore, the term A2A_{2} vanishes by weak convergence of ρτ,m∗\rho^{*}_{\tau,m} to ρm\rho_{m}. This proves that, as τ→∞\tau\to\infty, yρτ,m∗σ∗(xi)→yρmσ∗(xi)y^{\sigma^{*}}_{\rho^{*}_{\tau,m}}(x_{i})\rightarrow y^{\sigma^{*}}_{\rho_{m}}(x_{i}) and so Riτ,m(ρτ,m∗)→Rim(ρm)R^{\tau,m}_{i}(\rho^{*}_{\tau,m})\rightarrow R^{m}_{i}(\rho_{m}).

Note that −H(⋅)-H(\cdot) and M(⋅)M(\cdot) are lower-semicontinuous in K{\mathcal{K}}. Furthermore, M(⋅)M(\cdot) is lower bounded and −H(⋅)-H(\cdot) is lower bounded by Lemma 10.1 in [MMN18] on the subsequence {ρτ,m∗}τ\{\rho^{*}_{\tau,m}\}_{\tau}, as M(ρτ,m∗)M(\rho^{*}_{\tau,m}) is uniformly bounded in τ\tau. Hence, as ρτ,m∗\rho^{*}_{\tau,m} converges weakly to ρm∈K\rho_{m}\in\mathcal{K}, we conclude that

which, combined with Riτ,m(ρτ,m∗)→Rim(ρm)R^{\tau,m}_{i}(\rho^{*}_{\tau,m})\rightarrow R^{m}_{i}(\rho_{m}), implies the desired result. ∎

Fix some distribution ρ∈K\rho\in\mathcal{K}, then we have the following pointwise convergence:

and the RHS is integrable. Thus, an application of the Dominated Convergence theorem gives that

This concludes the proof since M(ρ)M(\rho) and H(ρ)H(\rho) are independent of τ\tau. ∎

Assume that condition A1 holds and consider any satisfactory mm. Then, as τ→∞\tau\to\infty, the minimizer ρτ,m∗\rho^{*}_{\tau,m} of the free energy Fτ,m\mathcal{F}^{\tau,m} converges pointwise in θ{\bm{\theta}} to the minimizer ρm∗\rho^{*}_{m} of the free energy Fm\mathcal{F}^{m}, i.e.,

From Lemma A.2, we have that there exists a subsequence {ρτ,m∗∈K}\{\rho^{*}_{\tau,m}\in{\mathcal{K}}\} and ρm∈K\rho_{m}\in\mathcal{K} such that the following holds

Since ρτ,m∗∈K\rho^{*}_{\tau,m}\in{\mathcal{K}} minimizes Fτ,m\mathcal{F}^{\tau,m}, we have

By taking the liminf on both sides, using Lemma A.3 and (A.6), we have

Since ρm∗\rho^{*}_{m} is the unique minimizer of Fm\mathcal{F}^{m} (see Lemma 10.2 of [MMN18]), ρm∗\rho^{*}_{m} and ρm\rho_{m} coincide almost everywhere, which implies that

where the convergence is intended to be pointwise in θ{\bm{\theta}}. Note that Ψτ(θ)\Psi_{\tau}({\bm{\theta}}) is uniformly bounded in τ\tau, hence

which implies that Zτ,mρτ,m∗(θ)Z_{\tau,m}\rho_{\tau,m}^{*}({\bm{\theta}}) converges pointwise to Zmρm∗(θ)Z_{m}\rho_{m}^{*}({\bm{\theta}}). Furthermore, as τ→∞\tau\to\infty, Zτ,mZ_{\tau,m} converges to ZmZ_{m} by Dominated Convergence, which concludes the proof. ∎

A.2 Bounds on Risk of Minimizer, Second Moment and Partition Function

where C>0C>0 is a constant independent of (m,β,λ)(m,\beta,\lambda). In addition, for any ε>0\varepsilon>0, there exists τˉ(ε,m,β,λ)\bar{\tau}(\varepsilon,m,\beta,\lambda) such that for any τ>τˉ(ε,m,β,λ)\tau>\bar{\tau}(\varepsilon,m,\beta,\lambda) we have

Consider a “saw-tooth” function centered at xix_{i} with height yiy_{i} and width ε>0\varepsilon>0, namely,

Notice that this function can be implemented by the following ρ^i\hat{\rho}_{i}:

which ensures that the “saw-tooth” functions are not intersecting. Define

Then, one immediately has that, for all i∈[M]i\in[M],

Furthermore, by taking a sufficiently large mm, in particular, taking m>max⁡i{6M∣yi∣/ε}+3∣xM∣+3∣x1∣+2m>\max_{i}\{6M|y_{i}|/\varepsilon\}+3|x_{M}|+3|x_{1}|+2 suffices, we get that, for all x∈[x1,xM]x\in[x_{1},x_{M}],

which implies that Rm(ρ^)=0R^{m}(\hat{\rho})=0.

Note that, for σ2<1\sigma^{2}<1 and mm chosen sufficiently large as mentioned previously,

Thus, by computing the integral w.r.t. aa, we have that

where, with an abuse of notation, we denote by ρ((μ2,μ3),σ2)\rho_{((\mu_{2},\mu_{3}),\sigma^{2})} the marginal of ρ((μ1,μ2,μ3),σ2)\rho_{((\mu_{1},\mu_{2},\mu_{3}),\sigma^{2})} with respect to the last two components. By applying to Kantorovich-Rubinstein theorem (see, for instance, [Vil09]), we have that

for two densities pp and qq, where W1W_{1} is the 1-Wasserstein distance and ∥f∥Lip\|f\|_{\textrm{Lip}} denotes the Lipschitz constant of ff. Notice that (wmx+b)+m(w^{m}x+b)^{m}_{+} is Lipschitz in (w,b)(w,b) with Lipschitz constant upper bounded by max⁡(∣x∣,1)\max(|x|,1). Hence, combining (A.8) and (A.9), we have that

where K1>0K_{1}>0 is a constant independent of mm. Recalling the form of the 2-Wasserstein distance between a delta and a Gaussian distribution, we have that

for some constant K2>0K_{2}>0. As the W1W_{1} distance is upper bounded by the W2W_{2} distance (via Hölder’s inequality), by combining (A.10) and (A.11), we conclude that

where K3>0K_{3}>0 is a constant independent of mm. Hence, by taking σ2=min⁡(λ,1/2)\sigma^{2}=\min(\lambda,1/2), we have

where K4>0K_{4}>0 is a constant independent of mm.

Now recall that the differential entropy is a concave function of the distribution. Hence, by using the fact that ρ((μ1,μ2,μ3),σ2)\rho_{((\mu_{1},\mu_{2},\mu_{3}),\sigma^{2})} is a product distribution and by explicitly computing the entropy of a Gaussian and a uniform random variable, we conclude that

with K6>0K_{6}>0 independent of mm. Hence, since ρm∗\rho^{*}_{m} is the minimizer of the free energy, by using the bound from Lemma 10.2 in [MMN18], we get that

Since β>−1λlog⁡λ\beta>-\frac{1}{\lambda}\log\lambda and βλ>1\beta\lambda>1, (A.13) implies that

for K7>0K_{7}>0 independent of (m,β,λ)(m,\beta,\lambda). This finishes the proof of the first part of the statement. The second part of the statement follows by combining (A.14) with Lemma A.4. ∎

Assume that condition A1 holds. It holds that there exists τ(m,β,λ)\tau(m,\beta,\lambda) such that for any τ>τ(m,β,λ)\tau>\tau(m,\beta,\lambda) the following upper bound holds:

for some C>0C>0 that is independent of (τ,m,β,λ)(\tau,m,\beta,\lambda).

We conclude this part of the appendix by providing the proof of Lemma 5.6.

Define A=∑i=1M∣xiRim(ρm∗)∣A=\sum_{i=1}^{M}|x_{i}R_{i}^{m}(\rho_{m}^{*})| and B=∑i=1M∣Rim(ρm∗)∣B=\sum_{i=1}^{M}|R_{i}^{m}(\rho_{m}^{*})|. By Lemma A.5, ∣Rim(ρm∗)∣≤K1λ|R_{i}^{m}(\rho_{m}^{*})|\leq K_{1}\sqrt{\lambda}, where K1>0K_{1}>0 is independent of (m,β,λ,i)(m,\beta,\lambda,i). Therefore, ∣A∣,∣B∣≤K2λ|A|,|B|\leq K_{2}\sqrt{\lambda} for some K2>0K_{2}>0 independent of (m,β,λ)(m,\beta,\lambda). Using the inequalities 2∣aw∣≤a2+w22|aw|\leq a^{2}+w^{2} and 2∣ab∣≤a2+b22|ab|\leq a^{2}+b^{2}, the RHS of (A.15) can be lower bounded by

By explicitly computing the integral above, the desired result immediately follows. ∎

A.3 Lower Bound on Polynomials

By definition of xcx_{c}, one can immediately verify that P2(xc)≥0P_{2}(x_{c})\geq 0. Notice that, if P2′′(xc)P_{2}^{\prime\prime}(x_{c}) is close to , then a2a^{2} is close to 11, which implies that (since xc∈Ix_{c}\in I and, thus, bounded in absolute value) ∣P2′(xc)∣|P_{2}^{\prime}(x_{c})| is close to 2∣b∣2|b| and P2(xc)P_{2}(x_{c}) is close to sign(a)⋅2bxc+1−b2\textrm{sign}(a)\cdot 2bx_{c}+1-b^{2}. Therefore, at least one of the coefficients P2(xc),∣P2′(xc)∣,∣P2′′(xc)∣P_{2}(x_{c}),|P_{2}^{\prime}(x_{c})|,|P^{\prime\prime}_{2}(x_{c})| is lower bounded by a constant that is independent of (a,b)(a,b).

Next, we distinguish two cases depending on the sign of P2′′(xc)P_{2}^{\prime\prime}(x_{c}). First, assume that P2′′(xc)≥0P_{2}^{\prime\prime}(x_{c})\geq 0. We now show that P2′(xc)⋅(x−xc)≥0P^{\prime}_{2}(x_{c})\cdot(x-x_{c})\geq 0.

Now assume that P2′′(xc)>0P_{2}^{\prime\prime}(x_{c})>0 and let xminx_{\textrm{min}} be the minimizer of P2P_{2} on the interval II. If x≥xminx\geq x_{\textrm{min}} then, by definition of a critical point, xc≥xminx_{c}\geq x_{\textrm{min}} which means that xcx_{c} is located on the right branch of the parabola and, hence, P2′(xc)≥0P_{2}^{\prime}(x_{c})\geq 0. Furthermore, xx belongs to the interval [xc,Ir][x_{c},I_{r}] by definition of xcx_{c}. These facts imply that P2′(xc)⋅(x−xc)≥0P_{2}^{\prime}(x_{c})\cdot(x-x_{c})\geq 0. The case x<xminx<x_{\textrm{min}} is treated in a similar fashion.

As it was shown, at least one of the coefficients P2(xc),∣P2′(xc)∣,P2′′(xc)P_{2}(x_{c}),|P_{2}^{\prime}(x_{c})|,P^{\prime\prime}_{2}(x_{c}) is lower bounded by a constant that is independent of (a,b)(a,b), and P2′(xc)(x−xc)≥0P^{\prime}_{2}(x_{c})(x-x_{c})\geq 0, hence, choosing

concludes the proof for the case of non-negative curvature.

Now, if both ∣P2′(xc)∣|P_{2}^{\prime}(x_{c})| and P2(xc)P_{2}(x_{c}) are close to , then (A.18) immediately implies that P2′′(xc)P_{2}^{\prime\prime}(x_{c}) is also close to . However, following the argument above, it is not possible that −P2′′(xc)-P_{2}^{\prime\prime}(x_{c}), ∣P2′(xc)∣|P_{2}^{\prime}(x_{c})| and P2(xc)P_{2}(x_{c}) are simultaneously close to . This proves that max⁡(∣P2′(xc)∣,P2(xc))\max(|P_{2}^{\prime}(x_{c})|,P_{2}(x_{c})) is lower bounded by a constant that is independent of (a,b)(a,b).

gives the desired result in the case P2′′(xc)<0P_{2}^{\prime\prime}(x_{c})<0 and concludes the proof. ∎