第11章注意機構とTransformer
11.3.5. Summary11.3.5 まとめ
In this section we introduced the two key attention scoring functions: dot product and additive attention. They are effective tools for aggregating across sequences of variable length. In particular, the dot product attention is the mainstay of modern Transformer architectures. When queries and keys are vectors of different lengths, we can use the additive attention scoring function instead. Optimizing these layers is one of the key areas of advance in recent years. For instance, NVIDIA’s Transformer Library and Megatron (Shoeybi et al., 2019) crucially rely on efficient variants of the attention mechanism. We will dive into this in quite a bit more detail as we review Transformers in later sections.
英語のヒント
この節では、鍵となる二つの注意のスコア関数、内積注意と加法注意を紹介した。これらは、可変長の系列にわたって集約するための効果的な道具である。特に、内積注意は現代のTransformerの構造の柱である。クエリとキーが異なる長さのベクトルのときは、代わりに加法注意のスコア関数を使える。これらの層を最適化することは、近年の進歩の鍵となる分野の一つである。たとえば、NVIDIAのTransformerライブラリやMegatron(Shoeybi et al., 2019)は、注意機構の効率的な変種に決定的に頼っている。後の節でTransformerを見直すときに、これをかなり詳しく掘り下げる。