arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2404.03558cs.CLcs.LG
收藏

多任务训练如何影响 Transformer 的上下文能力?基于函数类别的研究

How does Multi-Task Training Affect Transformer In-Context Capabilities? Investigations with Function Classes

University of Wisconsin(威斯康星大学)

Harmon Bhasin, Timothy Ossowski, Yiqiao Zhong, Junjie Hu

AI总结:

本文研究多任务学习与 Transformer 上下文学习的结合,提出混合课程等策略,提升 ICL 模型的数据效率、收敛稳定性及分布外鲁棒性。

摘要:

大型语言模型(LLM)近来展现出基于以文本形式提供的少样本示例执行未见任务的非凡能力,这也被称为上下文学习(ICL)。尽管近期研究试图理解驱动 ICL 的机制,但很少有工作探索激励这些模型泛化到多个任务的训练策略。面向通才模型的多任务学习(MTL)是一个颇具前景的方向,它提供了迁移学习潜力,使大型参数化模型能够从更简单、相关的任务中进行训练。在本工作中,我们研究将 MTL 与 ICL 相结合,以构建能够高效学习任务、同时对分布外示例保持鲁棒性的模型。我们提出了若干有效的课程学习策略,使 ICL 模型能够实现更高的数据效率和更稳定的收敛。实验表明,ICL 模型可以通过在逐步更难的任务上训练、同时混合先前任务来有效学习困难任务,本文将这种方式称为混合课程。我们的代码和模型可在 https://github.com/harmonbhasin/curriculum_learning_icl 获取。

英文摘要:

Large language models (LLM) have recently shown the extraordinary ability to perform unseen tasks based on few-shot examples provided as text, also known as in-context learning (ICL). While recent works have attempted to understand the mechanisms driving ICL, few have explored training strategies that incentivize these models to generalize to multiple tasks. Multi-task learning (MTL) for generalist models is a promising direction that offers transfer learning potential, enabling large parameterized models to be trained from simpler, related tasks. In this work, we investigate the combination of MTL with ICL to build models that efficiently learn tasks while being robust to out-of-distribution examples. We propose several effective curriculum learning strategies that allow ICL models to achieve higher data efficiency and more stable convergence. Our experiments reveal that ICL models can effectively learn difficult tasks by training on progressively harder tasks while mixing in prior tasks, denoted as mixed curriculum in this work. Our code and models are available at https://github.com/harmonbhasin/curriculum_learning_icl .

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

↑