Skip to main content
QUICK REVIEW

[论文解读] Efficient Language Model Training through Cross-Lingual and Progressive Transfer Learning

Malte Ostendorff, Georg Rehm|arXiv (Cornell University)|Jan 23, 2023
Topic ModelingComputer Science被引用 15
一句话总结

CLP-Transfer 通过从源语言的大模型和一个较小的目标语言模型初始化目标语言的大模型,复用权重并对齐嵌入,以在保留或提升性能的同时实现显著的训练节省。

ABSTRACT

Most Transformer language models are primarily pretrained on English text, limiting their use for other languages. As the model sizes grow, the performance gap between English and other languages with fewer compute and data resources increases even further. Consequently, more resource-efficient training methods are needed to bridge the gap for languages with fewer resources available. To address this problem, we introduce a cross-lingual and progressive transfer learning approach, called CLP-Transfer, that transfers models from a source language, for which pretrained models are publicly available, like English, to a new target language. As opposed to prior work, which focused on the cross-lingual transfer between two languages, we extend the transfer to the model size. Given a pretrained model in a source language, we aim for a same-sized model in a target language. Instead of training a model from scratch, we exploit a smaller model that is in the target language but requires much fewer resources. Both small and source models are then used to initialize the token embeddings of the larger model based on the overlapping vocabulary of the source and target language. All remaining weights are reused from the model in the source language. This approach outperforms the sole cross-lingual transfer and can save up to 80% of the training steps compared to the random initialization.

研究动机与目标

  • 通过实现资源高效的大语言模型训练来缩小非英语语言的性能差距。
  • 将跨语言迁移扩展到模型规模,使同等规模的目标语言模型也能高效训练。
  • 利用一个小型的目标语言模型来协助初始化大型目标语言模型的嵌入,同时复用源语言 Transformer 权重。

提出的方法

  • 从源大模型 W_s^{(large)} 初始化目标大模型权重 W_t^{(large)}。
  • 对 V_s ∩ V_t 的令牌,使用 V_s^{(large)} 初始化 V_t^{(large)} 的重叠令牌嵌入。
  • 对于非重叠令牌,使用一个基于相似度的权重函数 δ(v, v̂) 将重叠嵌入的加权平均来初始化嵌入。
  • 假设词汇表有较大重叠且跨模型规模的嵌入空间相似,以实现跨语言和跨规模的嵌入转移。
  • 在解码器专用的 GPT-2 和 BLOOM 架构上以德语为目标语言进行评估,并与从头训练和 WECHSEL 基线进行对比。
Figure 1: Similarity of token embeddings of different OPT model sizes measured as overlapping $k=10$ nearest neighbors for all tokens in the vocabulary.
Figure 1: Similarity of token embeddings of different OPT model sizes measured as overlapping $k=10$ nearest neighbors for all tokens in the vocabulary.

实验结果

研究问题

  • RQ1跨语言迁移是否也能有效扩展到匹配目标语言的模型规模(不仅限于跨语言)?
  • RQ2将一个小型目标语言模型与源大模型结合使用,是否相较于传统的跨语言迁移提升了训练效率和最终性能?
  • RQ3应用 CLP-Transfer 至德语 GPT-2 和 BLOOM 模型时,在训练 token 节省和困惑度方面有哪些实际收益?

主要发现

  • CLP-Transfer 在 GPT-2-XL 德语(1.5B)仅用一半训练 token 即可达到或超越从头训练的性能;在 BLOOM-CLP 德语(6.4B)仅用20% token。
  • 对于 GPT-2,CLP-Transfer 在大约50% 的 token 后达到与从头训练相同的困惑度;WECHSEL 落后。
  • 对于 BLOOM,CLP-Transfer 在大约 20% 的 token 后达到等效困惑度,表明训练节省高达约 80%。
  • 在零-shot 下游任务中,BLOOM-CLP 6.4B 在单语德语模型中取得最佳平均值(0.43),并超越若干基线。
  • 总体而言,CLP-Transfer 展示出在多种架构和规模下相对于基线更高的效率以及具竞争力或更优的下游性能。
Figure 2: GPT2-XL German (1.5B parameters). Validation perplexity w.r.t. the number of consumed tokens comparing from-scratch training (random initialization), WECHSEL (cross-lingual transfer), and our CLP-Transfer approach. CLP-Transfer achieves the same PPL as from-scratch training but already aft
Figure 2: GPT2-XL German (1.5B parameters). Validation perplexity w.r.t. the number of consumed tokens comparing from-scratch training (random initialization), WECHSEL (cross-lingual transfer), and our CLP-Transfer approach. CLP-Transfer achieves the same PPL as from-scratch training but already aft

阅读本论文

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

在 Nubint 中阅读本论文

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