cmHC: Balancing Stream Mixing in Hyper-Connections via Geometric Contraction

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

arXiv:2611.27193 · 2026-11-23 공개 · arXiv · PDF

model-pretraining hyper-connections residual-mixing manifold-constrained npu-optimization stream-mixing contraction-method birkhoff-polytope

Abstract

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%.

한국어 요약

한 줄 요약

cmHC는 Birkhoff 다면체 내 잔차 스트림의 균형 잡힌 혼합을 위해 기하학적 수축을 도입한 새로운 하이퍼-커넥션 방법이다.

핵심 기여도

핵심 아이디어

기존의 하이퍼-커넥션(mHC)은 잔차 행렬을 Birkhoff 다면체(이중 확률 행렬 집합)에 제한하여 신호 전파 안정성을 확보하지만, 잔차 행렬이 다면체 꼭짓점(permutation matrix)에 가까워지면 under-mixing, 즉 스트림 간 정보 교환 부족이 발생한다. 반대로, 다면체 중심부에 집중되면 over-mixing으로 인해 스트림 간 차이가 사라진다. 이 trade-off를 해결하기 위해, cmHC는 Birkhoff 다면체를 기하학적으로 수축(contraction)하여 잔차 행렬이 다면체 내부를 탐색하도록 유도한다. 이는 수축 강도(λ)와 적용 레이어 수(K)를 조절하여, 양쪽 극단을 피하면서 최적의 혼합을 달성한다. 수축은 새로운 파라미터를 도입하지 않으며, 수학적으로 증명된 stream mixing bound를 제공한다.

기술적 접근법

주요 결과

의의 및 한계

cmHC는 기존 하이퍼-커넥션의 under-mixing과 over-mixing 문제를 수학적으로 분석하고, 기하학적 수축을 통해 균형 잡힌 혼합을 달성함으로써, 대규모 모델의 안정적인 학습을 가능하게 한다. 특히, λ와 K를 조절하는 간단한 전략이 GPT-2에서 6B~300B MoE 모델까지 확장 가능함을 실험적으로 입증하였다. 또한, NPU 최적화를 통해 산업적 활용성을 높였다. 그러나 수축 강도와 적용 레이어 수는 모델 크기와 데이터셋에 따라 조정되어야 하며, 이에 대한 일반화된 가이드라인은 명시되지 않았다.

실용적 활용

cmHC는 GPT-2, MoE(혼합 전문가) 모델과 같은 대규모 언어 모델의 사전 학습에 적용 가능하다. 특히, Ascend NPU 최적화를 통해 클라우드 인프라에서의 효율적인 실행이 가능하며, 잔차 스트림의 안정적인 혼합이 필요한 병렬 처리 시스템에도 활용될 수 있다.