arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.01786cs.CLcs.AIcs.LG

通过多任务微调实现跨语言泛化

Crosslingual Generalization through Multitask Finetuning

Hugging Face;EleutherAI;Google Research(谷歌研究院);Booz Allen Hamilton(博思艾伦汉密尔顿);Nanyang Technological University(南洋理工大学);UC Berkeley(加州大学伯克利分校);Brown University(布朗大学);Yale University(耶鲁大学);MBZUAI(穆罕默德·本·扎耶德人工智能大学);PSAU(萨塔姆·本·阿卜杜勒阿齐兹亲王大学);University of Cambridge(剑桥大学);KFUPM(法赫德国王石油与矿产大学)
Niklas Muennighoff, Thomas Wang, Lintang Sutawika, Adam Roberts, Stella Biderman, Teven Le Scao, M Saiful Bari, Sheng Shen, Zheng-Xin Yong, Hailey Schoelkopf, X… 展开作者

Niklas Muennighoff, Thomas Wang, Lintang Sutawika, Adam Roberts, Stella Biderman, Teven Le Scao, M Saiful Bari, Sheng Shen, Zheng-Xin Yong, Hailey Schoelkopf, Xiangru Tang, Dragomir Radev, Alham Fikri Aji, Khalid Almubarak, Samuel Albanie, Zaid Alyafeai, Albert Webson, Edward Raff, Colin Raffel

AI总结:

本文通过对多语言 BLOOM 和 mT5 模型进行多任务提示微调,提出 BLOOMZ 和 mT0,并引入 46 种语言的 xP3 数据集,实现了跨语言零样本任务泛化并取得多项最先进结果。

摘要:

多任务提示微调(MTF)已被证明能帮助大语言模型在零样本设置下泛化到新任务,但迄今为止对 MTF 的探索主要集中在英语数据和模型上。我们将 MTF 应用于预训练的多语言 BLOOM 和 mT5 模型家族,生成了名为 BLOOMZ 和 mT0 的微调变体。我们发现,在英语任务上使用英语提示微调大型多语言语言模型,可以使任务泛化到仅出现在预训练语料库中的非英语语言。在英语提示下对多语言任务进行微调,进一步提高了英语和非英语任务上的性能,带来了各种最先进的零样本结果。我们还研究了在提示经过从英语机器翻译以匹配每个数据集语言的多语言任务上进行微调。我们发现,在这些机器翻译提示上进行训练,能在相应语言的人类编写提示上取得更好的性能。令人惊讶的是,我们发现模型能够零样本泛化到它们从未有意见过的语言中的任务。我们推测这些模型正在学习既与任务无关也与语言无关的更高层次能力。此外,我们引入了 xP3,一个由 46 种语言的监督数据集组成的复合数据集,包含英语和机器翻译提示。我们的代码、数据集和模型可在 https://github.com/bigscience-workshop/xmtf 免费获取。

英文摘要:

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.

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

↑