Parcae:稳定循环语言模型的扩展定律
Parcae: Scaling Laws For Stable Looped Language Models
AI总结:
本文提出Parcae,一种稳定的循环架构,通过限制注入参数的谱范数来解决现有循环架构的不稳定性问题,实验表明其在验证 perplexity 和测试性能上均优于现有模型。
摘要:
传统固定深度架构通过增加训练FLOPs来提升质量,通常通过增加参数化,但导致更高的内存足迹或数据消耗。循环架构通过将激活通过层块循环来增加FLOPs。尽管有前景,现有训练循环架构的配方可能不稳定,导致残差爆炸和损失尖峰。我们通过将循环重述为残差流上的非线性时间变分系统,发现现有循环架构的不稳定性源于其注入参数的谱范数过大。为解决这些问题,我们提出Parcae,一种新型稳定的循环架构,通过离散化负对角参数化来限制注入参数的谱范数。结果表明,Parcae在验证perplexity上比现有大规模循环模型低6.3%。利用我们的稳定循环架构,我们研究了循环作为提升质量的介质,通过增加训练和测试时的FLOPs。对于训练,我们推导出可预测的功率定律以在固定参数数量下扩展FLOPs。我们的初步扩展定律表明,在固定FLOP预算下,循环和数据应同步增加。在测试时,我们发现Parcae可以利用循环来扩展计算,遵循可预测的饱和指数衰减。当扩展到13亿参数时,Parcae在CORE和Core-Extended质量上分别比强Transformer基线提高2.99和1.18点,在固定参数和数据预算下,达到相对于Transformer两倍大小的相对质量最高87.5%。
英文摘要:
Traditional fixed-depth architectures scale quality by increasing training FLOPs, typically through increased parameterization, at the expense of a higher memory footprint, or data. A potential alternative is looped architectures, which instead increase FLOPs by sending activations through a block of layers in a loop. While promising, existing recipes for training looped architectures can be unstable, suffering from residual explosion and loss spikes. We address these challenges by recasting looping as a nonlinear time-variant dynamical system over the residual stream. Via a linear approximation to this system, we find that instability occurs in existing looped architectures as a result of large spectral norms in their injection parameters. To address these instability issues, we propose Parcae, a novel stable, looped architecture that constrains the spectral norm of the injection parameters via discretization of a negative diagonal parameterization. As a result, Parcae achieves up to 6.3% lower validation perplexity over prior large-scale looped models. Using our stable looped architecture, we investigate the scaling properties of looping as a medium to improve quality by increasing FLOPs in training and test-time. For training, we derive predictable power laws to scale FLOPs while keeping parameter count fixed. Our initial scaling laws suggest that looping and data should be increased in tandem, given a fixed FLOP budget. At test-time, we find that Parcae can use looping to scale compute, following a predictable, saturating exponential decay. When scaled up to 1.3B parameters, we find that Parcae improves CORE and Core-Extended quality by 2.99 and 1.18 points when compared to strong Transformer baselines under a fixed parameter and data budget, achieving a relative quality of up to 87.5% a Transformer twice the size.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。