Hugging Face Papers ↗ · 2026-11-20
cmHC: Balancing Stream Mixing in Hyper-Connections via Geometric Contraction
Media reports Hugging Face Papers Source language: Chinese
Introduces c{c}mHC, a geometric contraction method that improves stream mixing in hyper-connections, cutting latency up to 44.8% on large models.
Full text
c{c}mHC: Balancing Stream Mixing in Hyper-Connections via Geometric Contraction
Haowei He Affiliation: Xingchen AGI Lab, China Telecom Ziwen Zhao Affiliation: The Hong Kong University of Science and Technology (Guangzhou) Chenshuo Pan Affiliation: Xingchen AGI Lab, China Telecom Gang Lin Affiliation: Harbin Institute of Technology (Shenzhen) Zhihao Yang Affiliation: Xingchen AGI Lab, China Telecom Chao Wang Affiliation: Xingchen AGI Lab, China Telecom Xinzhang Liu Affiliation: Xingchen AGI Lab, China Telecom Kaidong Yu Affiliation: Xingchen AGI Lab, China Telecom Han Gao Affiliation: Huawei Technologies Co., Ltd. Dongfang Li Affiliation: Harbin Institute of Technology (Shenzhen) Menglin Yang Affiliation: The Hong Kong University of Science and Technology (Guangzhou)
Shuangyong Song Affiliation: Xingchen AGI Lab, China Telecom Yongxiang Li Affiliation: Xingchen AGI Lab, China Telecom
Abstract
Manifold-constrained Hyper-Connections (mHC) extends residual connections to multiple streams and stabilizes residual propagation by constraining stream-mixing residual matrices to the Birkhoff polytope, the set of doubly stochastic matrices. In this work, we investigate how to effectively mix residual streams within the Birkhoff polytope. We reveal a mixing trade-off: when under-mixed residual matrices stay close to the vertices of the Birkhoff polytope, hyper-connections will degenerate into a set of nearly independent streams; when over-mixed residual matrices are concentrated around the uniform barycenter of the polytope, streams will become less distinguishable from each other. We theoretically validate our findings by bounding the cumulative residual mixing, stream difference and gradient difference of mixing coefficients across layers. Motivated by these findings, we propose Contraction for Manifold-Constrained Hyper-Connections (c{c}mHC), an exact doubly stochastic method which geometrically contracts the Birkhoff polytope toward its interior. This contraction mitigates under-mixing by forcing the residual matrices to explore deeper into the polytope, with a provable stream mixing bound and no new parameterization. Moreover, we apply a moderate contraction at the shallow layers to prevent over-mixing, enabling stable gradient propagation on extremely large-scale model pretraining. Extensive experiments across dense and mixture-of-experts models at various parameter scales demonstrate the effectiveness and scalability of c{c}mHC. We also develop fused operators for c{c}mHC on Ascend NPUs, reducing hyper-connection execution latency by up to 44.8%44.8\%.
keywordsHyper-Connections, Birkhoff Polytope, large language model, geometry, pretraining
1 Introduction
Hyper-Connections (HC) (Zhu et al., 2025) extend standard residual connections (He et al., 2016) with learnable mixing across multiple feature streams, shown in Figure 1(a). As unconstrained mixing can destabilize signal propagation in deep networks, manifold-constrained Hyper-Connections (mHC) (Xie et al., 2026) constrains the residual matrices to the Birkhoff polytope, the set of doubly stochastic matrices. mHC-lite (Yang and Gao, 2026) provides an exact doubly stochastic constraint through learnable convex combinations of permutation matrices. Although these approaches exhibit training stability by doubly stochastic stream mixing, they do not ensure effective information exchange across streams. We study how to mix streams more effectively in hyper-connections by analyzing two ill-conditioned mixing states: under-mixing and over-mixing. See Appendix B for more related work.

Figure 1: Illustration of our geometric contraction and its effect on stream mixing. (a) Architecture of hyper-connections at layer ll. Our method focuses on the hyper-connection module. (b) Two-dimensional projections of the Birkhoff polytope for n=3n\!=\!3, along with the sampled trajectories of layer-averaged residual matrices during training, ended at the star . Traditional methods like mHC-lite do not encourage an interior exploration of the polytope, so the residual matrices remain close to a permutation vertex; our moderate contraction encourages interior exploration, while a strong contraction may drive the residual matrices toward the uniform barycenter. (c) Layer-averaged residual matrices and cosine similarity distributions between streams for n=4n\!=\!4. A lower contraction coefficient λ\lambda indicates a stronger contraction.
Under-mixing.
Prior work has observed an under-mixing state in hyper-connections: residual mixing matrices often remain close to the identity, limiting cross-stream interaction (Alimaskina et al., 2026). We further observe that this behavior is not specific to the identity: mixing can remain concentrated near other permutation vertices favored by initialization. In these cases, the streams are more permuted than actively mixed, limiting the expressivity of multi-stream architectures. To address this issue, existing methods have explored the interior of the Birkhoff polytope through different parameterizations of residual matrices (Liu et al., 2026; Dandachi and Diggs-Galligan, 2026; Guo et al., 2026), but they often rely on more involved constructions without a strictly guaranteed mixing effect, and their effectiveness is not validated on large-scale model pretraining. This motivates our geometric contraction strategy with a provable stream mixing bound and no new parameterization: we restrict the access to the permutation vertices and force the residual matrices to explore deeper into the polytope. We propose Contraction for Manifold-Constrained Hyper-Connections (c{c}mHC), which contracts the polytope into a smaller region inside it by replacing permutation matrices with smoothed ones. This strictly guarantees a positive mixing while preserving exact double stochasticity. As illustrated in Figure 1(b), the contraction prevents residual mixing from degeneration around the permutation vertices, indicating guaranteed interior exploration.
The mixing trade-off.
Another important aspect of our work is the revelation of the potential over-mixing issue that, to our knowledge, remains largely unexplored in recent efforts. Although they encourage active stream mixing by different constraints and parameterizations, we argue that stronger mixing is not always better, because excessive mixing makes feature streams less distinguishable. As shown in Figure 1(c), the average similarity between streams becomes closer to 1 when the contraction is strengthened. We theoretically show that the cumulative mixing bound depends jointly on contraction strength and the number of contracted layers. We further reveal the “butterfly effect” of stream mixing: even a numerically small contraction affects the stream difference and gradient difference of mixing coefficients, thereby amplifying over-mixing in deep networks. These findings motivate a simple but effective strategy in c{c}mHC: we apply moderate contraction only at shallow layers, encouraging early information exchange while allowing near-identity mappings in deeper layers. We validate the effectiveness and scalability of c{c}mHC by extensive experiments on GPT-2 and mixture-of-experts at both 6B and 300B parameter scales, showing how the trade-off design achieves a lower training loss while stabilizing gradient propagation on extremely large-scale model pretraining. Furthermore, despite no new parameterization required, we improve the efficiency of c{c}mHC in industrial scenarios by developing fused operators on Ascend NPUs, reducing hyper-connection execution latency by up to 44.8%44.8\%. In summary, our contributions are threefold:
•
We theoretically and empirically reveal the mixing trade-off in mHC: under-mixing makes hyper-connections degenerate into a set of single streams, while over-mixing makes streams less distinguishable from each other.
•
We propose c{c}mHC, an exact doubly stochastic method which performs a moderate geometric contraction to the Birkhoff polytope without introducing additional parameters.
•
We evaluate c{c}mHC through extensive experiments from GPT-2 to 6B-MoE and 300B-MoE to validate its effectiveness and scalability, and develop efficient fused operators on Ascend NPUs to support efficient execution.
2 From Under-mixing to Geometric Contraction
Preliminary.
Hyper-connections maintain nn feature streams 𝐱l∈ℝn×d\mathbf{x}_{l}\in\mathbb{R}^{n\times d} and update them as
𝐱l+1=𝐇lres𝐱l+𝐇lpost⊤f(𝐇lpre𝐱l,𝚯l),\mathbf{x}_{l+1}=\mathbf{H}^{\mathrm{res}}_{l}\mathbf{x}_{l}+{\mathbf{H}^{\mathrm{post}}_{l}}^{\top}f(\mathbf{H}^{\mathrm{pre}}_{l}\mathbf{x}_{l};\mathbf{\Theta}_{l}), (1)
where 𝐇lres∈ℝn×n\mathbf{H}^{\mathrm{res}}_{l}\in\mathbb{R}^{n\times n} mixes residual streams and 𝐇lpre,𝐇lpost∈ℝ1×n\mathbf{H}^{\mathrm{pre}}_{l},\mathbf{H}^{\mathrm{post}}_{l}\in\mathbb{R}^{1\times n} aggregate and redistribute the feature streams, respectively. To ensure exact double stochasticity, mHC-lite parameterizes the residual matrix as a convex combination of the n!n! permutation matrices 𝐏m\mathbf{P}_{m}:
𝐇lres=∑m=1n!αl,m𝐏m,𝜶l=softmax(alres𝐱l′𝐖lres+𝐛lres),\mathbf{H}^{\mathrm{res}}_{l}=\sum_{m=1}^{n!}\alpha_{l,m}\mathbf{P}_{m},\qquad\bm{\alpha}_{l}=\mathrm{softmax}\left(a_{l}^{\mathrm{res}}\mathbf{x}^{\prime}_{l}\mathbf{W}^{\mathrm{res}}_{l}+\mathbf{b}^{\mathrm{res}}_{l}\right), (2)
where 𝐱l′\mathbf{x}^{\prime}_{l} is the normalized, flattened feature streams, and alresa_{l}^{\mathrm{res}}, 𝐖lres\mathbf{W}^{\mathrm{res}}_{l}, and 𝐛lres\mathbf{b}^{\mathrm{res}}_{l} are learnable parameters. This exactly constrains the residual matrices in a Birkhoff polytope Bn=conv{𝐏m}m=1n!{B}_{n}=\operatorname{conv}\{\mathbf{P}_{m}\}_{m=1}^{n!} because of the Birkhoff–von Neumann theorem (Birkhoff, 1946); see Appendix A.2 for details.
2.1 Under-mixing in Hyper-Connections
Under-mixing has been widely considered a key bottleneck that limits the expressivity of hyper-connections. Intuitively, it makes the multi-stream architecture degenerate into a set of nearly independent streams. Prior work has observed this phenomenon in mHC-lite: in most layers, 𝐇lres\mathbf{H}^{\mathrm{res}}_{l} stays close to the identity matrix with only small off-diagonal mass, instead of learning active stream mixing (Liu et al., 2026; Alimaskina et al., 2026). Geometrically, 𝐇lres\mathbf{H}^{\mathrm{res}}_{l} remains near the identity vertex of the Birkhoff polytope during training, as shown in Figure 1(b).

Figure 2: The under-mixing phenomenon under different initializations. Left: 1L∑l=0L−1𝐇lres\frac{1}{L}\sum_{l=0}^{L-1}\mathbf{H}^{\mathrm{res}}_{l} at training steps 0 (initial state), 5k, and 10k. Across different initializations, 1L∑l=0L−1𝐇lres\frac{1}{L}\sum_{l=0}^{L-1}\mathbf{H}^{\mathrm{res}}_{l} keeps close to the initial permutation matrix, not only the identity. Right: entry distributions of mixing coefficients 𝜶\bm{\alpha}. The coefficient assigned to the initialized permutation (“Init perm”) stays close to 1, while the majority of coefficients over all permutations (“All perms”) stays close to 0.
We further observe that under-mixing is not specific to the identity; it can occur around any permutation matrix favored at initialization. In mHC-lite, the input 𝐱0\mathbf{x}_{0} is first duplicated across nn streams. Then, the diagonal entries of the residual bias 𝐛lres\mathbf{b}^{\mathrm{res}}_{l} are set to 00, while the others are set to −8-8. This makes 𝐇lres\mathbf{H}^{\mathrm{res}}_{l} close to the identity matrix through the softmax in (2). When we change the initialization of 𝐛lres\mathbf{b}^{\mathrm{res}}_{l} to favor another permutation matrix, the average 𝐇res\mathbf{H}^{\mathrm{res}} stays close to that permutation during training, as shown in Figure 2.
From the perspective of training dynamics, the stream 𝐱l,m\mathbf{x}_{l,m} favored by initialization receives a larger coefficient update, which pushes its mixing coefficient αl,m\alpha_{l,m} toward 1 and suppresses the remaining coefficients. As a result, a single 𝐏m\mathbf{P}_{m} dominates 𝐇lres\mathbf{H}^{\mathrm{res}}_{l}. Since 𝐏m\mathbf{P}_{m} only permutes stream positions, cross-stream information exchange is suppressed. Figure 2 shows that the entry distribution of 𝜶\bm{\alpha} remains close to its initial near-Dirac state during training: the coefficient of the initialized permutation stays near 1, while most other permutation coefficients stay near 0.
2.2 c{c}mHC: Geometric Contraction of the Birkhoff Polytope
To mitigate under-mixing, we introduce a geometric contraction c(⋅,λ):ℝn×n→ℝn×n{c}(\cdot;\lambda):\mathbb{R}^{n\times n}\rightarrow\mathbb{R}^{n\times n} which replaces each permutation matrix 𝐏m\mathbf{P}_{m} with a smoothed version:
𝐏m′=c(𝐏m,λ)=λ𝐏m+1−λn−1(𝟏n𝟏n⊤−𝐏m).\mathbf{P}^{\prime}_{m}={c}(\mathbf{P}_{m};\lambda)=\lambda\mathbf{P}_{m}+\frac{1-\lambda}{n-1}(\mathbf{1}_{n}\mathbf{1}_{n}^{\top}-\mathbf{P}_{m}). (3)
where λ∈(1/n,1)\lambda\in(1/n,1) controls the contraction strength. The case λ→1\lambda\to 1 recovers mHC-lite, while λ→1/n\lambda\to 1/n yields uniform mixing. The smoothed permutation matrices can be precomputed and replace the original bases without adding learnable parameters or changing their size.
Let 𝐉n=𝟏n𝟏n⊤/n\mathbf{J}_{n}=\mathbf{1}_{n}\mathbf{1}_{n}^{\top}/n and λ′=(nλ−1)/(n−1)\lambda^{\prime}=(n\lambda-1)/(n-1). Using the coefficients from (2), the residual matrix is
𝐇lres′=∑m=1n!αl,m𝐏m′=c(𝐇lres,λ)=λ′𝐇lres+(1−λ′)𝐉n.\mathbf{H}^{\mathrm{res}^{\prime}}_{l}=\sum_{m=1}^{n!}\alpha_{l,m}\mathbf{P}^{\prime}_{m}={c}(\mathbf{H}^{\mathrm{res}}_{l};\lambda)=\lambda^{\prime}\mathbf{H}^{\mathrm{res}}_{l}+(1-\lambda^{\prime})\mathbf{J}_{n}. (4)
The resulting contraction polytope Bn(λ)=conv{𝐏m′}m=1n!{B}_{n}(\lambda)=\operatorname{conv}\{\mathbf{P}^{\prime}_{m}\}_{m=1}^{n!} has the following properties.
Theorem 2.1 (Preservation of double stochasticity).
For λ∈(1/n,1)\lambda\in(1/n,1), Bn(λ)⊆Bn{B}_{n}(\lambda)\subseteq{B}_{n}. In particular, every contracted residual matrix is doubly stochastic and has spectral norm at most one.
Theorem 2.2 (Lower bound of stream mixing).
For λ∈(1/n,1)\lambda\in(1/n,1), every entry of a contracted residual matrix satisfies
hl,ijres′≥min(λ,1−λn−1)>0.h^{\mathrm{res}^{\prime}}_{l,ij}\geq\min\left(\lambda,\frac{1-\lambda}{n-1}\right)>0. (5)
Proofs are provided in Appendices C.1 and C.2. Theorem 2.1 shows that c{c}mHC preserves exact double stochasticity, ensuring ‖𝐇lres′‖2≤1\|\mathbf{H}^{\mathrm{res}^{\prime}}_{l}\|_{2}\leq 1. Thus, for fixed mixing coefficients, the residual mixing operator and its transpose are non-expansive, preserving the stabilizing property of doubly stochastic mixing (Xie et al., 2026). Meanwhile, Theorem 2.2 guarantees a strictly positive contribution from every input stream to every output stream for 1/n<λ<11/n<\lambda<1, preventing extreme under-mixing.
Contraction mapping.
Equation (4) expresses c{c} as an interpolation between the original matrix and the uniform barycenter 𝐉n\mathbf{J}_{n}. For 1/n<λ<11/n<\lambda<1, we have 0<λ′<10<\lambda^{\prime}<1, and for any 𝐇,𝐆∈Bn\mathbf{H},\mathbf{G}\in{B}_{n},
‖c(𝐇,λ)−c(𝐆,λ)‖F=λ′‖𝐇−𝐆‖F.\|{c}(\mathbf{H};\lambda)-{c}(\mathbf{G};\lambda)\|_{F}=\lambda^{\prime}\|\mathbf{H}-\mathbf{G}\|_{F}. (6)
Thus, c{c} is a contraction mapping on Bn{B}_{n} under the Frobenius norm, with contraction factor λ′\lambda^{\prime}. Since c(𝐉n,λ)=𝐉n{c}(\mathbf{J}_{n};\lambda)=\mathbf{J}_{n}, it also scales each matrix’s distance to the barycenter by λ′\lambda^{\prime}, mapping the original polytope to a smaller region in its relative interior. The general definition of a contraction mapping is provided in Appendix A.3.
As illustrated in Figure 1(b), the original permutation vertices are no longer reachable. Even if 𝜶l\bm{\alpha}_{l} concentrates on a single component, 𝐇lres′\mathbf{H}^{\mathrm{res}^{\prime}}_{l} becomes the smoothed 𝐏m′\mathbf{P}^{\prime}_{m} rather than the permutation vertex 𝐏m\mathbf{P}_{m}. This indicates that the geometric contraction guarantees a positive cross-stream mixing, which mitigates the under-mixing effect.
3 The Mixing Trade-off
Stronger mixing promotes information exchange but may also reduce stream distinguishability. To examine this, we first analyze products of contracted residual matrices. We then study feature and gradient propagation using a local linear approximation to the Transformer branch, 𝐇post⊤f(𝐇pre𝐱,𝚯)→𝐇post⊤𝚯𝐇pre𝐱=𝐀𝐱{\mathbf{H}^{\mathrm{post}}}^{\top}f(\mathbf{H}^{\mathrm{pre}}\mathbf{x};\mathbf{\Theta})\rightarrow{\mathbf{H}^{\mathrm{post}}}^{\top}\mathbf{\Theta}\mathbf{H}^{\mathrm{pre}}\mathbf{x}=\mathbf{A}\mathbf{x}, yielding
𝐱l+1≈(𝐇lres′+𝐀l)𝐱l.\mathbf{x}_{l+1}\approx(\mathbf{H}^{\mathrm{res}^{\prime}}_{l}+\mathbf{A}_{l})\mathbf{x}_{l}. (7)
Together, these analyses motivate a moderate contraction to shallow layers as a trade-off scheme.
3.1 Convergence of Cumulative Contraction
Equation (4) defines a contraction on the complete metric space (Bn(λ),∥⋅∥F)({B}_{n}(\lambda),\|\cdot\|_{F}) for 1/n<λ<11/n<\lambda<1. By Banach’s fixed-point theorem (Banach, 1922), repeated application of this contraction converges to a unique fixed point, that is, the uniform barycenter 𝐉n\mathbf{J}_{n}. Convergence to the barycenter indicates an over-mixing state: all output streams assign the same importance to every input stream, rather than learning dynamic stream interactions. Details are provided in Appendix A.3.
Across network layers, the mixing effect accumulates through products of residual matrices. To quantify how contraction strength affects this cumulative mixing, we use Dobrushin’s ergodicity coefficient (Gaubert and Qu, 2015) τ(𝐇lres′)∈[0,1]\tau(\mathbf{H}^{\mathrm{res}^{\prime}}_{l})\in[0,1] to measure the convergence of a non-homogeneous matrix product. It is defined as
τ(𝐇lres′):=1−min∑k=1ni<jmin(hl,ikres′,hl,jkres′).\tau(\mathbf{H}^{\mathrm{res}^{\prime}}_{l}):=1-\min_{i<j}\sum_{k=1}^{n}\min(h^{\mathrm{res}^{\prime}}_{l,ik},h^{\mathrm{res}^{\prime}}_{l,jk}). (8)
A smaller τ\tau means that different rows share more common mass; when τ\tau approaches 00, the rows become nearly identical, indicating stronger over-mixing. Then, the following theorem relates the convergence speed of cumulative stream mixing to the contraction strength.
Theorem 3.1 (Convergence of cumulative stream mixing).
Let λl∈(1/n,1]\lambda_{l}\in(1/n,1] for l=0,…,L−1l=0,\ldots,L-1, where λl=1\lambda_{l}=1 leaves layer ll uncontracted. Define λl′=(nλl−1)/(n−1)\lambda^{\prime}_{l}=(n\lambda_{l}-1)/(n-1) and 𝐇lres′=λl′𝐇lres+(1−λl′)𝐉n\mathbf{H}^{\mathrm{res}^{\prime}}_{l}=\lambda^{\prime}_{l}\mathbf{H}^{\mathrm{res}}_{l}+(1-\lambda^{\prime}_{l})\mathbf{J}_{n}. Then
τ(∏l=0L−1𝐇L−1−lres′)≤∏l=0L−1λl′.\tau\left(\prod_{l=0}^{L-1}\mathbf{H}^{\mathrm{res}^{\prime}}_{L-1-l}\right)\leq\prod_{l=0}^{L-1}\lambda^{\prime}_{l}. (9)

Figure 3: Cumulative residual matrix ∏l=0L−1𝐇lres′\prod_{l=0}^{L-1}\mathbf{H}^{\mathrm{res}^{\prime}}_{l} and Dobrushin’s ergodicity coefficient τ\tau under different λ\lambda and network depth LL. Note that the matrices slightly deviate from exact doubly stochasticity because of the inference-time low-precision conversion.
See Appendix C.3 for the proof. If all layers satisfy λl′<1\lambda^{\prime}_{l}<1, the cumulative residual matrix approaches 𝐉n\mathbf{J}_{n} at an exponential rate as LL increases. This implies that limiting such contraction to a small number of layers is important for alleviating the exponential convergence.
Figure 3 visualizes the cumulative residual matrix ∏l=0L−1𝐇lres′\prod_{l=0}^{L-1}\mathbf{H}^{\mathrm{res}^{\prime}}_{l} and its Dobrushin coefficient τ\tau under different λ\lambda and LL. When λ\lambda decreases from 11 to 0.970.97, τ\tau drops by about 0.50.5, indicating a much stronger cumulative mixing effect. With λ=0.7\lambda=0.7, τ\tau becomes close to 00, and the cumulative residual matrix is nearly indistinguishable from the uniform barycenter of the Birkhoff polytope. And generally, increasing LL further reduces τ\tau, which is consistent with the decreasing cumulative upper bound.
3.2 The Butterfly Effect of Geometric Contraction
This section reveals a “butterfly effect” caused by geometric contraction: even a numerically small contraction can not only accelerate the convergence of the cumulative residual matrix, but also affect inference and gradient propagation of 𝜶\bm{\alpha}, thereby increasing the risk of over-mixing in c{c}mHC.
Stream difference ‖𝐱~‖F\|\tilde{\mathbf{x}}\|_{F} during inference.
To highlight the differences among streams, we first apply a mean-difference decomposition to the feature streams:
𝐱=1n𝟏n𝟏n⊤𝐱⏟stream mean+(𝐈n−1n𝟏n𝟏n⊤)𝐱⏟stream difference 𝐱~=𝐉n𝐱+𝚷n𝐱,\mathbf{x}=\underbrace{\frac{1}{n}\mathbf{1}_{n}\mathbf{1}_{n}^{\top}\mathbf{x}}_{\text{stream mean}}+\underbrace{(\mathbf{I}_{n}-\frac{1}{n}\mathbf{1}_{n}\mathbf{1}_{n}^{\top})\mathbf{x}}_{\text{stream difference }\tilde{\mathbf{x}}}=\mathbf{J}_{n}\mathbf{x}+\mathbf{\Pi}_{n}\mathbf{x}, (10)
where 𝚷n=𝐈n−𝐉n\mathbf{\Pi}_{n}=\mathbf{I}_{n}-\mathbf{J}_{n} and 𝐈n\mathbf{I}_{n} is the n×nn\times n identity matrix. Every column of the stream difference 𝐱~\tilde{\mathbf{x}} sums to 00. To isolate how the contraction affects the stream differences, we align with the local linear approximation and do not consider the differences introduced by the non-linear Transformer branch: 𝚷n𝐀l𝐉n≈𝟎\mathbf{\Pi}_{n}\mathbf{A}_{l}\mathbf{J}_{n}\approx\mathbf{0} for l≥1l\geq 111 1 This only affects our additional over-mixing analysis below (Theorems 3.2 and 3.3), while the cumulative mixing bound in Theorem 3.1 does not rely on this approximation.. We start from the output streams from the first layer 𝐱~1\tilde{\mathbf{x}}_{1} with stream difference norm ‖𝐱~1‖F>0\|\tilde{\mathbf{x}}_{1}\|_{F}>0. The following theorem bounds the norm of the stream differences.

Figure 4: Frobenius norms of stream differences ‖𝐱~‖F{\|\tilde{\mathbf{x}}\|}_{F} over training steps.
Theorem 3.2 (Norm upper bound of stream difference).
For L≥2L\geq 2 hyper-connection layers, the stream difference norm satisfies
‖𝐱~k‖F≤(∏l=1k−1(λl′+ℓl))‖𝐱~1‖F\|\tilde{\mathbf{x}}_{k}\|_{F}\leq\left(\prod_{l=1}^{k-1}(\lambda^{\prime}_{l}+\ell_{l})\right)\|\tilde{\mathbf{x}}_{1}\|_{F} (11)
for 2≤k≤L2\leq k\leq L, where λl′=nλl−1n−1\lambda^{\prime}_{l}=\frac{n\lambda_{l}-1}{n-1} is the normalized contraction coefficient and ℓl=sup𝐙≠𝟎‖𝐀~l𝐙‖F‖𝐙‖F\ell_{l}=\sup_{\mathbf{Z}\neq\mathbf{0}}\frac{\|\tilde{\mathbf{A}}_{l}\mathbf{Z}\|_{F}}{\|\mathbf{Z}\|_{F}} is the Lipschitz constant of 𝐀~l=𝚷n𝐀l\tilde{\mathbf{A}}_{l}=\mathbf{\Pi}_{n}\mathbf{A}_{l}.
See Appendix C.4 for the detailed proof. Theorem 3.2 indicates that for fixed ℓl\ell_{l} and 𝐱~1\tilde{\mathbf{x}}_{1}, a stronger contraction can reduce the upper bound of the stream difference norm. The multiplicative accumulation implies that contraction in earlier layers can suppress differences at later layers. This reveals the over-mixing risk: stronger information exchange can make streams less distinguishable.
We analyze the norm of stream differences ‖𝐱~‖F{\|\tilde{\mathbf{x}}\|}_{F} in Figure 4. Note that the upper bound of ‖𝐱~‖F{\|\tilde{\mathbf{x}}\|}_{F} is also affected by the training stability of the Transformer layer (ℓl\ell_{l}), so deeper layers are not guaranteed to have smaller norms. Still, the stream difference norms for λ=0.97\lambda=0.97 and λ=0.7\lambda=0.7 are clearly lower than that of λ=1\lambda=1. This verifies that geometric contraction suppresses inter-stream differences.
Figure 5: Distributions of mixing coefficients 𝜶\bm{\alpha} over the vertices of B4{B}_{4} (across all layers of nanoGPT-L). The 2424 vertices are ranked by their α\alpha value. Curves indicate the medians. See Appendix E.4 for full results.
Gradient of the mixing coefficient 𝜶\bm{\alpha}.
We next analyze how contraction strength affects the learning of mixing coefficients 𝜶\bm{\alpha}. Intuitively, simply replacing the preset permutation matrices 𝐏m\mathbf{P}_{m} with smoother versions 𝐏m′\mathbf{P}^{\prime}_{m} should not directly affect the learning of 𝜶\bm{\alpha}. However, we find that geometric contraction in c{c}mHC induces a smoother 𝜶\bm{\alpha} distribution by reducing the upper bound of the gradient difference between any α\alpha-pair of permutation matrices. Formally:
Theorem 3.3 (Gradient difference of different permutations).
For two different permutation matrices 𝐏i,𝐏j∈ℝn×n\mathbf{P}_{i},\mathbf{P}_{j}\in\mathbb{R}^{n\times n}, the gradient difference of the pretraining loss ℒ\mathcal{L} w.r.t. their coefficients αl,i,αl,j\alpha_{l,i},\alpha_{l,j} is bounded by
|(∇αl,i−∇αl,j)ℒ|≤2λl′‖∇𝐱~l+1ℒ‖F‖𝐱~l‖F.|(\nabla_{\alpha_{l,i}}-\nabla_{\alpha_{l,j}})\mathcal{L}|\leq 2\lambda^{\prime}_{l}\|\nabla_{\tilde{\mathbf{x}}_{l+1}}\mathcal{L}\|_{F}\|\tilde{\mathbf{x}}_{l}\|_{F}. (12)
See Appendix C.5 for the detailed proof. From Theorem 3.2, contraction lowers the bound on ‖𝐱~l‖F\|\tilde{\mathbf{x}}_{l}\|_{F}. For a fixed incoming gradient ‖∇𝐱~l+1ℒ‖F\|\nabla_{\tilde{\mathbf{x}}_{l+1}}\mathcal{L}\|_{F}, this also lowers the corresponding upper bound on |(∇αl,i−∇αl,j)ℒ||(\nabla_{\alpha_{l,i}}-\nabla_{\alpha_{l,j}})\mathcal{L}|. This reveals that contraction tends to assign similar gradients to different coefficients of permutation matrices, consequently leading to a smoother distribution of α\bm{\alpha}, which further promotes stream mixing. This explains why a numerically small contraction can substantially encourage mixing, while a strong contraction may instead increase the risk of over-mixing.
To examine this effect, we sort the coefficients 𝜶\bm{\alpha} over all vertices of B4{B}_{4} in descending order, and compare their distributions across all layers between mHC-lite and c{c}mHC with λ=0.97\lambda=0.97. Figure 5 shows that c{c}mHC assigns more mass to the non-dominant vertices rather than only accumulating mass at vertex 0. This supports that geometric contraction induces a smoother 𝜶\bm{\alpha} distribution.
3.3 A Moderate Contraction to the Birkhoff Polytope
The analyses in Secs. 3.1 and 3.2 identify a risk of over-mixing: cumulative contraction drives 𝐇res′\mathbf{H}^{\mathrm{res}^{\prime}} exponentially toward the uniform barycenter of the Birkhoff polytope, and the contraction can also affect stream differences and induce a smoother coefficient distribution. These findings motivate a mixing trade-off strategy to control both strength and layers of the contraction. We apply moderate contraction only to the first KK layers while allowing near-identity mappings in deeper layers:
𝐏l,m′={λ𝐏m+1−λn−1(𝟏n𝟏n⊤−𝐏m),l≤K−1,𝐏m,l>K−1.\mathbf{P}^{\prime}_{l,m}=\begin{cases}\lambda\mathbf{P}_{m}+\frac{1-\lambda}{n-1}(\mathbf{1}_{n}\mathbf{1}_{n}^{\top}-\mathbf{P}_{m}),&l\leq K-1,\\ \mathbf{P}_{m},&l>K-1.\end{cases} (13)
We set a single contraction coefficient λ\lambda shared by all first KK layers. This improves the expressivity of hyper-connection architectures while reducing the risk of over-mixing.
Why contract shallow layers?
Contractions at shallow layers are more effective than at deeper layers because the contraction effect can accumulate and influence all subsequent layers. We first provide a direct corollary from Theorem 3.1 below to extend it to any prefix ending at layer kk, where 1≤k≤L1\leq k\leq L.
Corollary 3.1 (Cumulative mixing at intermediate layers).
Let λl∈(1/n,1]\lambda_{l}\in(1/n,1] for l=0,…,L−1l=0,\ldots,L-1. Then, for any k∈{1,…,L}k\in\{1,\ldots,L\},
τ(∏l=0k−1𝐇k−1−lres′)≤∏l=0k−1λl′.\tau\left(\prod_{l=0}^{k-1}\mathbf{H}^{\mathrm{res}^{\prime}}_{k-1-l}\right)\leq\prod_{l=0}^{k-1}\lambda^{\prime}_{l}. (14)
This means the bound at layer kk depends only on the normalized contraction coefficients λl′\lambda_{l}^{\prime} in the first kk layers. For a shallow contraction in the first KK layers, λl<1\lambda_{l}<1 for l=0,⋯,Kl=0,\cdots,K, so the Dobrushin’s coefficient has a smaller bound at layer kk. This shows that shallow contraction can propagate its mixing effect through subsequent intermediate layers22 2 This longer-lasting effect could also increase the risk of over-mixing, so careful choices of λ\lambda and KK are necessary., whereas deep contraction affects only the final stages of stream interaction. From a hierarchical perspective of deep representation learning, shallower layers also tend to encode more general features and deeper layers become more specialized (Yosinski et al., 2014), so it should be more cautious to mix streams in deeper layers. This finding is consistent with recent work highlighting the greater importance of early mixers (Zhao et al., 2026). We further provide empirical evidence in Sec. 4.2.
4 Experiments
Setup.
Following Yang and Gao (2026), we evaluate language modeling on two extensive web datasets: OpenWebText (Gokaslan and Cohen, 2019) and FineWeb-Edu (Lozhkov et al., 2024). We compare c{c}mHC with representative residual and hyper-connection baselines. (1) Vanilla residual connections “Residual” with one single stream n=1n=1 and multiple independent streams (e.g., n=4n=4) without mixing. (2) Original HC (Zhu et al., 2025) without the Birkhoff constraint on the residual matrices. (3) mHC (Xie et al., 2026) with the Sinkhorn-Knopp iteration constraint. (4) mHC-lite (Yang and Gao, 2026) with the exact Birkhoff von-Neumann parameterization of the residual matrices. (5) KromHC (Zhou et al., 2026) which decomposes doubly stochastic matrices into Kronecker products of smaller ones. See Appendix D for more details.
4.1 Results on GPT-2
We train nanoGPT-S, nanoGPT-M, and nanoGPT-L from scratch for 1010k iterations using the nanoGPT framework (Karpathy, 2025). These models have 12, 24, and 48 hyper-connection layers33 3 Each Transformer block contains two hyper-connection layers around attention and MLP layers, respectively. and approximately 4545M, 0.120.12B, and 0.360.36B parameters, respectively. All methods use n=4n=4 streams unless specified otherwise. Results are averaged over three runs.
Table 1: nanoGPT results on OpenWebText and FineWeb-Edu (mean ±\pm standard deviation for 3 replicate experiments). All methods use 4 streams except “Residual, n=1n=1”. Avg. Loss Rank marks the average rank over the Train Loss and Val. Loss. Best results are in bold. See Appendix E.1 for results on a different seed.
nanoGPT-S, #Layers=12 nanoGPT-M, #Layers=24 nanoGPT-L, #Layers=48 Method Train Loss Val. Loss Grad. Norm Train Loss Val. Loss Grad. Norm Train Loss Val. Loss Grad. Norm Avg. Loss Rank OpenWebText Residual, n=1n=1 3.5677±0.00063.5677_{\pm 0.0006} 3.5636±0.00073.5636_{\pm 0.0007} 0.4239±0.01940.4239_{\pm 0.0194} 3.3371±0.00083.3371_{\pm 0.0008} 3.3363±0.00073.3363_{\pm 0.0007} 0.3452±0.00990.3452_{\pm 0.0099} 3.2311±0.00093.2311_{\pm 0.0009} 3.2442±0.00013.2442_{\pm 0.0001} 0.3330±0.00640.3330_{\pm 0.0064} 11.811.8 Residual, n=4n=4 3.4777±0.00393.4777_{\pm 0.0039} 3.4742±0.00363.4742_{\pm 0.0036} 0.3877±0.03390.3877_{\pm 0.0339} 3.2591±0.00293.2591_{\pm 0.0029} 3.2587±0.00283.2587_{\pm 0.0028} 0.3751±0.01500.3751_{\pm 0.0150} 3.1801±0.00093.1801_{\pm 0.0009} 3.1909±0.00113.1909_{\pm 0.0011} 0.4537±0.03250.4537_{\pm 0.0325} 6.06.0 HC 3.4749±0.00173.4749_{\pm 0.0017} 3.4796±0.00723.4796_{\pm 0.0072} 0.4300±0.05840.4300_{\pm 0.0584} 3.2697±0.00083.2697_{\pm 0.0008} 3.2681±0.00063.2681_{\pm 0.0006} 0.4990±0.12910.4990_{\pm 0.1291} 3.2232±0.00133.2232_{\pm 0.0013} 3.2356±0.00113.2356_{\pm 0.0011} 0.5519±0.13730.5519_{\pm 0.1373} 9.79.7 mHC 3.4813±0.00593.4813_{\pm 0.0059} 3.4775±0.00643.4775_{\pm 0.0064} 0.3882±0.02690.3882_{\pm 0.0269} 3.2562±0.00163.2562_{\pm 0.0016} 3.2558±0.00133.2558_{\pm 0.0013} 0.3734±0.01460.3734_{\pm 0.0146} 3.1795±0.00203.1795_{\pm 0.0020} 3.1920±0.00203.1920_{\pm 0.0020} 0.4665±0.03570.4665_{\pm 0.0357} 6.06.0 mHC-lite 3.4801±0.00273.4801_{\pm 0.0027} 3.4759±0.00213.4759_{\pm 0.0021} 0.3688±0.01550.3688_{\pm 0.0155} 3.2578±0.00343.2578_{\pm 0.0034} 3.2564±0.00343.2564_{\pm 0.0034} 0.3854±0.01970.3854_{\pm 0.0197} 3.1821±0.00333.1821_{\pm 0.0033} 3.1949±0.00333.1949_{\pm 0.0033} 0.4317±0.02020.4317_{\pm 0.0202} 6.76.7 KromHC 3.4809±0.00243.4809_{\pm 0.0024} 3.4766±0.00293.4766_{\pm 0.0029} 0.3898±0.03380.3898_{\pm 0.0338} 3.2612±0.00413.2612_{\pm 0.0041} 3.2602±0.00413.2602_{\pm 0.0041} 0.3867±0.01770.3867_{\pm 0.0177} 3.1807±0.00193.1807_{\pm 0.0019} 3.1934±0.00243.1934_{\pm 0.0024} 0.4589±0.03220.4589_{\pm 0.0322} 8.08.0 c{c}mHC, λ=0.70\lambda=0.70, all layers 3.4790±0.00453.4790_{\pm 0.0045} 3.4756±0.00463.4756_{\pm 0.0046} 0.3637±0.01340.3637_{\pm 0.0134} 3.2626±0.00213.2626_{\pm 0.0021} 3.2618±0.00233.2618_{\pm 0.0023} 0.3760±0.01600.3760_{\pm 0.0160} 3.2063±0.00163.2063_{\pm 0.0016} 3.2169±0.00133.2169_{\pm 0.0013} 0.4346±0.01640.4346_{\pm 0.0164} 9.09.0 c{c}mHC, λ=0.85\lambda=0.85, all layers 3.4770±0.00253.4770_{\pm 0.0025} 3.4732±0.00263.4732_{\pm 0.0026} 0.3634±0.01660.3634_{\pm 0.0166} 3.2579±0.00313.2579_{\pm 0.0031} 3.2575±0.00293.2575_{\pm 0.0029} 0.3758±0.01500.3758_{\pm 0.0150} 3.2012±0.00123.2012_{\pm 0.0012} 3.2119±0.00143.2119_{\pm 0.0014} 0.4334±0.01550.4334_{\pm 0.0155} 6.76.7 c{c}mHC, λ=0.97\lambda=0.97, all layers 3.4745±0.00143.4745_{\pm 0.0014} 3.4713±0.00143.4713_{\pm 0.0014} 0.3629±0.01210.3629_{\pm 0.0121} 3.2550±0.00183.2550_{\pm 0.0018} 3.2542±0.00203.2542_{\pm 0.0020} 0.3790±0.01590.3790_{\pm 0.0159} 3.1915±0.00163.1915_{\pm 0.0016} 3.2026±0.00133.2026_{\pm 0.0013} 0.4456±0.02520.4456_{\pm 0.0252} 4.24.2 c{c}mHC, λ=0.97\lambda=0.97, K=10K=10 3.4755±0.00353.4755_{\pm 0.0035} 3.4718±0.00373.4718_{\pm 0.0037} 0.3805±0.01950.3805_{\pm 0.0195} 3.2588±0.00293.2588_{\pm 0.0029} 3.2584±0.00293.2584_{\pm 0.0029} 0.3705±0.01410.3705_{\pm 0.0141} 3.1785±0.0009\mathbf{3.1785}_{\pm 0.0009} 3.1893±0.0011\mathbf{3.1893}_{\pm 0.0011} 0.4340±0.01500.4340_{\pm 0.0150} 4.24.2 c{c}mHC, λ=0.97\lambda=0.97, K=5K=5 3.4731±0.00283.4731_{\pm 0.0028} 3.4693±0.00353.4693_{\pm 0.0035} 0.3726±0.01820.3726_{\pm 0.0182} 3.2563±0.00143.2563_{\pm 0.0014} 3.2549±0.00173.2549_{\pm 0.0017} 0.3734±0.01420.3734_{\pm 0.0142} 3.1801±0.00073.1801_{\pm 0.0007} 3.1913±0.00053.1913_{\pm 0.0005} 0.4341±0.01410.4341_{\pm 0.0141} 3.23.2 c{c}mHC, λ=0.97\lambda=0.97, K=2K=2 3.4723±0.0025\mathbf{3.4723}_{\pm 0.0025} 3.4686±0.0027\mathbf{3.4686}_{\pm 0.0027} 0.3774±0.02000.3774_{\pm 0.0200} 3.2548±0.0006\mathbf{3.2548}_{\pm 0.0006} 3.2540±0.0007\mathbf{3.2540}_{\pm 0.0007} 0.3726±0.01370.3726_{\pm 0.0137} 3.1791±0.00323.1791_{\pm 0.0032} 3.1904±0.00323.1904_{\pm 0.0032} 0.4353±0.01400.4353_{\pm 0.0140} 1.3\mathbf{1.3} FineWeb-Edu Residual, n=1n=1 3.5284±0.00233.5284_{\pm 0.0023} 3.5319±0.00213.5319_{\pm 0.0021} 0.4395±0.02040.4395_{\pm 0.0204} 3.3228±0.00423.3228_{\pm 0.0042} 3.3206±0.00423.3206_{\pm 0.0042} 0.3603±0.00940.3603_{\pm 0.0094} 3.2308±0.00023.2308_{\pm 0.0002} 3.2270±0.00023.2270_{\pm 0.0002} 0.3347±0.00590.3347_{\pm 0.0059} 11.211.2 Residual, n=4n=4 3.4644±0.00173.4644_{\pm 0.0017} 3.4684±0.00173.4684_{\pm 0.0017} 0.3645±0.01270.3645_{\pm 0.0127} 3.2489±0.00053.2489_{\pm 0.0005} 3.2474±0.00083.2474_{\pm 0.0008} 0.3689±0.01360.3689_{\pm 0.0136} 3.1837±0.00233.1837_{\pm 0.0023} 3.1819±0.00233.1819_{\pm 0.0023} 0.4587±0.02970.4587_{\pm 0.0297} 5.35.3 HC 3.4699±0.00013.4699_{\pm 0.0001} 3.4724±0.00033.4724_{\pm 0.0003} 0.4493±0.07080.4493_{\pm 0.0708} 3.2900±0.00533.2900_{\pm 0.0053} 3.2898±0.00563.2898_{\pm 0.0056} 2.7226±2.23252.7226_{\pm 2.2325} 3.2413±0.01883.2413_{\pm 0.0188} 3.2363±0.01793.2363_{\pm 0.0179} 0.9607±0.67550.9607_{\pm 0.6755} 10.810.8 mHC 3.4626±0.00093.4626_{\pm 0.0009} 3.4667±0.00103.4667_{\pm 0.0010} 0.3684±0.01250.3684_{\pm 0.0125} 3.2483±0.00103.2483_{\pm 0.0010} 3.2471±0.00053.2471_{\pm 0.0005} 0.3663±0.01210.3663_{\pm 0.0121} 3.1862±0.00093.1862_{\pm 0.0009} 3.1838±0.00083.1838_{\pm 0.0008} 0.4755±0.03380.4755_{\pm 0.0338} 4.04.0 mHC-lite 3.4621±0.0008\mathbf{3.4621}_{\pm 0.0008} 3.4660±0.0013\mathbf{3.4660}_{\pm 0.0013} 0.3709±0.01370.3709_{\pm 0.0137} 3.2480±0.00263.2480_{\pm 0.0026} 3.2477±0.00233.2477_{\pm 0.0023} 0.3742±0.01630.3742_{\pm 0.0163} 3.1884±0.00203.1884_{\pm 0.0020} 3.1846±0.00213.1846_{\pm 0.0021} 0.4502±0.02500.4502_{\pm 0.0250} 4.34.3 KromHC 3.4643±0.00163.4643_{\pm 0.0016} 3.4673±0.00163.4673_{\pm 0.0016} 0.3653±0.01230.3653_{\pm 0.0123} 3.2485±0.00213.2485_{\pm 0.0021} 3.2480±0.00183.2480_{\pm 0.0018} 0.3695±0.01380.3695_{\pm 0.0138} 3.1836±0.00063.1836_{\pm 0.0006} 3.1802±0.0004\mathbf{3.1802}_{\pm 0.0004} 0.4531±0.02490.4531_{\pm 0.0249} 4.34.3 c{c}mHC, λ=0.70\lambda=0.70, all layers 3.4678±0.00203.4678_{\pm 0.0020} 3.4718±0.00203.4718_{\pm 0.0020} 0.3648±0.01180.3648_{\pm 0.0118} 3.2514±0.00183.2514_{\pm 0.0018} 3.2503±0.00213.2503_{\pm 0.0021} 0.3683±0.01610.3683_{\pm 0.0161} 3.2067±0.00103.2067_{\pm 0.0010} 3.2049±0.00113.2049_{\pm 0.0011} 0.4320±0.00140.4320_{\pm 0.0014} 9.39.3 c{c}mHC, λ=0.85\lambda=0.85, all layers 3.4652±0.00223.4652_{\pm 0.0022} 3.4691±0.00193.4691_{\pm 0.0019} 0.3653±0.01300.3653_{\pm 0.0130} 3.2466±0.00173.2466_{\pm 0.0017} 3.2454±0.00193.2454_{\pm 0.0019} 0.3750±0.01740.3750_{\pm 0.0174} 3.2059±0.00193.2059_{\pm 0.0019} 3.2043±0.00193.2043_{\pm 0.0019} 0.4393±0.01550.4393_{\pm 0.0155} 6.06.0 c{c}mHC, λ=0.97\lambda=0.97, all layers 3.4673±0.00223.4673_{\pm 0.0022} 3.4713±0.00243.4713_{\pm 0.0024} 0.3593±0.01180.3593_{\pm 0.0118} 3.2477±0.00113.2477_{\pm 0.0011} 3.2463±0.00093.2463_{\pm 0.0009} 0.3800±0.02210.3800_{\pm 0.0221} 3.1936±0.00133.1936_{\pm 0.0013} 3.1924±0.00133.1924_{\pm 0.0013} 0.4644±0.03460.4644_{\pm 0.0346} 6.36.3 c{c}mHC, λ=0.97\lambda=0.97, K=10K=10 3.4679±0.00043.4679_{\pm 0.0004} 3.4718±0.00043.4718_{\pm 0.0004} 0.3682±0.01370.3682_{\pm 0.0137} 3.2465±0.0019\mathbf{3.2465}_{\pm 0.0019} 3.2453±0.0018\mathbf{3.2453}_{\pm 0.0018} 0.3685±0.01280.3685_{\pm 0.0128} 3.1883±0.00233.1883_{\pm 0.0023} 3.1864±0.00213.1864_{\pm 0.0021} 0.4563±0.02900.4563_{\pm 0.0290} 5.75.7 c{c}mHC, λ=0.97\lambda=0.97, K=5K=5 3.4642±0.00083.4642_{\pm 0.0008} 3.4677±0.00093.4677_{\pm 0.0009} 0.3651±0.01250.3651_{\pm 0.0125} 3.2487±0.00273.2487_{\pm 0.0027} 3.2474±0.00243.2474_{\pm 0.0024} 0.3691±0.01250.3691_{\pm 0.0125} 3.1845±0.00243.1845_{\pm 0.0024} 3.1832±0.00263.1832_{\pm 0.0026} 0.4556±0.02530.4556_{\pm 0.0253} 5.05.0 c{c}mHC, λ=0.97\lambda=0.97, K=2K=2 3.4634±0.00023.4634_{\pm 0.0002} 3.4672±0.00063.4672_{\pm 0.0006} 0.3683±0.01360.3683_{\pm 0.0136} 3.2480±0.00213.2480_{\pm 0.0021} 3.2464±0.00203.2464_{\pm 0.0020} 0.3707±0.01300.3707_{\pm 0.0130} 3.1834±0.0012\mathbf{3.1834}_{\pm 0.0012} 3.1817±0.00143.1817_{\pm 0.0014} 0.4364±0.01810.4364_{\pm 0.0181} 2.8\mathbf{2.8}

Figure 6: Loss gaps relative to c{c}mHC and gradient norms (nanoGPT-S; OpenWebText).
Main comparative results.
Table 1 shows that c{c}mHC with λ=0.97\lambda=0.97 and K=2K=2 achieves the best average loss rank on both datasets. On OpenWebText, this configuration outperforms both mHC and mHC-lite in training and validation loss at every scale, reducing validation loss over mHC-lite by 0.00730.0073, 0.00240.0024, and 0.00450.0045, respectively. On FineWeb-Edu, c{c}mHC achieves the lowest training and validation losses for nanoGPT-M (K=10K=10) and the lowest training loss for nanoGPT-L (K=2K=2), while remaining competitive on nanoGPT-S. Besides, the gradient norms of c{c}mHC remain comparable to the traditional mHC and mHC-lite while significantly better than the unconstrained HC. These results demonstrate improved language modeling through moderate stream mixing without additional learnable parameters.
Convergence and stability.
Figure 6 shows the training curves of the loss gap and gradient norm. c{c}mHC obtains the lowest training loss at convergence. Although HC appears to converge faster in the first 4k steps, its residual matrices are unconstrained, resulting in the largest training fluctuations among all methods. A similar pattern is observed in the gradient norm: HC continues to fluctuate by ∼0.05\sim\!0.05 in later training stages and remains
Images from the source


