プリンキピア

第16章自然言語処理:応用

16.5. Natural Language Inference: Using Attention16.5 自然言語推論:注意を使う

We introduced the natural language inference task and the SNLI dataset in Section 16.4. In view of many models that are based on complex and deep architectures, Parikh et al. (2016) proposed to address natural language inference with attention mechanisms and called it a “decomposable attention model”. This results in a model without recurrent or convolutional layers, achieving the best result at the time on the SNLI dataset with much fewer parameters. In this section, we will describe and implement this attention-based method (with MLPs) for natural language inference, as depicted in Fig. 16.5.1.
英語のヒント
16.4節では、自然言語推論のタスクとSNLIのデータセットを紹介した。複雑で深いアーキテクチャにもとづく多くのモデルを踏まえて、Parikh et al.(2016)は、注意機構で自然言語推論に取り組むことを提案し、それを「分解可能な注意モデル」と呼んだ。その結果、リカレント層も畳み込み層もないモデルができ、ずっと少ないパラメータで、当時のSNLIのデータセットでの最良の結果を達成した。この節では、図16.5.1に描いたように、自然言語推論のためのこの注意にもとづく方法(MLPつき)を説明し実装する。
Fig. 16.5.1図16.5.1
This section feeds pretrained GloVe to an architecture based on attention and MLPs for natural language inference.
英語のヒント
この節では、事前学習したGloVeを、自然言語推論のための注意とMLPにもとづくアーキテクチャに入れる。