第11章注意機構とTransformer
11.9.5. Large Language Models11.9.5 大規模言語モデル
The scalability of Transformers in the GPT series has inspired subsequent large language models. The GPT-2 Transformer decoder was used for training the 530-billion-parameter Megatron-Turing NLG (Smith et al., 2022) with 270 billion training tokens. Following the GPT-2 design, the 280-billion-parameter Gopher (Rae et al., 2021) pretrained with 300 billion tokens, performed competitively across diverse tasks. Inheriting the same architecture and using the same compute budget of Gopher, Chinchilla (Hoffmann et al., 2022) is a substantially smaller (70 billion parameters) model that trains for much longer (1.4 trillion training tokens), outperforming Gopher on many tasks and with more emphasis on the number of tokens than on the number of parameters. To continue the scaling line of language modeling, PaLM (Pathway Language Model) (Chowdhery et al., 2022), a 540-billion-parameter Transformer decoder with modified designs pretrained on 780 billion tokens, outperformed average human performance on the BIG-Bench benchmark (Srivastava et al., 2022). Its later version, PaLM 2 (Anil et al., 2023), scaled data and model roughly 1:1 and improved multilingual and reasoning capabilities. Other large language models, such as Minerva (Lewkowycz et al., 2022) that further trains a generalist (PaLM) and Galactica (Taylor et al., 2022) that is not trained on a general corpus, have shown promising quantitative and scientific reasoning capabilities.
英語のヒント
GPTシリーズでのTransformerのスケーラビリティは、その後の大規模言語モデルに着想を与えた。GPT-2のTransformerのデコーダは、2700億の訓練トークンで5300億パラメータのMegatron-Turing NLG(Smith et al., 2022)を訓練するのに使われた。GPT-2の設計に従い、3000億トークンで事前学習した2800億パラメータのGopher(Rae et al., 2021)は、多様な課題で互角の性能を出した。Gopherと同じ構造を受け継ぎ、同じ計算の予算を使ったChinchilla(Hoffmann et al., 2022)は、かなり小さな(700億パラメータの)モデルだが、ずっと長く(1.4兆の訓練トークンで)訓練され、多くの課題でGopherを上回った。パラメータの数よりトークンの数をもっと重視したのである。言語のモデリングのスケーリングの路線を続けて、7800億トークンで事前学習した、設計を変更した5400億パラメータのTransformerのデコーダであるPaLM(Pathway Language Model)(Chowdhery et al., 2022)は、BIG-Benchのベンチマーク(Srivastava et al., 2022)で人間の平均の性能を上回った。その後の版であるPaLM 2(Anil et al., 2023)は、データとモデルをおよそ1:1でスケールし、多言語と推論の能力を高めた。ゼネラリスト(PaLM)をさらに訓練したMinerva(Lewkowycz et al., 2022)や、一般的なコーパスで訓練されていないGalactica(Taylor et al., 2022)のような、ほかの大規模言語モデルは、定量的な推論と科学的な推論で有望な能力を示した。
Open-sourced releases, such as OPT (Open Pretrained Transformers) (Zhang et al., 2022), BLOOM (Scao et al., 2022), and FALCON (Penedo et al., 2023), democratized research and use of large language models. Focusing on computational efficiency at inference time, the open-sourced Llama 1 (Touvron et al., 2023a) outperformed much larger models by training on more tokens than had been typically used. The updated Llama 2 (Touvron et al., 2023b) further increased the pretraining corpus by 40%, leading to product models that may match the performance of competitive close-sourced models.
英語のヒント
OPT(Open Pretrained Transformers)(Zhang et al., 2022)、BLOOM(Scao et al., 2022)、FALCON(Penedo et al., 2023)のようなオープンソースの公開は、大規模言語モデルの研究と利用を民主化した。推論時の計算の効率に焦点を当てたオープンソースのLlama 1(Touvron et al., 2023a)は、ふつう使われてきたより多くのトークンで訓練することで、もっとずっと大きなモデルを上回った。更新されたLlama 2(Touvron et al., 2023b)は、事前学習のコーパスをさらに40%増やし、競合するクローズドソースのモデルの性能に匹敵しうる製品のモデルにつながった。
Wei et al. (2022) discussed emergent abilities of large language models that are present in larger models, but not in smaller models. However, simply increasing model size does not inherently make models follow human instructions better. Sanh et al. (2021), Wei et al. (2021) have found that fine-tuning large language models on a range of datasets described via instructions can improve zero-shot performance on held-out tasks. Using reinforcement learning from human feedback, Ouyang et al. (2022) fine-tuned GPT-3 to follow a diverse set of instructions. Following the resultant InstructGPT which aligns language models with human intent via fine-tuning (Ouyang et al., 2022), ChatGPT can generate human-like responses (e.g., code debugging and creative writing) based on conversations with humans and can perform many natural language processing tasks zero-shot (Qin et al., 2023). Bai et al. (2022) replaced human inputs (e.g., human-labeled data) with model outputs to partially automate the instruction tuning process, which is also known as reinforcement learning from AI feedback.
英語のヒント
Wei et al. (2022)は、大きなモデルには現れるが小さなモデルには現れない、大規模言語モデルの創発的な能力を論じた。しかし、モデルの大きさを単に大きくしても、それ自体でモデルが人間の指示によりよく従うようになるわけではない。Sanh et al. (2021)、Wei et al. (2021)は、指示で記述したさまざまなデータセットで大規模言語モデルを微調整すると、取っておいた課題でのゼロショットの性能を改善できることを見いだした。人間のフィードバックからの強化学習を使って、Ouyang et al. (2022)は、多様な指示に従うようGPT-3を微調整した。微調整によって言語モデルを人間の意図に合わせた、その結果のInstructGPT(Ouyang et al., 2022)に続いて、ChatGPTは、人間との会話にもとづいて人間のような応答(たとえばコードのデバッグや創作の文章)を生成でき、多くの自然言語処理の課題をゼロショットでこなせる(Qin et al., 2023)。Bai et al. (2022)は、人間の入力(たとえば人間がラベルをつけたデータ)をモデルの出力に置き換えて、指示チューニングの過程を部分的に自動化した。これはAIフィードバックからの強化学習とも呼ばれる。
Large language models offer an exciting prospect of formulating text input to induce models to perform desired tasks via in-context learning, which is also known as prompting. Notably, chain-of-thought prompting (Wei et al., 2022), an in-context learning method with few-shot “question, intermediate reasoning steps, answer” demonstrations, elicits the complex reasoning capabilities of large language models in order to solve mathematical, commonsense, and symbolic reasoning tasks. Sampling multiple reasoning paths (Wang et al., 2023), diversifying few-shot demonstrations (Zhang et al., 2023), and reducing complex problems to sub-problems (Zhou et al., 2023) can all improve the reasoning accuracy. In fact, with simple prompts like “Let’s think step by step” just before each answer, large language models can even perform zero-shot chain-of-thought reasoning with decent accuracy (Kojima et al., 2022). Even for multimodal inputs consisting of both text and images, language models can perform multimodal chain-of-thought reasoning with higher accuracy than using text input only (Zhang et al., 2023).
英語のヒント
大規模言語モデルは、テキストの入力を工夫して、文脈内学習によってモデルに望みの課題をこなさせるという、わくわくする見通しを与える。これはプロンプティングとも呼ばれる。特に、思考の連鎖プロンプティング(Wei et al., 2022)は、「質問、中間の推論ステップ、答え」のフューショットの実演を使う文脈内学習の方法であり、数学、常識、記号の推論の課題を解くために、大規模言語モデルの複雑な推論の能力を引き出す。複数の推論の経路をサンプリングすること(Wang et al., 2023)、フューショットの実演を多様にすること(Zhang et al., 2023)、複雑な問題を部分問題に分解すること(Zhou et al., 2023)は、どれも推論の正確さを上げうる。実際、各答えの直前に「Let’s think step by step(一歩ずつ考えよう)」のような単純なプロンプトを置くだけで、大規模言語モデルは、まずまずの正確さでゼロショットの思考の連鎖の推論さえできる(Kojima et al., 2022)。テキストと画像の両方からなるマルチモーダルの入力についても、言語モデルは、テキストの入力だけを使うより高い正確さで、マルチモーダルの思考の連鎖の推論ができる(Zhang et al., 2023)。