专业化前的上下文学习:可解主题模型中的学习理论
In-Context Learning Before Specialisation: Theory of Learning in a Solvable Topic Model
AI总结:
本文在可解主题模型中构建学习理论,揭示上下文预测器与专业化预测器的出现规律,训练的Transformer模型验证了该理论的一致性。
摘要:
序列模型可以以两种根本不同的方式泛化:外推训练中见过的结构,或利用提示适应新任务。主流策略决定了模型在训练分布之外的行为,控制着潜在能力与风险。近期工作已从理论上刻画了多种不同策略,并从经验上描述了随着预训练数据的质量和数量变化,这些策略之间的转变。然而,目前尚无针对这种竞争的学习理论,因此也无法从根本上理解为何某一种解决方案会比另一种更受青睐。本文在一个可解主题模型中提供了这样的理论——该模型的文档来自潜在主题的有限混合,反映了现代预训练数据的异质性。该数据集包含两种不同的解决方案:一种是存储有限主题混合的专业化预测器,另一种是对训练期间从未见过的主题最优的上下文预测器。我们的理论预测了它们在不同样本复杂度下的出现:上下文预测器会较早出现,而专业化预测器仅在训练 token 数量超过数据生成过程的参数数量后才会出现。经过训练的 Transformer 模型重现了这两种尺度以及与理论高度一致的分界交叉点,且无需拟合任何参数。
英文摘要:
Sequence models can generalise in fundamentally distinct ways: extrapolating structures seen in training, or using their prompt to adapt to novel tasks. The prevailing strategy determines how the model behaves beyond its training distribution, controlling potential capabilities and risks. Recent work has characterised many different strategies theoretically, and empirically described the transition between them as the quality and quantity of pretraining data vary. However, there is no learning theory for this competition, hence no fundamental understanding of \textit{why} one solution might be favoured over another. Here we provide such a theory in a solvable topic model---documents drawn from a finite mixture of latent topics, mirroring the heterogeneity of modern pretraining data. The dataset comes with two distinct solutions: a specialised predictor, that stores the finite topic mixture, and an in-context one, optimal for topics never seen during training. Our theory predicts their emergence at distinct sample complexities: the in-context predictor is available early, while the specialised one emerges only after the training tokens outnumber the parameters of the data-generating process. Trained transformers reproduce both scales and the separating crossover in remarkable agreement with the theory, with no fitted parameters.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。