원시데이터 수집 시스템
선정목록으로

Random active path model of deep neural networks with diluted binary synapses

관련 산업용 섬유 · (8) HDPE 섬유(FORPE)

기본 정보

저자
  1. Huang Haiping
  2. Goudarzi, Alireza
DOI
10.48550/arxiv.1705.00850
저널
arXiv (Cornell University)
발행년도
2022
발행기관
Cornell University
피인용수
0
라이선스
0
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.48550/arxiv.1705.00850
토픽
Electric and Hybrid Vehicle Technologies
OpenAlex ID
W6891715629

평가 내용

관련도
관련
사업분야
산업용 섬유 · (8) HDPE 섬유(FORPE)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '산업용 섬유 > HDPE 섬유(FORPE)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Deep learning has become a powerful and popular tool for a variety of machine learning tasks. However, it is challenging to understand the mechanism of deep learning from a theoretical perspective. In this work, we propose a random active path model to study collective properties of deep neural networks with binary synapses, under the removal perturbation of connections between layers. In the model, the path from input to output is randomly activated, and the corresponding input unit constrains the weights along the path into the form of a $p$-weight interaction glass model. A critical value of the perturbation is observed to separate a spin glass regime from a paramagnetic regime, with the transition being of the first order. The paramagnetic phase is conjectured to have a poor generalization performance.

본문 42,915자

본문 펼치기
Random active path model of deep neural networks with diluted binary synapses Haiping Huang <sup>_∗_</sup> _School_ _of_ _Physics,_ _Sun_ _Yat-sen_ _University,_ _Guangzhou_ _510275,_ _People’s_ _Republic_ _of_ _China_ _and_ _Laboratory_ _for_ _Neural_ _Computation_ _and_ _Adaptation,_ _RIKEN_ _Center_ _for_ _Brain_ _Science,_ _Wako-shi,_ _Saitama_ _351-0198,_ _Japan_ Alireza Goudarzi _Laboratory_ _for_ _Neural_ _Computation_ _and_ _Adaptation,_ _RIKEN_ _Center_ _for_ _Brain_ _Science,_ _Wako-shi,_ _Saitama_ _351-0198,_ _Japan_ (Dated: September 27, 2018) Deep learning has become a powerful and popular tool for a variety of machine learning tasks. However, it is challenging to understand the mechanism of deep learning from a theoretical perspective. In this work, we propose a random active path model to study collective properties of deep neural networks with binary synapses, under the removal perturbation of connections between layers. In the model, the path from input to output is randomly activated, and the corresponding input unit constrains the weights along the path into the form of a _p_ -weight interaction glass model. A critical value of the perturbation is observed to separate a spin glass regime from a paramagnetic regime, with the transition being of the first order. The paramagnetic phase is conjectured to have a poor generalization performance. I. INTRODUCTION Deep learning (e.g., with many layers of neural networks) works very well in areas from speech recognition, image classification, to drug discovery, medical image analysis, particle discovery, automatic game playing, and many others [1]. This is due to the available large dataset for training and efficient hardware design such as GPU to accelerate training, rather than breakthrough in theoretical foundations. Theoretical efforts are recently devoted to address partially the origin of these impressive performances of deep networks, relying on simple assumptions [2–8]. One of promising perspectives looking at deep learning is the concept of redundancy, i.e., the deep architecture is robust, to some extent, in the absence of a fraction of connections between layers. In other words, the generalization ability measured by the output error on test (unseen) dataset does not significantly change until a sufficient amount of connections are removed. Indeed, it was recently revealed that deep convolutional neural networks mimicking the ventral visual pathway are robust to a number of weight perturbations in the higher convolutional layers [9]. We also observed that a multi-layer perceptron network classifying handwritten digits has such redundancy behavior (Supplemental Material). This suggests that the redundancy property may be a general principle of deep computation. In terms of synaptic activities, this kind of redundancy is expected to appear from interactions between synapses, in a supervised learning system. From a theoretical perspective, an interesting question arises, i.e., how the statistical property of a deep neural network changes with respect to the removal perturbation of synapses between adjacent layers. We address this question by proposing a simple random active path (RAP) model, in which we construct randomly and independently each active path from the input at the bottom layer to the output at the top layer ( _L_ layers in total), and weights along each path are constrained by the corresponding random input of that path. The RAP model is thus formulated as a _p_ -weight interaction model ( _p_ = _L −_ 1 refers to the depth of the deep network). For simplicity, we assume that the path is randomly activated in the sense that units in each layer are randomly activated with a layer-dependent activation probability and the activation is thus not input-dependent. The activation is defined in terms of ReLU function commonly used in deep learning [10]. In addition, the activation of a path also depends on the removal perturbation of synapses that can make a path inactivated. One significant difference from previous _p_ -spin glass models [11–14] is that the degree (the number of paths one weight is involved in) distribution of weights in the model depends on both the layer-dependent activation probability and the perturbation level of deep neural networks, such that there are multiple peaks in the distribution, and the degree can vary in a wide range of values. The RAP model can be analytically studied by mean-field methods, revealing a critical value of the perturbation separating a paramagnetic phase from a spin glass phase. The paramagnetic phase is conjectured to be related to the _∗_ Electronic address: [physhuang@gmail.com](mailto:physhuang@gmail.com) FIG. 1: (Color online) Schematic illustration of a random construction of the RAP model. Left panel: a 4-layer deep network has an equal width in each layer (except the last layer). Two active paths are selected and share a common weight ( _W_ 5). Circle nodes indicate ReLU units. Right panel: two constraints denoted by square nodes are present in the factor graph of the Hamiltonian (Eq. (3)) and correspond to the two active paths in the left panel. Circle nodes denote the weights on each path. The weights may be connected to other constraints (indicated by dash lines). 0.5 test error train error 0 20 40 60 80 100 0.4 0.3 0.2 0.1 0 0 20 40 60 80 100 epoch ξ2 <sup>(1)</sup> ξ1 <sup>(1)</sup> ξ2 <sup>(2)</sup> ξ1 <sup>(2)</sup> ξ2 <sup>(3)</sup> ξ1 <sup>(3)</sup> 0.5 0.4 0.3 FIG. 2: (Color online) Layer-dependent activation probability as a function of training epochs. Three independent training trials (indicated by superscripts of _ξ_ 1 _,_ 2) are shown. The inset shows one example of how training and test errors change with epochs. The deep network with the same architecture as in Fig. 1 ( _n_ 0 = _n_ 1 = _n_ 2 = 100) is trained using the absolute loss, in which the binary target is generated from a teacher network. We used Adam [16] during stochastic gradient descent of the loss function. 5000 examples are used for training, while the other 1000 examples are used for testing. Results do not qualitatively change when different optimization methods (e.g., reinforced stochastic gradient descent [17]) are used. non-robust regime of deep neural networks under weight perturbations. This result may also explain the performance of the dropconnect algorithm [15], where a finite fraction of connections is stochastically turned off during training, when different fractions are used. The paper is structured as follows. We first introduce the RAP model to study collective properties of deep neural networks with binary synapses, by varying the perturbation level. Theoretical predictions match very well Monte-Carlo simulation results. We give concluding remarks and future perspectives in the final section. II. A RANDOM ACTIVE PATH MODEL In this section, we propose a random active path model to _qualitatively_ understand the collective behavior of deep neural networks with diluted binary synapses, i.e., to address how the statistical property of a deep neural network changes with respect to the removal perturbation of synapses between adjacent layers. We consider a deep network model with _L_ = 4 layers of fully-connected feedforward architecture. Each layer has _nl_ ( _l_ = 0 _, . . ., L −_ 1) units (socalled width of that layer). The deep network architecture is specified by _n_ 0- _n_ 1- _n_ 2- _n_ 3. The input is defined as an _n_ 0-dimensional vector v, and the weight matrix W <sup>_l_</sup> with binary ( _±_ 1) entries specifies connections between layer _l_ and layer _l −_ 1. A bias can be incorporated into the weight matrix by assuming an additional constant input unit. The output at the final layer is expressed as: y = _fL−_ 1 - W <sup>_L−_</sup> <sup>1</sup> _fL−_ 2( W <sup>_L−_</sup> <sup>2</sup> _· · · f_ 1( W <sup>1</sup> v ))� _,_ (1) where _fl_ ( _·_ ) is an element-wise ReLU function for units at layer _l_, defined as _fl_ ( _ui_ ) = max(0 _, ui_ ) where _ui_ is the weighted-sum input to the unit _i_ at layer _l_ . For simplicity, we assume that all layers except the top one use ReLU transfer function, and the top layer has only one output unit that uses an identity map [4]. An active path refers to the path from one input unit to one output unit with the property that each connection on the path is present (each synapse is deleted with a dilution probability _pl_, where _l_ specifies the weight population between two consecutive layers ( _l_ and ( _l_ _−_ 1)-layer)) and all units along the path are activated because of ReLU activation. It follows that the network output defined in Eq. (1) can be re-expressed as [2, 3] _L−_ 1 _k_ =1 _Wa_ <sup>_k,_</sup> (2) _y_ = Ψ _a_ =1 _v_ <sup>_a_</sup> where Ψ denotes the total number of active paths converged to the output unit, _v_ <sup>_a_</sup> denotes the input specified to the _a_ -th path for the output, and _Wa_ <sup>_k_</sup> <sup>_∈{±_</sup> <sup>1</sup> <sup>_}_</sup> <sup>denotes</sup> <sup>the</sup> <sup>entry</sup> <sup>of</sup> <sup>W</sup> <sup>_k_</sup> <sup>that</sup> <sup>is</sup> <sup>used</sup> <sup>in</sup> <sup>the</sup> <sup>_a_</sup> <sup>-th</sup> <sup>path</sup> <sup>for</sup> <sup>the</sup> <sup>output.</sup> A random construction of active paths is shown in Fig. 1, where only active paths are used to construct the Hamiltonian of the model composed of many constraints (represented by square nodes), and each of these constraints (e.g., _a_ ) is given by the input _v_ <sup>_a_</sup> specified to the corresponding active path. In this construction process, we assume that activation of paths is independent of input [2], realized by the units of each hidden layer activated independently with an activation probability, say _ξl_ that is layer-dependent and can be empirically estimated from deep neural network trainings (Fig. 2). The Hamiltonian of the RAP model can thus be written as _Aav_ <sup>_a_</sup> <sup>�</sup> _i∈∂a_ _H_ ( W ) = _−_ _n_ <sup>3</sup> _a_ =1 _Wi,_ (3) where _n_ denotes the layer width (the same for all layers except the last one), _Aa_ is a binary value indicating the activation ( _Aa_ = 1) or silent ( _Aa_ = 0), and _∂a_ denotes the set of the weights involved in the active path _a_ . According to the random construction, the probability of a constructed active path is defined by _P_ ( _Aa_ = 1) = <sup>�</sup> _l_ <sup>_ξl_</sup> <sup>(1</sup> <sup>_−pl_</sup> <sup>), where</sup> _ξl_ and _pl_ are aforementioned activation and dilution probabilities, respectively. Note that the weight configuration W in the model is a subset of _{_ W <sup>_l_</sup> _}_ in Eq. (1) unless all _n_ <sup>3</sup> paths of the deep network become active. Here, we assume that _v_ <sup>_a_</sup> are randomly selected from components of a random input vector v whose components follow independently a binary distribution ( _P_ ( _vi_ = _±_ 1) = 0 _._ 5). During the random construction, some constraints may share the same value of _v_ <sup>_a_</sup>, i.e., the corresponding paths share a common input unit. To build a naive relationship between the Hamiltonian we studied here and the loss function (e.g., absolute loss) used in training (Fig. 2), we assume that the true label is denoted by _Yt_ = _±_ Λ where Λ _>_ 0 is a predefined maximal output. We then define _H_ = _−_ sgn( _Yt_ ) _y_ . It is easy to verify that the learning process minimizing the absolute loss ( _C_ = _|Yt −_ _y|_ ) between the target and the actual output _y_ is equivalent to finding the minimal value of _H_ in the RAP model. If we assume _Yt_ is random, sgn( _Yt_ ) can be absorbed into the input and the model is statistically invariant. The random hinge loss can also be similarly analyzed. Although it is challenging to prove the assumptions we made above reasonable in practical deep networks, the above _p_ -weight interaction model still provides us a nice starting point to qualitatively understand complicated properties of deep neural networks. We will show interesting (non-trivial) properties of this simple model below. We first evaluate the empirical values of the layer-dependent activation probability ( _ξl_ ) from training a deep neural network with the same structure as our model (Fig. 1). The only difference is that, the binary target at the top layer is generated by a teacher network with the same structure fed with the corresponding input. The result is shown in Fig. 2, which implies that the first hidden layer has a higher activation probability (nearly independent of trials) than the subsequent layer. The activation probability in the subsequent layer varies in a relatively large range, suggesting a sparse distributed representation for efficient computation in the deep ReLU network [18]. Therefore, in our model analysis, we fix _ξ_ 1 = 0 _._ 5, and _ξ_ 2 = 0 _._ 05 _,_ 0 _._ 1 _,_ 0 _._ 15. In fact, the value of _ξ_ 1 = 0 _._ 5 can be derived by assuming a normal distribution for the weighted-sum _ui_ . The model defined in Eq. (3) can be expressed as a factor graph like the one shown in Fig. 1. The degree of a weight is thereby defined as the number of constraints the weight is involved in. The degree distribution of weights in a typical example is shown in Fig. 3 (a), which suggests that there exists three peaks corresponding to weights drawn from three different weight populations. The well-structured degree distribution is a feature of the RAP model constructed to mimic the behavior of a deep neural network. 0 0.2 0.4 0.6 0.8 1 p1 0 0.2 0.4 0.6 0.8 1 p1 (b) 3,000 2,500 2,000 1,500 1,000 500 0 0 10 20 30 40 50 60 70 degree (a) 1 0.8 −0.5 −1 −1.5 −2 −2.5 −3 −3.5 Monte-Carlo mean-field 0.5 0.4 0.3 0.2 ~~<u>0.1</u>~~ 0 100 80 60 40 20 0 p1=0.9, ξ1=0.5, ξ2=0.1, n=100 10 20 30 40 50 60 70 0.6 0.4 0.2 0 Monte-Carlo mean-field 0 0.2 0.4 0.6 0.8 1 p1 (c) FIG. 3: (Color online) Statistical properties of the RAP model. We consider the case of _ξ_ 1 = 0 _._ 5, _ξ_ 2 = 0 _._ 1, and _β_ = 1. The result is averaged over five random samples of the model with the maximal number of weights equal to 2 _n_ <sup>2</sup> + _n_ = 20100. MonteCarlo simulation results are compared. (a) The degree distribution of weights in a random instance. The inset is an enlarged view. The qualitative behavior does not change when another instance is generated. (b) Energy per weight as a function of the dilution probability _p_ 1. The entropy is shown in the inset. (c) Spin glass order parameter ( _Q_ = _N_ <u>1</u> _w_ - _i_ <sup>_m_</sup> _i_ <sup>2,</sup> <sup>where</sup> <sup>_Nw_</sup> <sup>is</sup> _i_ <sup>_m_</sup> _i_ <sup>2</sup> the dilution probability _p_ 1. The entropy is shown in the inset. (c) Spin glass order parameter ( _Q_ = _N_ <u>1</u> _w_ - _i_ <sup>_m_</sup> _i_ <sup>2,</sup> <sup>where</sup> <sup>_Nw_</sup> <sup>is</sup> the total number of weights in the model) versus the dilution probability _p_ 1. The magnetization _mi_ can be estimated by either mean-field mehtods or Monte-Carlo sampling. The RAP model (Eq. (3)) is thus different from previous _p_ -spin glass models [11–14] in three aspects. First, the model is interpreted in terms of active-path decomposition of a deep network’s output that is directly connected to training/test errors. In particular, the binary activation indicator _Aa_ is controlled by two deep-network-dependent parameters—the dilution probability and layer-dependent activation probability of units. Second, when an active path is randomly constructed, the quenched disorder comes from the corresponding input unit, thereby being physically explained. Lastly, the constructed model has a distinct three-peak degree distribution in the corresponding graphical representation, and each peak reflects the feature of a different layer. The mean-field model defined in Eq. (3) can be solved by the cavity method [19, 20]. The technical details are summarized in Appendix A. We consider the case of varying _p_ 1 with zero _p_ 2 and _p_ 3. Because of layer-dependent activation probability, the quantitative behavior depends on which weight population is diluted. As shown in Fig. 3 (b) and (c), given the inverse temperature _β_ = 1, the RAP model has a paramagnetic phase when _p_ 1 is larger than 0 _._ 9, and the energy keeps decreasing as _p_ 1 decreases. The theoretical prediction of the cavity method is in agreement with the simple Monte-Carlo simulations of the model (simulation details are given in Appendix B), despite deviations around the transition point. The deviations may be caused by the nature of the transition and sampling accuracy of the quenched Monte-Carlo procedure. First, the transition is of the first-order (Fig. 3 (c)), because there exists 1 0.8 0.6 0.4 0.2 β=0.83 β=1 β=1.25 ξ2=0.05 ξ2=0.1 ξ2=0.15 1 0.8 0.6 0.4 0.2 0 0.5 0.6 0.7 0.8 0.9 1 p1 (a) 0 0.5 0.6 0.7 0.8 0.9 1 p1 (b) FIG. 4: (Color online) Spin glass order parameter versus the dilution probability, when the activation probability _ξ_ 2 (a) and the inverse-temperature (b) are varied. In (a), the temperature is fixed to one, while _ξ_ 2 is fixed to 0.05 in (b). Other parameters are the same as in Fig. 3. The results are computed by the mean-field method. metastability of states (paramagnetic state versus spin glass state in which weights prefer to polarize towards a particular direction, but a spatial average over all magnetizations vanishes). Therefore, even in paramagnetic phase, depending on the details of the evolution, the quenched Monte-Carlo dynamics has a certain probability to be attracted by the spin glass state, which seems to have a lower energy than the paramagnetic state yet a weak contribution to the equilibrium measure in the paramagnetic phase (in terms of free energy taking into account the entropy contribution). Second, the accuracy of the Monte-Carlo sampling is affected by the number of collected configurations and relaxation steps, and how abruptly the energy landscape is changed. The effect is expected to be stronger around the transition point than the regime where one phase already overwhelms the other, which is reflected by the large error bars in Fig. 3 (c). As shown in the inset of Fig. 3 (b), the entropy increases when more and more weights are pruned. In this case of large _p_ 1, the deep network system becomes less constrained with a large number of candidate weight configurations, but the energy is relatively high. The entropy curve also displays a slight jump (about 0 _._ 03 when _p_ 1 increases from 0 _._ 9 to 0 _._ 91), which is a characteristic of the first-order phase transition. Overall, the equilibrium properties of the RAP model demonstrate that reducing the dilution probability will trigger a phase transition towards a spin glass state, and the paramagnetic phase located at a high dilution probability is clearly not favored, because it does not support the generalization ability of the network (one does not expect a randomly polarized (with equal probability) yet equilibrium configuration of weights yields a good generalization), and thus may connect to the high test errors when a sufficiently large fraction of connections are removed (Supplemental Material). Finally, we explore the effects of different inverse-temperatures and intermediate-layer activation probabilities on the phase transition in Fig. 4. When the activation probability decreases, the critical dilution probability decreases as well. This implies that the regime of the paramagnetic phase expands, impairing the generalization performance of the network when an intermediate number of weights are deleted. On the other hand, the inverse-temperature is a measure of the stochastic noise level in learning process. A high temperature also expands the paramagnetic phase, thereby impairing the network’s robustness. We further investigate the effects of inverse-temperatures on the validity of our results. With decreasing the temperature, the iteration of mean-field equations (Appendix A) will lose its stability (Fig. 5 (a)), for example, exhibiting an oscillatory behavior. In this case, the weight space may develop complex structures, i.e., the low-energy configurations form exponentially many clusters, and they may further condense onto a finite number of states, especially when the temperature is further lowered down. Then we should adopt the replica symmetry breaking assumption to study this complex situation (Appendix A). However, within the temperature range we explore in Fig. 3 and Fig. 4, the iteration is stable, leading to a converged value for the order parameter. Moreover, the entropy does not become negative (Fig. 5 (b)). The energy level predicted by the mean-field method coincides well with that reached by the Monte-Carlo dynamics, although at a slightly low temperature, the mean-field method, compared with the Monte-Carlo dynamics, can reach a lower energy level (the inset of Fig. 5 (b)). We also perform simulated annealing experiments on the constructed model to study the effects of cooling rates on the final reached energy levels (technical details are given in Appendix B). Interestingly, when the cooling becomes slower, the energy level 1 0.8 0.6 0.4 0.2 0 1 1.5 2 2.5 3 3.5 4 4.5 β (a) −1 −1.05 −1.1 −1.15 −1.2 β=1 β=4 0 1,000 2,000 3,000 4,000τ 0.25 0.2 0.15 0.1 −1 mean-field Monte-Carlo −1.05 −1.1 −1.15 −1.2 0.8 1 1.2 1.4 1.6 1.8 2 2.2 2. ~~4~~ β p1=0.6,ξ1=0.5,ξ2=0.05 0.05 0.8 1 1.2 1.4 1.6 1.8 2 2.2 2.4 β (b) FIG. 5: (Color online) (a) Stability of the mean-field iteration and the energy levels reached by the simulated annealing where cooling rates ( _τ_ ) are tuned (see Appendix B). The stability is measured by the fraction of the iteration convergence among ten trials. _p_ 1 = 0 _._ 6. _ξ_ 2 = 0 _._ 05. Other parameters are the same as in Fig. 3. (b) Entropy per weight changes with inverse-temperatures. The inset shows the energy per weight. Other parameters are the same as in Fig. 3. the dynamics reaches does not show a significant change (Fig. 5 (a)), indicating that a dynamical ergodicity-breaking transition is not apparent. In this work, we only consider 4-layer feedforward neural networks, which correspond to a three-body interaction spin model. It is interesting to study the infinite depth limit, because in a standard _p_ -spin interaction model where the coupling between spins follows a Gaussian distribution, and all possible coupling among _p_ spins are considered, Derrida showed that in the large- _p_ limit, the model behaves like a random energy model, in which the joint energy level distribution becomes factorized, and a frozen phase can be identified when the temperature is lowered down [21]. In our current context, according to the techniques used in Refs. [21, 22], the joint distribution of _N_ = 2 <sup>_Nw_</sup> energy levels can be expressed as i _E_ <sup>ˆ</sup> _aEa_ + _n_ <sup>_p_</sup> <sup>�</sup> _l_ _,_ (4) _N_ _a_ =1 �� _a_ _a_ �� _ξl_ (1 _−_ _pl_ ) �� - <sup>�</sup> _P_ ( _E_ 1 _, E_ 2 _, . . ., EN_ ) = - + _∞_ _−∞_ _<u>dE</u>_ <sup>ˆ</sup> _<u>a</u>_ 2 _π_ <sup>exp</sup> cosh(i _E_ <sup>ˆ</sup> _a_ ) _−_ 1 where _n_ <sup>_p_</sup> <sup>�</sup> where _n_ <sup>_p_</sup> <sup>�</sup> _l_ <sup>_ξl_</sup> <sup>(1</sup> <sup>_−_</sup> <sup>_pl_</sup> <sup>)</sup> <sup>is</sup> <sup>exactly</sup> <sup>the</sup> <sup>number</sup> <sup>of</sup> <sup>active</sup> <sup>paths</sup> <sup>in</sup> <sup>the</sup> <sup>model,</sup> <sup>and</sup> <sup>the</sup> <sup>number</sup> <sup>is</sup> <sup>expected</sup> <sup>to</sup> <sup>be</sup> <sup>finite</sup> when _p_ tends to be infinite. It follows that the single energy level follows a Gaussian distribution with a fluctuation of the order of [ _n_ <sup>_p_</sup> <sup>�</sup> _l_ <sup>_ξl_</sup> <sup>(1</sup> <sup>_−_</sup> <sup>_pl_</sup> <sup>)]1</sup> <sup>_/_</sup> <sup>2</sup> <sup>around</sup> <sup>zero,</sup> <sup>to</sup> <sup>leading</sup> <sup>order.</sup> <sup>To</sup> <sup>derive</sup> <sup>Eq.</sup> <sup>(4),</sup> <sup>we</sup> <sup>assume</sup> <sup>that</sup> <sup>the</sup> <sup>overlap</sup> <sup>_q_</sup> of the order of [ _n_ <sup>_p_</sup> <sup>�</sup> _l_ <sup>_ξl_</sup> <sup>(1</sup> <sup>_−_</sup> <sup>_pl_</sup> <sup>)]1</sup> <sup>_/_</sup> <sup>2</sup> <sup>around</sup> <sup>zero,</sup> <sup>to</sup> <sup>leading</sup> <sup>order.</sup> <sup>To</sup> <sup>derive</sup> <sup>Eq.</sup> <sup>(4),</sup> <sup>we</sup> <sup>assume</sup> <sup>that</sup> <sup>the</sup> <sup>overlap</sup> <sup>_q_</sup> between two configurations is smaller than one in the magnitude, therefore _q_ <sup>_p_</sup> is a negligible term. We also use the gauge transformation [23]. It is not immediate to conclude that the energy levels are independent random variables from Eq. (4). Studying the neural network in the infinite depth limit is very interesting. In practice, training a very deep network is not easy due to the gradient vanishing problem. However, in the infinite depth limit, the energy levels may be organized into a non-trivial structure (e.g., a hierarchical organization like the one in glassy systems). The detailed exploration of this limit is beyond the current scope, and we leave that for future works. III. DISCUSSION The deep architecture is expected to be robust in the absence of a small fraction of connections between layers. In practice, not all connections (synapses) are used for transforming the original input, given that the number of parameters in modern deep learning architectures is typically much larger than the amount of training data. Given the redundancy property, the deep network has the chance of repairing and modification of subnetworks, without affecting the overall function. It was recently revealed that deep convolutional neural networks mimicking the ventral visual pathway are robust to a number of weight perturbations in the higher convolutional layers [9]. This suggests that the redundancy property may be a general principle of deep computation. Motivated by these empirical observations, we propose the RAP model to understand how the collective properties of deep neural networks change with the removal perturbation. Reducing the number of active paths drives the network to a paramagnetic phase where the weights behave like a noise with zero mean. In the opposite direction, the network enters a spin glass regime through a first-order phase transition. In the spin glass phase, the weights polarize to their own particular directions, rather than fluctuating with zero mean. This regime is meaningful in the sense that the network learns the feature of the input-output relationship hidden in the training data, with a configuration of particularly-polarized weights, which may connect to the robustness property of deep networks. In contrast, the paramagnetic phase does not have such properties, since weights behave like a random guess (taking both directions with equal probability). In other words, the redundancy is completely removed. In addition, the nature of the transition implies that around the transition, the paramagnetic phase is still stable and competes with the spin glass phase, which predicts that the learning should be difficult when the hyper-parameter such as dilution probability is chosen to be around the transition point. Our model may connect to the dropconnect technique [15], one popular regularization technique used during training deep networks. The dropconnect was proposed to stochastically turn off a finite fraction of connections during training, providing a sampling of model ensemble in the course of the training, thereby reducing over-fitting effects. When the dropconnect probability (the fraction of connections kept during training) is very small, the performance gets worse rapidly as the probability further decreases [15], which is consistent with the paramagnetic phase as explained above. This suggests that one should choose a relatively large dropconnect probability to implement a sampling of good model ensemble in terms of its robustness in the learning performance. The RAP model still needs to be improved by considering how activation of paths relies on the (structured) input and its specific label, together with conditional dependence of units’ activity at one layer on their previous layer. Thus this work encourages further refined models that can have quantitative predictions of the collective behavior observed in practical applications of deep learning. On the other hand, when the learning noise is weak, which corresponds to using a low temperature to explore the model’s properties, the model may exhibit rich equilibrium/dynamical properties, for which replica symmetry breaking calculations or glassy dynamics analysis may provide theoretical insights. These insights may also clarify how the robustness property of a deep network under training is affected. We leave this for future works. Appendix A: Mean field method to solve the RAP model We present self-consistent mean-field equations in this appendix to analyze the statistical properties of the RAP model (Eq. (3)). These equations can be derived using the standard cavity method [20, 24]. First, the weight configuration W follows the Boltzmann distribution _P_ ( W ) _∝_ _e_ <sup>_−βH_</sup> <sup>(</sup> <sup>W</sup> <sup>)</sup>, where the normalization constant defined by _Z_ is the partition function of the model, and the inverse-temperature _β_ determines the energy level one is interested in. We first calculate the partition function of a new system obtained by adding a weight and its associated _C_ constraints (the degree of this weight is _C_ ), as given by _βv_ <sup>_a_</sup> <sup>�</sup> _Wk_ + _β_ _k∈∂a_ _Z_ <sup>_new_</sup> = _Wi_ _v_ <sup>_b_</sup> _Wi_ _Wj_ W �� <sup>_M_</sup> exp _a_ =1 _C_ _b_ =1 _j∈∂b\i_ (A1) = _Z_ <sup>_old_</sup> <sup>�</sup> _Wi_ _b_ _{Wj_ _}_ : _j∈∂b\i_ _j∈∂b\i_ - <u>1 +</u> _<u>Wjmj→b</u>_ 2 - _· e_ <sup>_βvbWi_</sup> - _j∈∂b\i_ <sup>_Wj_</sup> ���cosh _βv_ <sup>_b_</sup> <sup>�</sup> �� 1 + tanh _βv_ <sup>_b_</sup> <sup>�</sup> _j∈∂b\i_ _mj→b_ �� + = _Z_ <sup>_old_</sup> ��cosh _βv_ <sup>_b_</sup> <sup>�</sup> 1 _−_ tanh _βv_ <sup>_b_</sup> <sup>�</sup> _b_ _j∈∂b\i_ _mj→b_ �� <sup>�</sup> _,_ _b_ where _M_ denotes the total number of active paths (constraints) in the model, _Wi_ is the newly added weight, _Z_ <sup>_old_</sup> = - W <sup>exp(�</sup> <sup>_M_</sup> _a_ =1 <sup>_βva_</sup> <sup>�</sup> _i∈∂a_ <sup>_Wi_</sup> <sup>)</sup> <sup>is</sup> <sup>the</sup> <sup>partition</sup> <sup>function</sup> <sup>of</sup> <sup>the</sup> <sup>old</sup> <sup>system,</sup> <sup>_mj→b_</sup> <sup>is</sup> <sup>the</sup> <sup>cavity</sup> <sup>magnetization</sup> <sup>of</sup> <sup>weight</sup> <sup>_M_</sup> _a_ =1 <sup>_βva_</sup> <sup>�</sup> - W <sup>exp(�</sup> <sup>_M_</sup> _a_ =1 <sup>_βva_</sup> <sup>�</sup> _i∈∂a_ <sup>_Wi_</sup> <sup>)</sup> <sup>is</sup> <sup>the</sup> <sup>partition</sup> <sup>function</sup> <sup>of</sup> <sup>the</sup> <sup>old</sup> <sup>system,</sup> <sup>_mj→b_</sup> <sup>is</sup> <sup>the</sup> <sup>cavity</sup> <sup>magnetization</sup> <sup>of</sup> <sup>weight</sup> _j_ in the absence of constraint _b_, and _j_ _∈_ _∂b\i_ denotes the set of weights involved in the constraint _b_ but _i_ is excluded from this set. To derive the second equality in Eq. (A1), we use the assumption that when a constraint is removed, its neighboring weights become independent, which is asymptotically correct when the factor graph is locally tree-like. Upon defining the conjugate magnetization _m_ ˆ _b→i_ _≡_ tanh _βv_ <sup>_b_</sup> <sup>�</sup> _j∈∂b\i_ <sup>_mj→b_</sup> <sup>,</sup> <sup>one</sup> <sup>gets</sup> <sup>the</sup> <sup>free</sup> <sup>energy</sup> <sup>shift:</sup> _j∈∂b\i_ <sup>_mj→b_</sup> <sup>,</sup> <sup>one</sup> <sup>gets</sup> <sup>the</sup> <sup>free</sup> <sup>energy</sup> <sup>shift:</sup> _−_ _β_ ∆ _Fi_ = ln <sup>_<u>Z</u>_</sup> <sup>_new_</sup> _Z_ <sup>_old_</sup> �� �cosh _βv_ <sup>_b_</sup> (1 + _m_ ˆ _b→i_ )� + �cosh _βv_ <sup>_b_</sup> (1 + _m_ ˆ _b→i_ ) - - <sup>�</sup> cosh _βv_ <sup>_b_</sup> (1 _−_ _m_ ˆ _b→i_ ) _._ (A2) _b∈∂i_ <sup>_new_</sup> _Z_ <sup>_old_</sup> <sup>= ln</sup> _b∈∂i_ Then, we add a constraint (e.g., _a_ ) to form a new system, and calculate the new partition function as _v_ <sup>_b_</sup> <sup>�</sup> _Wk_ + _βv_ <sup>_a_</sup> <sup>�</sup> _k∈∂b_ _i∈∂a_ _Z_ <sup>_new_</sup> = = W W _e_ <sup>_β_</sup> <sup>�</sup> _b_ <sup>_M_</sup> =1 <sup>_vb_</sup> <sup>�</sup> _e_ <sup>_β_</sup> <sup>�</sup> _b_ <sup>_M_</sup> exp� _β_ - _β_ _M_ _b_ =1 _Wi_ _k∈∂b_ <sup>_Wk_</sup> <sup>_eβva_</sup> <sup>�</sup> _i∈∂a_ <sup>_Wi_</sup> _k∈∂b_ <sup>_Wk_</sup> <sup>�</sup> W _b_ <sup>_M_</sup> =1 <sup>_vb_</sup> <sup><u>�</u></sup> _<u>e</u>_ <sup>_β_</sup> <sup>�</sup> _b_ <sup>_M_</sup> =1 <sup>_vb_</sup> <sup>�</sup> _k∈∂b_ <sup>_Wk_</sup> <u>�</u> _b_ =1 <sup>_vb_</sup> <sup><u>�</u></sup> _k∈∂b_ W <sup>_eβ_</sup> <sup><u>�</u></sup> <sup>_M_</sup> _<u>e</u>_ <sup>_β_</sup> <sup>�</sup> _b_ <sup>_M_</sup> W <sup>_eβ_</sup> <sup><u>�</u></sup> _b_ <sup>_M_</sup> _b_ <sup>_M_</sup> =1 <sup>_vb_</sup> <sup>�</sup> = _Z_ <sup>_old_</sup> <sup>�</sup> W _P_ ( W ) _e_ <sup>_βva_</sup> <sup>�</sup> _i∈∂a_ <sup>_Wi_</sup> = _Z_ <sup>_old_</sup> _{Wi}_ : _i∈∂a_ - <u>1 +</u> _<u>mi→aWi</u>_ 2 _e_ <sup>_βva_</sup> <sup>�</sup> _i∈∂a_ <sup>_Wi_</sup> _i∈∂a_ = _Z_ <sup>_old_</sup> _·_ cosh _βv_ <sup>_a_</sup> <sup>�</sup> 1 + tanh _βv_ <sup>_a_</sup> <sup>�</sup> _i∈∂a_ _mi→a_ - _._ The corresponding free energy shift is thus _−β_ ∆ _Fa_ = ln cosh _βv_ <sup>_a_</sup> <sup>�</sup> free energy scaled by _β_ can be constructed as follows [19]: 1 + tanh _βv_ <sup>_a_</sup> <sup>�</sup> _i∈∂a_ <sup>_mi→a_</sup> (A3) - <sup>�</sup> . Finally, the Bethe �( _|∂a| −_ 1)∆ _Fa._ (A4) _F_ _≡−_ ln _Z_ = _i_ ∆ _Fi −_ _a_ Following a variational principle of the free energy, one can derive the recursive equation of _{mi→a,_ _m_ ˆ _b→i}_ as follows:   <sup>�</sup> _b∈∂i\a_ _mi→a_ = tanh tanh <sup>_−_</sup> <sup>1</sup> _m_ ˆ _b→i_   _,_ (A5a) _m_ ˆ _b→i_ = tanh _βv_ <sup>_b_</sup> <sup>�</sup> _j∈∂b\i_ _mj→b,_ (A5b) where _∂b\i_ denotes the member of interaction _b_ except _i_, and _∂i\a_ denotes the interaction set _i_ is involved in with _a_ removed. _mi→a_ is interpreted as the message passing from the weight _i_ to the interaction _a_ it participates in, while _m_ ˆ _b→i_ is interpreted as the message passing from the interaction _b_ to its member _i_ . We call this iteration equation the belief propagation, which serves as the message passing algorithm whose fixed point corresponds to the stationary point of the Bethe free energy, from the variational principle [24]. With the free energy, one can estimate both the entropy and the energy of the model. The energy is given by: �( _|∂a| −_ 1)∆ _Ea,_ (A6a) _E_ = _−_ _i_ ∆ _Ei_ + _a_ ∆ _Ei_ = - _<u>x</u>_ <u>=</u> _<u>±</u>_ <u>1</u> <sup>_Gi_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <u>�</u> _x_ = _±_ 1 <sup>_Hi_</sup> <sup>(</sup> <sup>_x_</sup> _x_ = _±_ 1 <sup>_Hi_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_,_</sup> (A6b) ∆ _Ea_ = _v_ <sup>_a_</sup> <sup>tanh</sup> <sup>_βva_</sup> <sup>+</sup> <sup>�</sup> _i∈∂a_ <sup>_mi→a_</sup> _<u>i∈∂a</u>_ <sup>_mi→a_</sup> <sup>tanh</sup> <sup>_βva_</sup> <sup>+</sup> <sup>�</sup> 1 + tanh _βv_ <sup>_a_</sup> <sup><u>�</u></sup> _i∈∂a_ <sup>_mi→_</sup> _,_ (A6c) _v_ <sup>_b_</sup> sinh _βv_ <sup>_b_</sup> (1 + _xm_ ˆ _b→i_ ) + _xv_ <sup>_b_</sup> cosh _βv_ <sup>_b_</sup> (1 _−_ tanh <sup>2</sup> _βv_ <sup>_b_</sup> ) _mj→b_ _Gi_ ( _x_ ) = _×_ _Hi_ ( _x_ ) = _b∈∂i_ - cosh _βv_ <sup>_b_</sup> (1 + _xm_ ˆ _b→i_ ) _._ (A6e) _b∈∂i_ (A6d) �� cosh _βv_ <sup>_a_</sup> (1 + _xm_ ˆ _a→i_ ) _,_ _a∈∂i\b_ _j∈∂b\i_ The entropy can be obtained by using the standard thermodynamic formula as _S_ = _−F_ + _βE_ . In the paramagnetic phase, all magnetizations vanish, and analytic expressions for both energy and entropy can be derived. The energy per weight is written as _−α_ tanh _β_, where _α_ denotes the ratio between the number of constructed active paths and the number of weights involved in these paths, and the value of _α_ depends on both _pl_ and _ξl_, and thus can be estimated after the random construction of the RAP model. Analogously, the entropy per weight is written as ln 2 + _α_ (ln cosh _β −_ _β_ tanh _β_ ). The above equation is derived under the replica symmetry assumption, i.e., the Gibbs state does not split into an exponential number of states where each of them (indexed by _γ_ ) is described by a free energy _F_ <sup>_γ_</sup> . If this assumption is broken, a replica symmetry breaking picture should be introduced. Under this picture, the message passing along each edge (e.g., _i →_ _a_ ) of the factor graph turns out to be a probability density _Pi→a_ ( _mi→a_ ), capturing the fluctuations of a replica symmetric message among different states. The replica symmetry breaking case can be in principle analyzed, yet complicates the analysis, therefore we would not give a full introduction here, and interested readers can find basics in the classic book [24]. We remark here that the replica symmetry solution seems enough to describe the thermodynamic behavior of the investigated model, within the explored range of parameters, which is supported by the stability of the solution and the non-negative entropy for a discrete system. Appendix B: Monte-Carlo method to simulate the RAP model Given the model defined in Eq. (3), one can explore its energy landscape by using the Monte-Carlo importance sampling method. More precisely, after a random initialization of the weight configuration, the configuration is updated by the following rule: the transition probability from state W to W <sup>_′_</sup> with only _Wi_ flipped ( _Wi_ <sup>_′_</sup> <sup>=</sup> <sup>_−Wi_</sup> <sup>)</sup> <sup>is</sup> updated by the following rule: the transition probability from state W to W <sup>_′_</sup> with only _Wi_ flipped ( _Wi_ <sup>_′_</sup> <sup>=</sup> <sup>_−Wi_</sup> <sup>)</sup> <sup>is</sup> expressed as exp( _−_ 2 _βWiHi_ ) where the effective local field is defined as _Hi_ = <sup>�</sup> _a∈∂i_ <sup>_va_</sup> <sup>�</sup> _j∈∂a\i_ <sup>_Wj_</sup> <sup>.</sup> <sup>In</sup> <sup>our</sup> <sup>Monte-</sup> _a∈∂i_ <sup>_va_</sup> <sup>�</sup> expressed as exp( _−_ 2 _βWiHi_ ) where the effective local field is defined as _Hi_ = <sup>�</sup> _a∈∂i_ <sup>_va_</sup> <sup>�</sup> _j∈∂a\i_ <sup>_Wj_</sup> <sup>.</sup> <sup>In</sup> <sup>our</sup> <sup>Monte-</sup> Carlo simulations, the system is quenched directly from a very high temperature (random initialization) to the desired temperature. The dynamics evolves for a certain number of sweeps (each sweep consists in _Nw_ proposed weight flips), and is finally sampled to evaluate thermodynamic quantities such as energy, spin glass order parameters. We run the dynamics in a total of 10 <sup>4</sup> sweeps, and after relaxation, 500 configurations are collected for numerical computations. The hyper-parameters of Monte-Carlo sampling are chosen to take the trade-off between accuracy and computational cost for a system of _O_ (10 <sup>3</sup> ) _∼O_ (10 <sup>4</sup> ) degrees of freedom. We also perform simulated annealing experiments with _τ_ Monte-Carlo sweeps per temperature. The temperature is decreased according to the set _{_ 2 _Tf_ _,_ 2 _Tf_ _−_ ∆ _T, . . ., Tf_ _}_ where ∆ _T_ = 0 _._ 1. We change the value of _τ_ to study the temperature effects on the energy level that can be reached by the simulated annealing. Acknowledgments We would like to thank Taro Toyoizumi for discussions. We also thank the referee for the stimulating comments. This research was supported by AMED under Grant Number JP18dm020700 and the start-up budget 74130-18831109 of the 100-talent-program of Sun Yat-sen University. [1] I. Goodfellow, Y. Bengio, and A. Courville, _Deep_ _Learning_ (MIT Press, Cambridge, MA, 2016). [2] A. Choromanska, M. Henaff, M. Mathieu, G. Ben Arous, and Y. LeCun, ArXiv e-prints 1412.0233 (2014). [3] P. Chaudhari and S. Soatto, ArXiv e-prints 1511.06485 (2015). [4] K. Kawaguchi, ArXiv e-prints 1605.07110 (2016). [5] D. Soudry and Y. Carmon, ArXiv e-prints 1605.08361 (2016). [6] P. Vardan, Y. Romano, and M. Elad, ArXiv e-prints 1607.08194 (2016). [7] T. Poggio, K. Kawaguchi, Q. Liao, B. Miranda, L. Rosasco, X. Boix, J. Hidary, and H. Mhaskar, ArXiv e-prints 1801.00173 (2018). [8] B. Poole, S. Lahiri, M. Raghu, J. Sohl-Dickstein, and S. Ganguli, in _Advances_ _in_ _Neural_ _Information_ _Processing_ _Systems_ _29_, edited by D. D. Lee, M. Sugiyama, U. V. Luxburg, I. Guyon, and R. Garnett (Curran Associates, Inc., 2016), pp. 3360–3368. [9] N. Cheney, M. Schrimpf, and G. Kreiman, ArXiv e-prints 1703.08245 (2017). [10] V. Nair and G. E. Hinton, in _Proceedings_ _of_ _the_ _27th_ _International_ _Conference_ _on_ _International_ _Conference_ _on_ _Machine_ _Learning_ (Omnipress, USA, 2010), ICML’10, pp. 807–814. [11] E. Gardner, Nuclear Physics B 257, 747 (1985). [12] T. R. Kirkpatrick and D. Thirumalai, Phys. Rev. B 36, 5388 (1987). [13] S. Franz, M. M´ezard, F. Ricci-Tersenghi, M. Weigt, and R. Zecchina, EPL (Europhysics Letters) 55, 465 (2001). [14] Montanari, A. and Ricci-Tersenghi, F., Eur. Phys. J. B 33, 339346 (2003). [15] L. Wan, M. Zeiler, S. Zhang, Y. L. Cun, and R. Fergus, in _Proceedings_ _of_ _the_ _30th_ _International_ _Conference_ _on_ _Machine_ _Learning_ _(ICML-13)_, edited by S. Dasgupta and D. Mcallester (JMLR Workshop and Conference Proceedings, 2013), vol. 28, pp. 1058–1066. [16] D. Kingma and J. Ba, ArXiv e-prints 1412.6980 (2014). [17] H. Huang and T. Toyoizumi, ArXiv e-prints 1701.07974 (2017). [18] X. Glorot, A. Bordes, and Y. Bengio, in _Proceedings_ _of_ _the_ _Fourteenth_ _International_ _Conference_ _on_ _Artificial_ _Intelligence_ _and_ _Statistics_, edited by G. Gordon, D. Dunson, and M. Dudk (PMLR, Fort Lauderdale, FL, USA, 2011), vol. 15 of _Proceedings_ _of_ _Machine_ _Learning_ _Research_, pp. 315–323. [19] M. M´ezard and G. Parisi, Eur. Phys. J. B 20, 217 (2001). [20] H. Huang, Journal of Statistical Mechanics: Theory and Experiment 2017, 033501 (2017). [21] B. Derrida, Phys. Rev. B 24, 2613 (1981). [22] C. Dominicis and P. Mottishaw, J. Phys. A: Math. Gen. 20, L1267 (1987). [23] D. Gross and M. Mezard, Nuclear Physics B 240, 431 (1984). [24] M. M´ezard and A. Montanari, _Information,_ _Physics,_ _and_ _Computation_ (Oxford University Press, Oxford, 2009).

섹션 본문

섹션 본문이 없습니다.

참고문헌

참고문헌 정보가 없습니다.