プリンキピア

第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 (0,1). 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と同じように、これらのゲートにはシグモイド活性化が与えられ、値は区間(0,1)に入るよう強いられる。直観的には、リセットゲートは、前の状態のどれだけをまだ覚えておきたいかを制御する。同じように、更新ゲートは、新しい状態のどれだけが古い状態の単なる写しであるかを制御できるようにする。図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 t, suppose that the input is a minibatch 𝐗t∈ℝn×d (number of examples =n; number of inputs =d) and the hidden state of the previous time step is 𝐇t−1∈ℝn×h (number of hidden units =h). Then the reset gate 𝐑t∈ℝn×h and update gate 𝐙t∈ℝn×h are computed as follows:
英語のヒント
数学的には、ある時間ステップtについて、入力がミニバッチ𝐗t∈ℝn×d(事例の数=n、入力の数=d)で、前の時間ステップの隠れ状態が𝐇t−1∈ℝn×h(隠れユニットの数=h)だとする。すると、リセットゲート𝐑t∈ℝn×hと更新ゲート𝐙t∈ℝn×hは次のように計算される。
𝐑t=σ(𝐗t𝐖xr+𝐇t−1𝐖hr+𝐛r),𝐙t=σ(𝐗t𝐖xz+𝐇t−1𝐖hz+𝐛z),(10.2.1)
where 𝐖xr,𝐖xz∈ℝd×h and 𝐖hr,𝐖hz∈ℝh×h are weight parameters and 𝐛r,𝐛z∈ℝ1×h are bias parameters.
英語のヒント
ここで、𝐖xr,𝐖xz∈ℝd×hと𝐖hr,𝐖hz∈ℝh×hは重みパラメータ、𝐛r,𝐛z∈ℝ1×hはバイアスパラメータである。