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

混合架构中层序的影响

The Effect of Layer Ordering in Hybrid Architectures

John Hopkins University(约翰霍普金斯大学);University of Wisconsin-Madison(威斯康星大学麦迪逊分校)

John Cooper, Mingchen Ma, Jiaqi Mo, Shengqi Qiu, Nathaniel Bastian, Ilias Diakonikolas, Frederic Sala

AI总结:

该研究分析混合架构中层序的影响,证明主流混合架构具任务特异性,理论与实验显示层序影响性能,为前沿混合模型架构设计提供见解。

摘要:

混合注意力正迅速成为前沿模型的主流架构选择。尽管这类架构取得了成功,但它们引入了额外的选择(包括层的类型和位置),使模型设计变得复杂。这种组合规模庞大的设计空间已通过经验研究,但鉴于训练和评估不同配置模型的成本极高,需要对层选择和层序的影响形成有原则性的理解。我们提供了首个此类分析,表明主流混合架构具有高度的任务特异性。具体而言,对于任意层配置,我们证明存在一个任务,在固定资源约束下,我们可以构建一个具有该配置的模型,其性能可证优于任何其他不同配置的模型。经验上,我们观察到,对于标准训练,学习到的混合架构的层序之间的差异与我们的理论发现一致。例如,在相同的内存预算下,我们的理论为分段检索任务预测的最优架构始终能达到100%的准确率,而次优架构的准确率则稳定在0.5以下。这些结果可推广到更深的模型,其中“包含”某任务的主流架构表明该模型是否能达到高性能。此外,我们研究了混合模型学习到的机制,观察到在所有架构中,Transformer层对关联回忆任务的性能贡献最大。本研究为与前沿规模混合模型的训练和扩展相关的任务依赖型混合架构设计提供了见解。

英文摘要:

Hybrid attention is rapidly becoming the dominant architectural choice for frontier models. Despite their successes, such architectures complicate model design by introducing additional choices, including the types and locations of layers. This combinatorially large design space has been studied empirically, but given the vast expense of training and evaluating models with different configurations, a principled understanding of the effects of layer selection and ordering is needed. We provide the first such analysis, showing that the dominant hybrid architecture is highly task-specific. Concretely, for any layer configuration, we prove that there exists a task where we can construct a model with this configuration that provably outperforms any other model of any different configuration under fixed resource constraints. Empirically, we observe that for standard training, learned hybrid architectures exhibit separations between layer orderings that match our theoretical findings. For instance, under the same memory budget, the optimal architecture predicted by our theory for a segmented retrieval task consistently achieves perfect accuracy, whereas the next strongest plateaus below 0.5. These results extend to deeper models, where ``containing'' the dominant architecture for a task indicates whether the model attains high performance. In addition, we investigate the mechanisms learned by hybrids, observing that Transformer layers contribute the largest share of performance on associative recall across architectures. This work establishes insights into task-dependent hybrid architecture design relevant to the training and scaling of frontier-scale hybrids.

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

↑