Properties of the geometry of solutions and capacity of multi-layer neural networks with Rectified Linear Units activations

Carlo Baldassi, Enrico M. Malatesta, Riccardo Zecchina

References

Appendix A Model

Our model is a tree-like committee machine with NN weights WliW_{li} divided into KK groups of \nicefracNK\nicefrac{{N}}{{K}} entries. We use the index l=1,…,Kl=1,\dots,K for the group and i=1,…,NKi=1,\dots,\frac{N}{K} for the entry. We consider two cases, the binary case Wli=±1W_{li}=\pm 1for all l,il,i and the continuous case with spherical constraints on each group, ∑i=1N/KWli2=N/K\sum_{i=1}^{N/K}W_{li}^{2}=N/K for all ll.

The training set consists of p=αNp=\alpha N random binary i.i.d. patterns. The inputs are denoted by ξliμ\xi_{li}^{\mu} and the outputs by σμ\sigma^{\mu}, where μ=1,…,p\mu=1,\dots,p is the pattern index.

The connection weights between the first layer and the output are denoted by clc_{l} and considered binary and fixed; for the case of ReLU activations we set the first half l=1,…,K/2l=1,\dots,K/2 to the value +1+1 and the rest to −1-1; for the case of the sign activations we can set them to all to +1+1 without loss of generality.

A configuration of the weights WW solves the training problem if it classifies correctly all the patterns; we denote this with the indicator function

where Θ(x)=1\Theta\left(x\right)=1 if x>0x>0 and otherwise is the Heaviside step function.

The volume of the space of configurations that correctly classify the whole training set is then

As explained in the main text, in all cases the resulting expression takes the form

where the GS\mathcal{G}_{S} part is only affected by the spherical or binary nature of the weights, whereas the GE\mathcal{G}_{E} part is only affected by KK and by the activation function gg. Determining their value requires to compute a saddle-point over some overlap parameters qlabq_{l}^{ab} with a,b=1,…,na,b=1,\dots,n representing overlaps between replicas, and their conjugates q^lab\hat{q}_{l}^{ab}; in turn, this requires an ansatz about the structure of the saddle-point in order to perform the n→0n\to 0 limit.

For the spherical weights, the GS\mathcal{G}_{S} part (before the n→0n\to 0 limit) reads

while for the binary case we have a very similar expression, except that the summations don’t have the a=ba=b case and the integral over WaW^{a} becomes a summation:

In all cases, we study the problem in the large KK limit, which allows to invoke the central limit theorem and leads to a crucial simplification of the expressions.

Appendix B Critical capacity

In the replica-symmetric (RS) case we seek solutions of the form qlab=δab+(1−δab)qq_{l}^{ab}=\delta_{ab}+\left(1-\delta_{ab}\right)q for all l,a,bl,a,b, where δab\delta_{ab} is the Kronecker delta symbol, and similarly for the conjugated parameters, q^lab=δabQ^+(1−δab)q^\hat{q}_{l}^{ab}=\delta_{ab}\hat{Q}+\left(1-\delta_{ab}\right)\hat{q} for all l,a,bl,a,b. The resulting expressions, as reported in the main text, are:

The values of the overlaps and conjugated parameters are found by setting to the derivatives of the free entropy.

The critical capacity αc\alpha_{c} is found in the binary case by seeking numerically the value of α\alpha for which the saddle point solutions returns a zero free entropy.For the spherical case, instead, αc\alpha_{c} is determined by finding the value of α\alpha such that q→1q\to 1, which can be obtained analytically by reparametrizing q=1−δqq=1-\delta q and expanding around δq≪1\delta q\ll 1. In this limit, we must also reparametrize Δ\Delta using Δ2−Δ=δΔ δqx\Delta_{2}-\Delta=\delta\Delta\,\delta q^{x}, where xx is an exponent that depends on the activation function: it is x=\nicefrac12x=\nicefrac{{1}}{{2}} for the sign and x=1x=1 for the ReLU. Due to this difference in this exponent, αc\alpha_{c} diverges in the sign activation case (as was shown in (barkai1992broken, ; engel1992storage, )), while for the ReLU activations it converges to 2(1−1π)−12\left(1-\frac{1}{\pi}\right)^{-1}. However, the RS result for the spherical case is only an upper bound, and a more accurate result requires replica-symmetry breaking.

B.2 1RSB ansatz

In the one-step replica-symmetry-breaking (11-RSB) ansatz we seek solutions with 3 possible values of the overlaps qlabq_{l}^{ab} and their conjugates. We group the nn replicas in nm\frac{n}{m} groups of mm replicas each, and denote with q0q_{0} the overlaps among different groups and with q1q_{1} the overlaps within the same group. As before, the self overlap is qaa=1q^{aa}=1 and its conjugate q^aa=Q^\hat{q}^{aa}=\hat{Q} (these are only relevant in the spherical case).

the expressions of Δ2\Delta_{2} and Δ−1\Delta_{-1} are the same as in the RS case. The expressions of Δ0\Delta_{0} and Δ1\Delta_{1} take the same form as the RS expressions for Δ\Delta, except that q0q_{0} and q1q_{1} must be used instead of qq.

Appendix C Franz-Parisi potential

The Franz-Parisi entropy (franz1995recipes, ; huang2014origin, ) is defined as (cf. eq. (7) of the main text):

The calculation proceeds by taking the RS ansatz with the same structure as that of sec. B.1 and the limit n→0n\to 0, r→0r\to 0. We obtain, in the large KK limit:

where we introduced the auxiliary quantities Σ0\Sigma_{0}, Σ1\Sigma_{1}, Γ\Gamma, D0D_{0}, D1D_{1} and Δ3\Delta_{3} which depend on the choice of the activation function (like the Δ−1/0/1/2\Delta_{-1/0/1/2} of the previous section). For the sign activations we get:

In order to find the order parameters for any given α\alpha and SS, we need to set to the derivatives of the free entropy w.r.t. the order parameters qq, pp, tt and the conjugates Q^\hat{Q}, q^\hat{q}, P^\hat{P}, p^\hat{p}, t^\hat{t}, S^\hat{S}, thus obtaining a system of 9 equations (7 for the binary case) to be solved numerically. The equations actually reduce to 6 (5 in the binary case) since qq, Q^\hat{Q} and q^\hat{q} are the same ones derived from the typical case (sec. B.1).

Appendix D Large deviation analysis

Following (baldassi2019shaping, ), the large deviation analysis for the description of the high-local-entropy landscape uses the same equations as the standard 11RSB expressions eqs. (20), (21) and (22). In this case, however, the overlap q1q_{1} is not determined by a saddle point equation, but rather it is treated as an external parameter that controls the mutual overlap between the yy replicas of the system. Also, the parameter mm is not optimized and it is not restricted to the range [0,1]\left[0,1\right]; instead, it plays the role of the number of replicas yy and it is generally taken to be large (we normally use either a large integer number to compare the results with numerical simulations, or we take the limit m→∞m\to\infty). For these reason, there are two saddle point equations less compared to the standard 11RSB calculation.

The resulting expression for the free entropy FLD(q1)\mathcal{F}_{\text{LD}}\left(q_{1}\right) represents, in the spherical case, the log-volume of valid configurations (solutions at the correct overlap) of the system of yy replicas. These configurations are thus embedded in SKy\mathcal{S}^{Ky} where S\mathcal{S} is the \nicefracNK\nicefrac{{N}}{{K}}-dimensional sphere of radius \nicefracNK\sqrt{\nicefrac{{N}}{{K}}}. In order to quantify the solution density, we must normalize FLD(q1)\mathcal{F}_{\text{LD}}\left(q_{1}\right), subtracting the log-volume of all the admissible configurations at a given q1q_{1} without the solution constraint (which is obtained by the analogous computation with α=0\alpha=0). The resulting quantity is thus upper-bounded by (cf. Fig. (2) of the main text). For the binary case, FLD(q1)\mathcal{F}_{\text{LD}}\left(q_{1}\right) is the log of the number of admissible solutions, and the same normalization procedure can be applied.

In the m→∞m\to\infty case the order parameters q0q_{0} and q^0\hat{q}_{0} need to be rescaled with mm and reparametrized with two new quantities δq0\delta q_{0} and δq^0\delta\hat{q}_{0}, as follows:

As a consequence, we also reparametrize Δ0\Delta_{0} with a new parameter δΔ0\delta\Delta_{0} defined as:

The expressions eqs. (20), (21) and (22) become:

Appendix E Distribution of stabilities

The stability for a given pattern/label pair ξ∗,σ∗\xi^{*},\sigma^{*} is defined as:

The distribution over the training set for a typical solutions can thus be computed as

where we arbitrarily chose the first pattern/label pair ξ1\xi^{1}, σ1\sigma^{1} without loss of generality. The expression can be computed by the replica method as usual, and the order parameters are simply obtained from the solutions of the saddle point equations for the free entropy. The resulting expression at the RS level is:

where G(x)=12πe−x2/2G\left(x\right)=\frac{1}{\sqrt{2\pi}}e^{-x^{2}/2} is a standard Gaussian. The difference between the models (spherical/binary and sign/ReLU) is encoded in the different values for the overlaps and in the different expressions for the parameters Δ\Delta, Δ−1\Delta_{-1}, Δ2\Delta_{2}.

In the large deviation case, we simply compute the expression with a 11RSB ansatz and fix q1q_{1} and mm as described in the previous section. The resulting expression is

where the effective parameters Δ−1\Delta_{-1} , Δ0\Delta_{0}, Δ1\Delta_{1} and Δ2\Delta_{2} are the same defined in section B.2. In the m→∞m\to\infty limit the previous expression reduces to

where δΔ0\delta\Delta_{0} is defined in equation (50).