arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.30202cs.CL
收藏

一种用于扩展LLMs计算和容量的双路径架构

A Dual-Path Architecture for Scaling Compute and Capacity in LLMs

Lamarr Institute(拉马尔研究所);Fraunhofer IAIS(弗劳恩霍夫研究所);University of Bonn(波恩大学)

Markus Frey, Behzad Shomali, Joachim Koehler, Mehdi Ali

AI总结:

提出一种双路径块架构,通过深度子层(参数共享重复K次)和宽度子层(单次大FFN)并行扩展计算和容量,在语言建模和下游任务上超越等FLOPs基线模型,且门控机制可解释地分配每令牌路径。

摘要:

循环变压器多次应用共享块,已成为语言模型中参数高效扩展计算的途径。然而,在固定FLOPs下,循环模型的容量严格低于基线变压器。我们提出一种新颖的双路径块,可以灵活扩展计算(应用于隐藏状态的顺序操作数量)和容量(单步可用参数)。为此,我们在单层内将两个轴暴露为并行通路:一个深度子层,使用共享参数重复应用K次;一个宽度子层,包含一次应用的大型前馈网络。独立的每令牌门控组合两个轴,并允许详细的每令牌路由分析。我们表明,在两个FLOP预算下,我们的双路径模型在语言建模和下游评估上超越了等FLOPs匹配模型,同时在匹配FLOPs下使用比基线更少的参数。学习到的门控直接可解释,并显示系统的每令牌分配:功能词和词汇内容倾向于宽度路径,而标点、符号和算术令牌倾向于深度路径。

英文摘要:

Looped transformers apply a shared block multiple times and have emerged as a parameter-efficient route to scaling compute in language models. However, at fixed FLOPs a looped model has strictly less capacity than a baseline transformer. We argue that compute, the number of sequential operations applied to a hidden state, and capacity, the parameters available at a single step, are distinct scaling axes that standard transformer layers conflate. We propose a dual-path block that exposes both axes as parallel pathways within a single layer: a deep sublayer re-applied $K$ times with shared parameters, and a wide sublayer with an enlarged feed-forward network applied once, combined by independent per-token gates. At two FLOP budgets, the best dual-path configuration surpasses both iso-FLOP single-axis controls on aggregate language modelling, commonsense, and math metrics, while using 17-33% fewer parameters than the width-scaled baseline. The learned gates are directly interpretable and show systematic per-token allocation: function words and lexical content trend wide, while punctuation, symbols, and arithmetic tokens trend deep. Our results suggest that compute and capacity can be scaled separately, with the model balancing the two token by token.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑