プリンキピア

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

10.2.2. Candidate Hidden State10.2.2 候補の隠れ状態

Next, we integrate the reset gate 𝐑t with the regular updating mechanism in (9.4.5), leading to the following candidate hidden state 𝐇˜t∈ℝn×h at time step t:
英語のヒント
次に、リセットゲート𝐑tを(9.4.5)の通常の更新の仕組みと組み合わせると、時間ステップtにおける次の候補の隠れ状態𝐇˜t∈ℝn×hが得られる。
𝐇˜t=tanh⁡(𝐗t𝐖xh+(𝐑t⊙𝐇t−1)𝐖hh+𝐛h),(10.2.2)
where 𝐖xh∈ℝd×h and 𝐖hh∈ℝh×h are weight parameters, 𝐛h∈ℝ1×h is the bias, and the symbol ⊙ is the Hadamard (elementwise) product operator. Here we use a tanh activation function.
英語のヒント
ここで、𝐖xh∈ℝd×hと𝐖hh∈ℝh×hは重みパラメータ、𝐛h∈ℝ1×hはバイアス、記号⊙はアダマール(要素ごとの)積の演算子である。ここではtanh活性化関数を使う。
The result is a candidate, since we still need to incorporate the action of the update gate. Comparing with (9.4.5), the influence of the previous states can now be reduced with the elementwise multiplication of 𝐑t and 𝐇t−1 in (10.2.2). Whenever the entries in the reset gate 𝐑t are close to 1, we recover a vanilla RNN such as that in (9.4.5). For all entries of the reset gate 𝐑t that are close to 0, the candidate hidden state is the result of an MLP with 𝐗t as input. Any pre-existing hidden state is thus reset to defaults.
英語のヒント
更新ゲートの働きをまだ取り込む必要があるので、結果は候補である。(9.4.5)と比べると、(10.2.2)の𝐑tと𝐇t−1の要素ごとの掛け算によって、前の状態の影響を減らせるようになった。リセットゲート𝐑tの要素が1に近いときはいつも、(9.4.5)のような素のRNNが戻ってくる。リセットゲート𝐑tの要素のうち0に近いものすべてについて、候補の隠れ状態は、𝐗tを入力とするMLPの結果になる。こうして、それまでにあった隠れ状態は既定の値にリセットされる。
Fig. 10.2.2 illustrates the computational flow after applying the reset gate.
英語のヒント
図10.2.2は、リセットゲートを当てはめた後の計算の流れを示している。
Fig. 10.2.2図10.2.2
Computing the candidate hidden state in a GRU model.
英語のヒント
GRUモデルで、候補の隠れ状態を計算する。