Skip to main content
QUICK REVIEW

[论文解读] mGPT: Few-Shot Learners Go Multilingual

Oleh Shliazhko, Alena Fenogenova|arXiv (Cornell University)|Apr 15, 2022
Topic ModelingComputer Science被引用 47
一句话总结

mGPT 是一个多语言的 GPT-3 风格自回归模型,在61种语言上进行预训练,在语言建模、跨语言 NLU 和知识探针方面进行评估,其上下文学习与同期模型相当。

ABSTRACT

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.

研究动机与目标

  • 开发一个大规模的多语言自回归 LM,灵感来自 GPT-3,覆盖包括 CIS 及低资源语言在内的多种语言。
  • 在一个类型学上多样的语料库上进行预训练(Wikipedia 和 C4),并通过仔细的数据筛选和去重以提高数据质量。
  • 在多语言范围内评估内在能力(语言建模)和外在能力(下游任务、知识探测)的表现。
  • 分析模型规模、预训练数据和标记化对多语言泛化和跨语言迁移的影响。

提出的方法

  • 使用 Wikipedia 和 C4 作为语料,使用 61 种语言、25 个语言家族来预训练一个多语言 GPT-3 风格的 LM。
  • 数据管线包括使用 64 位哈希的去重以及使用基于压缩的启发式方法和语言无关分类器的筛选。
  • 对五种标记化策略进行研究;基于留出验证集的 Wikipedia 困惑度(Equation 1)进行选择。
  • 架构设置在交替的密集层和稀疏层中复现 GPT-3 的尺度,并采用稀疏注意力。
  • 训练细节:每步 2048 的小批量,600k 步,看到 400B tokens,在 V100 集群上 14–22 天。

实验结果

研究问题

  • RQ1在 61 种语言上预训练的多语言自回归 LM 是否能够在比某些基线更少的参数量下实现有竞争力的 in-context 学习?
  • RQ2语言家族、书写系统和数据量如何影响困惑度以及下游多语言性能?
  • RQ3模型规模(1.3B 与 13B)和标记化策略对语言建模与跨语言任务的影响是什么?
  • RQ4mGPT 在跨语言 NLU 基准测试和跨语言知识探测任务在多样语言上的表现如何?
  • RQ5上下文演示在各任务和语言上是提升还是降低性能?

主要发现

  • mGPT-1.3B 与 XGLM-1.7B 相当,同时覆盖更多语言但参数量更少。
  • mGPT-13B 在大多数语言和语言家族上实现了最佳困惑度,特别是在 Dravidian、Indo-Aryan、Slavic 和 Sino-Tibetan 组别。
  • 增加演示在零-shot 和少-shot 设置下会降低 mGPT 与 XGLM 的性能。
  • 仇恨言论检测仍然具有挑战性,在零-shot/少-shot 设置下往往接近随机性能。
  • 外部验证显示 mGPT-1.3B 可以在 SuperGLUE 任务上超越一些大型语言模型,并有助于多语言形态学任务;模型/代码以 MIT 许可发布。
  • 在各任务中,非拉丁字母脚本和低资源语言表现较弱;更大规模的预训练数据并不能对所有语言都带来改进。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。