プリンキピア

第11章注意機構とTransformer

11.7.7. Summary11.7.7 まとめ

The Transformer is an instance of the encoder–decoder architecture, though either the encoder or the decoder can be used individually in practice. In the Transformer architecture, multi-head self-attention is used for representing the input sequence and the output sequence, though the decoder has to preserve the autoregressive property via a masked version. Both the residual connections and the layer normalization in the Transformer are important for training a very deep model. The positionwise feed-forward network in the Transformer model transforms the representation at all the sequence positions using the same MLP.
英語のヒント
Transformerはエンコーダ・デコーダ構造の一例だが、実際にはエンコーダかデコーダのどちらかを単独で使うこともできる。Transformerの構造では、入力系列と出力系列を表すのにマルチヘッドの自己注意を使うが、デコーダはマスクつきの版によって自己回帰性を保たなければならない。Transformerの残差接続と層正規化は、どちらもとても深いモデルを訓練するのに重要である。Transformerのモデルの位置ごとのフィードフォワードネットワークは、系列のすべての位置の表現を同じMLPで変換する。