プリンキピア

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

10.2. Gated Recurrent Units (GRU)10.2 ゲート付き回帰ユニット(GRU)

As RNNs and particularly the LSTM architecture (Section 10.1) rapidly gained popularity during the 2010s, a number of researchers began to experiment with simplified architectures in hopes of retaining the key idea of incorporating an internal state and multiplicative gating mechanisms but with the aim of speeding up computation. The gated recurrent unit (GRU) (Cho et al., 2014) offered a streamlined version of the LSTM memory cell that often achieves comparable performance but with the advantage of being faster to compute (Chung et al., 2014).
英語のヒント
RNN、特にLSTMの構造(10.1節)が2010年代に急速に人気を得るにつれて、多くの研究者が、内部状態と乗算のゲートの仕組みを取り込むという鍵となる考えは保ちつつ、計算を速くすることを狙って、単純にした構造を試し始めた。ゲート付き回帰ユニット(GRU)(Cho et al., 2014)は、LSTMのメモリセルをすっきりさせた版を提供した。これはしばしば同程度の性能を達成しながら、計算がより速いという利点をもつ(Chung et al., 2014)。
import torch
from torch import nn
from d2l import torch as d2l