プリンキピア

第10章現代のリカレントニューラルネットワーク

10.2.3. Hidden State10.2.3 隠れ状態

Finally, we need to incorporate the effect of the update gate 𝐙t. This determines the extent to which the new hidden state 𝐇t∈ℝn×h matches the old state 𝐇t−1 compared with how much it resembles the new candidate state 𝐇˜t. The update gate 𝐙t can be used for this purpose, simply by taking elementwise convex combinations of 𝐇t−1 and 𝐇˜t. This leads to the final update equation for the GRU:
英語のヒント
最後に、更新ゲート𝐙tの効果を取り込む必要がある。これは、新しい隠れ状態𝐇t∈ℝn×hが、新しい候補の状態𝐇˜tにどれだけ似ているかと比べて、古い状態𝐇t−1にどの程度一致するかを決める。更新ゲート𝐙tは、𝐇t−1と𝐇˜tの要素ごとの凸結合をとるだけで、この目的に使える。これにより、GRUの最終的な更新式が得られる。
𝐇t=𝐙t⊙𝐇t−1+(1−𝐙t)⊙𝐇˜t.(10.2.3)
Whenever the update gate 𝐙t is close to 1, we simply retain the old state. In this case the information from 𝐗t is ignored, effectively skipping time step t in the dependency chain. By contrast, whenever 𝐙t is close to 0, the new latent state 𝐇t approaches the candidate latent state 𝐇˜t. Fig. 10.2.3 shows the computational flow after the update gate is in action.
英語のヒント
更新ゲート𝐙tが1に近いときはいつも、単に古い状態を保つ。この場合、𝐗tからの情報は無視され、依存関係の連鎖の中で時間ステップtを事実上飛ばすことになる。これに対して、𝐙tが0に近いときはいつも、新しい潜在状態𝐇tは候補の潜在状態𝐇˜tに近づく。図10.2.3は、更新ゲートが働いた後の計算の流れを示している。
Fig. 10.2.3図10.2.3
Computing the hidden state in a GRU model.
英語のヒント
GRUモデルで、隠れ状態を計算する。
In summary, GRUs have the following two distinguishing features:
英語のヒント
まとめると、GRUには次の二つの際立った特徴がある。
  • Reset gates help capture short-term dependencies in sequences.
    英語のヒント
    リセットゲートは、系列の短期的な依存関係をとらえるのに役立つ。
  • Update gates help capture long-term dependencies in sequences.
    英語のヒント
    更新ゲートは、系列の長期的な依存関係をとらえるのに役立つ。