NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

xHC: Expanded Hyper-Connections

Xiangdong Zhang, Xiaohan Qin, Sunan Zou, Tuo Dai, Xiaoming Shi, Huaijin Wu, Yebin Yang, Zhuo Xia, Shaofeng Zhang, Lin Yao, Yuliang Liu, Yu Cheng, Junchi Yan

TL;DR

While scaling Transformer width and depth is standard practice, expanding the residual stream into multiple parallel pathways has traditionally stalled due to severe compute and information bottlenecks. This paper introduces Expanded Hyper-Connections (xHC), an architecture that successfully scales the residual stream up to 16 parallel pathways by combining temporal feature augmentation with a sparse update mechanism. This approach delivers significant downstream performance gains and compute efficiency at scale with minimal FLOP overhead.

What Problem Does This Paper Address?

In standard Transformers, the residual stream acts as a single, static identity pathway carrying token representations across layers. "Hyper-Connections" (HC) alter this by splitting the residual stream into $N$ parallel streams governed by learnable mixing matrices, effectively scaling the model's persistent memory without changing its depth or width.

However, previous attempts hit a hard wall at $N=4$ streams. Scaling beyond this point brought diminishing returns and skyrocketing training costs. The authors diagnose two core bottlenecks causing this saturation:

  1. Information Supply Bottleneck: Each layer only writes back a single signal to all streams, making additional streams redundant because they lack diverse histories.
  2. Cost Bottleneck: Computing the input-dependent residual mixing matrix scales cubically ($O(N^3C)$) with the number of streams, making large-$N$ expansion prohibitively expensive.

Methods

Overview of xHC architecture compared to standard and mHC

To break through these bottlenecks, xHC introduces two key co-designed mechanisms:

  • Temporal Feature Augmentation: To fix the information bottleneck, xHC enriches the write-back signal by extracting local context from neighboring tokens using multi-scale causal depthwise 1D convolutions (applied after MLP layers). It then uses Gram-Schmidt orthogonalization to ensure these new components are distinct and stable.
  • Sparse Residual-Stream Architecture: To fix the cubic cost bottleneck, xHC uses an asymmetric read/write strategy. It performs a dense read (allowing every layer to access all $N=16$ streams) but executes a sparse write-back and mixing, updating only a subset of $k=4$ active streams. This slashes the residual mapping cost from $O(N^3C)$ to $O(k^3C)$.

Additionally, the authors introduce xHC-Flash, an optimized variant that shares routing and dense read operations across consecutive sublayers, significantly reducing memory traffic overhead during practical deployment.

Datasets

The authors evaluated xHC by pre-training Mixture-of-Experts (MoE) models ranging from 2.5B to 28B parameters. They used a diverse pre-training data mixture covering English, Chinese, code, mathematics, and reasoning corpora. Downstream evaluation spanned a comprehensive suite of standard benchmarks:

  • Language & Knowledge: MMLU, MMLU-Pro, MMLU-Redux
  • Reasoning & Math: BBH, CommonsenseQA, ARC-Challenge, GSM8K
  • Coding: HumanEval, LCBench
  • Chinese Language: CMMLU, CEval, C3

Validation loss was also tracked using the Pile test set.

Key Insights and Ideas

  • Asymmetric Sparsity is Key: Completely sparsifying the residual stream breaks cross-layer information flow. The "aha" moment here is keeping the read path dense while making the write path sparse, which preserves long-range information propagation while keeping compute costs flat.
  • Spatio-Temporal Trade-off: Instead of computing entirely new, expensive representations for each parallel stream, xHC borrows "free" information from neighboring tokens along the sequence dimension. Since autoregressive models already condition on context, these neighboring features are semantically compatible and provide the necessary diversity for the expanded streams.
  • Turning a Dead-End into a Scaling Axis: Prior methods saw flatlining returns when increasing $N$. As shown in Figure 1, xHC successfully turns the expansion rate $N$ into a viable scaling dimension, where doubling $N$ consistently drops loss for minimal extra FLOPs.
Figure 1: Expansion efficiency: loss vs. FLOPs on a 2.5B MoE model (details in Table 6).

Key Results

Scaling law comparison
  • Downstream Boost: On an 18B MoE model, xHC improved the average downstream benchmark score by 4.0 points over the previous state-of-the-art mHC baseline (48.8 vs 44.8), adding only 4.1% extra training FLOPs over a vanilla Transformer.
  • Compute Efficiency: Scaling-law experiments show that a vanilla Transformer requires $1.50\times$ more compute, and mHC requires $1.19\times$ more compute, to match the final loss achieved by xHC.
  • Memory Optimization: xHC-Flash successfully reduced per-sublayer memory traffic from $73.5C$ down to $40C$, making it highly competitive with the memory footprint of much smaller 4-stream models ($34C$) while retaining the performance edge of 16 streams.

Limitations and Future Work

  • Memory Traffic: Even with xHC-Flash, maintaining multiple parallel streams inherently increases memory traffic compared to a vanilla single-stream Transformer, requiring highly optimized custom Triton kernels to maintain wall-clock efficiency.
  • Architecture Scope: The method was primarily validated on Mixture-of-Experts (MoE) architectures; its interaction with dense architectures at massive scales remains an open question.
  • Optimizer Compatibility: While shown to be compatible with both AdamW and the newer Muon optimizer, specific adaptations (like removing Gram-Schmidt orthogonalization for Muon) are required, indicating that optimizer-specific tuning is necessary.

Summary updated

BibTeX
@inproceedings{zhang2026xhc,
  author = {Xiangdong Zhang and Xiaohan Qin and Sunan Zou and Tuo Dai and Xiaoming Shi and Huaijin Wu and Yebin Yang and Zhuo Xia and Shaofeng Zhang and Lin Yao and Yuliang Liu and Yu Cheng and Junchi Yan},
  title = {{xHC: Expanded Hyper-Connections}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=HdK3mMYusI},
}
Figure