[论文解读] Crosslingual Generalization through Multitask Finetuning
论文通过多任务提示对多语言BLOOM与mT5进行微调,生成BLOOMZ和mT0,展示仅英语的多任务微调能够实现跨语言的泛化,而多语言训练(xP3/xP3mt)在跨语言和任务的零样本表现上进一步提升,包括未曾刻意看到的语言。
Multitask prompted finetuning (MTF) has been shown to help large language models generalize to new tasks in a zero-shot setting, but so far explorations of MTF have focused on English data and models. We apply MTF to the pretrained multilingual BLOOM and mT5 model families to produce finetuned variants called BLOOMZ and mT0. We find finetuning large multilingual language models on English tasks with English prompts allows for task generalization to non-English languages that appear only in the pretraining corpus. Finetuning on multilingual tasks with English prompts further improves performance on English and non-English tasks leading to various state-of-the-art zero-shot results. We also investigate finetuning on multilingual tasks with prompts that have been machine-translated from English to match the language of each dataset. We find training on these machine-translated prompts leads to better performance on human-written prompts in the respective languages. Surprisingly, we find models are capable of zero-shot generalization to tasks in languages they have never intentionally seen. We conjecture that the models are learning higher-level capabilities that are both task- and language-agnostic. In addition, we introduce xP3, a composite of supervised datasets in 46 languages with English and machine-translated prompts. Our code, datasets and models are freely available at https://github.com/bigscience-workshop/xmtf.
研究动机与目标
- 证明英语-only多任务微调是否能提升多语言大模型在非英语零样本表现。
- 评估多语言多任务微调(xP3)是否进一步提升跨语言及英语任务表现。
- 评估提示语(英语 vs. 已翻译)对零-shot任务的影响,以及机器翻译提示(xP3mt)的影响。
- 研究模型是否能泛化到在预训练或微调阶段未刻意看到的语言的任务。
提出的方法
- 在名为xP3的多语言多任务语料上微调预训练的BLOOM和mT5,将以英语为中心的P3扩展到46种语言。
- 通过机器翻译提示以匹配数据集语言来创建xP3mt,以研究提示语言效应。
- 产出核心模型变体:BLOOMZ-P3/mT0-P3(英语任务上的英语提示),BLOOMZ/mT0(xP3),以及BLOOMZ-MT/mT0-MT(xP3mt)。
- 在保留任务(共指解析、句子完成、NLI)和生成任务(翻译、摘要)上使用基于提示的零-shot设定进行评估。
- 将解码器-only的BLOOM变体与编码器-解码器的mT5进行比较,以分析架构与预训练差异。
实验结果
研究问题
- RQ1英语-only多任务微调在多语言模型上是否能提升非英语保留任务的零-shot表现?
- RQ2将微调扩展到多语言任务(xP3)是否在英语和非英语任务上带来进一步提升?
- RQ3英语提示与翻译后提示对零-shot表现有何影响?对非英语提示,是否在机器翻译提示上训练有帮助?
- RQ4模型是否能够泛化到在预训练或微调阶段未刻意看到过的语言的任务?
主要发现
- 多语言模型的多任务微调显著提升零-shot泛化,相较于基础预训练模型,在多任务和多语言上有提升。
- 英语-only xP3微调在英语任务上优于英语-only P3,且xP3通常带来更强的多语言表现。
- 对xP3mt的机器翻译提示进行微调,在对人类撰写的非英语提示上提升表现,尽管英语提示表现可能下降。
- 在xP3上微调的模型具备对在预训练或微调阶段未刻意看到的语言任务的泛化能力,表明语言-和任务无关的能力。
- 扩大模型规模可以增强零-shot泛化,随着参数增加,预训练和微调模型之间的差距扩大。
- 多任务微调在代码相关任务上倾向于生成较短的输出,强制设定最小生成长度的提示方法可以缓解这一点并提高翻译BLEU分数。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。