第10章現代のリカレントニューラルネットワーク
10.2.3. Hidden State10.2.3 隠れ状態
Finally, we need to incorporate the effect of the update gate . This determines the extent to which the new hidden state matches the old state compared with how much it resembles the new candidate state . The update gate can be used for this purpose, simply by taking elementwise convex combinations of and . This leads to the final update equation for the GRU:
英語のヒント
最後に、更新ゲートの効果を取り込む必要がある。これは、新しい隠れ状態が、新しい候補の状態にどれだけ似ているかと比べて、古い状態にどの程度一致するかを決める。更新ゲートは、との要素ごとの凸結合をとるだけで、この目的に使える。これにより、GRUの最終的な更新式が得られる。
(10.2.3)
Whenever the update gate is close to 1, we simply retain the old state. In this case the information from is ignored, effectively skipping time step in the dependency chain. By contrast, whenever is close to 0, the new latent state approaches the candidate latent state . Fig. 10.2.3 shows the computational flow after the update gate is in action.
英語のヒント
更新ゲートが1に近いときはいつも、単に古い状態を保つ。この場合、からの情報は無視され、依存関係の連鎖の中で時間ステップを事実上飛ばすことになる。これに対して、が0に近いときはいつも、新しい潜在状態は候補の潜在状態に近づく。図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.
英語のヒント
更新ゲートは、系列の長期的な依存関係をとらえるのに役立つ。