arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2104.12369cs.CL
收藏

PanGu - $α$:大规模自回归预训练汉语语言模型及其自动并行计算

PanGu-$α$: Large-scale Autoregressive Pretrained Chinese Language Models with Auto-parallel Computation

Wei Zeng, Xiaozhe Ren, Teng Su, Hui Wang, Yi Liao, Zhiwei Wang, Xin Jiang, ZhenZhang Yang, Kaisheng Wang, Xiaoda Zhang, Chen Li, Ziyan Gong, Yifan Yao, Xinjing … 展开作者

Wei Zeng, Xiaozhe Ren, Teng Su, Hui Wang, Yi Liao, Zhiwei Wang, Xin Jiang, ZhenZhang Yang, Kaisheng Wang, Xiaoda Zhang, Chen Li, Ziyan Gong, Yifan Yao, Xinjing Huang, Jun Wang, Jianfeng Yu, Qi Guo, Yue Yu, Yan Zhang, Jin Wang, Hengtao Tao, Dasen Yan, Zexuan Yi, Fang Peng, Fangqing Jiang, Han Zhang, Lingfeng Deng, Yehong Zhang, Zhe Lin, Chao Zhang, Shaojie Zhang, Mingyue Guo, Shanzhi Gu, Gaojun Fan, Yaowei Wang, Xuefeng Jin, Qun Liu, Yonghong Tian

摘要:

大规模预训练语言模型(PLMs)已成为自然语言处理(NLP)的新范式。具有数千亿参数的PLM(如GPT-3)在自然语言理解和\textit{few-shot in-context}学习生成方面表现出了强大的性能。在这项工作中,我们提出了我们的实践训练大规模自回归语言模型命名盘古- $α$,高达2000亿参数。PanGu- $α$是在MindSpore下开发的,并在2048个Ascend 910 AI处理器集群上训练。基于MindSpore Auto-parallel实现了训练并行策略,该策略包括数据并行、操作级模型并行、流水线模型并行、优化器模型并行和再物化5个并行维度,可有效地将训练任务扩展到2048个处理器。为了提高PanGu- $α$的泛化能力,我们从广泛的领域收集了1.1TB的高质量中文数据来预训练模型。我们实证测试$α$在各种场景下的生成能力,包括文本摘要,问答,对话生成等。此外,我们调查了模型规模对Few-Shot性能的影响,在广泛的中文NLP任务。实验结果表明PanGu- $α$在执行各种任务时在Few-Shot或zero-shot设置下的优越能力。

英文摘要:

Large-scale Pretrained Language Models (PLMs) have become the new paradigm for Natural Language Processing (NLP). PLMs with hundreds of billions parameters such as GPT-3 have demonstrated strong performances on natural language understanding and generation with \textit{few-shot in-context} learning. In this work, we present our practice on training large-scale autoregressive language models named PanGu-$α$, with up to 200 billion parameters. PanGu-$α$ is developed under the MindSpore and trained on a cluster of 2048 Ascend 910 AI processors. The training parallelism strategy is implemented based on MindSpore Auto-parallel, which composes five parallelism dimensions to scale the training task to 2048 processors efficiently, including data parallelism, op-level model parallelism, pipeline model parallelism, optimizer model parallelism and rematerialization. To enhance the generalization ability of PanGu-$α$, we collect 1.1TB high-quality Chinese data from a wide range of domains to pretrain the model. We empirically test the generation ability of PanGu-$α$ in various scenarios including text summarization, question answering, dialogue generation, etc. Moreover, we investigate the effect of model scales on the few-shot performances across a broad range of Chinese NLP tasks. The experimental results demonstrate the superior capabilities of PanGu-$α$ in performing various tasks under few-shot or zero-shot settings.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑