第10章現代のリカレントニューラルネットワーク
10. Modern Recurrent Neural Networks10 現代のリカレントニューラルネットワーク
The previous chapter introduced the key ideas behind recurrent neural networks (RNNs). However, just as with convolutional neural networks, there has been a tremendous amount of innovation in RNN architectures, culminating in several complex designs that have proven successful in practice. In particular, the most popular designs feature mechanisms for mitigating the notorious numerical instability faced by RNNs, as typified by vanishing and exploding gradients. Recall that in Section 9 we dealt with exploding gradients by applying a blunt gradient clipping heuristic. Despite the efficacy of this hack, it leaves open the problem of vanishing gradients.
英語のヒント
前の章では、リカレントニューラルネットワーク(RNN)の背後にある鍵となる考えを紹介した。しかし、畳み込みニューラルネットワークと同じように、RNNの構造にはとてつもない量の革新があり、実際に成功を収めてきたいくつかの複雑な設計に結実した。特に、最も人気のある設計は、勾配の消失や爆発に代表される、RNNが直面する悪名高い数値的な不安定さを和らげる仕組みを備えている。第9章では、大ざっぱな勾配クリッピングの経験則を当てはめて勾配の爆発に対処したことを思い出そう。この工夫は効果的だが、勾配消失の問題は未解決のまま残る。
In this chapter, we introduce the key ideas behind the most successful RNN architectures for sequences, which stem from two papers. The first, Long Short-Term Memory (Hochreiter and Schmidhuber, 1997), introduces the memory cell, a unit of computation that replaces traditional nodes in the hidden layer of a network. With these memory cells, networks are able to overcome difficulties with training encountered by earlier recurrent networks. Intuitively, the memory cell avoids the vanishing gradient problem by keeping values in each memory cell’s internal state cascading along a recurrent edge with weight 1 across many successive time steps. A set of multiplicative gates help the network to determine not only the inputs to allow into the memory state, but when the content of the memory state should influence the model’s output.
英語のヒント
この章では、系列のための最も成功したRNNの構造の背後にある鍵となる考えを紹介する。それらは二つの論文に由来する。一つ目の長短期記憶(Hochreiter and Schmidhuber, 1997)は、メモリセルを導入する。これは、ネットワークの隠れ層の伝統的なノードに代わる計算の単位である。こうしたメモリセルによって、ネットワークは以前のリカレントネットワークが訓練で直面した難しさを乗り越えられる。直観的には、メモリセルは、各メモリセルの内部状態の値を、重み1の再帰的な辺に沿って多くの連続する時間ステップにわたって流し続けることで、勾配消失の問題を避ける。一組の乗算のゲートが、どの入力をメモリの状態に入れるかだけでなく、メモリの状態の中身がいつモデルの出力に影響すべきかも、ネットワークが決めるのを助ける。
The second paper, Bidirectional Recurrent Neural Networks (Schuster and Paliwal, 1997), introduces an architecture in which information from both the future (subsequent time steps) and the past (preceding time steps) are used to determine the output at any point in the sequence. This is in contrast to previous networks, in which only past input can affect the output. Bidirectional RNNs have become a mainstay for sequence labeling tasks in natural language processing, among a myriad of other tasks. Fortunately, the two innovations are not mutually exclusive, and have been successfully combined for phoneme classification (Graves and Schmidhuber, 2005) and handwriting recognition (Graves et al., 2008).
英語のヒント
二つ目の論文、双方向リカレントニューラルネットワーク(Schuster and Paliwal, 1997)は、未来(後に続く時間ステップ)と過去(前の時間ステップ)の両方からの情報を使って、系列のどの点の出力も決める構造を導入する。これは、過去の入力しか出力に影響できなかった以前のネットワークとは対照的である。双方向RNNは、無数のほかの課題の中でも、自然言語処理の系列ラベリングの課題の柱となった。幸い、二つの革新は互いに排他的ではなく、音素の分類(Graves and Schmidhuber, 2005)や手書き文字認識(Graves et al., 2008)のためにうまく組み合わされてきた。
The first sections in this chapter will explain the LSTM architecture, a lighter-weight version called the gated recurrent unit (GRU), the key ideas behind bidirectional RNNs and a brief explanation of how RNN layers are stacked together to form deep RNNs. Subsequently, we will explore the application of RNNs in sequence-to-sequence tasks, introducing machine translation along with key ideas such as encoder–decoder architectures and beam search.
英語のヒント
この章の最初の節では、LSTMの構造、その軽量版であるゲート付き回帰ユニット(GRU)、双方向RNNの背後にある鍵となる考え、そしてRNNの層をどう積み重ねて深いRNNを作るかの簡単な説明を扱う。続いて、系列から系列への課題でのRNNの応用を探り、エンコーダ・デコーダ構造やビームサーチのような鍵となる考えとあわせて機械翻訳を紹介する。