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

通过元学习 Transformers 实现通用上下文学习

General-Purpose In-Context Learning by Meta-Learning Transformers

Google Research, Brain Team(谷歌研究院大脑团队);The Swiss AI Lab IDSIA, USI, SUPSI(瑞士人工智能实验室 IDSIA,提契诺大学,瑞士南部应用科学与艺术大学)

Louis Kirsch, James Harrison, Jascha Sohl-Dickstein, Luke Metz

AI总结:

本文提出通过元学习从零开始训练 Transformers 等黑盒模型,使其成为无需显式定义推理模型或优化算法的通用上下文学习器,并揭示了其能力受限于可访问状态大小而非参数量,同时提出改进元训练与泛化的实用方法。

摘要:

现代机器学习要求系统设计者指定学习流程的各个方面,如损失函数、架构和优化器。元学习,即学习如何学习,旨在学习这些方面,有望以更少的手动努力解锁更强大的能力。元学习的一个特别雄心勃勃的目标是从头开始训练通用的上下文学习算法,仅使用具有最小归纳偏置的黑盒模型。此类模型接收训练数据,并在广泛的问题上产生测试集预测,而无需明确定义推理模型、训练损失或优化算法。在本文中,我们展示了 Transformers 和其他黑盒模型可以被元训练以充当通用的上下文学习器。我们刻画了由模型大小、任务数量和元优化的变化所引起的泛化算法、记忆算法以及完全无法进行元训练的算法之间的转变。我们进一步表明,元训练算法的能力受到决定下一次预测的可访问状态大小(内存)的瓶颈限制,这与通常认为受参数数量瓶颈限制的标准模型不同。最后,我们提出了实际干预措施,例如偏置训练分布,以改善通用上下文学习算法的元训练和元泛化。

英文摘要:

Modern machine learning requires system designers to specify aspects of the learning pipeline, such as losses, architectures, and optimizers. Meta-learning, or learning-to-learn, instead aims to learn those aspects, and promises to unlock greater capabilities with less manual effort. One particularly ambitious goal of meta-learning is to train general-purpose in-context learning algorithms from scratch, using only black-box models with minimal inductive bias. Such a model takes in training data, and produces test-set predictions across a wide range of problems, without any explicit definition of an inference model, training loss, or optimization algorithm. In this paper we show that Transformers and other black-box models can be meta-trained to act as general-purpose in-context learners. We characterize transitions between algorithms that generalize, algorithms that memorize, and algorithms that fail to meta-train at all, induced by changes in model size, number of tasks, and meta-optimization. We further show that the capabilities of meta-trained algorithms are bottlenecked by the accessible state size (memory) determining the next prediction, unlike standard models which are thought to be bottlenecked by parameter count. Finally, we propose practical interventions such as biasing the training distribution that improve the meta-training and meta-generalization of general-purpose in-context learning algorithms.

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

↑