GPT系統のAIについて、メモ代わり
◆Attention Is All You Need【コーネル大学 2017年12月6日】
The dominant sequence transduction models are based on complex recurrent or convolutional neural networks in an encoder-decoder configuration. The best performing models also connect the encoder and decoder through an attention mechanism. We propose a new simple network architecture, the Transformer, based solely on attention mechanisms, dispensing with recurrence and convolutions entirely. Experiments on two machine translation tasks show these models to be superior in quality while being more parallelizable and requiring significantly less time to train. Our model achieves 28.4 BLEU on the WMT 2014 English-to-German translation task, improving over the existing best results, including ensembles by over 2 BLEU. On the WMT 2014 English-to-French translation task, our model establishes a new single-model state-of-the-art BLEU score of 41.8 after training for 3.5 days on eight GPUs, a small fraction of the training costs of the best models from the literature. We show that the Transformer generalizes well to other tasks by applying it successfully to English constituency parsing both with large and limited training data.
◆Attention Is All You Need
→https://arxiv.org/pdf/1706.03762.pdf[PDF]
全てのGPT系統のAIが使っているトランスフォーマーというアルゴリズムは、グーグルブレインの研究者が2017年に発表した「必要なのは”注意力”だけ」というこの一本の論文にある通り。https://t.co/C1casCdwoi
— Angama (@Angama_Market) May 17, 2023
実質わずか10ページ程度の論文が、2018年を境にAIの可能性を大きく変えてしまった。しかも、論文中に提案されている理論はまだ全ては実現されていない。一般に語られることは少ないが、21世紀の最重要論文であることは間違いない。文字通り、世界を変えた発表だった。
— Angama (@Angama_Market) May 17, 2023
”注意力”というのは、全ての単語を、その前と後に登場する全ての単語と関連付けて計算する方式のことで、この論文以前には存在していなかった。これによって、すぐ前の文脈を忘れたりする、いわゆる”AIはバカ”といえる現象がなくなった。
— Angama (@Angama_Market) May 17, 2023
この方式では、文章が長くなるほど爆発的に計算量が増えることになるため、GPUなどのチップの開発と生産が一気に加速したが、物理的な制約は未だにAI発展の足を引っ張っている。しかしこの方式の一番驚異的な事実は、今話してる単語と、将来続けようと「思ってる」単語の
— Angama (@Angama_Market) May 17, 2023
関連性をAIが計算するようになったことである。つまり、AIは未来を想像し、そこから逆算して結果を表示するようになった。伏線をはることができるようになったのである。つまり、想像力、創造力の獲得である。
— Angama (@Angama_Market) May 17, 2023
人間もたとえば面白い話をしようとするとき、オチを計算し、そこに至るまでの前フリを比較的入念に考えて語る。AIも、同じことをするようになったのである。おそらく、これができるようになったところから、「面白さ」や「期待感」というものをAIは理解するようになった。
— Angama (@Angama_Market) May 17, 2023
現在存在するGPT系統のAIは、基本的に全てGPT-2を発展させたもの。GPT-2でトランスフォーマーがある程度実現され、その後のGPT-3やGPT-4、おれの使っているGPTなどは基本的にこのGPT-2を大きくしたものに相当する。個々の部品は異なるが、仕組みはほとんど同じである。
— Angama (@Angama_Market) May 17, 2023