arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.19147cs.LGcs.AI
收藏

Nexusformer:非线性注意力扩展用于稳定且可继承的Transformer扩展

Nexusformer: Nonlinear Attention Expansion for Stable and Inheritable Transformer Scaling

The School of Computer Science, China University of Geosciences, 388 Lumo Road, Wuhan, 430074, Hubei, China(中国地质大学(北京)计算机科学学院)

Weijie Zhao, Mingquan Liu, Bolun Wang, Simo Wu, Nuobei Xie, Rui-Jie Zhu, Peng Zhou

AI总结:

Nexusformer通过非线性映射解决传统Transformer扩展中的线性瓶颈,实现无损结构扩展,实验表明其在语言模型和推理任务中以更低的计算成本达到与Tokenformer相当的性能。

摘要:

Transformer扩展通常需要从头开始训练更大模型,因为标准架构难以扩展而不丢弃已学习的表示。我们发现注意力机制线性投影的主要瓶颈,严格限制特征提取到固定维度子空间,限制了表达能力和增量容量。为此,我们引入Nexusformer,用Nexus-Rank层取代线性Q/K/V投影,该层是一种三阶段非线性映射,由双重激活驱动,逐步在更高维度空间中进行。这种设计克服了线性限制,实现了无损结构扩展:通过零初始化块沿两个轴注入新容量,保留预训练知识。在语言模型和推理基准测试中,Nexusformer在渐进扩展(240M到440M)中使用最多41.5%的训练计算量达到与Tokenformer相当的困惑度。此外,我们对扩展动态的分析表明,零初始化诱导了稳定的收敛轨迹,使我们能够推导出一个几何扩展定律,准确预测了扩展尺度上的性能。

英文摘要:

Scaling Transformers typically necessitates training larger models from scratch, as standard architectures struggle to expand without discarding learned representations. We identify the primary bottleneck in the attention mechanism's linear projections, which strictly confine feature extraction to fixed-dimensional subspaces, limiting both expressivity and incremental capacity. To address this, we introduce Nexusformer, which replaces linear $Q/K/V$ projections with a Nexus-Rank layer, a three-stage nonlinear mapping driven by dual activations in progressively higher dimensional spaces. This design overcomes the linearity constraint and enables lossless structured growth: new capacity can be injected along two axes via zero-initialized blocks that preserve pretrained knowledge. Experiments on language modeling and reasoning benchmarks demonstrate that Nexusformer matches Tokenformer's perplexity using up to 41.5\% less training compute during progressive scaling (240M to 440M). Furthermore, our analysis of growth dynamics reveals that zero initialization induces a stable convergence trajectory, allowing us to derive a geometric scaling law that accurately predicts performance across expansion scales.

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

↑