Backward Pass

Update equation for the hidden-to-output weights

The update equation for the hidden-to-output weights is derived as

wij(new)=wij(old)ηEwij=wij(old)ηejhi(1) {w_{ij}'}^{(new)} = {w_{ij}'}^{(old)} - \eta \frac{\partial E}{\partial w_{ij}'} = {w_{ij}'}^{(old)} - \eta e_j h_i \pod{\text{1}}

or equivalently

v¯wj(new)=v¯wj(old)ηejh¯(2) {\bar{v}_{w_j}'}^{(new)} = {\bar{v}_{w_j}'}^{(old)} - \eta e_j \bar{h} \pod{\text{2}}

Update equation for the input-to-hidden weights

The derivative of EE to hih_i is repeated as

Ehi=j=1VEujujhi=j=1Vejwij(3) \frac{\partial E}{\partial h_i} = \sum_{j = 1}^V \frac{\partial E}{\partial u_j} \frac{\partial u_j}{\partial h_i} = \sum_{j = 1}^V e_j w'_{ij} \pod{\text{3}}

and

hi=1Cm=1Cwcmi, i=1,2,,N(4) h_i = \frac{1}{C} \sum_{m = 1}^C w_{c_m i}, \ i = 1, 2, \cdots, N \pod{\text{4}}

By using (3)(3) and (4)(4), the derivative of EE to wkiw_{ki} is

Ewki=Ehihiwki=1Cj=1Vejwij(5) \frac{\partial E}{\partial w_{ki}} = \frac{\partial E}{\partial h_i} \frac{\partial h_i}{\partial w_{ki}} = \frac{1}{C} \sum_{j = 1}^V e_j w'_{ij} \pod{\text{5}}

by which, the update equation for the input-to-hidden weights is derived as

wki(new)=wki(old)ηEwki=wki(old)ηCj=1Vejwij(old)(6) w_{ki}^{(new)} = w_{ki}^{(old)} - \eta \frac{\partial E}{\partial w_{ki}} = w_{ki}^{(old)} - \frac{\eta}{C} \sum_{j = 1}^V e_j {w_{ij}'}^{(old)} \pod{\text{6}}

or equivalently

v¯wk(new)=v¯wk(old)ηCj=1Vejv¯wj(old), wkCx(wjo)(7) \bar{v}_{w_k}^{(new)} = \bar{v}_{w_k}^{(old)} - \frac{\eta}{C} \sum_{j = 1}^V e_j {\bar{v}_{w_j}'}^{(old)}, \ w_k \in Cx(w_{j_o}) \pod{\text{7}}

results matching ""

    No results matching ""