プリンキピア

第15章自然言語処理:事前学習

15.8.7. Summary15.8.7 まとめ

  • Word embedding models such as word2vec and GloVe are context-independent. They assign the same pretrained vector to the same word regardless of the context of the word (if any). It is hard for them to handle well polysemy or complex semantics in natural languages.
    英語のヒント
    word2vecやGloVeのような単語埋め込みモデルは、文脈に依存しない。これらは、単語の文脈(もしあれば)にかかわらず、同じ単語に同じ事前学習済みのベクトルを割り当てる。これらのモデルでは、自然言語の多義性や複雑な意味をうまく扱うのは難しい。
  • For context-sensitive word representations such as ELMo and GPT, representations of words depend on their contexts.
    英語のヒント
    ELMoやGPTのような文脈に依存する単語表現では、単語の表現はその文脈に依存する。
  • ELMo encodes context bidirectionally but uses task-specific architectures (however, it is practically non-trivial to craft a specific architecture for every natural language processing task); while GPT is task-agnostic but encodes context left-to-right.
    英語のヒント
    ELMoは文脈を双方向に符号化するが、タスク固有のアーキテクチャを使う(しかし、自然言語処理のタスクごとに専用のアーキテクチャを作り込むのは、実際には容易ではない)。一方、GPTはタスクに依存しないが、文脈を左から右へ符号化する。
  • BERT combines the best of both worlds: it encodes context bidirectionally and requires minimal architecture changes for a wide range of natural language processing tasks.
    英語のヒント
    BERTは両方のよいところを組み合わせる。文脈を双方向に符号化し、幅広い自然言語処理のタスクに対して、アーキテクチャにわずかな変更しか必要としない。
  • The embeddings of the BERT input sequence are the sum of the token embeddings, segment embeddings, and positional embeddings.
    英語のヒント
    BERTの入力系列の埋め込みは、トークン埋め込み、セグメント埋め込み、位置埋め込みの和である。
  • Pretraining BERT is composed of two tasks: masked language modeling and next sentence prediction. The former is able to encode bidirectional context for representing words, while the latter explicitly models the logical relationship between text pairs.
    英語のヒント
    BERTの事前学習は二つのタスク、つまりマスク言語モデリングと次文予測からなる。前者は単語を表すために双方向の文脈を符号化でき、後者はテキストの対の間の論理的な関係を明示的にモデル化する。