プリンキピア

第11章注意機構とTransformer

11.9.6. Summary and Discussion11.9.6 まとめと考察

Transformers have been pretrained as encoder-only (e.g., BERT), encoder–decoder (e.g., T5), and decoder-only (e.g., GPT series). Pretrained models may be adapted to perform different tasks with model update (e.g., fine-tuning) or not (e.g., few-shot). Scalability of Transformers suggests that better performance benefits from larger models, more training data, and more training compute. Since Transformers were first designed and pretrained for text data, this section leans slightly towards natural language processing. Nonetheless, those models discussed above can be often found in more recent models across multiple modalities. For example, (i) Chinchilla (Hoffmann et al., 2022) was further extended to Flamingo (Alayrac et al., 2022), a visual language model for few-shot learning; (ii) GPT-2 (Radford et al., 2019) and the vision Transformer encode text and images in CLIP (Contrastive Language-Image Pre-training) (Radford et al., 2021), whose image and text embeddings were later adopted in the DALL-E 2 text-to-image system (Ramesh et al., 2022). Although there have been no systematic studies on Transformer scalability in multimodal pretraining yet, an all-Transformer text-to-image model called Parti (Yu et al., 2022) shows potential of scalability across modalities: a larger Parti is more capable of high-fidelity image generation and content-rich text understanding (Fig. 11.9.12).
英語のヒント
Transformerは、エンコーダのみ(たとえばBERT)、エンコーダ・デコーダ(たとえばT5)、デコーダのみ(たとえばGPTシリーズ)として事前学習されてきた。事前学習したモデルは、モデルを更新して(たとえば微調整)、あるいは更新せずに(たとえばフューショット)、異なる課題をこなすように合わせられる。Transformerのスケーラビリティは、もっと大きなモデル、もっと多くの訓練データ、もっと多くの訓練の計算量から、よりよい性能が得られることを示唆している。Transformerは最初テキストデータのために設計され事前学習されたので、この節は少し自然言語処理に寄っている。それでも、上で論じたモデルは、複数のモダリティにわたるもっと最近のモデルの中によく見られる。たとえば、(i)Chinchilla(Hoffmann et al., 2022)は、フューショット学習のための視覚言語モデルであるFlamingo(Alayrac et al., 2022)へとさらに拡張された。(ii)GPT-2(Radford et al., 2019)と視覚のTransformerは、CLIP(Contrastive Language-Image Pre-training)(Radford et al., 2021)でテキストと画像を符号化し、その画像とテキストの埋め込みは、後にDALL-E 2のテキストから画像へのシステム(Ramesh et al., 2022)に採用された。マルチモーダルの事前学習でのTransformerのスケーラビリティについての体系的な研究はまだないが、Partiと呼ばれる、すべてTransformerでできたテキストから画像へのモデル(Yu et al., 2022)は、モダリティをまたぐスケーラビリティの可能性を示している。もっと大きなPartiほど、忠実度の高い画像の生成と、内容の豊かなテキストの理解がよくできる(図11.9.12)。
Image omitted because its reuse rights could not be verified.権利の確認ができないため画像を割愛。
Fig. 11.9.12図11.9.12
Image examples generated from the same text by the Parti model of increasing sizes (350M, 750M, 3B, 20B) (examples taken from Yu et al. (2022)).
英語のヒント
大きさを増やしていったPartiのモデル(350M、750M、3B、20B)で、同じテキストから生成した画像の例(例はYu et al. (2022)より)。