第10章現代のリカレントニューラルネットワーク
10.2.1. Reset Gate and Update Gate10.2.1 リセットゲートと更新ゲート
Here, the LSTM’s three gates are replaced by two: the reset gate and the update gate. As with LSTMs, these gates are given sigmoid activations, forcing their values to lie in the interval . Intuitively, the reset gate controls how much of the previous state we might still want to remember. Likewise, an update gate would allow us to control how much of the new state is just a copy of the old one. Fig. 10.2.1 illustrates the inputs for both the reset and update gates in a GRU, given the input of the current time step and the hidden state of the previous time step. The outputs of the gates are given by two fully connected layers with a sigmoid activation function.
英語のヒント
ここでは、LSTMの三つのゲートが二つ、リセットゲートと更新ゲートに置き換えられる。LSTMと同じように、これらのゲートにはシグモイド活性化が与えられ、値は区間に入るよう強いられる。直観的には、リセットゲートは、前の状態のどれだけをまだ覚えておきたいかを制御する。同じように、更新ゲートは、新しい状態のどれだけが古い状態の単なる写しであるかを制御できるようにする。図10.2.1は、現在の時間ステップの入力と前の時間ステップの隠れ状態が与えられたときの、GRUのリセットゲートと更新ゲートの両方への入力を示している。ゲートの出力は、シグモイド活性化関数をもつ二つの全結合層によって与えられる。
Fig. 10.2.1図10.2.1
Computing the reset gate and the update gate in a GRU model.
英語のヒント
GRUモデルで、リセットゲートと更新ゲートを計算する。
Mathematically, for a given time step , suppose that the input is a minibatch (number of examples ; number of inputs ) and the hidden state of the previous time step is (number of hidden units ). Then the reset gate and update gate are computed as follows:
英語のヒント
数学的には、ある時間ステップについて、入力がミニバッチ(事例の数、入力の数)で、前の時間ステップの隠れ状態が(隠れユニットの数)だとする。すると、リセットゲートと更新ゲートは次のように計算される。
(10.2.1)
where and are weight parameters and are bias parameters.
英語のヒント
ここで、とは重みパラメータ、はバイアスパラメータである。