xLSTM缩放定律:具有线性时间复杂度的竞争力表现
xLSTM Scaling Laws: Competitive Performance with Linear Time-Complexity
AI总结:
xLSTM在保持竞争力的同时,展现出线性时间复杂度和更优的缩放性能,优于Transformer架构。
摘要:
缩放定律在大型语言模型(LLMs)的成功中起着核心作用,使其能够在训练前预测模型性能相对于计算预算的关系。尽管Transformer架构占主导地位,但最近的替代方案如xLSTM在上下文长度方面具有线性复杂度,同时在十亿参数范围内仍具竞争力。我们对Transformer和xLSTM的缩放行为进行了比较研究,从以下几个方面提供见解,以指导未来模型的设计和部署。首先,我们研究xLSTM在计算最优和过训练范围内,使用IsoFLOP和参数拟合方法,在广泛的模型大小(80M-7B)和训练token数量(2B-2T)上分析其缩放行为。其次,我们考察最优模型大小对上下文长度的依赖性,这是之前工作中被忽视的关键方面。最后,我们分析推理时间的缩放特性。我们的发现表明,在典型的LLM训练和推理场景中,xLSTM相比Transformer具有更优的缩放性能。值得注意的是,xLSTM模型在相同计算预算下始终优于Transformer模型,提供更低的交叉熵损失。
英文摘要:
Scaling laws play a central role in the success of Large Language Models (LLMs), enabling the prediction of model performance relative to compute budgets prior to training. While Transformers have been the dominant architecture, recent alternatives such as xLSTM offer linear complexity with respect to context length while remaining competitive in the billion-parameter regime. We conduct a comparative investigation on the scaling behavior of Transformers and xLSTM along the following lines, providing insights to guide future model design and deployment. First, we study the scaling behavior for xLSTM in compute-optimal and over-training regimes using both IsoFLOP and parametric fit approaches on a wide range of model sizes (80M-7B) and number of training tokens (2B-2T). Second, we examine the dependence of optimal model sizes on context length, a pivotal aspect that was largely ignored in previous work. Finally, we analyze inference-time scaling characteristics. Our findings reveal that in typical LLM training and inference scenarios, xLSTM scales favorably compared to Transformers. Notably, xLSTM models consistently Pareto-dominate Transformer models, delivering lower cross-entropy loss for the same compute budget.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。