流形约束超连接(mHC)将残差连接扩展到多个流,并通过将流混合残差矩阵约束为Birkhoff多面体(即双随机矩阵的集合),从而稳定残差传播。在本研究中,我们探讨了如何在Birkhoff多面体内有效地混合残差流。我们发现了一个混合权衡:当欠混合的残差矩阵靠近Birkhoff多面体的顶点时,超连接将退化为一组近乎独立的流;当过混合的残差矩阵集中在多面体的均匀质心周围时,各流之间的可区分性将降低。我们通过限制跨层的累积残差混合、流差异以及混合系数的梯度差异,从理论上验证了我们的发现。受这些发现的启发,我们提出了用于流形约束超连接的收缩方法(cmHC),这是一种精确的双随机方法,它通过几何方式将Birkhoff多面体向内部收缩。这种收缩通过强制残差矩阵深入探索多面体内部来缓解欠混合问题,具有可证明的流混合界限,且无需引入新的参数化。此外,我们在浅层应用适度的收缩以防止过混合,从而在超大规模模型预训练中实现稳定的梯度传播。在密集模型和专家混合模型中,针对不同参数规模的广泛实验证明了cmHC的有效性和可扩展性。我们还为cmHC在Ascend NPU上开发了融合算子,将超连接执行延迟降低了高达44.8%。
Manifold-constrained Hyper-Connections (mHC) extends residual connections to multiple streams and stabilizes residual propagation by constraining stream-mixing residual matrices to the Birkhoff polytope, the set of doubly stochastic matrices. In this work, we investigate how to effectively mix residual streams within the Birkhoff polytope . We reveal a mixing trade-off : when under-mixed residual matrices stay close to the vertices of the Birkhoff polytope, hyper-connections will degenerate into a set of nearly independent streams; when over-mixe d residual matrices are concentrated around the uniform barycenter of the polytope, streams will become less distinguishable from each other. We theoretically validate our findings by bounding the cumulative residual mixing, stream difference and gradient difference of mixing coefficients across layers. Motivated by these findings, we propose Contraction for Manifold-Constrained Hyper-Connections (cmHC), an exact doubly stochastic method which geometrically contracts the Birkhoff polytope toward its interior. This contraction mitigates under-mixing by forcing the residual matrices to explore deeper into the polytope, with a provable stream mixing bound and no new parameterization. Moreover, we apply a moderate contraction at the shallow layers to prevent over-mixing, enabling stable gradient propagation on extremely large-scale model pretraining. Extensive experiments across dense and mixture-of-experts models at various parameter scales demonstrate the effectiveness and scalability of cmHC. We also develop fused operators for cmHC on Ascend NPUs, reducing hyper-connection execution latency by up to 44.8%.
首次收录 · 2026-11-24 · 10.95 分