arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2112.10668cs.CLcs.AI
收藏

多语言语言模型的少样本学习

Few-shot Learning with Multilingual Language Models

Meta AI
Xi Victoria Lin, Todor Mihaylov, Mikel Artetxe, Tianlu Wang, Shuohui Chen, Daniel Simig, Myle Ott, Naman Goyal, Shruti Bhosale, Jingfei Du, Ramakanth Pasunuru, … 展开作者

Xi Victoria Lin, Todor Mihaylov, Mikel Artetxe, Tianlu Wang, Shuohui Chen, Daniel Simig, Myle Ott, Naman Goyal, Shruti Bhosale, Jingfei Du, Ramakanth Pasunuru, Sam Shleifer, Punit Singh Koura, Vishrav Chaudhary, Brian O'Horo, Jeff Wang, Luke Zettlemoyer, Zornitsa Kozareva, Mona Diab, Veselin Stoyanov, Xian Li

摘要:

大规模的生成语言模型,如GPT-3是有竞争力的Few-Shot学习器。虽然这些模型能够联合表示许多不同的语言,但它们的训练数据以英语为主,这可能限制了它们的跨语言泛化。在这项工作中,我们训练多语言生成语言模型上的语料库涵盖了不同的语言,并研究他们的少数和零样本学习能力在广泛的任务。我们拥有75亿个参数的最大模型在20多种代表性语言的少样本学习中开创了最新的技术水平,在多语言常识推理(0次设置中的绝对准确率提高了+7.4%,4次设置中提高了+9.4%)和自然语言推理(0次和4次设置中各提高了+5.4%)方面优于同等规模的GPT-3。在FLORES-101机器翻译基准测试中,我们的模型在182个方向中的171个方向上优于GPT-3,有32个训练样本,同时在45个方向上超过了官方监督基线。我们对不同的多语言提示方法进行了深入分析,特别是通过模板和演示示例,通过跨语言迁移可以实现跨语言的强少样本学习性能。最后,我们评估了我们的模型在社会价值的任务,如仇恨言论检测在五种语言,并发现它有类似的大小的GPT-3模型的局限性。

英文摘要:

Large-scale generative language models such as GPT-3 are competitive few-shot learners. While these models are known to be able to jointly represent many different languages, their training data is dominated by English, potentially limiting their cross-lingual generalization. In this work, we train multilingual generative language models on a corpus covering a diverse set of languages, and study their few- and zero-shot learning capabilities in a wide range of tasks. Our largest model with 7.5 billion parameters sets new state of the art in few-shot learning in more than 20 representative languages, outperforming GPT-3 of comparable size in multilingual commonsense reasoning (with +7.4% absolute accuracy improvement in 0-shot settings and +9.4% in 4-shot settings) and natural language inference (+5.4% in each of 0-shot and 4-shot settings). On the FLORES-101 machine translation benchmark, our model outperforms GPT-3 on 171 out of 182 directions with 32 training examples, while surpassing the official supervised baseline in 45 directions. We conduct an in-depth analysis of different multilingual prompting approaches, showing in particular that strong few-shot learning performance across languages can be achieved via cross-lingual transfer through both templates and demonstration examples. Finally, we evaluate our models in social value tasks such as hate speech detection in five languages and find it has limitations similar to comparable sized GPT-3 models.

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

↑