betaFeedback

WorksComputer Science

GHC:Expanding Residual Interfaces in Hyper-Connections

Abstract

Hyper-Connections expand residual capacity across parallel streams, yet restrict every branch to narrow read and write interfaces: each branch still reads a single stream mixture and writes scaled copies of one output vector to all streams. To lift this bottleneck, we propose Grouped Hyper-Connections (GHC). By partitioning each branch into parallel groups along attention heads or FFN channels, GHC supplies each group with a distinct stream mixture and aggregates their separate outputs into each stream with learned weights. Extensive experiments across dense and Mixture-of-Experts (MoE) models show that GHC consistently improves upon Identity Hyper-Connections (IHC) with negligible parameter and memory-access overhead, increasing training efficiency by 35% over Pre-Norm and 10% over IHC. Moreover, expanding residual interfaces overcomes the diminishing returns of adding streams, allowing wider residual states to yield further gains.

Introduction

Residual connections (He et al., 2016), formulated as xℓ+1=xℓ+Fℓ(xℓ)x_{\ell+1} = x_\ell+ F_\ell(x_\ell), form the backbone of modern large language models. This formulation provides a direct identity path for propagating residual outputs to deeper layers. However, it accumulates all branch outputs with unit weights into a single fixed-width hidden state. As depth increases, this uniform accumulation can dilute the relative contribution of later branches and make useful information from earlier layers increasingly difficult to retrieve selectively [39] (Li et al. 2026). From an information-bottleneck perspective, the outputs of ℓ\ell preceding residual branches, each of width cc, are compressed into a single cc-dimensional hidden state xℓx_\ell [16]. Recent

work alleviates this bottleneck by expanding residual capacity and replacing uniform accumulation with learned mixing. Hyper-Connections (HC) [55] expands the residual state into multiple streams and allows branches to dynamically read different mixtures of them, while Attention Residuals [39] uses an attention mechanism to selectively aggregate representations across depth.

Despite their different aggregation strategies, HC and Attention Residuals both exhibit diminishing returns from further expansion. Scaling HC beyond four streams [55, 47, 54] or moving from Block to Full Attention Residuals [39] substantially increases memory traffic for only modest performance gains. We trace this limitation to a branch’s residual interfaces, the pathways through which it reads from and writes to the residual state. As illustrated by Identity Hyper-Connections (IHC) in Figure 1 (middle), a four-stream architecture still routes every branch through a 4→14 \to1 read bottleneck and a 1→41 \to4 write bottleneck: four streams collapse into a single cc-dimensional input uu shared across the entire branch, and a single cc-dimensional output vv is scaled back to all four streams. Because both interfaces remain cc-dimensional regardless of the stream count, widening the residual state alone cannot widen a branch’s access to it. This raises a natural question:

Figure 1. Residual branch reads and writes in Pre-Norm, IHC, and GHC. In IHC, all computation groups read the same cc-dimensional mixture of residual streams, and their outputs are summed before being written back. In GHC, each group reads its own mixture, and each stream combines the group outputs with its own weights. The top row shows each stream’s update from the residual branch.

Do constrained read and write interfaces limit further performance gains from hyper-connections?

To thoroughly investigate this question, we introduce Grouped Hyper-Connections (GHC), which partitions each residual branch into rr parallel computation groups (Figure 1, right). Each group reads a distinct cc-dimensional linear combination of the residual streams, processes it using a fraction of the original intermediate width, and produces a cc-dimensional output. Each residual stream then linearly combines these group outputs using its own learned weights. By processing multiple input mixtures and generating distinct outputs in parallel, GHC expands both the read and write interfaces from width cc to rcrc. Crucially, by exploiting the linearity of the branch’s input and output projections, GHC applies seamlessly to Attention, dense FFN, and Mixture-of-Experts (MoE) layers, preserving total intermediate width, nonlinear computation, and branch projection FLOPs with negligible gating overhead.

Extensive experiments answer our question in the affirmative. Across 430M dense models, a compute-matched scaling ladder, and MoE models up to 13B parameters, GHC consistently outperforms Pre-Norm and IHC, improving net training efficiency by 35% over Pre-Norm and 10% over IHC while introducing no additional forward memory traffic under proper kernel fusion. Moreover, whereas IHC stagnates when scaled from four to eight streams, GHC unlocks substantial further loss reductions from wider residual states, confirming that expanded residual interfaces are key to utilizing multi-stream capacity.

Related Work

Depth-wise residual aggregation. Beyond uniform residual accumulation, Highway Networks [37] introduce learned gating across depth, and DenseNet [16] concatenates all preceding feature maps within a block. In Transformers, DLCL [44] and DenseFormer [28] generalize scalar layer mixing [30] to learn static depth-wise weights after each sublayer, while Attention Residuals [39] computes token-dependent attention over branch outputs or block summaries. Multi-Head Attention Residuals [25] assigns independent depth-attention distributions to different channel subspaces. MUDDFormer [45] constructs separate historical mixtures for the query, key, value, and residual paths, and M3Former [11] further specializes these mixtures across channel groups. Multi-Stream Attention Residuals [31] retrieves from multiple temporal views of past layers before merging them into a single sublayer input. Instead of growing a depth-wise history cache,

GHC maintains a fixed number of residual streams while expanding each branch’s read and write interfaces.

Multi-stream residual architectures. Maintaining parallel representation streams with learned cross-stream linear mixing echoes early multi-stream vision backbones [27]. In language models, Hyper-Connections (HC) [55] widens the residual state into parallel streams, yet each branch still reads a single stream mixture and writes scaled copies of one output vector across streams. Subsequent variants refine stream propagation and feature slicing: mHC [47] constrains cross-stream transitions to be doubly stochastic, whereas IHC [40] and Gated Residual [34] adopt identity stream shortcuts, with the latter introducing channel-wise read gates. SimpleHC [53] retains learned read/write gates with identity stream transitions and reduces repeated state access through batched reads and deferred writes. SiameseNorm (Li et al., 2026) routes each branch output into dual streams with coupled pre- and post-normalization. Along the channel dimension, Frac-Connections [56] mixes slices of a fixed-width state, StepsNet [10] progressively appends new channel groups across stages, and Virtual Width Networks (Li et al., 2025a) assemble slices of a wider state into a single backbone-width input and write back output slices. On the write path, xHC [54] augments FFN outputs with convolutions. Unlike these designs, which keep the residual branch monolithic, GHC partitions the branch itself to widen both read and write interfaces.

Grouped branch computation. Partitioning a transformation into parallel groups has been widely explored for representational cardinality and distributed efficiency. ResNeXt [46] sums parallel transformations of a shared input, and CondenseNet Huang et al. [17] learns group-wise input channel pruning across convolutional stages. In Transformers, multi-head attention Vaswani et al. [43] and tensor parallelism in Megatron-LM Shoeybi et al. [36] similarly partition attention heads and FFN intermediate channels, summing partial outputs computed from a shared input, while fine-grained MoE architectures [6, 22] route tokens across partitioned FFN experts. Residual Matrix Transformers Mak & Flanigan [26] equip each attention head with a dedicated read and outer-product write over a matrix state while concatenating reads in the FFN. In contrast, GHC supplies each head, FFN channel group, or routed expert with dedicated stream read and write weights while preserving total intermediate width.

Concurrent work. While preparing this manuscript, we became aware of concurrent work studying grouped updates for tensor parallelism in dense Transformers Hu et al. (2026). Beyond this shared perspective, GHC introduces signed, calibrated TanhSiLU gating that unlocks group scaling, extends grouped interfaces to sparse MoE models up to 13B parameters, and demonstrates consistent training efficiency gains across scaling ladders and stream counts. We further show that GHC incurs no extra forward memory traffic in principle under operator fusion, and validate its practical inference efficiency in Appendix § 16.

Preliminaries

Residual Architectures

We index attention and FFN branches sequentially by ℓ\ell and denote the hidden dimension by cc. Let FℓF_\ell denote the ℓ\ell-th residual branch, including its input normalization. For notational simplicity, we write per-token states as row vectors and reserve e∈R1×ce \in\mathbb{R}^{1 \times c} for the initial token embedding.

Standard residual connections. A standard Pre-Norm residual architecture maintains a single hidden stream:

xℓ+1=xℓ+Fℓ(xℓ),(1)x_{\ell+1} = x_\ell+ F_\ell(x_\ell), \tag*{(1)}

where x1=ex_1=e. Each branch reads the accumulated state and adds its output back to the same stream.

Hyper-Connections. Hyper-Connections (HC) Zhu et al. [55] expands the residual state into nn parallel streams, Xℓ∈Rn×cX_\ell\in\mathbb{R}^{n \times c}:

Xℓ+1=HℓresXℓ+(hℓpost)TFℓ(hℓpreXℓ).(2)X_{\ell+1} = H_\ell^{\mathrm{res}} X_\ell+ (h_\ell^{\mathrm{post}})^{\mathsf{T}} F_\ell(h_\ell^{\mathrm{pre}} X_\ell). \tag*{(2)}

Here, the initial state is X1=1neX_1 = \mathbf{1}_n e with 1n∈Rn×1\mathbf{1}_n \in\mathbb{R}^{n \times1}, while hℓpre,hℓpost∈R1×nh_\ell^{\mathrm{pre}}, h_\ell^{\mathrm{post}} \in\mathbb{R}^{1 \times n} aggregate the streams into the branch input and distribute the branch output back to the streams, respectively. The transition matrix Hℓres∈Rn×nH_\ell^{\mathrm{res}} \in\mathbb{R}^{n \times n} governs cross-stream residual mixing.

In dynamic HC, hℓpreh_\ell^{\mathrm{pre}}, hℓposth_\ell^{\mathrm{post}}, and HℓresH_\ell^{\mathrm{res}} are predicted from the flattened, normalized residual state via linear projections followed by nonlinear activations. Because nn is small (typically n≤4n \le4), these predictors require only O(n3c)O(n^3c) parameters, which is negligible compared with the O(c2)O(c^2) parameters of the residual branch.

Recently, mHC Xie et al. [47] constrains HℓresH_\ell^{\mathrm{res}} to be doubly stochastic to stabilize its composition across depth. We refer to the simplified variant with Hℓres=InH_\ell^{\mathrm{res}} = I_n as Identity Hyper-Connections (IHC). Compared with mHC, IHC achieves comparable performance with lower system overhead, motivating its adoption in several recent large language models [40, 34].

Information Bottlenecks in Residual Interfaces

Although HC widens the residual state to ncnc, it inherits the single-stream branch design of standard Pre-Norm: each branch still operates as a monolithic unit with narrow residual interfaces, reading a single cc-dimensional input and writing a single cc-dimensional output. To see where this bottleneck arises, we decompose a residual branch FℓF_\ell as

Fℓ(u)=Φℓ(Norm⁡(u)Wℓin)Wℓout,(3)F_\ell(u) = \Phi_\ell(\operatorname{Norm}(u)W_\ell^{\mathrm{in}})W_\ell^{\mathrm{out}}, \tag*{(3)}

where Wℓin∈Rc×M1W_\ell^{\mathrm{in}} \in\mathbb{R}^{c \times M_1} and Wℓout∈RM2×cW_\ell^{\mathrm{out}} \in\mathbb{R}^{M_2 \times c} are linear projections, and Φℓ\Phi_\ell encapsulates the intermediate nonlinear computation (including cross-token interaction in attention). Specifically, WℓinW_\ell^{\mathrm{in}} stacks the query, key, value, and optional gate projections in attention, or the gate and up projections in a gated FFN; consequently, the intermediate dimensions M1M_1 and M2M_2 need not be equal.

Under HC, the feature dimensions along the branch pathway evolve as

nc→hℓprec→WℓinM1→ΦℓM2→Wℓoutc→(hℓpost)Tnc.(4)nc \xrightarrow{h_\ell^{\mathrm{pre}}} c \xrightarrow{W_\ell^{\mathrm{in}}} M_1 \xrightarrow{\Phi_\ell} M_2 \xrightarrow{W_\ell^{\mathrm{out}}} c \xrightarrow{(h_\ell^{\mathrm{post}})^{\mathsf{T}}} nc. \tag*{(4)}

At the input interface, all nn streams are collapsed into a single cc-dimensional vector via a scalar-weighted sum prior to projection, forcing every component of Φℓ\Phi_\ell to process the exact same stream mixture. Increasing the intermediate width M1M_1 cannot recover stream-level distinctions already lost during this pre-aggregation. At the output interface, the M2M_2-dimensional intermediate representation is compressed back into a single cc-dimensional vector before being distributed across the nn streams. Consequently, every stream receives only a scaled copy of the same branch output, preventing the branch from delivering stream-specific updates.

Together, these cc-dimensional interfaces restrict how branch computation accesses and updates the expanded residual state, underutilizing the richer representations. Next, we show how expanding both interfaces unlocks this capacity without widening the intermediate projections.

Expanding Residual Interfaces

Grouped Read, Compute, and Write

We now introduce Grouped Hyper-Connections (GHC), which partitions each branch’s input and output projections into rr parallel computation groups along the attention-head or FFN intermediate-channel dimension. For equally sized groups, the input and output projections of group ii have shapes

Wℓ,iin∈Rc×M1/r,Wℓ,iout∈RM2/r×c.(5)W_{\ell,i}^{\mathrm{in}} \in\mathbb{R}^{c \times M_1/r}, \qquad W_{\ell,i}^{\mathrm{out}} \in\mathbb{R}^{M_2/r \times c}. \tag*{(5)}

Together with its corresponding slice of intermediate computation and group-wise input normalization, these projections define a group function Fℓ,iF_{\ell,i} mapping a cc-dimensional input to a cc-dimensional output. Let

Hℓpre(Xℓ),Hℓpost(Xℓ)∈Rr×n(6)H_{\ell}^{\mathrm{pre}}(X_{\ell}), H_{\ell}^{\mathrm{post}}(X_{\ell}) \in\mathbb{R}^{r \times n} \tag*{(6)}

denote the learned, input-dependent coefficient matrices for stream reading and writing, respectively. The resulting layer update is given by

Uℓ=Hℓpre(Xℓ)Xℓ,oℓ,i=Fℓ,i(uℓ,i),i=1,…,r,Oℓ=[oℓ,1;…;oℓ,r],Xℓ+1=HℓresXℓ+(Hℓpost(Xℓ))TOℓ,(7)\begin{aligned} U_{\ell} &= H_{\ell}^{\mathrm{pre}}(X_{\ell})X_{\ell},\\ o_{\ell,i} &= F_{\ell,i}(u_{\ell,i}), \qquad i=1,\ldots,r,\\ O_{\ell} &= [o_{\ell,1};\ldots;o_{\ell,r}],\\ X_{\ell+1} &= H_{\ell}^{\mathrm{res}}X_{\ell} + \left(H_{\ell}^{\mathrm{post}}(X_{\ell})\right)^{\mathsf{T}}O_{\ell}, \tag*{(7)} \end{aligned}

where uℓ,i∈R1×cu_{\ell,i} \in\mathbb{R}^{1 \times c} is the ii-th row of Uℓ∈Rr×cU_{\ell} \in\mathbb{R}^{r \times c}, and Oℓ∈Rr×cO_{\ell} \in\mathbb{R}^{r \times c} stacks the group outputs vertically. Consequently, the feature dimensions along the branch pathway evolve as

nc→Hℓprerc→WℓinM1→ΦℓM2→Wℓoutrc→(Hℓpost)Tnc.(8)nc \xrightarrow{H_{\ell}^{\mathrm{pre}}} rc \xrightarrow{W_{\ell}^{\mathrm{in}}} M_1 \xrightarrow{\Phi_{\ell}} M_2 \xrightarrow{W_{\ell}^{\mathrm{out}}} rc \xrightarrow{(H_{\ell}^{\mathrm{post}})^{\mathsf{T}}} nc. \tag*{(8)}

This construction expands both residual interfaces from cc to rcrc while preserving the total intermediate widths M1M_1 and M2M_2. Because the groups partition the existing projections, their combined projection FLOPs remain unchanged. Although the interface operations remain linear combinations over streams, they now supply distinct inputs to each computation group and keep group outputs separate until write-back mixing. Figure 5 in Appendix § 9 illustrates this construction for n=r=4n=r=4 and Hℓres=InH_{\ell}^{\mathrm{res}}=I_n.

Figure 5. Residual interfaces in Pre-Norm, IHC, and GHC with n=r=4n=r=4. Left: Pre-Norm maintains a single cc-dimensional residual stream and computes one branch output. Middle: IHC expands the residual state to four streams, reads one shared mixture, and writes scaled copies of one branch output back to the streams. Right: GHC reads four group-specific mixtures, partitions the same total intermediate width (M1,M2M_1, M_2) among four computation groups, and distributes their separate outputs back to the streams with learned weights. Each group applies input RMSNorm (sharing parameters across groups) and its own slice of the branch projections, with intermediate width (M1/4,M2/4M_1/4, M_2/4) and output width cc. All three architectures use identity stream shortcuts.

Properties of Interface Expansion

Preserving nonlinearity. Our grouping strategy exploits the inherently separable structure of the intermediate nonlinear computation Φℓ\Phi_{\ell} in Eq. (3). In multi-head attention, attention logits, softmax normalization, and value aggregation operate independently within each head; in dense FFNs, nonlinear activations and multiplicative gating act elementwise across intermediate channels before being combined linearly by the output projection. Partitioning along heads or intermediate channels therefore leaves all nonlinear operations and their total intermediate width completely intact. Each group retains full access to all cc input channels and projects back to all cc output channels, while the expanded interfaces equip these parallel sub-computations with dedicated read and write pathways.

Recovering IHC. When all rows of HℓpreH_{\ell}^{\mathrm{pre}} and HℓpostH_{\ell}^{\mathrm{post}} are tied to the single-row IHC vectors hℓpreh_{\ell}^{\mathrm{pre}} and hℓposth_{\ell}^{\mathrm{post}}, every group receives an identical input and distributes its output with identical weights. By the linearity of the output projection, the partitioned branches then satisfy ∑i=1rFℓ,i(u)=Fℓ(u)\sum_{i=1}^{r} F_{\ell,i}(u)=F_{\ell}(u). Setting Hℓres=InH_{\ell}^{\mathrm{res}}=I_n thus recovers IHC as a special case.

Adaptation to Mixture-of-Experts

Unlike attention heads and dense FFN channels, the top-kk routing mechanism in a Mixture-of-Experts (MoE) layer is not separable across groups, even though its intermediate computation is naturally partitioned across experts. Forcibly splitting the router into independent sub-routers (e.g., replacing global top-8 routing over 256 experts with eight separate top-1 routers over 32 experts each) alters the standard MoE formulation and degrades performance.

To preserve standard global top-kk competition while still widening residual access, we decouple routing from expert-level stream mixing. Observing that routing compute scales linearly rather than quadratically with the hidden dimension cc, we retain a unified router conditioned on the concatenated residual streams, expanding the router projection from c→Ec \to E to nc→Enc \to E (e.g., 4c→2564c \to256 for n=4n=4 and E=256E=256 experts). Furthermore, because distributed MoE training is sensitive to cross-device communication overhead, we omit token-dependent dynamic gating at the expert level and instead assign each expert 2n2n learnable static parameters (passed through the gate activation introduced next) as its dedicated read and write coefficients across the nn streams. We ablate these MoE design choices in detail in Appendix § 13.

Calibrating Dynamic Read and Write Gates

Under the dynamic HC paradigm ([55, 47]), the read and write maps HℓpreH_{\ell}^{\mathrm{pre}} and HℓpostH_{\ell}^{\mathrm{post}} use token-dependent mixing coefficients shared across cc hidden channels. Specifically, each predictor x∈{pre,post}x \in\{\mathrm{pre},\mathrm{post}\} takes the flattened, normalized residual state zℓ∈Rncz_{\ell} \in\mathbb{R}^{nc} and computes ϕ(αℓxWℓxzℓ+bℓx)\phi(\alpha_{\ell}^{x}W_{\ell}^{x}z_{\ell}+b_{\ell}^{x}), with learnable weights WℓxW_{\ell}^{x}, scalar scale αℓx\alpha_{\ell}^{x}, bias bℓxb_{\ell}^{x}, and elementwise activation ϕ\phi. Because this parameterization governs both residual expressiveness and gradient dynamics (see Appendix § 12 for a comparison of existing designs), we calibrate two key components: the activation ϕ\phi and the predictor’s width scaling.

Signed and asymmetric activations. Starting from the sigmoid-gated IHC baseline, we find that replacing sigmoid with either tanh or the composite activation

ϕ(t)=TanhSiLU⁡(t)=tanh⁡(SiLU⁡(t)),(9)\phi(t) = \operatorname{TanhSiLU}(t) = \tanh(\operatorname{SiLU}(t)), \tag*{(9)}

where SiLU⁡(t)=tσ(t)\operatorname{SiLU}(t) = t\sigma(t), yields consistent loss reductions and suppresses residual outliers once the first-layer read map is fixed as described below. In GHC, these gains grow steadily with the number of computation groups rr, motivating signed gate activations for expanded residual interfaces.

TanhSiLU offers two advantages over sigmoid. First, it provides non-vanishing, well-conditioned local gradients near zero. For a sigmoid gate a=σ(t)a = \sigma(t), the derivative a(1−a)a(1-a) vanishes as a→0a \to0; suppressing a stream therefore drives the gate into saturation, slowing subsequent adaptation. In contrast, ϕ(0)=0\phi(0)=0 and ϕ′(0)=12\phi'(0)=\frac{1}{2}. Across small nonnegative gate values in [0,0.5][0,0.5], ϕ\phi maintains relatively uniform sensitivity and can reach or cross zero at a finite preactivation, allowing a group to mute a stream while retaining responsive gradients. Second, signed coefficients unlock more expressive stream combinations. For a read mixture u=∑bhbxbu = \sum_b h_b x_b, nonnegative weights confine uu to the convex cone spanned by the streams {xb}\{x_b\}. Allowing negative weights lets each group take differences across streams and cancel redundant components, similar in spirit to differential attention (Ye et al., 2025) and delta-rule updates in linear attention [35, 9, 50]. The same flexibility applies when writing group outputs back to the streams. Compared with symmetric tanh, TanhSiLU has an asymmetric range (approximately [−0.27,1)[-0.27,1)): it supports full-strength positive aggregation alongside bounded negative corrections, introducing a helpful inductive bias toward additive accumulation with selective subtraction.

However, pairing signed gates with a learnable first-layer read map can trigger gradient-norm spikes and occasional loss instabilities, echoing observations in prior work [47, 34]. Because all initial residual streams hold identical copies of the token embedding ee, group ii in the first attention layer receives qieq_i e with qi=∑b(H1pre)ibq_i = \sum_b (H_1^{\mathrm{pre}})_{ib}. Neglecting the normalization ϵ\epsilon, we have

RMSNorm⁡(qie)=sign⁡(qi)RMSNorm⁡(e).(10)\operatorname{RMSNorm}(q_i e) = \operatorname{sign}(q_i)\operatorname{RMSNorm}(e). \tag*{(10)}

Consequently, the normalized input has zero gradient with respect to H1preH_1^{\mathrm{pre}} almost everywhere, yet undergoes a discontinuous sign flip whenever qiq_i crosses zero. To eliminate this discontinuity, we fix H1preH_1^{\mathrm{pre}} throughout training with positive row sums. Notably, a fixed first-layer read map is also used by DeepSeek-AI [7], albeit not from this perspective. With this modification, loss spikes disappear across all runs.

Width calibration. Because each mixing coefficient acts across all cc channels while zℓz_\ell has ncnc coordinates, an unscaled linear predictor causes preactivation updates to grow with width cc (see Appendix § 12.§ 2 for a formal analysis). Moreover, while initializing αℓ⋆\alpha_\ell^\star to a small constant (e.g., 0.01 in HC and mHC [55, 47]) attenuates gradients to Wℓ⋆W_\ell^\star, it leaves the gradient with respect to αℓ⋆\alpha_\ell^\star itself unattenuated [8]. To ensure width-invariant Θ(1)\Theta(1) preactivation updates without relying on small initial scales, we replace the shared scalar αℓ⋆\alpha_\ell^\star with entry-wise learnable scales sℓ⋆∈Rr×ns_\ell^\star\in\mathbb{R}^{r \times n} and incorporate an explicit 1/c1/\sqrt{c} factor:

Hℓ⋆(Xℓ)=TanhSiLU⁡(sℓ⋆⊙reshape⁡(Wℓ⋆zℓ)c+bℓ⋆),⋆∈{pre,post},sℓ,init⋆=1r×n,(11)H_\ell^\star(X_\ell) = \operatorname{TanhSiLU}\left(\frac{s_\ell^\star\odot\operatorname{reshape}(W_\ell^\star z_\ell)}{\sqrt{c}} + b_\ell^\star\right), \qquad\star\in\{\mathrm{pre}, \mathrm{post}\}, \qquad s_{\ell,\mathrm{init}}^\star= \mathbf{1}_{r \times n}, \tag*{(11)}

where Wℓ⋆zℓW_\ell^\star z_\ell is reshaped into Rr×n\mathbb{R}^{r \times n} and bℓ⋆∈Rr×nb_\ell^\star\in\mathbb{R}^{r \times n} denotes entry-wise biases. We initialize bℓpost=0.7969b_\ell^{\mathrm{post}} = 0.7969 (TanhSiLU⁡(bℓpost)≈0.5\operatorname{TanhSiLU}(b_\ell^{\mathrm{post}}) \approx0.5), and set bℓpreb_\ell^{\mathrm{pre}} to 2.537 on stream ((ℓ−1)r+i−1) mod n+1((\ell-1)r+i-1)\bmod n+1 for group ii and 0.035 elsewhere, giving initial gate values of 0.982 and 0.018. We apply Eq. (11) to all dynamic read and write maps, while keeping H1preH_1^{\mathrm{pre}} fixed at this initial cyclic pattern.

Infrastructure Efficiency

Unlike widening external residual streams, GHC expands only the internal branch interfaces (rcrc) while keeping the external residual state (ncnc) and total intermediate widths (M1M_1, M2M_2) fixed. Although a naive PyTorch implementation materializes the rcrc-dimensional group inputs and outputs in global memory, these interfaces sit directly adjacent to the group projections and are amenable to kernel fusion:

Xℓ→Read+Norm+ProjZℓ∈R1×M1,Zℓ→ΦℓAℓ∈R1×M2,(Aℓ,Xℓ)→Proj+Write+AddXℓ+1∈Rn×c.(12)\begin{aligned} X_\ell&\xrightarrow{\text{Read+Norm+Proj}} Z_\ell\in\mathbb{R}^{1 \times M_1},\\ Z_\ell&\xrightarrow{\Phi_\ell} A_\ell\in\mathbb{R}^{1 \times M_2},\\ (A_\ell, X_\ell) &\xrightarrow{\text{Proj+Write+Add}} X_{\ell+1} \in\mathbb{R}^{n \times c}. \tag*{(12)} \end{aligned}

where each arrow indicates a target fused kernel boundary writing to global memory (given precomputed gate coefficients and normalization statistics), with ZℓZ_\ell and AℓA_\ell denoting the projected inputs and outputs of Φℓ\Phi_\ell. In principle, fusing stream reading with the input projections and stream writing with the output projections allows the rcrc-dimensional intermediate states to stay in on-chip SRAM, matching the forward global-memory traffic of IHC; we present practical operator fusion benchmarks in Appendix § 16.

On the compute side, gate prediction, stream mixing, and group normalization add O(rn2c)O(rn^2c) FLOPs per token, which is asymptotically small relative to the O(c2)O(c^2) branch projections as width cc grows; our scaling-ladder experiments (§ 5.2) explicitly include these extra FLOPs and verify net compute-efficiency gains. At the same time, choosing an overly large rr increases gating and normalization overhead and shrinks per-group matrix dimensions (M1/rM_1/r, M2/rM_2/r), which can reduce GEMM utilization. Building on the n=4n = 4 IHC backbone (Hℓres=InH_\ell^{\mathrm{res}} = I_n), we adopt a moderate group count of r=8r = 8 as the default GHC configuration, balancing expressivity and execution overhead. Partitioning branches into eight groups aligns naturally with tensor and expert parallelism without adding pipeline-parallel overhead.

Experiments

Experimental Setup

Our experiments span three settings (see Appendix § 11 for full training details). First, for controlled comparison against competitive baselines, we train a 430M-parameter dense model on 50B tokens. Second, we evaluate GHC across a scaling ladder (Bhagia et al., [2]) to quantify training efficiency gains (The Microsoft AI Team, [40]) over Pre-Norm and IHC. Finally, we scale our evaluation to 4BA0.2B and 13BA0.6B Mixture-of-Experts (MoE) models.

Downstream evaluation. Across all models, we evaluate commonsense reasoning, factual knowledge, mathematical reasoning, and code generation using HellaSwag (Zellers et al., [52]), PIQA (Bisk et al., [3]), TriviaQA (Joshi et al., [18]), MATH (Hendrycks et al., [13]), GSM8K (Cobbe et al., [5]), and HumanEval (Chen et al., [4]), and additionally report final-word perplexity on LAMBADA (Paperno et al., [29]). We report the unweighted mean of the six percentage-based benchmark scores as Avg. Score, excluding average validation loss and LAMBADA perplexity.

Main Results

Breaking the residual interface bottleneck. We first evaluate overall model quality on the 430M dense model trained for 50B tokens (Table 1 and Table 2). To ensure a fair comparison across multi-stream methods, we apply no specialized boundary projections: all streams are initialized by replicating the token embedding and summed directly before the final normalization and language modeling head. As shown in Table 1, under the standard four-stream budget (n=4n = 4), GHC (r=8r = 8) lowers average validation loss to 2.0161, outperforming Pre-Norm (2.0713) by 0.0552 and IHC (2.0351) by 0.0190, while improving the downstream Avg. Score to 25.80 (+2.12 and +0.71 points over Pre-Norm and IHC, respectively). Table 2 further shows that GHC (n=4n = 4) surpasses Block Attention Residuals (AttnRes, block size b=4b = 4, 2.0363) [39], and even outperforms the high-I/O Full AttnRes variant (b=1b = 1) by 0.0161.

ModelMethodAvg. LossLAMBADA↓PIQAHellaSwagTriviaQAMATHGSM8KHumanEvalAvg. Score
430M DensePre-Norm2.071314.4167.1947.4413.643.542.967.3223.68
IHC2.035112.2968.0149.7516.093.562.7310.3725.09
GHC(ours)2.016112.4768.7750.7916.944.063.8710.3725.80
4BA0.2B MoEPre-Norm1.926012.9571.5554.6823.315.525.8412.2028.85
IHC1.906610.6771.8755.9824.906.145.3114.0229.70
GHC(ours)1.886210.3071.9857.8326.787.405.9917.6831.28
13BA0.6B MoEPre-Norm1.70525.7276.1767.9643.3015.1021.6823.7841.33
IHC1.69015.6978.1869.1045.4815.8021.9925.0042.59
GHC(ours)1.67755.1677.6469.9148.5917.3624.0326.2243.96

Table 1. Results on dense and Mixture-of-Experts (MoE) models. Lower is better for average loss and LAMBADA perplexity; all other metrics are reported as percentages. Avg. Score is the unweighted mean of the six displayed two-decimal task scores from PIQA to HumanEval. Bold indicates the best result within each model-size group, including ties.

MethodSettingAvg. Loss ↓Δ ↑
IHCn=4n = 42.03510.0028
IHCn=8n = 82.0323
AttnResb=4b = 42.03630.0041
AttnResb=1b = 12.0322
GHCn=4n = 42.01610.0195
GHCn=8n = 81.9966

Table 2. Effect of expanding residual state capacity on the 430M dense model (50B tokens). Entries in gray italics denote high-I/O configurations with expanded state access (n=8n = 8 streams or block size b=1b = 1 for full depth attention). Δ denotes the loss reduction from widening the residual state within each architecture.

Crucially, the paired comparisons in Table 2 validate our core hypothesis on residual interfaces. When residual interfaces remain restricted to width cc, expanding the external residual state yields sharp diminishing returns: doubling IHC from n=4n = 4 to n=8n = 8 streams reduces loss by only 0.0028 (2.0351 → 2.0323), and moving from Block (b=4b = 4) to Full (b=1b = 1) AttnRes yields a similarly modest 0.0041 gain (2.0363 → 2.0322). Conversely, once GHC expands the read/write interfaces, scaling from n=4n = 4 to n=8n = 8 streams delivers a substantial 0.0195 loss reduction (2.0161 → 1.9966), nearly 7× the gain of IHC and widening the lead over 8-stream IHC to 0.0357. This confirms that narrow interfaces are the primary bottleneck preventing existing architectures from utilizing wider residual states.

Consistent gains along the scaling ladder. To assess how these improvements scale with compute, Figure 2 plots validation loss against total training FLOPs along the scaling ladder [2] for Pre-Norm, IHC, and GHC. Across all model sizes and compute budgets, GHC consistently shifts the scaling curve downward without diminishing returns at larger scales. Following The Microsoft AI Team [40], we fit power-law curves to quantify the training efficiency gain (EG), defined as the relative compute required by a baseline to match the validation loss of GHC. Notably, even with the slight FLOPs overhead from interface mixing and group normalization accounted for in total training FLOPs, GHC achieves net efficiency gains of approximately 35% over Pre-Norm and 10% over IHC.

Figure 2. Validation loss across the scaling ladder as a function of total training FLOPs for Pre-Norm, IHC, and GHC. Fitted power-law curves indicate that GHC achieves net training efficiency gains (EG) of approximately 35% over Pre-Norm and 10% over IHC.

Broad improvements on MoE models. As shown in Table 1, the advantages of GHC extend consistently from dense backbones to sparse MoE architectures. On the 4B MoE model, GHC achieves the best performance across every metric, lowering validation loss by 0.0398 over Pre-Norm and 0.0204 over IHC while raising the average downstream score to 31.28 (+2.43 and +1.58 over Pre-Norm and IHC, respectively). At the 13B MoE scale, GHC similarly maintains the lowest validation loss and the highest overall downstream score, with particularly strong gains on mathematical reasoning and coding benchmarks (GSM8K, MATH, and HumanEval). Notably, expanding the router input across streams adds less than 4% active parameters and 0.2% total parameters, confirming that these benefits stem from wider residual interfaces rather than extra model capacity.

Ablation Studies

We ablate four core design choices of GHC on the 430M dense model with n=4n = 4: (1) the gate activation function, (2) the number of computation groups rr, (3) the placement of expanded interfaces across branches and read/write pathways, and (4) gate width calibration and scale parameterization. When comparing gate activations, we adjust the initial biases accordingly to ensure identical initial gate values across variants. Table 3 summarizes all ablation results.

(a) Gate activation & group count rr

Groups rrSigmoidTanhSiLUΔ ↑
12.03572.03230.0034
22.03262.02600.0066
42.03272.02220.0105
82.02672.01610.0106

(b) Interface placement (TanhSiLU)

Attention HpreH^{\mathrm{pre}}Attention HpostH^{\mathrm{post}}FFN HpreH^{\mathrm{pre}}FFN HpostH^{\mathrm{post}}Avg. Loss ↓
11112.0323
88112.0239
18182.0256
88882.0161

(c) Gate calibration (r=8r = 8, TanhSiLU)

Scale ParameterizationInit. ScaleMax Grad ↓Avg. Loss ↓
Pre-Norm baselineN/A0.12622.0713
Scalar α\alpha, w/o 1/c1/\sqrt{c}0.014.09632.0192
Matrix ss, w/o 1/c1/\sqrt{c}0.010.67802.0182
Matrix ss, w/ 1/c1/\sqrt{c}1.00.11862.0161

Table 3. Ablations of GHC on the 430M dense model (n=4n = 4). (a) Gate activation and group count rr, where Δ denotes the loss reduction of TanhSiLU over sigmoid. (b) Interface expansion placement under TanhSiLU, showing r∈{1,8}r \in\{1, 8\} assigned to the read (HpreH^{\mathrm{pre}}) and write (HpostH^{\mathrm{post}}) maps of attention and FFN branches. (c) Gate scale parameterization and width calibration (r=8r = 8, TanhSiLU), reporting peak post-warmup global gradient norm and final validation loss alongside Pre-Norm for reference.

Signed gating unlocks group scaling. Comparing sigmoid and TanhSiLU gating across r∈{1,2,4,8}r \in\{1, 2, 4, 8\} (Table 3a), TanhSiLU outperforms sigmoid at every group count, with its validation loss advantage growing monotonically from 0.0034 at r=1r = 1 to 0.0106 at r=8r = 8. Over the full range from r=1r = 1 to r=8r = 8, TanhSiLU captures nearly twice the group-scaling reduction of sigmoid. This widening margin confirms that signed, subtractive mixing and non-vanishing zero-crossing gradients become increasingly beneficial as more groups interact with the residual streams.

Consistent gains from more computation groups. With intermediate widths and projection FLOPs held fixed, increasing rr isolates the effect of expanding the branch interface from cc to rcrc (Table 3a). Under TanhSiLU, validation loss drops monotonically across r∈{1,2,4,8}r \in\{1, 2, 4, 8\} (2.0323 → 2.0260 → 2.0222 → 2.0161), for a total reduction of 0.0162. Crucially, scaling from r=4r = 4 to r=8r = 8 yields a further 0.0061 gain even though rr exceeds the stream count (n=4n = 4): because each group shares scalar mixing weights across all cc channels, finer partitioning relaxes this coarse group-sharing constraint and lets smaller head or channel subsets specialize on distinct stream mixtures.

Complementary gains across branches and interfaces. Table 3b disentangles the contributions of branch types and read/write pathways between the unexpanded TanhSiLU baseline (r=1r = 1, 2.0323) and GHC (r=8r = 8, 2.0161). Restricting grouped interfaces to attention (r=1r = 1 in FFN) yields 2.0239, capturing 0.0084 of the gain over the baseline while leaving 0.0078 from FFN expansion, showing near-equal branch contributions. Along the interface axis, retaining grouped writes while collapsing HpreH^{\mathrm{pre}} to r=1r = 1 improves over the baseline by 0.0067, whereas grouped reads contribute the remaining 0.0095. Expanding both branches and interfaces is thus necessary for the full gain.

Width calibration stabilizes optimization. Table 3c evaluates our explicit 1/c1/\sqrt{c} gate calibration (r=8r = 8, TanhSiLU) against uncalibrated variants initialized at scale 0.01. Without 1/c1/\sqrt{c} scaling, sharing a scalar αℓ∈R\alpha^\ell\in\mathbb{R} across all rnrn gate entries causes severe post-warmup gradient spikes, reaching a peak global gradient norm of 4.1 (32× higher than Pre-Norm’s 0.126) as unscaled inner products accumulate gradients onto a single parameter. Replacing the shared scalar αℓ\alpha^\ell with entry-wise scales sℓ∈Rr×ns^\ell\in\mathbb{R}^{r \times n} lowers the peak post-warmup global gradient norm from 4.10 to 0.68 and the validation loss from 2.0192 to 2.0182. The width calibration in Eq. (11) introduces an explicit 1/c1/\sqrt{c} factor in the gradient with respect to each gate scale. With this calibration and all scales initialized to one, GHC reaches a peak gradient norm of 0.12, close to the Pre-Norm value of 0.1262, and achieves the lowest validation loss in this ablation (2.0161).

Analysis

To understand how GHC utilizes its expanded signed interfaces in practice, we analyze the internal behavior of the trained 430M dense model from two perspectives: how parallel groups specialize their read and write maps across depth (§ 7.1), and how signed gating reshapes residual magnitude dynamics across layers (§ 7.2).

Learned Gating Patterns Across Depth

Figure 3 visualizes token-averaged read maps HpreH^{\mathrm{pre}} and write maps HpostH^{\mathrm{post}} across representative sublayers (see Appendix § 15 for all sublayers). Since group-wise RMSNorm is invariant to positive row scaling, we ℓ2\ell_2-normalize each row of HpreH^{\mathrm{pre}} prior to averaging to remove arbitrary scale differences while preserving signs and relative stream weights.

Figure 3. Token-averaged read gates HpreH^{\mathrm{pre}} (top, row-wise ℓ2\ell_2-normalized before averaging) and write gates HpostH^{\mathrm{post}} (bottom) in the 430M GHC model (n=4n = 4, r=8r = 8, TanhSiLU) at initialization and five trained sublayers. Each 8×48 \times4 panel plots the 8 groups (rows) against the 4 streams (columns), with red, white, and blue denoting positive, near-zero, and negative values.

Two empirical patterns emerge:

Signed stream combinations. Across trained layers, HpreH^{\mathrm{pre}} develops substantial negative weights (blue) alongside positive weights (red), such as the opposing signs across streams in Layer 5 (Attn) and Layer 12 (FFN). Rather than restricting groups to nonnegative linear combinations, the model actively exploits the negative range of TanhSiLU to extract subtractive, differential features across streams.

Group differentiation in deeper layers. In Layer 0 (FFN), where all streams have just branched from the shared token embedding, the eight groups exhibit nearly identical read weights while keeping HpostH^{\mathrm{post}} near zero. As depth increases (Layers 12, 19, and 23), rows within the same sublayer diverge markedly from both one another and the block-diagonal initialization. In Layer 19 (Attn) and Layer 23 (FFN), parallel groups attend to distinct signed combinations of streams, while HpostH^{\mathrm{post}} (e.g., Layer 19 Attn) routes group updates back with differentiated per-stream weights instead of updating all streams uniformly.

Residual Outlier Magnitude

Figure 4 tracks the residual outlier magnitude ([33]), measured by the peak entry max⁡∣Xℓ∣\max|X_{\ell}| recorded over training, across normalized layer depth for Pre-Norm and GHC with sigmoid or TanhSiLU gating.

Figure 4. Peak residual magnitude (max⁡∣Xℓ∣\max|X_\ell| recorded over training) across normalized layer depth on the 430M dense model for Pre-Norm and GHC with sigmoid or TanhSiLU gating.

Compared with Pre-Norm, sigmoid-gated GHC lowers peak magnitudes in deeper layers, yet still exhibits a sharp early surge (exceeding 60 at normalized depth < 0.1). Replacing sigmoid with TanhSiLU yields a substantially flatter growth profile across all depths. Two properties of signed gating may help explain this behavior. First, unlike nonnegative sigmoid gates, negative TanhSiLU weights permit direct subtractive mixing across streams, providing an explicit mechanism to offset shared components and moderate stream growth. Second, more expressive stream reading and writing may lessen the need for large activation magnitudes to preserve or route signals across depth ([33]).

Conclusion

We introduced GHC, which expands the read and write interfaces of Hyper-Connections without significantly increasing FLOPs or memory traffic. By partitioning each branch into parallel groups with width-calibrated TanhSiLU gates, GHC enables group-specific signed stream reads and weighted write-backs. Across scaling ladders and MoE models up to 13B, GHC consistently improves training efficiency and downstream performance over Pre-Norm and IHC while overcoming diminishing returns of adding streams.

Detailed Comparison of Residual Information Flow

Figure 5 provides a detailed schematic comparing the per-layer residual information flow and tensor shapes across Pre-Norm, IHC, and GHC (n=r=4n=r=4).

A Unified View of Residual Aggregation

We can express the input to any residual branch as a linear combination of earlier branch outputs [39]. As in § 3, let Fℓ\mathcal{F}_{\ell} denote residual branch ℓ\ell (including its input normalization), mapping a per-token input uℓ∈R1×cu_{\ell} \in\mathbb{R}^{1 \times c} to an output oℓ=Fℓ(uℓ)∈R1×co_{\ell}=\mathcal{F}_{\ell}(u_{\ell}) \in\mathbb{R}^{1 \times c}, and set o0=eo_0=e for the initial token embedding. For a given token, standard Pre-Norm, HC, and Attention Residuals all admit the unified form

uℓ=∑i=0ℓ−1αℓ,ioi,(13)u_{\ell}=\sum_{i=0}^{\ell-1}\alpha_{\ell,i}o_i, \tag*{(13)}

where αℓ,i∈R\alpha_{\ell,i} \in\mathbb{R} is the effective scalar weight with which branch ℓ\ell reads oio_i. These architectures differ in how αℓ,i\alpha_{\ell,i} is parameterized and which intermediate states are maintained across depth.

Standard residual connections. Unrolling the Pre-Norm update in Eq. (1) from x1=ex_1=e gives

uℓ=xℓ=e+∑i=1ℓ−1oi.(14)u_{\ell}=x_{\ell}=e+\sum_{i=1}^{\ell-1}o_i. \tag*{(14)}

Thus αℓ,i=1\alpha_{\ell,i}=1 for all 0≤i<ℓ0 \le i < \ell, and a single running sum suffices to form every branch input.

Hyper-Connections. HC [55] maintains nn parallel streams Xℓ∈Rn×cX_{\ell} \in\mathbb{R}^{n \times c}. To track the contribution of oio_i across subsequent stream transitions, define the ordered matrix product

Tb:a=Hbres⋯Hares,Tb:b+1=In,(15)T_{b:a}=H_b^{\mathrm{res}}\cdots H_a^{\mathrm{res}},\qquad T_{b:b+1}=I_n, \tag*{(15)}

where for b≥ab \ge a the rightmost factor acts first. Starting from X1=1neX_1 = 1_n e, unrolling Eq. (2) yields the residual state entering branch ℓ\ell:

Xℓ=Tℓ−1:11ne+∑i=1ℓ−1Tℓ−1:i+1(hipost)⊤oi.(16)X_\ell= T_{\ell-1:1}1_n e + \sum_{i=1}^{\ell-1} T_{\ell-1:i+1}(h_i^{\mathrm{post}})^\top o_i. \tag*{(16)}

Applying the read vector hℓpre∈R1×nh_\ell^{\mathrm{pre}} \in\mathbb{R}^{1 \times n} recovers Eq. (13) with effective scalar weights

αℓ,0=hℓpreTℓ−1:11n,\alpha_{\ell,0} = h_\ell^{\mathrm{pre}} T_{\ell-1:1}1_n,
αℓ,i=hℓpreTℓ−1:i+1(hipost)⊤,1≤i<ℓ.(17)\alpha_{\ell,i} = h_\ell^{\mathrm{pre}} T_{\ell-1:i+1}(h_i^{\mathrm{post}})^\top,\quad1 \le i < \ell. \tag*{(17)}

Thus the effective weight on oio_i factors through how branch ii writes to the streams, how intervening layers mix them, and how branch ℓ\ell reads them. In IHC (Hjres=InH_j^{\mathrm{res}} = I_n), this simplifies to αℓ,0=hℓpre1n\alpha_{\ell,0} = h_\ell^{\mathrm{pre}}1_n and αℓ,i=hℓpre(hipost)⊤\alpha_{\ell,i} = h_\ell^{\mathrm{pre}}(h_i^{\mathrm{post}})^\top for 1≤i<ℓ1 \le i < \ell. Under dynamic gating, these expressions hold with the token-dependent vectors evaluated along the forward pass.

Attention Residuals. Full Attention Residuals (Full AttnRes) (Team, [39]) explicitly caches the token embedding and all preceding branch outputs. Branch ℓ\ell scores each cached vector using a learned query wℓ∈R1×cw_\ell\in\mathbb{R}^{1 \times c} and normalizes the scores via softmax across depth:

sℓ,i=wℓRMSNorm⁡(oi)⊤,s_{\ell,i} = w_\ell\operatorname{RMSNorm}(o_i)^\top,
αℓ,i=exp⁡(sℓ,i)∑j=0ℓ−1exp⁡(sℓ,j)(18)\alpha_{\ell,i} = \frac{\exp(s_{\ell,i})}{\sum_{j=0}^{\ell-1}\exp(s_{\ell,j})} \tag*{(18)}

Block AttnRes reduces memory traffic by attending over block-level partial sums rather than individual branch outputs, which assigns a shared attention weight to all branches within the same block.

Implications for residual interfaces. Although HC selects across nn streams and Full AttnRes selects across all ℓ\ell historical outputs, both still route every branch through a single cc-dimensional input uℓu_\ell and a single cc-dimensional output oℓo_\ell. This corresponds directly to the cc-dimensional interface bottleneck analyzed in § 3.2. While Eq. (13) uses channel-shared scalar weights, channel-wise (Qiu et al., [34]) and slice-wise (Li et al., 2025a) variants generalize αℓ,i\alpha_{\ell,i} to diagonal or block-selection operators while still feeding a single backbone-width input into the monolithic branch.

Grouped residual aggregation. GHC lifts this bottleneck by partitioning Fℓ\mathcal{F}_\ell into rr parallel groups {Fℓ,g}g=1r\{\mathcal{F}_{\ell,g}\}_{g=1}^r along attention heads or FFN intermediate channels. Each group gg reads its own stream mixture uℓ,g∈R1×cu_{\ell,g} \in\mathbb{R}^{1 \times c} and produces a dedicated output oℓ,g=Fℓ,g(uℓ,g)∈R1×co_{\ell,g} = \mathcal{F}_{\ell,g}(u_{\ell,g}) \in\mathbb{R}^{1 \times c}. Unrolling Eq. (7) shows that group gg of branch ℓ\ell aggregates all preceding group outputs with pair-specific weights:

uℓ,g=αℓ,g;0e+∑i=1ℓ−1∑h=1rαℓ,g;i,hoi,h,(19)u_{\ell,g} = \alpha_{\ell,g;0}e + \sum_{i=1}^{\ell-1}\sum_{h=1}^{r}\alpha_{\ell,g;i,h}o_{i,h}, \tag*{(19)}

where αℓ,g;0=(Hℓpre)g,:Tℓ−1:11n\alpha_{\ell,g;0} = (H_\ell^{\mathrm{pre}})_{g,:}T_{\ell-1:1}1_n and αℓ,g;i,h=(Hℓpre)g,:Tℓ−1:i+1(Hipost)h,:⊤\alpha_{\ell,g;i,h} = (H_\ell^{\mathrm{pre}})_{g,:}T_{\ell-1:i+1}(H_i^{\mathrm{post}})_{h,:}^{\top} for 1≤i<ℓ1 \le i < \ell (simplifying to (Hℓpre)g,:((Hipost)h,:)⊤(H_\ell^{\mathrm{pre}})_{g,:}((H_i^{\mathrm{post}})_{h,:})^\top when Hjres=InH_j^{\mathrm{res}} = I_n).

Notably, Eq. (19) also suggests a grouped extension of Full AttnRes, in which each query group gg attends directly over the embedding and all r(ℓ−1)r(\ell-1) individual group outputs from earlier branches while keeping total intermediate width and branch projection FLOPs unchanged. However, caching rr separate cc-dimensional vectors per branch and token would multiply the depth-history memory footprint and I/O traffic of Full AttnRes by a factor of rr (rcrc versus cc elements per branch and token), making it impractical at scale.

Training Details

Our experiments span three settings: a 430M dense comparison, a dense scaling ladder, and two Mixture-of-Experts (MoE) scales (4B and 13B). In the 430M dense and MoE settings, all methods share identical backbone dimensions, token budgets, global batch sizes, and learning-rate schedules, with peak learning rates and batch sizes determined via StepLaw on the Pre-Norm reference (Li et al., 2025b). For the dense scaling ladder, we apply the StepLaw fitting rule individually to each method and model size to account for connection parameters.

Throughout this section, NN denotes the non-embedding parameter count (backbone and connection parameters, excluding token embeddings, the output head, and final normalization), and AA denotes the per-token active non-embedding parameter count in MoE models. Unless noted otherwise, IHC and GHC use n=4n = 4 streams, and GHC uses r=8r = 8 groups in all attention and dense FFN branches.

Shared architecture and optimizer. We train decoder-only language models on packed sequences of length s=8192s = 8192 with zero dropout and a weight initialization standard deviation of 0.006. All models use rotary position embeddings (Su et al. (2024)), elementwise sigmoid attention gates (Qiu et al. [32]), and query/key/value normalization, with head dimension 128 and 8 key/value heads. Layers follow a repeating 3:1 sliding-to-full attention pattern with a 512-token sliding window (14- and 18-layer models append one additional sliding/full pair). Dense FFNs use intermediate width 4c4c (for hidden dimension cc) with SiTU-GLU (Team [40]) activation (β=4\beta= 4, linear-branch saturation 25).

Matrix parameters in the backbone are optimized with Muon (Liu et al. [23]) (Nesterov momentum 0.95, 8 Polar Express Newton-Schulz iterations (Amsel et al. [1])) and decoupled weight decay, while all remaining parameters use AdamW (Loshchilov & Hutter [24]) (β1=0.9\beta_1 = 0.9, β2=0.95\beta_2 = 0.95, ϵ=10−15\epsilon= 10^{-15}). All runs use weight decay 0.1, gradient clipping at 1.0, and a cosine learning-rate schedule with a 2,000-step linear warmup to a floor of 10−510^{-5}.

430M dense comparison. The 430M backbone (N=427.88N = 427.88M for Pre-Norm) uses L=24L = 24 layers, hidden dimension c=1024c = 1024, FFN width 4096, and 8 query heads for both sliding and full attention. All models are trained for 47,684 steps at a global batch size of 128 sequences (50B tokens) and a peak learning rate of 2.9×10−32.9 \times10^{-3}.

Dense scaling ladder. We evaluate Pre-Norm, IHC, and GHC (r=8r = 8) across depths L∈{12,14,16,18}L \in\{12, 14, 16, 18\} with hidden dimension c=128Lc = 128L, FFN width 4c4c, and 16 / 8 query heads for sliding / full attention. Each model is trained for D=20ND = 20N tokens. Under StepLaw (Li et al. (2025b)), the target token batch size B^\hat{B} and reference peak learning rate η^\hat{\eta} follow

B^=0.58D0.571,η^=1.79N−0.713D0.307.(20)\hat{B} = 0.58D^{0.571}, \qquad\hat{\eta} = 1.79N^{-0.713}D^{0.307}. \tag*{(20)}

Rounding the sequence batch size GG to the nearest multiple of 128 gives G=128G = 128 across all rungs; we rescale the peak learning rate to ηpeak=η^Gs/B^\eta_{\mathrm{peak}} = \hat{\eta}\sqrt{G s/\hat{B}} and train for ⌈D/(Gs)⌉\lceil D/(Gs)\rceil steps (Table 4).

MethodLLNN (M)DD (B)ηpeak\eta_{\mathrm{peak}}StepsAvg. Loss ↓\downarrow
Pre-Norm12476.69.532.56×10−32.56 \times10^{-3}9,0912.2437
Pre-Norm14723.014.461.92×10−31.92 \times10^{-3}13,7922.1378
Pre-Norm161048.620.971.48×10−31.48 \times10^{-3}20,0022.0522
Pre-Norm181451.129.021.19×10−31.19 \times10^{-3}27,6771.9796
IHC12477.99.562.56×10−32.56 \times10^{-3}9,1172.2122
IHC14724.914.501.92×10−31.92 \times10^{-3}13,8262.1113
IHC161051.021.021.48×10−31.48 \times10^{-3}20,0472.0266
IHC181454.029.081.18×10−31.18 \times10^{-3}27,7341.9546
GHC12486.29.722.53×10−32.53 \times10^{-3}9,2742.1964
GHC14736.114.721.90×10−31.90 \times10^{-3}14,0402.0910
GHC161065.721.311.47×10−31.47 \times10^{-3}20,3272.0134
GHC181472.629.451.17×10−31.17 \times10^{-3}28,0891.9415

Table 4. Dense scaling ladder configurations and final validation losses with c=128Lc = 128L, FFN width 4c4c, global batch size of 1M tokens, and token budget D=20ND = 20N ([14]). Parameter counts NN are in millions, token budgets DD in billions.

MoE experiments. We evaluate two MoE scales corresponding to the 4B and 13B models in Table 1: L=12L = 12, c=1024c = 1024 and L=16L = 16, c=1536c = 1536. In both models, the first two layers use dense FFNs of width 4c4c, and all remaining layers use 256 routed experts with top-8 routing, expert intermediate width c/2c/2, and no shared experts. Routing uses FP32 logits with normalized sigmoid scores, DeepSeek-style bias updates for load balancing (rate 10−310^{-3}), and an expert-parallel auxiliary loss (weight 10−310^{-3}). Table 5 lists full specifications.

Specification4B MoE13B MoE
Total / MoE layers12 / 1016 / 14
Hidden dimension cc10241536
Dense FFN / Expert width4096 / 5126144 / 768
Routed / Active experts256 / 8256 / 8
Sliding / Full Q-heads8 / 816 / 8
Non-embedding params NN4.12B12.93B
Active params AA216.6M641.0M
Training tokens DD65B192B
Global batch size2.1M4.2M
Peak learning rate1.4×10−31.4 \times10^{-3}9×10−49 \times10^{-4}
Training steps30,98045,848

Table 5. Architectural specifications and training schedules for the 4B and 13B MoE models.

Details on Dynamic Gate Calibration

Comparison of Gate Parameterizations

Table 6 summarizes the dynamic read and write gate parameterizations across multi-stream residual architectures and compares them with GHC. Existing designs exhibit distinct trade-offs across four key properties:

MethodHpreH^{\mathrm{pre}}HpostH^{\mathrm{post}}BoundedSignedWidth-Calib.Lightweight
HCαtanh⁡(wTz)+b\alpha\tanh(w^{\mathsf{T}}z)+bαtanh⁡(wTz)+b\alpha\tanh(w^{\mathsf{T}}z)+b✗✓✗✓
mHCσ(αwTz+b)\sigma(\alpha w^{\mathsf{T}}z+b)2σ(αwTz+b)2\sigma(\alpha w^{\mathsf{T}}z+b)✓✗✗✓
VWNstanh⁡(wTz/db)+bs\tanh(w^{\mathsf{T}}z/\sqrt{d_b})+bstanh⁡(wTz/db)+bs\tanh(w^{\mathsf{T}}z/\sqrt{d_b})+b✗✓✓✓
GR1nσ(WuSiLU⁡(Wdz/n))\frac{1}{n}\sigma(W_u\operatorname{SiLU}(W_dz/n))2σ(wTz/n)2\sigma(w^{\mathsf{T}}z/n)✓✗✓/✗✗/✓
IHCσ(αwTz+b)\sigma(\alpha w^{\mathsf{T}}z+b)2σ(αwTz+b)2\sigma(\alpha w^{\mathsf{T}}z+b)✓✗✗✓
GHC (ours)TanhSiLU⁡(swTz/c+b)\operatorname{TanhSiLU}(sw^{\mathsf{T}}z/\sqrt{c}+b)TanhSiLU⁡(swTz/c+b)\operatorname{TanhSiLU}(sw^{\mathsf{T}}z/\sqrt{c}+b)✓✓✓✓

Table 6. Comparison of dynamic read and write gate parameterizations across multi-stream residual architectures. Each expression denotes a single scalar mixing coefficient, except for the GR read gate, which outputs a cc-dimensional channel-wise vector per stream (including its 1/n1/n factor) via bottleneck projections WdW_d and WuW_u. Here zz denotes the normalized residual input to the predictor (z∈Rdbz \in\mathbb{R}^{d_b} for slice width dbd_b in VWN, and z∈Rncz \in\mathbb{R}^{nc} flattened across all nn streams otherwise), σ\sigma denotes the sigmoid function, ww denotes an entry-specific linear projection vector, α\alpha denotes a predictor-shared learnable scalar scale, and s,bs,b denote entry-specific learnable scales and biases. Note that mHC and IHC share the same read/write gate form and differ only in HresH^{\mathrm{res}}; slashed entries (⋅/⋅\cdot/\cdot) indicate Hpre/HpostH^{\mathrm{pre}}/H^{\mathrm{post}} when the two paths differ.

Boundedness. Unbounded parameterizations (HC (Zhu et al., [55]) and VWN (Li et al., 2025a), which apply learnable scales and biases outside tanh⁡\tanh) allow gate magnitudes to drift unconstrained during training. Placing parameters inside a bounded outer nonlinearity (σ\sigma or TanhSiLU) restricts the maximum magnitude of each mixing coefficient.

Signed mixing. Sigmoid-based gates in mHC (Xie et al., [47]), Gated Residual (GR) (Qiu et al., [34]), and IHC (Tencent Hy Team, [40]) restrict mixing coefficients to be strictly positive, confining reads and writes to conical combinations. Using tanh⁡\tanh or TanhSiLU enables signed coefficients and subtractive stream interactions.

Width calibration. For broadcast scalar gates without width scaling (HC, mHC, and IHC), predictor preactivation updates grow with hidden width cc (Section D.2). In GR, the read gate produces a cc-dimensional channel-wise vector without cross-channel broadcasting and thus avoids explicit 1/c1/\sqrt{c} scaling, whereas its scalar write gate is broadcast across all cc channels while scaling only by 1/n1/n, leaving the write path uncalibrated. Incorporating 1/db1/\sqrt{d_b} in VWN (for slice width dbd_b) or 1/c1/\sqrt{c} in GHC ensures width-invariant Θ(1)\Theta(1) updates on both paths.

Lightweight projection. Whereas GR employs a two-layer bottleneck MLP to generate channel-wise read gates (while retaining a single linear projection on its write path), lightweight designs compute all read and write coefficients via single linear projections of the normalized residual state.

By combining TanhSiLU with explicit 1/c1/\sqrt{c} width scaling, GHC simultaneously achieves bounded outputs, signed mixing, width-calibrated updates, and lightweight computation across both interfaces.

Width Calibration of Read and Write Gates

Setup. Fix a layer ℓ\ell. Let nn denote the number of residual streams, rr the number of computational groups, and cc the channel width. The residual state is Xℓ∈Rr×n×cX_\ell\in\mathbb{R}^{r \times n \times c}. Let vec⁡\operatorname{vec} denote row-wise vectorization and define the predictor input as zℓ=RMSNorm⁡(vec⁡(Xℓ))∈Rncz_\ell= \operatorname{RMSNorm}(\operatorname{vec}(X_\ell)) \in\mathbb{R}^{nc}, where RMSNorm denotes root-mean-square normalization. The read and write gates are Hℓpre,Hℓpost∈Rr×nH^{\mathrm{pre}}_{\ell}, H^{\mathrm{post}}_{\ell} \in\mathbb{R}^{r \times n}. Let Uℓ∈Rr×cU_{\ell} \in\mathbb{R}^{r \times c} contain the group inputs before branch normalization, and let Oℓ∈Rr×cO_{\ell} \in\mathbb{R}^{r \times c} stack the group outputs. Row ii of OℓO_{\ell} is obtained by applying group ii’s branch, including its input normalization, to row ii of UℓU_{\ell}. With a residual mixing matrix Hℓres∈Rn×nH^{\mathrm{res}}_{\ell} \in\mathbb{R}^{n \times n}, the next residual state Xℓ+1∈Rn×cX_{\ell+1} \in\mathbb{R}^{n \times c} satisfies

Uℓ=HℓpreXℓ,Xℓ+1=HℓresXℓ+(Hℓpost)TOℓ.(21)U_{\ell} = H^{\mathrm{pre}}_{\ell}X_{\ell}, \qquad X_{\ell+1} = H^{\mathrm{res}}_{\ell}X_{\ell} + \left(H^{\mathrm{post}}_{\ell}\right)^{\mathsf{T}}O_{\ell}. \tag*{(21)}

For q∈{pre,post}q \in\{\mathrm{pre},\mathrm{post}\}, let Wℓq∈Rrn×ncW^{q}_{\ell} \in\mathbb{R}^{rn \times nc}, bℓq∈Rrnb^{q}_{\ell} \in\mathbb{R}^{rn}, and αℓq∈R\alpha^{q}_{\ell} \in\mathbb{R} be the predictor weight, bias, and scalar amplitude, respectively. The two predictors have separate parameters. Let γq∈R\gamma_q \in\mathbb{R} be a width exponent to be determined, and let ϕ:R→R\phi:\mathbb{R} \to\mathbb{R} be continuously differentiable and applied elementwise. Define the preactivation tℓq∈Rrnt^{q}_{\ell} \in\mathbb{R}^{rn} by

tℓq=bℓq+αℓqc−γqWℓqzℓ,vec⁡(Hℓq)=ϕ(tℓq).(22)t^{q}_{\ell} = b^{q}_{\ell} + \alpha^{q}_{\ell}c^{-\gamma_q}W^{q}_{\ell}z_{\ell}, \qquad\operatorname{vec}(H^{q}_{\ell}) = \phi(t^{q}_{\ell}). \tag*{(22)}

Let LL be a differentiable scalar loss whose dependence on these predictors is through the computation above. Define Dℓpre=∇UℓL∈Rr×cD^{\mathrm{pre}}_{\ell} = \nabla_{U_{\ell}}L \in\mathbb{R}^{r \times c}, Dℓpost=∇Xℓ+1L∈Rn×cD^{\mathrm{post}}_{\ell} = \nabla_{X_{\ell+1}}L \in\mathbb{R}^{n \times c}, and Gℓq=∇tℓqL∈RrnG^{q}_{\ell} = \nabla_{t^{q}_{\ell}}L \in\mathbb{R}^{rn}. We analyze a single invocation and a plain SGD update of one predictor, holding XℓX_{\ell}, zℓz_{\ell}, and all other parameters fixed. With shared weights across tokens, this is the gradient contribution of one invocation.

Assumption D.1 (Local scales and nondegeneracy). Keep nn and rr fixed as c→∞c \to\infty. Write ∥⋅∥F\lVert\cdot\rVert_F for the Frobenius norm, ∥⋅∥2\lVert\cdot\rVert_2 for the Euclidean norm, and ∥⋅∥∞\lVert\cdot\rVert_\infty for the maximum absolute coordinate. There exist positive constants CA,CD,Cϕ,κ−,κ+,α−,α+C_A,C_D,C_\phi,\kappa_-,\kappa_+,\alpha_-,\alpha_+, and g−g_-, independent of cc, such that, for all sufficiently large cc and both q∈{pre,post}q \in\{\mathrm{pre},\mathrm{post}\},

max⁡{∥Xℓ∥F2,∥Oℓ∥F2}≤CAc,κ−c≤∥zℓ∥22≤κ+c,(23)\max\left\{\lVert X_{\ell}\rVert_F^2,\lVert O_{\ell}\rVert_F^2\right\} \le C_Ac,\qquad\kappa_-c \le\lVert z_{\ell}\rVert_2^2 \le\kappa_+c, \tag*{(23)}
∥Dℓq∥F≤CDc−1/2,∥ϕ′(tℓq)∥∞≤Cϕ,(24)\lVert D^{q}_{\ell}\rVert_F \le C_Dc^{-1/2},\qquad\lVert\phi'(t^{q}_{\ell})\rVert_\infty\le C_\phi, \tag*{(24)}
α−≤∣αℓq∣≤α+,∥Gℓq∥2≥g−.(25)\alpha_- \le\left|\alpha^{q}_{\ell}\right| \le\alpha_+,\qquad\lVert G^{q}_{\ell}\rVert_2 \ge g_-. \tag*{(25)}

The output-energy bound for OℓO_{\ell} is required separately from that for XℓX_{\ell}. The backward bounds and gradient lower bounds are assumptions for each gate; forward normalization alone does not imply them.

The backward scale is motivated by the maximal-update parametrization (μ\muP): Tensor Programs IV studies empirical moments of width-scaled feature gradients (Yang & Hu, 2022, Section 6 and Theorem 7.4 of the extended version), while Tensor Programs V gives the corresponding output-layer scaling [49 Table 3 and Appendix J.2.1]. Under their applicable conditions, at a fixed training step with fixed output dimension and bounded loss derivatives, a coordinate root-mean-square gradient of order Op(c−1)O_p(c^{-1}) yields a Frobenius norm of order Op(c−1/2)O_p(c^{-1/2}) for a fixed number of groups; OpO_p denotes boundedness in probability after rescaling. We impose the deterministic local bound in (24), rather than claim that these works establish it for GHC.

Theorem D.2 (A common width exponent for both gates). Under Assumption D.1, update WℓqW^{q}_{\ell} by plain SGD with a width-independent learning rate ηWq>0\eta^{q}_{W} > 0. Let ΔWℓqtℓq\Delta W^{q}_{\ell}t^{q}_{\ell} denote the resulting preactivation change on the same input. Then, for each q∈{pre,post}q \in\{\mathrm{pre},\mathrm{post}\},

∥ΔWℓqtℓq∥2=Θ(c1−2γq),(26)\left\lVert\Delta W^{q}_{\ell}t^{q}_{\ell}\right\rVert_2 = \Theta(c^{1-2\gamma_q}), \tag*{(26)}

where Θ\Theta denotes positive upper and lower bounds independent of width after rescaling. Consequently, both preactivation updates remain bounded and bounded away from zero if and only if γpre=γpost=1/2\gamma_{\mathrm{pre}}=\gamma_{\mathrm{post}}=1/2. Thus both predictors use the factor 1/c1/\sqrt{c} under this criterion.

Proof. The matrix chain rule applied to (21) gives

∇HℓpreL=DℓpreXℓT,∇HℓpostL=Oℓ(Dℓpost)T.\nabla_{H^{\mathrm{pre}}_{\ell}}L = D^{\mathrm{pre}}_{\ell}X_{\ell}^{\mathsf{T}}, \qquad\nabla_{H^{\mathrm{post}}_{\ell}}L = O_{\ell}\left(D^{\mathrm{post}}_{\ell}\right)^{\mathsf{T}}.

Here DℓpreD^{\mathrm{pre}}_{\ell} includes backpropagation through the grouped branches and the write operation. For either gate, the Frobenius product bound implies

∥∇HℓqL∥F≤(CDc−1/2)(CAc1/2)=CDCA.\left\lVert\nabla_{H^{q}_{\ell}}L\right\rVert_F \le\left(C_Dc^{-1/2}\right)\left(\sqrt{C_A}c^{1/2}\right) = C_D\sqrt{C_A}.

Let ⊙\odot denote elementwise multiplication. Since vectorization preserves the Frobenius norm, (22) and the chain rule yield

Gℓq=ϕ′(tℓq)⊙vec⁡(∇HℓqL),G^{q}_{\ell} = \phi'(t^{q}_{\ell}) \odot\operatorname{vec}\left(\nabla_{H^{q}_{\ell}}L\right),
g−≤∥Gℓq∥2≤∥ϕ′(tℓq)∥∞∥∇HℓqL∥F≤CϕCDCA.(27)g_- \le\lVert G^{q}_{\ell}\rVert_2 \le\left\lVert\phi'(t^{q}_{\ell})\right\rVert_\infty\left\lVert\nabla_{H^{q}_{\ell}}L\right\rVert_F \le C_\phi C_D\sqrt{C_A}. \tag*{(27)}

Fix either qq. Differentiating the affine predictor in (22) gives the outer-product gradient

∇WℓqL=αℓqc−γqGℓqzℓ⊤.\nabla_{W_\ell^q} L = \alpha_\ell^q c^{-\gamma_q}G_\ell^q z_\ell^\top.

Substituting the SGD weight change ΔWℓq=−ηWq∇WℓqL\Delta W_\ell^q=-\eta_W^q\nabla_{W_\ell^q}L gives

ΔWℓqtℓq=αℓqc−γqΔWℓqzℓ=−ηWq(αℓq)2c−2γqGℓqzℓ⊤zℓ=−ηWq(αℓq)2c−2γq∥zℓ∥22Gℓq.(28)\begin{aligned} \Delta W_\ell^q t_\ell^q &=\alpha_\ell^q c^{-\gamma_q}\Delta W_\ell^q z_\ell\\ &=-\eta_W^q(\alpha_\ell^q)^2c^{-2\gamma_q}G_\ell^q z_\ell^\top z_\ell\\ &=-\eta_W^q(\alpha_\ell^q)^2c^{-2\gamma_q}\lVert z_\ell\rVert_2^2G_\ell^q. \tag*{(28)} \end{aligned}

This identity is exact for a finite step because the preactivation is affine in the updated weight when all other quantities are fixed. Taking norms and applying the assumed bounds yields

ηWqαℓ2κ−g−c1−2γq≤∥ΔWℓqtℓ∥2≤ηWqαℓ2κ+CϕCDCAc1−2γq.\eta_W^q\alpha_\ell^2\kappa_{-}g_{-}c^{1-2\gamma_q}\leq\lVert\Delta W_\ell^q t_\ell\rVert_2\leq\eta_W^q\alpha_\ell^2\kappa_{+}C_\phi C_D\sqrt{C_A}c^{1-2\gamma_q}.

Both coefficients are positive and independent of cc, proving (26). The update vanishes for γq>1/2\gamma_q>1/2, diverges in norm for γq<1/2\gamma_q<1/2, and remains Θ(1)\Theta(1) precisely when γq=1/2\gamma_q=1/2. This applies separately to both gates.

Each mixing coefficient is shared across the cc hidden channels, so its gradient is an inner product over those channels. At γq=1/2\gamma_q=1/2, the weight gradient is proportional to αℓq\alpha_\ell^q, whereas the scale gradient is

∂L∂αℓq=1c⟨Gℓq,Wℓqzℓ⟩.\frac{\partial L}{\partial\alpha_\ell^q}=\frac{1}{\sqrt{c}}\langle G_\ell^q,W_\ell^qz_\ell\rangle.

Thus a small initial αℓq\alpha_\ell^q directly attenuates the gradient to WℓqW_\ell^q, while the gradient to αℓq\alpha_\ell^q has no such explicit factor. Moreover, replacing the shared scalar αℓq\alpha_\ell^q with entry-wise scales sℓq∈Rr×ns_\ell^q\in\mathbb{R}^{r\times n} as in Eq. (11) (flattened as s~ℓq=vec⁡(sℓq)∈Rrn\widetilde{s}_\ell^q=\operatorname{vec}(s_\ell^q)\in\mathbb{R}^{rn}) substitutes diag⁡(s~ℓq)2\operatorname{diag}(\widetilde{s}_\ell^q)^2 for (αℓq)2(\alpha_\ell^q)^2 in (27) and decouples the scale gradient across entries: ∇s~ℓqL=c−γqGℓq⊙(Wℓqzℓ)\nabla_{\widetilde{s}_\ell^q}L=c^{-\gamma_q}G_\ell^q\odot(W_\ell^qz_\ell). Whenever every coordinate of s~ℓq\widetilde{s}_\ell^q satisfies the uniform bounds in (25), the sandwich bound above holds unchanged and yields the identical exponent γq=1/2\gamma_q=1/2, while avoiding cross-entry gradient accumulation onto a single scalar.

The result concerns local preactivation updates in the stated parameter coordinates under fixed SGD learning rates. Nondegeneracy must hold for each gate; the fixed first-layer read gate is excluded. It does not establish nonvanishing feature changes after branch normalization or long-term stability of the full network.

Gate Activations and Their Gradients

Figure 6 compares the activation curves and derivatives of sigmoid, tanh, and TanhSiLU, illustrating their gradient behavior near zero. For a sigmoid gate a=σ(t)a=\sigma(t), driving aa toward zero requires t=log⁡(a/(1−a))→−∞t=\log(a/(1-a))\to-\infty, where the derivative σ′(t)=a(1−a)\sigma'(t)=a(1-a) vanishes. Suppressing a stream therefore pushes the predictor into saturation, attenuating gradients to the preactivation precisely when the stream is muted.

Figure 6. Comparison of TanhSiLU, sigmoid and tanh gate activations (top) and their derivatives with respect to the preactivation tt (bottom), plotted on shared axes within each row. Filled circles mark values and slopes at the origin (t=0t = 0), and open circles align the TanhSiLU minimum (t≈−1.28t \approx-1.28) with its zero derivative.

For ϕ(t)=TanhSiLU⁡(t)\phi(t)=\operatorname{TanhSiLU}(t) in Eq. (9), the chain rule gives

ϕ′(t)=(1−ϕ(t)2)σ(t)[1+t(1−σ(t))].(29)\phi'(t)=(1-\phi(t)^2)\sigma(t)[1+t(1-\sigma(t))]. \tag*{(29)}

Because ϕ(0)=0\phi(0)=0 with ϕ′(0)=1/2\phi'(0)=1/2, a group can set a read or write weight to zero at the origin while retaining responsive first-order gradients in both positive and negative directions. Note that this non-vanishing sensitivity is local to the zero crossing at t=0t=0; along the far negative tail (t→−∞)(t\to-\infty), ϕ(t)\phi(t) also approaches zero with vanishing derivative.

While tanh shares a finite zero crossing at the origin (with tanh⁡(0)=0\tanh(0)=0 and tanh⁡′(0)=1\tanh'(0)=1), it treats positive and negative weights symmetrically over (−1,1)(-1,1). In contrast, TanhSiLU is asymmetric: it attains a bounded minimum of approximately −0.27-0.27 at t≈−1.28t\approx-1.28 while approaching 11 as t→+∞t\to+\infty, supporting full-strength additive aggregation alongside bounded subtractive corrections.

Ablation Studies on Mixture-of-Experts

To validate our MoE adaptation in § 4.3, we evaluate six multi-stream configurations alongside the single-stream Pre-Norm reference on the 4B MoE model (12 attention layers, 2 early dense FFN layers, and 10 MoE layers with E=256E = 256 routed experts and k=8k = 8 active experts per token). Starting from IHC, these variants progressively test naive expert partitioning against global top-kk routing, and disentangle wider router inputs from expert-specific residual interfaces:

IHC: Applies shared dynamic interfaces (n=4n = 4, r=1r = 1) to all branches, with global top-8 routing (c→256c \to256) over the MoE read mixture.

IHC + Group MoE: Splits the 256 experts into 8 disjoint subsets of 32 with independent top-1 routers (8 × top-1/32), while keeping shared r=1r = 1 IHC interfaces.

GHC + Group MoE: Extends dense GHC (r=8r = 8) directly to MoE by pairing each of the 8 dynamic read/write groups with its own disjoint top-1/32 expert subset.

GHC (MoE r=1r = 1): Applies GHC (r=8r = 8) to attention and dense FFN branches, while keeping MoE layers at r=1r = 1 with global top-8 routing (c→256c \to256) and shared dynamic mixing.

GHC (MoE r=1r = 1) + 4cc Router: Expands the global router of GHC (MoE r=1r = 1) to condition on all concatenated streams (4c→2564c \to256), matching the router parameter count of full GHC while keeping shared r=1r = 1 expert interfaces.

GHC (ours): Pairs the stream-concatenated global router (4c→2564c \to256) with 2n2n static learnable parameters per expert (passed through TanhSiLU) for expert-specific stream reading and writing.

Table 7 reports the validation losses across these configurations. Comparing the controlled pairs along the rows of Table 7 yields two main observations.

MethodAttn & DenseMoE RoutingMoE Read / WriteAvg. Loss ↓\downarrowΔIHC\Delta_{\mathrm{IHC}}
Pre-NormPre-NormGlobal top-8 (c→256c \to256)Single stream1.9260+0.0194
IHCIHC (r=1r = 1)Global top-8 (c→256c \to256)Shared dynamic (r=1r = 1)1.90660.0000
IHC + Group MoEIHC (r=1r = 1)Grouped 8 ×\times top-1/32Shared dynamic (r=1r = 1)1.9179+0.0113
GHC + Group MoEGHC (r=8r = 8)Grouped 8 ×\times top-1/32Group dynamic (r=8r = 8)1.9023−0.0043-0.0043
GHC (MoE r=1r = 1)GHC (r=8r = 8)Global top-8 (c→256c \to256)Shared dynamic (r=1r = 1)1.8945−0.0121-0.0121
GHC (MoE r=1r = 1) + 4cc RouterGHC (r=8r = 8)Global top-8 (4c→2564c \to256)Shared dynamic (r=1r = 1)1.8960−0.0106-0.0106
GHC (ours)GHC (r=8r = 8)Global top-8 (4c→2564c \to256)Per-expert static1.8862−0.0204-0.0204

Table 7. Ablation of MoE routing and residual interface designs on the 4B MoE model (n=4n = 4, 65B tokens). ΔIHC\Delta_{\mathrm{IHC}} denotes validation loss change relative to the global-routing IHC baseline.

Splitting non-separable top-kk routing degrades MoE quality. Unlike per-head attention and elementwise FFN activations, top-kk expert selection operates globally across all experts. Forcibly partitioning the 256 experts into 8 × top-1/32 sub-routers alters this nonlinear competition structure whenever multiple relevant experts fall within the same subset, degrading IHC loss by 0.0113 (1.9066 → 1.9179). Although equipping the partitioned groups with r=8r = 8 dynamic interfaces (GHC + Group MoE) recovers 0.0156 over IHC + Group MoE (1.9179 →\to 1.9023), this structural routing penalty caps its net gain over standard IHC at 0.0043.

Preserving model properties while partitioning only linear interfaces drives the gains. GHC achieves strong gains precisely when non-separable branch nonlinearities are preserved and only linear pathways are decoupled. Simply retaining intact global top-8 routing while partitioning the linear projections of attention and dense FFNs (GHC, MoE r=1r = 1) already surpasses GHC + Group MoE by 0.0078 and lowers loss by 0.0121 over IHC (1.9066 →\to 1.8945). Within the MoE layers, preserving global top-8 competition while decoupling each expert’s linear stream read and write combinations (GHC) delivers a further 0.0083 reduction to 1.8862 (−0.0204-0.0204 over IHC). By contrast, widening the linear router input alone while keeping shared r=1r = 1 expert interfaces (GHC, MoE r=1r = 1 with 4cc Router, 1.8960) yields no gain, confirming that decoupling linear expert interfaces while preserving standard routing semantics is essential.

Finally, our use of static rather than dynamic expert weights reflects communication constraints under expert parallelism (EP): keeping cross-device expert transmission bounded requires performing stream linear combinations locally, whereas storing dynamic gate predictors for all E=256E = 256 experts locally on every EP rank would incur substantial O(En2c)\mathcal{O}(En^{2}c) parameter and memory-access overhead. We therefore leave token-dependent expert gating for future exploration.

Evaluation Details

Table 8 summarizes the sample counts, few-shot settings, and evaluation metrics across all benchmarks.

BenchmarkExamplesShotsMetric
LAMBADA5,1530Final-word Perplexity
PIQA1,8380Length-norm. Accuracy
HellaSwag10,0420Length-norm. Accuracy
TriviaQA17,9445Normalized Exact Match
MATH5,0004Mathematical Equivalence
GSM8K1,3198Flexible Exact Match
HumanEval1640pass@1

Table 8. Evaluation benchmarks and metrics.

Complete Gate Visualizations Across All Sublayers

Complementing the representative sublayers in § 7.1 (Figure 3), Figure 7 and Figure 8 present the token-averaged read maps HpreH^{\mathrm{pre}} and write maps HpostH^{\mathrm{post}} across all 24 layers (48 attention and FFN sublayers in total) of the trained 430M dense GHC model (n=4n = 4, r=8r = 8, TanhSiLU), covering Layers 0 to 11 and Layers 12 to 23, respectively. Consistent with Figure 3, each row aa of HpreH^{\mathrm{pre}} is normalized to unit ℓ2\ell_{2} norm (∑bab2=1\sum_b a_b^2 = 1) prior to averaging over validation tokens to factor out positive row-scale invariance under group-wise RMSNorm, whereas HpostH^{\mathrm{post}} is plotted at its raw scale. Note that the first attention read map (Layer 0 Attn HpreH^{\mathrm{pre}}) remains fixed at its initial cyclic pattern during training as described in § 4.4.

Figure 7. Figure 7. Token-averaged read gates HpreH^{\mathrm{pre}} (row-wise ℓ2\ell_{2}-normalized) and write gates HpostH^{\mathrm{post}} across Layers 0 to 11 (24 alternating Attention and FFN sublayers) of the 430M GHC model (n=4n = 4, r=8r = 8, TanhSiLU). Each 8×48 \times4 heatmap plots the 8 computation groups (rows) against the 4 residual streams (columns), with red, white, and blue denoting positive, near-zero, and negative values, respectively.

Figure 8. Token-averaged read gates HpreH^{\mathrm{pre}} (row-wise ℓ2\ell_2-normalized) and write gates HpostH^{\mathrm{post}} across Layers 12 to 23 (24 alternating Attention and FFN sublayers) of the 430M GHC model (n=4n = 4, r=8r = 8, TanhSiLU). Each 8 × 4 heatmap plots the 8 computation groups (rows) against the 4 residual streams (columns), with red, white, and blue denoting positive, near-zero, and negative values, respectively.

Kernel Fusion and Distributed Scaling Benchmarks

To quantify the inference overhead discussed in § 4.5, we first benchmark custom Triton/CUDA kernels against eager PyTorch on the 430M models (L=24L = 24, c=1024c = 1024, FFN width 4096), comparing Pre-Norm, IHC (n=4n = 4, r=1r = 1), and GHC (n=4n = 4, r=8r = 8). Input kernels fuse stream mixing, RMS statistics, projections, and FFN SiTU-GLU; output kernels fuse projection, stream mixing, and residual write-back. All single-GPU end-to-end runs share the same KV-cache policy (18 sliding-window layers of size 512 and six full-attention layers) in BF16 on one H800 GPU, evaluating a 7,680-token prefill and 127 cached decode steps across B∈{2,8,32,128}B \in\{2, 8, 32, 128\}. As shown in Table 9, kernel fusion accelerates GHC generation by 2.52× to 2.78× and reduces B=32B = 32 peak memory from 40.83 to 17.79 GiB (56.4%).

Batch SizeMethodPrefill (ms) — PyTorchPrefill (ms) — FusedDecode (ms) — PyTorchDecode (ms) — FusedTotal (ms) — PyTorchTotal (ms) — FusedSpeedupPeak Mem (GiB) — PyTorchPeak Mem (GiB) — Fused
2Pre-Norm129.2363.301,974.571,065.922,103.741,129.171.86×2.493.30
2IHC249.7670.203,101.251,386.763,350.791,456.962.30×2.673.40
2GHC387.2583.953,298.651,376.933,686.041,460.972.52×4.604.02
8Pre-Norm476.61230.931,973.651,064.262,450.601,295.011.89×5.865.82
8IHC947.04266.373,081.101,423.124,027.711,688.822.38×6.576.09
8GHC1,485.84318.753,237.241,382.244,723.841,701.142.78×11.846.73
32Pre-Norm1,868.65932.572,795.532,187.084,664.183,119.831.50×19.3616.10
32IHC3,734.081,052.383,342.702,254.237,076.633,307.412.14×22.1817.14
32GHC5,944.081,254.733,387.962,294.429,332.553,549.192.63×40.8317.79
128Pre-NormOOM3,753.08OOM7,778.92OOM11,532.06––57.21
128IHCOOM4,245.15OOM7,983.59OOM12,235.22––61.31
128GHCOOM5,035.02OOM8,071.63OOM13,112.59––62.04

Table 9. Single-GPU end-to-end inference latency and peak allocated memory on the 430M models (7,680-token prefill and 127 decode steps on one H800). Speedup is the ratio of total wall-time medians.

Single-GPU end-to-end latency and memory. At B=8B = 8, fused GHC incurs +19.7% prefill overhead over IHC with comparable decode latency, yielding nearly identical total generation time (+0.7% over IHC and +31.4% over Pre-Norm). At B=32B = 32, fused GHC increases peak memory by only 3.8% over IHC and 10.5% over Pre-Norm, whereas at B=128B = 128 eager PyTorch runs out of memory across all three architectures.

Single-GPU prefill optimization and width scaling. Because prefill accounts for most of the remaining single-GPU overhead, we further optimized the Hopper prefill kernels with single-pass stream mixing and weight-folded RMSNorm, native grouped projection layouts, persistent epilogue write-back where register budgets permit, and CUDA Graph execution, cutting 24-layer projection and interface time on the 430M model (B=32B = 32) by 16.9% (731.30 → 607.99 ms). Table 10 compares all projection and stream-interface stages between 430M (c=1024c = 1024) and a Large 24-layer configuration (c=4096c = 4096, FFN width 16,384) at comparable total hidden volume TcT_c. As width grows from c=1024c = 1024 to c=4096c = 4096, projection-stage overhead over Pre-Norm drops sharply from +58.2% to +11.9% for GHC and from +25.0% to +5.9% for IHC. This rapid amortization follows directly from arithmetic intensity: dense projections scale quadratically as O(Tc2)O(Tc^2), whereas stream mixing, controller gating, and residual traffic scale linearly as O(Tc)O(Tc). On a single GPU, the remaining gap stems from two practical hardware limits: materializing grouped input mixtures in HBM (since fusing mixing into the GEMM prologue reloads the residual across output tiles, while deferring it multiplies prefill FLOPs by n=4n = 4), and register pressure on wide output reductions alongside 8-way GEMM dimension splitting.

Projection / Interface Stage430M (c=1024c = 1024, T=245,760T = 245{,}760) — Pre-Norm430M (c=1024c = 1024, T=245,760T = 245{,}760) — IHC430M (c=1024c = 1024, T=245,760T = 245{,}760) — GHCLarge (c=4096c = 4096, T=65,536T = 65{,}536) — Pre-NormLarge (c=4096c = 4096, T=65,536T = 65{,}536) — IHCLarge (c=4096c = 4096, T=65,536T = 65{,}536) — GHC
HC controller (2×/layer)0.0031.4932.400.0033.3134.06
Attn input (mix + RMSNorm + QKVG proj.)73.4684.07121.82317.86307.51341.14
Attn output (out proj. + write-back)28.2748.6568.6283.5498.64159.38
FFN input (mix + RMSNorm + up/gate proj. + SiTU)206.50221.04240.55712.01725.74686.62
FFN output (down proj. + write-back)76.0695.16144.60305.78337.03366.24
Projection & interface total (ms)384.29480.41607.991,419.191,502.231,587.44
Overhead vs. Pre-Norm–+25.0%+58.2%–+5.9%+11.9%

Table 10. Single-GPU optimized 24-layer projection and residual-interface prefill latency (ms) on one H800 across model scales: 430M (c=1024c = 1024, FFN width 4096, B=32B = 32, S=7,680S = 7{,}680, T=245,760T = 245{,}760) and Large (c=4096c = 4096, FFN width 16,384, B=8B = 8, S=8,192S = 8{,}192, T=65,536T = 65{,}536). All results incorporate further prefill-specific optimizations. Attention-internal operations (QKV norm, RoPE, SDPA, and output gating) are omitted to isolate projection and stream-interface scaling.

Multi-GPU distributed execution (TP+SP alignment). When scaling the Large dense model to 8 GPUs under Tensor Parallelism combined with Sequence Parallelism (TP = P=8P = 8 with SP), GHC’s r=8r = 8 grouped structure aligns one-to-one with tensor sharding, closing almost all of the remaining efficiency gap. Table 11 reports end-to-end 24-layer prefill measurements (including full SDPA) on an 8× H800 node with two-microbatch compute-communication overlap. Under standard TP=8 + SP, GHC reduces overhead over Pre-Norm to just +3.0% to +3.2%, matching or slightly outperforming IHC across both sequence lengths. This convergence follows from three complementary mechanisms:

ParallelismWorkloadPre-NormIHC (n=4n = 4, r=1r = 1)GHC (n=4n = 4, r=8r = 8)
TP=8 + SP (Attn & FFN)B=8B = 8, S=8,192S = 8{,}192391.8404.1 (+3.1%)403.5 (+3.0%)
B=2B = 2, S=32,768S = 32{,}768423.3437.6 (+3.4%)436.9 (+3.2%)
TP=8 + SP (Attn), Replicated FFNB=8B = 8, S=8,192S = 8{,}192292.4306.9 (+5.0%)314.6 (+7.6%)
B=2B = 2, S=32,768S = 32{,}768325.4340.4 (+4.6%)347.5 (+6.8%)

Table 11. 8-GPU distributed 24-layer full-forward prefill latency (ms, including SDPA, RoPE, and attention gating) for the Large dense model (c=4096c = 4096, FFN width 16,384) on an 8× H800 node (NVLink 4) with two-microbatch compute-communication overlap. Percentages denote overhead relative to Pre-Norm.

  1. Identical communication volume at P=rP = r. Under SP, each rank stores Tloc=T/PT_{\mathrm{loc}} = T/P tokens of the nn-stream residual, computes its rr local input mixtures, and dispatches group gg to rank gg via AllToAll (and symmetrically returns group outputs via AllToAll). When P=rP = r, each rank sends P−1PTc\frac{P-1}{P}Tc elements per collective, matching the exact 1.00× per-rank byte volume of Pre-Norm and IHC’s AllGather and ReduceScatter.

  1. Zero-SM Copy Engine DMA and elimination of GEMM splitting. Because each rank now owns exactly one branch, every GPU executes a single monolithic GEMM of the exact same shape as Pre-Norm and IHC, removing the single-GPU grouped-GEMM utilization penalty. Moreover, unlike ReduceScatter, which requires arithmetic reduction and SM involvement in standard collectives, GHC’s bidirectional AllToAll consists purely of peer-to-peer data movement and offloads entirely to hardware Copy Engine DMA with zero SM occupancy. On 24 layers (T=65,536T = 65{,}536), bare zero-SM AllToAll runs slightly faster than AllGather plus ReduceScatter (133.25 vs. 138.65 ms) while leaving 100% of SMs free for overlapped compute and stream mixing.

  1. Critical-path overlap and boundary behavior. Under two-microbatch pipelining, each rank’s 1/P1/P-scaled residual memory traffic is largely overlapped with the communication window, exposing only +11.7 ms (+3.0%) end-to-end. Removing FFN communication via replicated-weight pure SP confirms this boundary: without the FFN communication window, local stream traffic is directly exposed, raising GHC overhead to +6.8% to +7.6% (with IHC at +4.6% to +5.0%).

Overall, these results demonstrate that GHC’s single-GPU staging overhead diminishes rapidly with model width and becomes minimal in realistic multi-GPU deployments where grouped branches map naturally onto tensor-parallel ranks, while further co-design between residual architectures and systems infrastructure can close the remaining single-device gap.

References

  1. [1]Amsel, N., Persson, D., Musco, C., and Gower, R. M. The polar express: Optimal matrix sign methods and their application to the muon algorithm, 2026. URL https://arxiv.org/abs/2505.16932.
  2. [2]Bhagia, A., Liu, J., Wettig, A., Heineman, D., Tajford, O., Jha, A. H., Soldaini, L., Smith, N. A., Groeneveld, D., Koh, P. W., Dodge, J., and Hajishirzi, H. Establishing task scaling laws via compute-efficient model ladders. In Second Conference on Language Modeling, 2025. URL https://arxiv.org/abs/2412.04403.
  3. [3]Bisk, Y., Zellers, R., Gao, J., Choi, Y., et al. Piq: Reasoning about physical commonsense in natural language. In Proceedings of the AAAI conference on artificial intelligence, volume 34, pp. 7432–7439, 2020.arxiv.org/abs/1911.11641
  4. [4]Chen, M., Tworek, J., Jun, H., Yuan, Q., et al. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374, 2021. doi: 10.48550/arXiv.2107.03374.arxiv.org/abs/2107.03374
  5. [5]Cobbe, K., Kosaraju, V., Bavarian, M., Chen, M., Jun, H., Kaiser, L., Plappert, M., Tworek, J., Hilton, J., Nakano, R., Hesse, C., and Schulman, J. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021. doi: 10.48550/arXiv.2110.14168.DOI
  6. [6]Dai, D., Deng, C., Zhao, C., Xu, R. X., Gao, H., Chen, D., Li, J., Zeng, W., Yu, X., Wu, Y., Xie, Z., Li, Y. K., Huang, P., Luo, F., Ruan, C., Sui, Z., and Liang, W. Deepseekmoe: Towards ultimate expert specialization in mixture-of-experts language models, 2024. URL https://arxiv.org/abs/2401.06066.
  7. [7]DeepSeek-AI. Deepseek-v4.1-flash: Pushing the limits of kv cache compression, 2026. URL https://arxiv.org/abs/2609.19969.
  8. [8]Guo, H., Chen, X., Ke, B., Lei, Y., Xu, Z., Feng, S., Ximen, and Luo, W. ohc: Orthogonal hyper-connections on so(4) via quaternions, 2026. URL https://arxiv.org/abs/2609.02672.
  9. [9]Han, D., Pu, Y., Xia, Z., Han, Y., Pan, X., Li, X., Lu, J., Song, S., and Huang, G. Bridging the divide: Reconsidering softmax and linear attention. In NeurIPS, 2024.arxiv.org/abs/2412.06590
  10. [10]Han, D., Ye, T., Xia, Z., Chen, K., Wang, Y., Chen, H., and Huang, G. Step by step network, 2025. URL https://arxiv.org/abs/2511.14329.
  11. [11]Han, J., Chai, Y., Zhu, T., Zhang, H., Fang, W., Wang, J., Li, G., and Cheng, Y. M3former: Fine-grained cross-layer mixing for transformers, 2026. URL https://arxiv.org/abs/2611.02436.
  12. [13]Hendrycks, D., Burns, C., Kadavath, S., Arora, A., Basart, S., Tang, E., Song, D., and Steinhardt, J. Measuring mathematical problem solving with the math dataset, 2021. URL https://arxiv.org/abs/2103.03874.
  13. [14]Hoffmann, J., Borgeaud, S., Mensch, A., Buchatskaya, E., Cai, T., Rutherford, E., Casas, D. d. L., Hendricks, L. A., Welbl, J., Clark, A., et al. Training compute-optimal large language models. arXiv preprint arXiv:2203.15556, 2022.arxiv.org/abs/2203.15556
  14. [16]Huang, G., Liu, Z., Van Der Maaten, L., and Weinberger, K. Q. Densely connected convolutional networks. In CVPR, 2017.arxiv.org/abs/1608.06993
  15. [17]Huang, G., Liu, S., van der Maaten, L., and Weinberger, K. Q. Condensenet: An efficient densenet using learned group convolutions, 2018. URL https://arxiv.org/abs/1711.09224.
  16. [18]Joshi, M., Choi, E., Weld, D., and Zettlemoyer, L. TriviaQA: A large scale distantly supervised challenge dataset for reading comprehension. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 1601–1611. Association for Computational Linguistics, 2017. doi: 10.18653/v1/P17-1147.
  17. [22]Liu, A., Feng, B., Xue, B., Wang, B., Wu, B., Lu, C., Zhao, C., Deng, C., Zhang, C., Ruan, C., et al. Deepseek-v3 technical report. arXiv preprint arXiv:2412.19437, 2024.arxiv.org/abs/2412.19437
  18. [23]Liu, J., Su, J., Yao, X., Jiang, Z., Lai, G., Du, Y., Qin, Y., Xu, W., Lu, E., Yan, J., Chen, Y., Zheng, H., Liu, Y., Liu, S., Yin, B., He, W., Zhu, H., Wang, Y., Wang, J., Dong, M., Zhang, Z., Kang, Y., Zhang, H., Xu, X., Zhang, Y., Wu, Y., Zhou, X., and Yang, Z. Muon is scalable for llm training, 2025. URL https://arxiv.org/abs/2502.16982.
  19. [24]Loshchilov, I. and Hutter, F. Decoupled weight decay regularization, 2019. URL https://arxiv.org/abs/1711.05101.
  20. [25]Luo, C., Cai, Z., and Hu, J. Multi-head attention residuals, 2026. URL https://arxiv.org/abs/2607.27230.
  21. [26]Mak, B. and Flanigan, J. Residual matrix transformers: Scaling the size of the residual stream, 2025. URL https://arxiv.org/abs/2506.22696.
  22. [27]Misra, I., Shrivastava, A., Gupta, A., and Hebert, M. Cross-stitch networks for multi-task learning. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 3994–4003, 2016.arxiv.org/abs/1604.03539
  23. [28]Pagliardini, M., Mohtashami, A., Fleuret, F., and Jaggi, M. Denseformer: Enhancing information flow in transformers via depth weighted averaging. Advances in neural information processing systems, 37:136479–136508, 2024.arxiv.org/abs/2402.02622
  24. [29]Paperno, D., Kruszewski, G., Lazaridou, A., Pham, N. Q., Bernardi, R., Pezzelle, S., Baroni, M., Boleda, G., and Fernández, R. The LAMBADA dataset: Word prediction requiring a broad discourse context. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 1525–1534, 2016. doi: 10.18653/v1/P16-1144.DOI
  25. [30]Peters, M. E., Neumann, M., Iyyer, M., Gardner, M., Clark, C., Lee, K., and Zettlemoyer, L. Deep contextualized word representations, 2018. URL https://arxiv.org/abs/1802.05365.
  26. [31]Qin, X., Zhang, X., Dai, T., Zou, S., Wu, H., Yang, Y., Xia, Z., Yao, L., Liu, Y., and Yan, J. Multi-stream attention residuals, 2026. URL https://arxiv.org/abs/2610.13630.
  27. [32]Qiu, Z., Wang, Z., Zheng, B., Huang, Z., Wen, K., Yang, S., Men, R., Yu, L., Huang, F., Huang, S., et al. Gated attention for large language models: Non-linearity, sparsity, and attention-sink-free. arXiv preprint arXiv:2505.06708, 2025.arxiv.org/abs/2505.06708
  28. [33]Qiu, Z., Huang, Z., Wen, K., Jin, P., Zheng, B., Zhou, Y., Huang, H., Wang, Z., Li, X., Zhang, H., Xu, Y., Lian, H., Zhang, S., Men, R., Zhang, J., Titov, I., Liu, D., Zhou, J., and Lin, J. A unified view of attention and residual sinks: Outlier-driven rescaling is essential for transformer training, 2026a. URL https://arxiv.org/abs/2601.22966.
  29. [34]Qiu, Z., Wang, Z., Li, X., Li, Y., Xu, Y., Wang, Y., Zhang, H., Men, R., Mao, B., Zhang, C., et al. On the design of qwen3. 8-next architecture: Evaluation, efficiency, and training stability. arXiv preprint arXiv:2608.30320, 2026b.arxiv.org/abs/2608.30320
  30. [35]Schlag, I., Irie, K., and Schmidhuber, J. Linear transformers are secretly fast weight programmers. In International conference on machine learning, pp. 9355–9366. PMLR, 2021.arxiv.org/abs/2102.11174
  31. [36]Shoeybi, M., Patwary, M., Puri, R., LeGresley, P., Casper, J., and Catanzaro, B. Megatron-lm: Training multi-billion parameter language models using model parallelism, 2020. URL https://arxiv.org/abs/1909.08053.
  32. [37]Srivastava, R. K., Greff, K., and Schmidhuber, J. Highway networks. arXiv preprint arXiv:1505.00387, 2015.arxiv.org/abs/1505.00387
  33. [39]Team, K. Attention residuals, 2026a. URL https://arxiv.org/abs/2603.15031.
  34. [40]Team, K. Kimi k3: Open frontier intelligence, 2026b. URL https://arxiv.org/abs/2607.24653.
  35. [43]Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, Ł., and Polosukhin, I. Attention is all you need. In NeurIPS, 2017.arxiv.org/abs/1706.03762
  36. [44]Wang, Q., Li, B., Xiao, T., Zhu, J., Li, C., Wong, D. F., and Chao, L. S. Learning deep transformer models for machine translation. In Proceedings of the 57th annual meeting of the association for computational linguistics, pp. 1810–1822, 2019.arxiv.org/abs/1906.01787
  37. [45]Xiao, D., Meng, Q., Li, S., and Yuan, X. Mudformer: Breaking residual bottlenecks in transformers via multiway dynamic dense connections. arXiv preprint arXiv:2502.12170, 2025.arxiv.org/abs/2502.12170
  38. [46]Xie, S., Girshick, R., Dollár, P., Tu, Z., and He, K. Aggregated residual transformations for deep neural networks. In 2017 IEEE conference on computer vision and pattern recognition (CVPR), pp. 5987–5995. IEEE, 2017.arxiv.org/abs/1611.05431
  39. [47]Xie, Z., Wei, Y., Cao, H., Zhao, C., Deng, C., Li, J., Dai, D., Gao, H., Chang, J., Zhao, L., et al. Manifold-constrained hyper-connections. arXiv preprint arXiv:2512.24880, 2025.arxiv.org/abs/2512.24880
  40. [49]Yang, G., Hu, E. J., Babuschkin, I., Sidor, S., Liu, X., Farhi, D., Ryder, N., Pachocki, J., Chen, W., and Gao, J. Tensor programs v: Tuning large neural networks via zero-shot hyperparameter transfer, 2022. URL https://arxiv.org/abs/2203.03466.
  41. [50]Yang, S., Kautz, J., and Hatamizadeh, A. Gated delta networks: Improving mamba2 with delta rule. In International Conference on Learning Representations, volume 2025, pp. 29687–29707, 2025.arxiv.org/abs/2412.06464
  42. [52]Zellers, R., Holtzman, A., Bisk, Y., Farhadi, A., and Choi, Y. Hellaswag: Can a machine really finish your sentence? In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 4791–4800, 2019.arxiv.org/abs/1905.07830
  43. [53]Zhang, X., Qin, X., Zou, S., Dai, T., Shi, B., Xia, Z., Yang, Y., Chen, Y., Liu, Y., Cheng, Y., and Yan, J. On the design of hyper-connections: Simplification, stability, and scalability, 2026a. URL https://arxiv.org/abs/2611.05984.
  44. [54]Zhang, X., Qin, X., Zou, S., Dai, T., Shi, X., Wu, H., Yang, Y., Xia, Z., Zhang, S., Yao, L., Liu, Y., Cheng, Y., and Yan, J. xhc: Expanded hyper-connections, 2026b. URL https://arxiv.org/abs/2607.14530.
  45. [55]Zhu, D., Huang, H., Huang, Z., Zeng, Y., Mao, Y., Wu, B., Min, Q., and Zhou, X. Hyper-connections. In The Thirteenth International Conference on Learning Representations, 2025a.arxiv.org/abs/2409.19606
  46. [56]Zhu, D., Huang, H., Zhou, J., Huang, Z., Zeng, Y., Wu, B., Min, Q., and Zhou, X. Frac-connections: Fractional extension of hyper-connections. arXiv preprint arXiv:2503.14125, 2025b.arxiv.org/abs/2503.14125

Paper details

vlnc:W_v55quum2
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents