arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.00871cs.LGcs.CLstat.ML
收藏

预训练数据混合使 Transformer 模型具备狭窄的模型选择能力

Pretraining Data Mixtures Enable Narrow Model Selection Capabilities in Transformer Models

Google DeepMind(谷歌DeepMind)

Steve Yadlowsky, Lyric Doshi, Nilesh Tripuraneni

AI总结:

本文通过受控的 $(x, f(x))$ 序列实验表明,Transformer 的上下文模型选择能力高度依赖预训练数据覆盖,域外任务会导致明显失败。

摘要:

Transformer 模型,尤其是大型语言模型(LLM),具有执行上下文学习(ICL)的显著能力——即在没有任何显式模型训练的情况下,当提示中给出未见过的输入-输出示例时执行新任务。在本工作中,我们研究 Transformer 能够在多大程度上有效衔接其由多个不同任务族组成的预训练数据混合,以在上下文中识别并学习处于预训练分布之内和之外的新任务。基于先前工作,我们在一个受控环境中考察这一问题:研究在 $(x, f(x))$ 对序列而非自然语言上训练的 Transformer 模型。我们的实证结果表明,当任务族在预训练数据中得到充分表征时,Transformer 会先在上下文中识别不同任务族,再在其中进行上下文学习,从而表现出接近最优的无监督模型选择能力。然而,当面对超出其预训练数据域的任务或函数时,我们展示了 Transformer 的多种失败模式,以及即使对于简单外推任务也会出现的泛化退化。综合而言,我们的结果强调,高容量序列模型令人印象深刻的 ICL 能力,可能与其预训练数据混合的覆盖范围联系更紧密,而不是与产生根本泛化能力的归纳偏置有关。

英文摘要:

Transformer models, notably large language models (LLMs), have the remarkable ability to perform in-context learning (ICL) -- to perform new tasks when prompted with unseen input-output examples without any explicit model training. In this work, we study how effectively transformers can bridge between their pretraining data mixture, comprised of multiple distinct task families, to identify and learn new tasks in-context which are both inside and outside the pretraining distribution. Building on previous work, we investigate this question in a controlled setting, where we study transformer models trained on sequences of $(x, f(x))$ pairs rather than natural language. Our empirical results show transformers demonstrate near-optimal unsupervised model selection capabilities, in their ability to first in-context identify different task families and in-context learn within them when the task families are well-represented in their pretraining data. However when presented with tasks or functions which are out-of-domain of their pretraining data, we demonstrate various failure modes of transformers and degradation of their generalization for even simple extrapolation tasks. Together our results highlight that the impressive ICL abilities of high-capacity sequence models may be more closely tied to the coverage of their pretraining data mixtures than inductive biases that create fundamental generalization capabilities.

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

↑