cmHC:基于几何收缩优化 Birkhoff polytope 内残差流混合的 Hyper-Connections 方法
cmHC: Balancing Stream Mixing in Hyper-Connections via Geometric Contraction
做预训练或架构研究的值得看看:它在 mHC 的双随机约束里找出了欠混合和过混合的平衡点,用几何收缩解决,不用加参数。昇腾 NPU 上还有融合算子,延迟最高降 44.8%,用国产芯片跑大规模训练的团队尤其该关注。
一篇新论文提出 cmHC(Contraction for Manifold-Constrained Hyper-Connections),针对 mHC(Manifold-constrained Hyper-Connections)中残差流混合的两难问题给出解决方案。mHC 将残差连接扩展为多流,并把流间混合矩阵约束在 Birkhoff polytope(双随机矩阵集合)内以稳定残差传播。
论文揭示了混合权衡:欠混合时矩阵停留在 polytope 顶点附近,hyper-connections 退化为近似独立的流;过混合时矩阵集中于均匀重心,流之间失去区分度。作者通过理论上界化了逐层的累积残差混合、流差异与混合系数的梯度差异,并提出向 polytope 内部做几何收缩的 cmHC 方法,带可证的流混合上界且无需新增参数化,同时在浅层施加适度收缩以支持超大规模预训练下的稳定梯度传播。
实验覆盖稠密与 MoE 架构、多种参数规模,验证了方法的有效性与可扩展性。团队还在昇腾(Ascend)NPU 上开发了融合算子,将 hyper-connection 执行延迟降低最多 44.8%。
cmHC: Balancing Stream Mixing in Hyper-Connections via Geometric Contraction
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-mixed 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%.
This report is categorized under AITOP's "Papers" desk, focusing on China's AI industry and domestic foundation model ecosystem. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include mHC, cmHC, MoE, model architecture.
Source attribution: curated from arXiv cs.LG (@Haowei He, Ziwen Zhao, Chenshuo Pan, Gang Lin, Zhihao Yang, Chao Wang, Xinzhang Liu, Kaidong Yu, Han Gao, Dongfang Li, Menglin Yang, Shuangyong Song, Yongxiang Li). Cross-source corroboration: 2 independent sources have covered this development (including pandaily), confirming industry-wide signal strength.
- pandaily11-19 06:49Source