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

演示对多语言上下文学习的影响:一项多维分析

The Impact of Demonstrations on Multilingual In-Context Learning: A Multidimensional Analysis

Saarland University(萨尔大学);Bosch Center for AI(博世人工智能中心);LMU Munich(慕尼黑大学);Munich Center for Machine Learning (MCML)(慕尼黑机器学习中心);Eastern Institute of Technology(东方理工学院);Mila(米拉研究所);McGill University(麦吉尔大学)

Miaoran Zhang, Vagrant Gautam, Mingyang Wang, Jesujoba O. Alabi, Xiaoyu Shen, Dietrich Klakow, Marius Mosbach

AI总结:

本文通过5个模型、9个数据集和56种语言的多维实验,发现演示在多语言上下文学习中的效果因模型、任务和语言而异,且强指令遵循模型对演示质量不敏感,提示演示的重要性可能被高估。

摘要:

上下文学习是一种流行的推理策略,大型语言模型仅使用少量带标签的演示即可解决任务,而无需进行任何参数更新。尽管已有大量关于英语上下文学习的研究,但多语言上下文学习仍未得到充分探索,我们缺乏对演示在这种情境下所起作用的深入理解。为弥补这一空白,我们对多语言上下文学习进行了多维分析,实验涉及来自不同模型家族的5个模型、覆盖分类和生成任务的9个数据集,以及56种类型学上多样的语言。我们的结果表明,演示的有效性在不同模型、任务和语言之间存在显著差异。我们还发现,包括Llama 2-Chat、GPT-3.5和GPT-4在内的强指令遵循模型在很大程度上对演示质量不敏感。相反,一个精心设计的模板往往会完全消除演示在某些任务和语言上的收益。这些发现表明,演示的重要性可能被高估了。我们的工作强调了沿多个轴进行细粒度评估的必要性,以便更好地理解上下文学习。

英文摘要:

In-context learning is a popular inference strategy where large language models solve a task using only a few labeled demonstrations without needing any parameter updates. Although there have been extensive studies on English in-context learning, multilingual in-context learning remains under-explored, and we lack an in-depth understanding of the role of demonstrations in this context. To address this gap, we conduct a multidimensional analysis of multilingual in-context learning, experimenting with 5 models from different model families, 9 datasets covering classification and generation tasks, and 56 typologically diverse languages. Our results reveal that the effectiveness of demonstrations varies significantly across models, tasks, and languages. We also find that strong instruction-following models including Llama 2-Chat, GPT-3.5, and GPT-4 are largely insensitive to the quality of demonstrations. Instead, a carefully crafted template often eliminates the benefits of demonstrations for some tasks and languages altogether. These findings show that the importance of demonstrations might be overestimated. Our work highlights the need for granular evaluation across multiple axes towards a better understanding of in-context learning.

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

↑