arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2606.23670cs.LGcs.AIcs.CL
收藏

锥形语言模型

Tapered Language Models

Mila;Cornell University(康奈尔大学);Université de Montréal(蒙特利尔大学);CIFAR AI Chair(CIFAR人工智能教席)

Reza Bayat, Ali Behrouz, Aaron Courville

AI总结:

针对现有语言模型各层参数均匀分配的问题,提出锥形语言模型(TLM),在固定预算下单调递减层容量,实验表明MLP宽度按余弦调度锥形化可提升困惑度和下游性能。

摘要:

现代语言模型,包括Transformer、循环和基于记忆的变体,共享一个共同框架:一组相同的层,其中参数在深度上均匀分配。这是从原始Transformer继承的默认设置,此后基本保持不变,然而越来越多的证据表明,各层对最终输出的贡献并不均匀,后面的层更多地是细化残差流而非转换它。我们询问参数容量是否应反映这种不对称性。我们的受控实验表明,在固定预算下,将更多容量分配给早期层、更少给后期层,比均匀宽度的基线提高了困惑度,而反向分配则有害。基于这一结果,我们引入了锥形语言模型(TLM),这是一种架构原则,其中参数承载组件在固定总预算下沿深度单调锥形化。MLP是这种实例化的自然场所:它们在现代LM系列中主导参数数量,并将宽度暴露为单一、干净的变异轴。在三种模型规模和四种架构(Transformer、门控注意力、Hope-attention和Titans)上,通过平滑余弦调度锥形化MLP宽度,在无额外参数或计算成本的情况下,一致地提高了困惑度和下游基准性能。这些发现确立了深度感知容量分配作为语言模型设计中一种简单、架构无关的轴,是一个隐藏在显眼处的免费杠杆。

英文摘要:

Modern language models, including transformer, recurrent, and memory-based variants, share a common chassis: a stack of identical layers in which parameters are allocated uniformly across depth. This is a default inherited from the original transformer and largely unchanged since, yet a growing body of evidence suggests that layers contribute non-uniformly to the final output, with later layers refining the residual stream rather than transforming it. We ask whether parameter capacity should reflect this asymmetry. Our controlled experiment shows that, under a fixed budget, allocating more capacity to earlier layers and less to later layers improves perplexity over a uniform-width baseline, while the reverse allocation hurts. Building on this result, we introduce Tapered Language Models (TLMs), an architectural principle in which a parameter-bearing component is monotonically tapered across depth under a fixed total budget. MLPs are the natural site for this instantiation: they dominate parameter count across all modern LM families and expose width as a single, clean axis of variation. Across three model scales and four architectures (Transformer, Gated Attention, Hope-attention, and Titans), tapering MLP width via a smooth cosine schedule consistently improves perplexity and downstream benchmark performance over uniform baselines, at no additional parameter or compute cost. These findings establish depth-aware capacity allocation as a simple, architecture-agnostic axis of language model design, a free lever hidden in plain sight.

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

↑