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 weights divided into groups of entries. We use the index for the group and for the entry. We consider two cases, the binary case for all and the continuous case with spherical constraints on each group, for all .
The training set consists of random binary i.i.d. patterns. The inputs are denoted by and the outputs by , where is the pattern index.
The connection weights between the first layer and the output are denoted by and considered binary and fixed; for the case of ReLU activations we set the first half to the value and the rest to ; for the case of the sign activations we can set them to all to without loss of generality.
A configuration of the weights solves the training problem if it classifies correctly all the patterns; we denote this with the indicator function
where if 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 part is only affected by the spherical or binary nature of the weights, whereas the part is only affected by and by the activation function . Determining their value requires to compute a saddle-point over some overlap parameters with representing overlaps between replicas, and their conjugates ; in turn, this requires an ansatz about the structure of the saddle-point in order to perform the limit.
For the spherical weights, the part (before the limit) reads
while for the binary case we have a very similar expression, except that the summations don’t have the case and the integral over becomes a summation:
In all cases, we study the problem in the large 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 for all , where is the Kronecker delta symbol, and similarly for the conjugated parameters, for all . 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 is found in the binary case by seeking numerically the value of for which the saddle point solutions returns a zero free entropy.For the spherical case, instead, is determined by finding the value of such that , which can be obtained analytically by reparametrizing and expanding around . In this limit, we must also reparametrize using , where is an exponent that depends on the activation function: it is for the sign and for the ReLU. Due to this difference in this exponent, diverges in the sign activation case (as was shown in (barkai1992broken, ; engel1992storage, )), while for the ReLU activations it converges to . 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 (-RSB) ansatz we seek solutions with 3 possible values of the overlaps and their conjugates. We group the replicas in groups of replicas each, and denote with the overlaps among different groups and with the overlaps within the same group. As before, the self overlap is and its conjugate (these are only relevant in the spherical case).
the expressions of and are the same as in the RS case. The expressions of and take the same form as the RS expressions for , except that and must be used instead of .
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 , . We obtain, in the large limit:
where we introduced the auxiliary quantities , , , , and which depend on the choice of the activation function (like the of the previous section). For the sign activations we get:
In order to find the order parameters for any given and , we need to set to the derivatives of the free entropy w.r.t. the order parameters , , and the conjugates , , , , , , 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 , and 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 RSB expressions eqs. (20), (21) and (22). In this case, however, the overlap is not determined by a saddle point equation, but rather it is treated as an external parameter that controls the mutual overlap between the replicas of the system. Also, the parameter is not optimized and it is not restricted to the range ; instead, it plays the role of the number of replicas 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 ). For these reason, there are two saddle point equations less compared to the standard RSB calculation.
The resulting expression for the free entropy represents, in the spherical case, the log-volume of valid configurations (solutions at the correct overlap) of the system of replicas. These configurations are thus embedded in where is the -dimensional sphere of radius . In order to quantify the solution density, we must normalize , subtracting the log-volume of all the admissible configurations at a given without the solution constraint (which is obtained by the analogous computation with ). The resulting quantity is thus upper-bounded by (cf. Fig. (2) of the main text). For the binary case, is the log of the number of admissible solutions, and the same normalization procedure can be applied.
In the case the order parameters and need to be rescaled with and reparametrized with two new quantities and , as follows:
As a consequence, we also reparametrize with a new parameter defined as:
The expressions eqs. (20), (21) and (22) become:
Appendix E Distribution of stabilities
The stability for a given pattern/label pair 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 , 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 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 , , .
In the large deviation case, we simply compute the expression with a RSB ansatz and fix and as described in the previous section. The resulting expression is
where the effective parameters , , and are the same defined in section B.2. In the limit the previous expression reduces to
where is defined in equation (50).