プリンキピア

第9章リカレントニューラルネットワーク

9.5.6. Summary9.5.6 まとめ

We can train RNN-based language models to generate text following the user-provided text prefix. A simple RNN language model consists of input encoding, RNN modeling, and output generation. During training, gradient clipping can mitigate the problem of exploding gradients but does not address the problem of vanishing gradients. In the experiment, we implemented a simple RNN language model and trained it with gradient clipping on sequences of text, tokenized at the character level. By conditioning on a prefix, we can use a language model to generate likely continuations, which proves useful in many applications, e.g., autocomplete features.
英語のヒント
RNNにもとづく言語モデルを訓練して、ユーザーが与えたテキストの最初の部分に続くテキストを生成させられる。単純なRNNの言語モデルは、入力の符号化、RNNによるモデリング、出力の生成からなる。訓練中、勾配クリッピングは勾配爆発の問題を和らげられるが、勾配消失の問題には対処しない。実験では、単純なRNNの言語モデルを実装し、文字の水準でトークン化したテキストの系列で、勾配クリッピングを使って訓練した。最初の部分を条件とすることで、言語モデルを使ってありそうな続きを生成でき、これはたとえば自動補完の機能のような多くの応用で役に立つ。