[論文レビュー] mGPT: Few-Shot Learners Go Multilingual
tldr: mGPTは61言語で事前学習された多言語GPT-3風の自己回帰モデルで、言語モデリング、跨言語NLU、知識探査の評価を通じて、文脈内学習は同時代のモデルと同等である。
Recent studies report that autoregressive language models can successfully solve many NLP tasks via zero- and few-shot learning paradigms, which opens up new possibilities for using the pre-trained language models. This paper introduces two autoregressive GPT-like models with 1.3 billion and 13 billion parameters trained on 60 languages from 25 language families using Wikipedia and Colossal Clean Crawled Corpus. We reproduce the GPT-3 architecture using GPT-2 sources and the sparse attention mechanism; Deepspeed and Megatron frameworks allow us to parallelize the training and inference steps effectively. The resulting models show performance on par with the recently released XGLM models by Facebook, covering more languages and enhancing NLP possibilities for low resource languages of CIS countries and Russian small nations. We detail the motivation for the choices of the architecture design, thoroughly describe the data preparation pipeline, and train five small versions of the model to choose the most optimal multilingual tokenization strategy. We measure the model perplexity in all covered languages and evaluate it on the wide spectre of multilingual tasks, including classification, generative, sequence labeling and knowledge probing. The models were evaluated with the zero-shot and few-shot methods. Furthermore, we compared the classification tasks with the state-of-the-art multilingual model XGLM. source code and the mGPT XL model are publicly released.
研究の動機と目的
- GPT-3に触発された大規模な多言語自動回帰LMを開発し、CISや低リソース言語を含む多くの言語をカバーする。
- 言語学的に多様なコーパス(WikipediaとC4)で厳密なデータフィルタリングと重複排除を行い、データ品質を向上させる。
- 多言語にわたり、内在的(言語モデリング)と外在的(下流、知識探査)の性能を評価する。
- モデルサイズ、事前学習データ、トークン化が多言語一般化と跨言語転移に与える影響を分析する。
提案手法
- WikipediaとC4をコーパスとして、61言語・25言語ファミリーの多言語GPT-3風LMを事前学習する。
- データパイプラインには64-bitハッシュによる重複排除と、圧縮ベースのヒューリスティクスおよび言語非依存分類器を用いた選別が含まれる。
- 5つのトークン化戦略の調査;保持アウトのWikipediaパープレキシティ(Equation 1)を基に選択。
- 構造はGPT-3スケールを再現し、密な層と疎な層を交互に配置した sparse-attention を用いる。
- 訓練の詳細: per-stepバッチ2048、600kステップ、見られたトークン400B、V100クラスターで14–22日。
実験結果
リサーチクエスチョン
- RQ161言語で事前学習した多言語自己回帰LMは、いくつかのベースラインよりも少ないパラメータで競争力のある文脈內学習を達成できるか。
- RQ2言語ファミリー、スクリプト、データ量がパープレキシティと下流の多言語性能にどう影響するか。
- RQ3モデルサイズ(1.3B対13B)とトークン化戦略が言語モデリングと跨言語タスクに及ぼす影響は?
- RQ4多様な言語にわたる跨言語NLUベンチマークと知識探査タスクにおけるmGPTの性能はどの程度か。
- RQ5文脈内デモンストレーションはタスクと言語を横断して性能を向上させるか、低下させるか。
主な発見
- mGPT-1.3BはXGLM-1.7Bと比較可能であり、より少ないパラメータでより多くの言語をカバーする。
- mGPT-13Bはほとんどの言語と言語ファミリーで最良のパープレキシティを達成し、特にDravidian、Indo-Aryan、Slavic、Sino-Tibetanのグループに顕著。
- デモンストレーションを増やすと、mGPTとXGLMのゼロショットおよび少数ショット設定で性能が低下する可能性がある。
- ヘイトスピーチ検出は依然として難しく、ゼロショット/少数ショット設定でしばしばランダム近辺の性能。
- 外部検証ではmGPT-1.3BがSuperGLUEタスクで一部の大規模LMを上回り、多言語形態素タスクを支援することを示し、モデル/コードはMITライセンスで公開。
- タスクを横断して、非ラテン文字のスクリプトや低リソース言語は性能が低く、より大きな事前学習データがすべての言語で一様に改善するわけではない。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。