Skip to main content
QUICK REVIEW

[论文解读] PolyLM: An Open Source Polyglot Large Language Model

Xiangpeng Wei, Haoran Wei|arXiv (Cornell University)|Jul 12, 2023
Topic ModelingComputer Science被引用 14
一句话总结

PolyLM 提供了一个开源的多语言大模型,规模为 1.7B 和 13B,在 640B tokens 上训练,采用课程学习和多语言自我指导,在非英语任务上表现出色,同时保留英语能力。

ABSTRACT

Large language models (LLMs) demonstrate remarkable ability to comprehend, reason, and generate following nature language instructions. However, the development of LLMs has been primarily focused on high-resource languages, such as English, thereby limiting their applicability and research in other languages. Consequently, we present PolyLM, a multilingual LLM trained on 640 billion (B) tokens, avaliable in two model sizes: 1.7B and 13B. To enhance its multilingual capabilities, we 1) integrate bilingual data into training data; and 2) adopt a curriculum learning strategy that increases the proportion of non-English data from 30% in the first stage to 60% in the final stage during pre-training. Further, we propose a multilingual self-instruct method which automatically generates 132.7K diverse multilingual instructions for model fine-tuning. To assess the model's performance, we collect several existing multilingual tasks, including multilingual understanding, question answering, generation, and translation. Extensive experiments show that PolyLM surpasses other open-source models such as LLaMA and BLOOM on multilingual tasks while maintaining comparable performance in English. Our models, alone with the instruction data and multilingual benchmark, are available at: \url{https://modelscope.cn/models/damo/nlp_polylm_13b_text_generation}.

研究动机与目标

  • 通过创建 PolyLM 的 13B 和 1.7B 规模来弥合开源多语言大模型的空白。
  • 利用一个包含 18 种语言、占比 32% 非英语数据的 640B-token 多语言预训练语料库。
  • 引入课程学习以将英语知识迁移到低资源语言。
  • 通过 MultiAlpaca 开发多语言指令数据,以提升多语言的监督微调(SFT)。
  • 创建一个多语言基准,用于评估理解、生成和翻译能力。

提出的方法

  • 组装一个 640B-token 的预训练语料库,68% 英语和 32% 多语言数据,以及 7.5B 代码数据和 1B 对齐的多语言数据。
  • 对 1.7B/13B 模型使用仅解码器的 Transformer,层数为 24/40,集成 RoPE,并实现 Pre-LN 稳定化。
  • 应用一个数据预处理管道,包含语言识别、基于规则和基于 ML 的质量筛选,以及去重。
  • 通过以英语为主的数据开始,第二阶段逐步增加高质量多语言数据,采用课程学习。
  • 创建 MultiAlpaca,一个跨 11 种语言的多语言自我指令数据集,包含 132,701 个任务,用于 SFT。
  • 构建一个跨 15 种语言的、涵盖 NLU、知识、NLG 和 MT 任务的多语言基准。

实验结果

研究问题

  • RQ1PolyLM 是否能够在 18 种语言中实现强大的多语言能力,同时保持英语性能?
  • RQ2课程学习是否改善跨语言迁移和多语言指令执行?
  • RQ3多语言自我指令数据(MultiAlpaca)如何影响零样本和少量样本的多语言任务?
  • RQ4在多语言基准上,PolyLM 与 BLOOM、LLaMA 等开源模型相比如何?
  • RQ5数据集组成和分词器设计对多语言压缩与覆盖范围有何影响?

主要发现

  • PolyLM-13B 与 PolyLM-1.7B 在多语言任务上优于同等规模的开源模型。
  • 课程学习显著提升多语言性能,同时保留英语水平。
  • 多语言指令数据增强多语言零-shot 能力。
  • PolyLM 在覆盖语言上的标记压缩优于若干基线,英语压缩与 BLOOM/LLaMA 相当。
  • 该模型、指令数据和多语言基准可在提供的 ModelScope 链接公开获取。

阅读本论文

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

在 Nubint 中阅读本论文

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