抑制变换器预训练中的最终层隐藏状态跳跃
Suppressing Final Layer Hidden State Jumps in Transformer Pretraining
AI总结:
本文提出JREG正则化器,通过抑制变换器预训练中的最终层隐藏状态跳跃,提升模型任务性能。
摘要:
本文讨论了变换器语言模型的内部行为。许多近期预训练模型被报告为在中间变换器层中输入和输出隐藏状态向量之间的角度距离仅表现出轻微变化,尽管在最终变换器层或其附近发生了一个不成比例大的角度距离跳跃。为此,我们首先引入了一个用于衡量最终层周围跳跃强度的定量指标,然后展示了该指标在许多开源模型中的普遍性,以及在预训练过程中其放大效应。假设这种跳跃表明了一个不期望的属性,我们提出了跳跃抑制正则化器(JREG),该正则化器在预训练过程中惩罚这种跳跃,从而鼓励在中间层之间更平衡地使用能力。对三种基于Llama的模型进行实验证明,使用所提出的JREG方法训练的模型在任务性能上优于基线,而无需改变模型架构。
英文摘要:
This paper discusses the internal behavior of Transformer language models. Many recent pre-trained models have been reported to exhibit only slight changes in the angular distance between the input and output hidden state vectors in the middle Transformer layers, despite a disproportionately large ``jump'' in the angular distance occurring in or around the final Transformer layer. To characterize this, we first introduce a quantitative metric for the jump strength around the final layer, and then demonstrate its prevalence across many open-weight models, as well as its amplification throughout pre-training. Assuming such jumps indicate an undesirable property, we propose the jump-suppressing regularizer (JREG) which penalizes this jump during pre-training, thereby encouraging more balanced capability usage across the middle layers. Empirical evaluations of three model sizes of Llama-based models, trained with the proposed JREG method, reveal improved task performance compared to the baseline without altering the model architecture.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。