随着模型规模的不断扩大,诸如渐进式堆叠(gradual stacking)[Gong et al., 2019, Reddi et al., 2023] 等新型训练策略引起了广泛关注。堆叠通过分阶段逐步增加模型深度,并利用前一阶段较小模型的层来初始化下一阶段,从而实现高效训练。尽管堆叠在训练效率方面具有优势,但此类逐步增长方法所引入的模型偏置在很大程度上尚未得到探索。本文针对渐进式堆叠的这一根本特性展开研究,超越了其效率优势本身。我们提出了一种名为 MIDAS 的渐进式堆叠变体,可将语言模型训练速度提升高达 40%。此外,我们发现了一个引人注目的现象:MIDAS 不仅训练高效,而且出人意料地具有一种有利于提升下游任务表现的归纳偏置,尤其是需要推理能力的任务,如阅读理解与数学问题,尽管与基线训练相比,其困惑度(perplexity)相似或略差。为了进一步分析这种归纳偏置,我们构建了推理原语(reasoning primitives)——即构成推理能力的简单合成任务——并发现,使用堆叠预训练的模型在这些原语上的表现显著优于标准预训练模型,无论是否进行微调。这为堆叠朝向推理的归纳偏置提供了更强且更稳健的证据。上述关于训练效率和推理归纳偏置的发现已在 1B、2B 和 8B 参数规模的语言模型上得到验证。最后,我们通过探索堆叠与循环模型(looped models)之间的联系,推测了这一归纳偏置产生的深层原因,并提供了有力的实证分析支持。
英文摘要:
Given the increasing scale of model sizes, novel training strategies like gradual stacking [Gong et al., 2019, Reddi et al., 2023] have garnered interest. Stacking enables efficient training by gradually growing the depth of a model in stages and using layers from a smaller model in an earlier stage to initialize the next stage. Although efficient for training, the model biases induced by such growing approaches are largely unexplored. In this work, we examine this fundamental aspect of gradual stacking, going beyond its efficiency benefits. We propose a variant of gradual stacking called MIDAS that can speed up language model training by up to 40%. Furthermore we discover an intriguing phenomenon: MIDAS is not only training-efficient but surprisingly also has an inductive bias towards improving downstream tasks, especially tasks that require reasoning abilities like reading comprehension and math problems, despite having similar or slightly worse perplexity compared to baseline training. To further analyze this inductive bias, we construct reasoning primitives -- simple synthetic tasks that are building blocks for reasoning -- and find that a model pretrained with stacking is significantly better than standard pretraining on these primitives, with and without fine-tuning. This provides stronger and more robust evidence for this inductive bias towards reasoning. These findings of training efficiency and inductive bias towards reasoning are verified at 1B, 2B and 8B parameter language models. Finally, we conjecture the underlying reason for this inductive bias by exploring the connection of stacking to looped models and provide strong supporting empirical analysis.
On the Inductive Bias of Masked Language Modeling: From Statistical to Syntactic Dependencies
Stanford University(斯坦福大学)
我们研究了如何以无监督的方式掩蔽和预测令牌可以产生语言结构和下游性能增益。最近的理论表明,预训练的语言模型通过隐含地充当下游任务的完形填空缩减的掩码来获得有用的归纳偏差。虽然有吸引力,我们表明,在实践中使用的随机掩蔽策略的成功,不能解释这样的完形填空式的面具。我们使用三个不同分类数据集的特定任务词典构建了类似完形填空的掩码,并表明大多数预训练的性能增益来自与词典无关的通用掩码。为了解释这些通用面具的经验成功,我们证明了掩蔽语言模型(MLM)的目标和现有的方法之间的对应关系,学习统计依赖的图形模型。使用此,我们推导出一种方法,用于提取这些学习的统计依赖MLMs,并表明这些依赖编码有用的归纳偏见的形式的句法结构。在无监督解析评估中,简单地在隐含的统计依赖结构上形成最小生成树优于无监督解析的经典方法(58.74 vs. 55.91 UUAS)。
Graph Alignment Topology as an Inductive Bias for Grounding Detection
Department of Pediatrics, University of Illinois College of Medicine Peoria(伊利诺伊大学皮奥里亚医学院儿科部);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Siebel School of Computing and Data Science, University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校计算机与数据科学学院);Carle Illinois College of Medicine, University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校卡莱医学院)
Learning Inductive Biases with Simple Neural Networks
New York University(纽约大学)
人们利用丰富的先验知识来有效地学习新概念。这些先验-也称为“归纳偏差”-属于学习者考虑的内部模型空间,它们帮助学习者做出超越观察数据的推断。最近的一项研究发现,针对对象识别优化的深度神经网络产生了形状偏差(Ritter et al.,2017年),一个归纳偏见所拥有的儿童,在早期的文字学习中发挥着重要作用。然而,这些网络使用不切实际的大量训练数据,并且这些偏差发展所需的条件还没有得到很好的理解。此外,目前还不清楚这些网络的学习动态如何与儿童的发展过程有关。我们调查的发展和影响的形状偏差在神经网络使用控制数据集的抽象模式和合成图像,使我们能够系统地改变数量和形式的经验提供给学习算法。我们发现,简单的神经网络在看到4个对象类别的3个示例后会产生形状偏好。这些偏见的发展预测了我们网络中词汇加速的开始,与儿童的发展过程一致。
Effects of Parameter Norm Growth During Transformer Training: Inductive Bias from Gradient Descent
Allen Institute for AI(艾伦人工智能研究所);New York University(纽约大学);University of Washington(华盛顿大学);Bar Ilan University(巴伊兰大学);Hebrew University of Jerusalem(希伯来大学)