mHC: Manifold-Constrained Hyper-Connections

Zhenda Xie, Yixuan Wei, Huanqi Cao, Chenggang Zhao, Chengqi Deng, Jiashi Li, Damai Dai, Huazuo Gao, Mingyu Xu, Kuai Yu, Liang Zhao, Shangyan Zhou, Zhean Xu, Zhengyan Zhang, Wangding Zeng, Shengding Hu, Yuqing Wang, Jingyang Yuan, Lean Wang, Wenfeng Liang

Introduction

Since the advent of ResNets, the residual connection paradigm ($x_{l+1} = x_l + \mathcal{F}(x_l)$) has been the bedrock of deep learning architecture. Its success is largely due to the identity mapping property, which allows signals to flow through hundreds of layers without vanishing or exploding.

Recently, a new architectural paradigm known as Hyper-Connections (HC) proposed "widening" this residual stream. Instead of relying on a single vector, HC utilizes multiple parallel streams and learnable matrices to mix information between them. While this significantly increases a model's representational power, it fundamentally breaks the identity mapping property. Without constraints, these mixing matrices can amplify signals exponentially, leading to exploding gradients and training collapse in large-scale models. Furthermore, managing multiple streams creates a massive memory I/O bottleneck, making standard HC impractical for real-world scaling.

To resolve these critical flaws, researchers have introduced Manifold-Constrained Hyper-Connections (mHC), a framework that mathematically enforces stability while optimizing system-level efficiency to enable stable, large-scale training.

The mHC Framework

mHC tackles the bottlenecks of Hyper-Connections through two primary mechanisms: mathematical manifold projection and rigorous infrastructure optimization.

1. Manifold Projection

To restore training stability, mHC constrains the residual mixing matrices ($H_{res}$) to the Birkhoff polytope—the set of all doubly stochastic matrices where both rows and columns sum to 1. The authors achieve this using the Sinkhorn-Knopp algorithm, an iterative normalization process.

Mathematically, this projection ensures the mapping is "non-expansive" (meaning its spectral norm is $\le 1$), which prevents signal explosion. It allows the network to perform a "convex combination" of features, enabling rich information exchange across streams while conserving the total signal energy.

2. Infrastructure Optimization

To mitigate the $n$-fold increase in residual stream data, the team implemented aggressive system-level optimizations:

  • Kernel Fusion: Using TileLang, multiple operations are combined into single GPU kernels, reducing memory read/write overhead by up to 4x.
  • Selective Recomputing: Instead of storing all intermediate "wide" activations for the backward pass (which would exhaust GPU memory), mHC discards them and recomputes them on-the-fly.
  • DualPipe Integration: The communication schedule in pipeline parallelism is optimized to overlap the extra data transfer required by the multi-stream design.

Experimental Setup

The authors evaluated mHC through large-scale language model pre-training using architectures inspired by DeepSeek-V3. They tested models at three distinct scales: 3B, 9B, and 27B parameters, utilizing a 1-trillion token corpus to study token scaling behavior.

Evaluation was performed across eight diverse downstream benchmarks spanning reasoning and logic (BBH, GSM8K, MATH), knowledge and language (MMLU, HellaSwag, PIQA, TriviaQA), and reading comprehension (DROP).

Key Findings and Insights

  • Restored Stability: In 27B parameter experiments, standard HC suffered from massive gradient spikes and loss surges, with signal amplification factors nearing 3,000. In contrast, mHC bounded this gain near 1.0, remaining as stable as the standard Transformer baseline.
  • Performance Gains: mHC consistently outperformed baselines. On the 27B model, it demonstrated a 2.1% improvement on BBH and a 2.3% improvement on DROP over unconstrained HC.
  • Robust Scalability: The performance advantage of mHC over the baseline remained consistent or widened as the model size increased from 3B to 27B, proving its viability for foundational models.
  • Efficiency: The paper proves that widening the residual stream does not have to be prohibitively slow. With aggressive kernel fusion, the 4-stream version of mHC adds only a marginal 6.7% overhead to total training time.
  • Stability as a Geometric Property: A core theoretical insight of mHC is that mixing matrices do not need to be strict Identity matrices ($I$) to achieve stability. They only need to reside on a manifold that preserves the global mean of features. Because the product of two doubly stochastic matrices is also doubly stochastic, this stability holds recursively across any number of layers.

Limitations and Future Directions

While highly effective, mHC relies on the Sinkhorn-Knopp algorithm, which is an iterative approximation. Even with 20 iterations, backward gradients can deviate slightly from 1.0, though they remain safely bounded. Additionally, the introduction of expansion rates ($n$) and gating factors adds new hyperparameters that require tuning for different architectures.

Future research may explore manifolds beyond the Birkhoff polytope to find even better trade-offs between learning plasticity and stability. Ultimately, mHC represents a promising shift back toward macro-architecture design—rethinking the high-level topological wiring of networks rather than merely tweaking the internal logic of individual blocks.

Summary updated

BibTeX
@inproceedings{xie2026mhc,
  author = {Zhenda Xie and Yixuan Wei and Huanqi Cao and Chenggang Zhao and Chengqi Deng and Jiashi Li and Damai Dai and Huazuo Gao and Mingyu Xu and Kuai Yu and Liang Zhao and Shangyan Zhou and Zhean Xu and Zhengyan Zhang and Wangding Zeng and Shengding Hu and Yuqing Wang and Jingyang Yuan and Lean Wang and Wenfeng Liang},
  title = {{mHC: Manifold-Constrained Hyper-Connections}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=mDhyxu8WRb},
}
Figure