mHC: Manifold-Constrained Hyper-Connections
Zhenda Xie, Yixuan Wei, Huanqi Cao, Chenggang Zhao, Chengqi Deng, Jiashi Li, Damai Dai, Huazuo Gao, Jiang Chang, Kuai Yu, Liang Zhao, Shangyan Zhou, Zhean Xu, Zhengyan Zhang, Wangding Zeng, Shengding Hu, Yuqing Wang, Jingyang Yuan, Lean Wang, Wenfeng Liang
TL;DR
HC expands residual connectivity but breaks the identity mapping, causing instability and memory overhead at scale. The paper introduces Manifold-Constrained Hyper-Connections (mHC) by projecting HC residuals onto a manifold of doubly stochastic matrices via Sinkhorn-Knopp, which preserves stable signal propagation and enables scalable training. It combines this with infrastructure optimizations—kernel fusion, selective recomputing, and DualPipe-based communication overlap—to maintain efficiency with minimal overhead. Experiments on large-scale language-model pretraining show that mHC improves stability and downstream performance relative to HC and the baseline, demonstrating practical benefits for macro-architecture design.
Abstract
Recently, studies exemplified by Hyper-Connections (HC) have extended the ubiquitous residual connection paradigm established over the past decade by expanding the residual stream width and diversifying connectivity patterns. While yielding substantial performance gains, this diversification fundamentally compromises the identity mapping property intrinsic to the residual connection, which causes severe training instability and restricted scalability, and additionally incurs notable memory access overhead. To address these challenges, we propose Manifold-Constrained Hyper-Connections (mHC), a general framework that projects the residual connection space of HC onto a specific manifold to restore the identity mapping property, while incorporating rigorous infrastructure optimization to ensure efficiency. Empirical experiments demonstrate that mHC is effective for training at scale, offering tangible performance improvements and superior scalability. We anticipate that mHC, as a flexible and practical extension of HC, will contribute to a deeper understanding of topological architecture design and suggest promising directions for the evolution of foundational models.
