xHC: Expanded Hyper-Connections
arXiv · HuggingFace · ▲26
Abstract (verbatim)
Hyper-Connections (HC) expand the residual stream of Transformers into N parallel streams, providing a form of memory scaling beyond model width and depth. Manifold-Constrained HC (mHC) stabilizes this formulation at scale. The large gains from N{=}1 to N{=}4 suggest residual-stream expansion as a promising scaling axis. However, existing HC-family methods typically stop at N{=}4. Our experiments reveal why: scaling mHC beyond this point yields diminishing performance gains and rapidly increasing training cost. We attribute this limitation to two bottlenecks: insufficient write-back information for an expanding number of streams and residual-mixing generation whose cost scales cubically with N. To address both bottlenecks, we propose xHC (Expanded Hyper-Connections), the first HC-family method to achieve meaningful expansion beyond N{=}4. xHC combines temporal feature augmentation for richer write-back with a sparse residual-stream architecture that updates only k=4 of the N=16 streams while retaining dense access to the full residual state. Across 18B and 28B MoE models, xHC delivers strong and consistent downstream improvements. On an 18B MoE model, xHC improves the average downstream score by 4.0 points over mHC, while adding only modest training FLOPs over the vanilla baseline. Scaling-law experiments show that the vanilla and mHC require 1.50times and 1.19times the compute of xHC, respectively, to reach the same loss. Practical large-N training also requires controlling memory traffic from the expanded residual state. We therefore introduce xHC-Flash, which reduces the per-sublayer memory traffic from 73.5C to 40C, comparable to the 34C required by mHC at N{=}4, while retaining the gains of full xHC. Together, xHC and xHC-Flash make large-N residual-stream expansion effective and practical for LLM pre-training.
Background
Large language models (LLMs) have long relied on a single residual stream to pass information, a design that limits their ability to flexibly control cross-layer information. As models scale, simply increasing width, depth, or data volume no longer efficiently improves performance, creating a need for new scaling dimensions. Hyper-Connections (HC) technology attempts to add "memory capacity" to models through parallel residual streams and learnable mixing matrices, but existing methods hit bottlenecks when scaling beyond 4 parallel streams—performance gains diminish while computational costs surge.
Specifically, previous approaches face two key flaws: first, each new residual stream needs to store different layer output histories, but each layer can only inject a single write-back signal, leading to insufficient information diversity; second, computational costs grow cubically with the number of streams because they need to predict mixing coefficients from high-dimensional states. This makes scaling residual streams "expensive and inefficient."
The proposed xHC (Expanded Hyper-Connections) solves these problems with a two-pronged approach: it introduces temporal feature augmentation to provide richer context information for each residual stream while maintaining computational efficiency, and adopts a sparse residual stream architecture that only activates a few streams for updates, significantly reducing computational overhead. This design addresses both information diversity and computational cost issues, making residual stream expansion to 16 or more streams feasible.
Compared to previous work, xHC's key innovations include: 1) achieving effective expansion beyond 4 parallel streams for the first time; 2) decoupling but synergistically combining information enhancement with computational optimization; 3) not only improving performance but also significantly enhancing the cost-effectiveness of scaling. Experiments show that on an 18B-parameter MoE model, xHC improves downstream task scores by 4 points over the existing method mHC while adding only minimal training costs. This breakthrough makes residual stream expansion a truly effective scaling dimension for LLM training.






