• No results found

Generalized Perceptron case

Very similar results can be obtained also in the case of multiple synaptic states, {0, 1} patterns and various sparsity levels [3].

In figure 4.7, for example we can see the local entropy plotted against the distance in one representative case, for a Perceptron with synaptic states l ∈ {0, 1, 2, 3, 4} and a coding level f = 0.1 for the sparse patterns, and compared with the Franz-Parisi potential at different values of α. The numerical solution of the saddle point equations becomes numerically extremely challenging around the transition point αU, therefore some curves couldn’t be completed. The most notable features that emerge from this figure are qualitatively equivalent to the binary case presented above:

• Typical solutions are isolated: the Franz-Parisi potential curve (typical ˜W

in the figure) becomes negative in a neighborhood of D = 0, determining an extensive gap between neighboring solutions.

• Up to a certain αU < αc (between 1.55 and 1.62 for the specific case in the plot), non-typical dense regions of solutions exist: at small distances the local entropy curves tend to collapse onto the α = 0 curve, which corresponds to the upper bound where each configuration is a solution. • Between αU and αc, there are regions of D where either there is no

solution to the equations or the solution leads to a negative local entropy; both these phenomena indicate a change in the structure of the dense clusters, either disappearing or breaking into small disconnected and isolated components.

It would be interesting to determine numerically the transition point αU, where the dense regions seem to disappear (or are at least no longer easily accessible), as a function of the number of states available to the synapses, measuring the effective gain in capacity of the device as they are added. This problem is extremely challenging from the computational point of view, due the time-consuming task of solving the system of equations that result from the replica analysis and to purely numerical issues related to the finite machine precision available and the trade-offs involved between computational time and

Fig. 4.7 Local entropy density as a function of the distance D from the reference configuration ˜W , comparing the typical case from the Franz-Parisi analysis (black

lines, marked with squares) with the large deviations case (red lines, marked with circles), at various values of the number of patterns per variable α. The upper bound (gray dashed curve) corresponds to the α = 0 case where every configuration is a solution. The unphysical portions of the curves, where the local entropy becomes negative, are dotted. For the typical case, all curves eventually go below zero at some

Dmin > 0, for all values of α, i.e. typical solutions are isolated. For the large deviations

case, the curves for the Φ (D, y⋆(D)) case (RS analysis) and the Φ1RSB(D, ∞) case

(1RSB analysis) yield results which are too close to be distinguished in the plot at this resolution. The “large deviations ˜W ” curve at α = 1.6 is interrupted due to

numerical problems in solving the equations, but it could continue up to D = 0, approaching the upper bound for small α. The curves for α = 1.62 and α = 1.64 are interrupted because the equations stop having solutions at some value of D > 0 (αU transition, see text). The large deviations curve at α = 1.3 is also essentially

increased precision. All these problems are exacerbated near the transition point.

For this reason, the pathological RS analysis (in the limit y → ∞) can be employed to provide an estimate of αU, which can be obtained reasonably efficiently. As it can be seen in the binary case, this estimate is not too far away from the better one obtained in the much more expensive 1RSB Ansatz (αU = 0.755 against αU0.76); in the case of the multi valued model of figure 4.7, the RS analysis at y → ∞ gives αU1.6 while the 1RSB analysis gives

αU between 1.55 and 1.62. Therefore, we can use the RS analysis at y → ∞ to explore the behavior of αU when varying the number of states and the coding level of the patterns. The transition is most easily detected by studying the derivative of the local entropy as a function of the distance ∂DS(D, ∞) (αU is found when it becomes tangent to the x axis, reaching the value 0).

It is a bit trickier to find the optimal value z⋆

1, in the entropic term, when the synapses can take more than two values, since the degeneracy of the stationary points is increased linearly. We can nevertheless simplify the search for the maximum by studying the argument of the function, see figure 4.8:

GS = Z Dz0max ˜ l   ˆ˜Q y˜l 2+ max z1 −z 2 1 2 + log  fQ,ˆ ˆq, δˆq, ˆM , S˜l !  (4.60) fQ,ˆ ˆq, δˆq, ˆM , S˜l=X l expQ −ˆ 1 2ˆq  l2+  z0 q ˆq + z1 q δˆq + ˆM + S˜l  l  (4.61) In figure 4.9A the behavior of αU as a function of the number of states, for various values of the coding level f, is plotted. It is clearly similar to that of the critical capacity αc, cf. figure 2.4. Since in the limit L → ∞ the device should behave as a model with continuous synapses, we expect the ratio of these two thresholds to converge to 1, as it is found in figure 4.9B.

-2 2 4 6 8 z1 -8 -6 -4 -2 2 ArgGs

Fig. 4.8 Study of the argGs function for multiple synaptic states: the parameters where set (randomly) to the values ˆQ = 0.2, ˆq = 3., δ ˆq = 8., ˆD = 0.30, z0 = −2.5,

l ∈ {0, 1, 2}. The function argGs can now have more than two local maxima for each

value of ˜l (blue curves). The easiest way to find the maximum is to search explicitly for

the couple {˜l, l} that maximizes the quantity: −2˜lD + ( ˆˆ Q −21q +ˆ 12δ ˆq)l2+ (z 0

√ ˆ

q + ˆD˜l)l

(corresponding to the green tangent of the yellow parabola, that represents the maximal mode of argGs), and then to initialize Newton’s algorithm at z1 =√δ ˆql.

Fig. 4.9 A. Transition point αU as a function of of the number of states per synapse

L + 1, for different values of the coding rate f , as computed in the approximation of

RS at y → ∞. B. Same as panel A, but αU is divided by the critical capacity αc. Error bars indicate the errors induced by the precision with which the values were determined. Points for different values of f are slightly shifted relative to each other for improved legibility. Despite the limited number of values, a general tendency of this value to increase with L is observed (the ratio is expected to tend to 1 for

Fig. 4.10 Generalization error (teacher-student scenario). From top to bottom: (blue) typical solution; (red) optimal ˜W at d = 0.025 (this solution disappears after

α ≃ 1.2); (black points) solutions from SBPI at N = 10001, 100 samples per point;

(magenta) optimal ˜W at the value of d for which SI is maximum (i.e. it equals the

equilibrium entropy); (green) Bayesian case: error from the average over all solutions. At αT S = 1.245 is the first-order transition to perfect learning; between αT S and

α = 1.5 there is a meta-stable regime; the dashed parts of the curves correspond to

unphysical solutions of the RS equations with negative entropy.