Rust in Everything
← Papers

On the Design of Hyper-Connections: Simplification, Stability, and Scalability

Xiangdong Zhang, Xiaohan Qin, Sunan Zou, Tuo Dai, Bizhao Shi, Zhuo Xia et al.

2026-11-13▲ 26arXiv 2611.05984v1Hugging FaceCode

AI-generated from the full paper (deepseek-flash). It may contain mistakes; check the original.

TL;DR

The paper identifies learned read/write gating without residual mixing as a minimal effective Hyper-Connections structure and adds shared memory access with scalar corrections, yielding SimpleHC with 2.4% extra training time and mHC-comparable quality at 15B and 30B MoE scales.

Problem

Hyper-Connections and mHC expand the residual pathway into multiple streams with learned read, write, and mixing operations, but the roles of these components are insufficiently understood and repeated access to the nC residual state adds training overhead. In end-to-end experiments, mHC adds 7%-27% training time over a vanilla baseline despite adding less than 1% FLOPs. The paper asks whether a simpler HC design can reduce execution cost while preserving model quality and training stability at scale.

Method

SimpleHC is built from a component study of read gates, write gates, and residual mixing. It removes residual mixing, uses identity residual transitions, and keeps learned full-state read/write gates. For execution, K=4 sublayers share a group-entry state for gate generation; base reads are batched and writes are deferred to a group boundary. Scalar corrections reconstruct preceding output contributions for the chosen gates without materializing intermediate nC-dimensional states. Specialized forward and backward kernels implement grouped reads, fused corrections, deferred write-back, and token-packed gate gradients.

Results

  • In 15B-A1B component ablations, unconstrained mixing under the mHC parameterization scores 56.2 average versus 55.0 with Sinkhorn and 55.4 with identity transitions; learned read/write gates without mixing score 55.4, and fixed gates with unconstrained mixing score 56.0. §5.2
  • At K=4 shared memory access, SimpleHC reaches 55.0 average; reusing one read/write gate pair lowers it to 53.5; removing scalar corrections raises loss from 1.660 to 1.705. §5.3
  • On 30B-A2B MoE, SimpleHC matches mHC and identityHC loss at 1.561 and averages 63.1 versus 62.9 for mHC and 62.8 for identityHC; vanilla averages 59.3 with loss 1.579. §5.4
  • With efficient kernels at C=6144, SimpleHC adds 2.4% end-to-end training time over the vanilla baseline, versus approximately 7.0% for mHC and identityHC and 27.7% for xHC. §5.5
  • SimpleHC reduces per-sublayer residual-stream memory traffic from 18C for fused mHC to 9C; among tested group sizes K=2,4,8,16, logical traffic is 11.5C, 9C, 9.25C, and 12.375C. §4.3
  • During standard 15B training, the maximum 1000-step rolling gradient-norm standard deviation after warmup is 0.032 for SimpleHC versus 0.206 for mHC and 0.248 for identityHC; under stress mHC shows gradient spikes near 1.9×10^6 while SimpleHC remains bounded. §E.2

Limitations

  • Shared memory access approximates per-sublayer conditioning by computing gates from the group-entry state X_L rather than each updated X_j; Appendix B proves equivalence to sequential execution only for the same shared-input gates and in exact arithmetic, so floating-point differences can occur.
  • In the stress test, whether the mHC backward anomaly reflects mathematical sensitivity or numerical effects in backward remains unresolved.
  • Specialized kernels require substantial engineering effort, which the paper says limits wider adoption; PyTorch versions are evaluated but have higher overhead.
  • Efficiency benchmarks use eight-layer models across hidden widths 1024 to 6144 rather than full-depth models, and K=4 is reported as lowest logical traffic only among the tested group sizes K=2,4,8,16.

Key points

  • mHC adds 7%-27% training time over a vanilla baseline despite less than 1% extra FLOPs, motivating simpler read/write and mixing interactions. §1
  • The component study finds learned read/write gating and unconstrained mixing form two effective groups: either alone is comparable to mHC, and combining them improves scores. §5.2
  • SimpleHC keeps learned full-state read/write gates but sets residual transitions to identity, so updates accumulate additively as X_{l+1}=X_l+h_l^post o_l^T. §3.1
  • Shared memory access generates layer-specific gates for K=4 sublayers from one group-entry state, batches K base reads, and writes back only at the group boundary. §3.2
  • Scalar corrections use coefficients d_jk=(h_j^pre)^T h_k^post to add preceding outputs to later inputs; Appendix B proves equivalence to sequential execution with the same shared-input gates in exact arithmetic. §B
  • Specialized DeepGEMM and Triton kernels reduce added training time from 22.5% with PyTorch to 2.4% at C=6144. §4
  • Write-gate prediction from the group-entry state reaches MAE 0.0103 for the trained predictor, versus 0.0504 for frozen teacher gates and 0.4086 for random gates. §6.2
  • SimpleHC shows smaller gradient-norm fluctuations early after warmup than mHC and identityHC and remains bounded under stress, while mHC exhibits severe gradient spikes. §6.3

Mind map

SimpleHC design study
Problem
HC components poorly understood
Repeated nC state access
7 to 27 percent mHC overhead
Architecture
Identity residual transitions
Learned read/write gates
No residual mixing
Execution
Shared memory access
Group size K=4
Scalar corrections
Deferred write-back
Infrastructure
Forward fusion
Backward reuse
Token-packed gate gradients
Results
15B design ablations
30B MoE comparable quality
2.4 percent overhead at C=6144
About 31 percent saved storage
Analysis
Gate variation across sublayers
Gate prediction from group entry
Stress-test stability