cmHC: Balancing Stream Mixing in Hyper-Connections via Geometric Contraction

arXiv cs.LG Papers

Summary

The paper studies how to balance residual stream mixing within the Birkhoff polytope for manifold-constrained Hyper-Connections, proposing cmHC, a geometric contraction method with provable mixing bounds that improves training stability and scalability, along with fused operators on Ascend NPUs reducing latency by up to 44.8%.

arXiv:2611.27193v1 Announce Type: new 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 (cmHC), 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 cmHC. We also develop fused operators for cmHC on Ascend NPUs, reducing hyper-connection execution latency by up to 44.8%.
Original Article
View Cached Full Text

Cached at: 11/23/26, 09:25 AM

# Balancing Stream Mixing in Hyper-Connections via Geometric Contraction
Source: [https://arxiv.org/html/2611.27193](https://arxiv.org/html/2611.27193)
Ziwen ZhaoAffiliation:The Hong Kong University of Science and Technology \(Guangzhou\)Chenshuo PanAffiliation:Xingchen AGI Lab, China TelecomGang LinAffiliation:Harbin Institute of Technology \(Shenzhen\)Zhihao YangAffiliation:Xingchen AGI Lab, China TelecomChao WangAffiliation:Xingchen AGI Lab, China TelecomXinzhang LiuAffiliation:Xingchen AGI Lab, China TelecomKaidong YuAffiliation:Xingchen AGI Lab, China TelecomHan GaoAffiliation:Huawei Technologies Co\., Ltd\.Dongfang LiAffiliation:Harbin Institute of Technology \(Shenzhen\)Menglin YangAffiliation:The Hong Kong University of Science and Technology \(Guangzhou\) Shuangyong SongAffiliation:Xingchen AGI Lab, China TelecomYongxiang LiAffiliation: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 investigatehow to effectively mix residual streams within the Birkhoff polytope\. We reveal amixing trade\-off: whenunder\-mixedresidual matrices stay close to the vertices of the Birkhoff polytope, hyper\-connections will degenerate into a set of nearly independent streams; whenover\-mixedresidual 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 ofc\{c\}mHC\. We also develop fused operators forc\{c\}mHCon Ascend NPUs, reducing hyper\-connection execution latency by up to44\.8%44\.8\\%\.

###### keywords

Hyper\-Connections, Birkhoff Polytope, large language model, geometry, pretraining

## 1Introduction

Hyper\-Connections \(HC\)\([Zhu et al\., 2025](https://arxiv.org/html/2611.27193#bib.bib1)\)extend standard residual connections\([He et al\., 2016](https://arxiv.org/html/2611.27193#bib.bib2)\)with learnable mixing across multiple feature streams, shown in Figure[1](https://arxiv.org/html/2611.27193#S1.F1)\(a\)\. As unconstrained mixing can destabilize signal propagation in deep networks, manifold\-constrained Hyper\-Connections \(mHC\)\([Xie et al\., 2026](https://arxiv.org/html/2611.27193#bib.bib3)\)constrains the residual matrices to the Birkhoff polytope, the set of doubly stochastic matrices\.mHC\-lite\([Yang and Gao, 2026](https://arxiv.org/html/2611.27193#bib.bib4)\)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 studyhow to mix streams more effectively in hyper\-connectionsby analyzing two ill\-conditioned mixing states: under\-mixing and over\-mixing\. See Appendix[B](https://arxiv.org/html/2611.27193#A2)for more related work\.

![Refer to caption](https://arxiv.org/html/2611.27193v1/birkhoff.png)Figure 1:Illustration of our geometric contraction and its effect on stream mixing\.\(a\)Architecture of hyper\-connections at layerll\. Our method focuses on the hyper\-connection module\.\(b\)Two\-dimensional projections of the Birkhoff polytope forn=3n\\\!=\\\!3, along with the sampled trajectories of layer\-averaged residual matrices during training, ended at the star![Refer to caption](https://arxiv.org/html/2611.27193v1/figures/star.png)\. Traditional methods likemHC\-litedo 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 forn=4n\\\!=\\\!4\. A lower contraction coefficientλ\\lambdaindicates 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](https://arxiv.org/html/2611.27193#bib.bib5)\)\. 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](https://arxiv.org/html/2611.27193#bib.bib10);[Dandachi and Diggs\-Galligan, 2026](https://arxiv.org/html/2611.27193#bib.bib11);[Guo et al\., 2026](https://arxiv.org/html/2611.27193#bib.bib27)\), 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 ourgeometric contractionstrategy witha provable stream mixing boundandno 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](https://arxiv.org/html/2611.27193#S1.F1)\(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 potentialover\-mixingissue that, to our knowledge, remains largely unexplored in recent efforts\. Although they encourage active stream mixing by different constraints and parameterizations, we argue thatstronger mixing is not always better, because excessive mixing makes feature streams less distinguishable\. As shown in Figure[1](https://arxiv.org/html/2611.27193#S1.F1)\(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 inc\{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 ofc\{c\}mHCby 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 ofc\{c\}mHCin industrial scenarios by developing fused operators on Ascend NPUs, reducing hyper\-connection execution latency by up to44\.8%44\.8\\%\. In summary, our contributions are threefold:

- •We theoretically and empirically reveal the mixing trade\-off inmHC: under\-mixing makes hyper\-connections degenerate into a set of single streams, while over\-mixing makes streams less distinguishable from each other\.
- •We proposec\{c\}mHC, an exact doubly stochastic method which performs a moderate geometric contraction to the Birkhoff polytope without introducing additional parameters\.
- •We evaluatec\{c\}mHCthrough 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\.

## 2From Under\-mixing to Geometric Contraction

#### Preliminary\.

Hyper\-connections maintainnnfeature 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\-liteparameterizes the residual matrix as a convex combination of then\!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, andalresa\_\{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 polytopeBn=conv⁡\{𝐏m\}m=1n\!\{B\}\_\{n\}=\\operatorname\{conv\}\\\{\\mathbf\{P\}\_\{m\}\\\}\_\{m=1\}^\{n\!\}because of the Birkhoff–von Neumann theorem\([Birkhoff, 1946](https://arxiv.org/html/2611.27193#bib.bib7)\); see Appendix[A\.2](https://arxiv.org/html/2611.27193#A1.SS2)for details\.

### 2\.1Under\-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 inmHC\-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](https://arxiv.org/html/2611.27193#bib.bib10);[Alimaskina et al\., 2026](https://arxiv.org/html/2611.27193#bib.bib5)\)\. Geometrically,𝐇lres\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{l\}remains near the identity vertex of the Birkhoff polytope during training, as shown in Figure[1](https://arxiv.org/html/2611.27193#S1.F1)\(b\)\.

![Refer to caption](https://arxiv.org/html/2611.27193v1/undermix.png)
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 thatunder\-mixing is not specific to the identity; it can occur around any permutation matrix favored at initialization\. InmHC\-lite, the input𝐱0\\mathbf\{x\}\_\{0\}is first duplicated acrossnnstreams\. Then, the diagonal entries of the residual bias𝐛lres\\mathbf\{b\}^\{\\mathrm\{res\}\}\_\{l\}are set to00, 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](https://arxiv.org/html/2611.27193#S2.E2)\)\. 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](https://arxiv.org/html/2611.27193#S2.F2)\.

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](https://arxiv.org/html/2611.27193#S2.F2)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\.2c\{c\}mHC: Geometric Contraction of the Birkhoff Polytope

To mitigate under\-mixing, we introduce a geometric contractionc⁡\(⋅,λ\):ℝ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 1recoversmHC\-lite, whileλ→1/n\\lambda\\to 1/nyields 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\}/nandλ′=\(n​λ−1\)/\(n−1\)\\lambda^\{\\prime\}=\(n\\lambda\-1\)/\(n\-1\)\. Using the coefficients from \([2](https://arxiv.org/html/2611.27193#S2.E2)\), 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 polytopeBn​\(λ\)=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,i​jres′≥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](https://arxiv.org/html/2611.27193#A3.SS1)and[C\.2](https://arxiv.org/html/2611.27193#A3.SS2)\. Theorem[2\.1](https://arxiv.org/html/2611.27193#S2.Thmtheorem1)shows thatc\{c\}mHCpreservesexact 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](https://arxiv.org/html/2611.27193#bib.bib3)\)\. Meanwhile, Theorem[2\.2](https://arxiv.org/html/2611.27193#S2.Thmtheorem2)guarantees a strictly positive contribution from every input stream to every output stream for1/n<λ<11/n<\\lambda<1, preventing extreme under\-mixing\.

#### Contraction mapping\.

Equation \([4](https://arxiv.org/html/2611.27193#S2.E4)\) expressesc\{c\}as an interpolation between the original matrix and the uniform barycenter𝐉n\\mathbf\{J\}\_\{n\}\. For1/n<λ<11/n<\\lambda<1, we have0<λ′<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 onBn\{B\}\_\{n\}under the Frobenius norm, with contraction factorλ′\\lambda^\{\\prime\}\. Sincec⁡\(𝐉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](https://arxiv.org/html/2611.27193#A1.SS3)\.

As illustrated in Figure[1](https://arxiv.org/html/2611.27193#S1.F1)\(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\.

## 3The 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\.1Convergence of Cumulative Contraction

Equation \([4](https://arxiv.org/html/2611.27193#S2.E4)\) defines a contraction on the complete metric space\(Bn\(λ\),∥⋅∥F\)\(\{B\}\_\{n\}\(\\lambda\),\\\|\\cdot\\\|\_\{F\}\)for1/n<λ<11/n<\\lambda<1\. By Banach’s fixed\-point theorem\([Banach, 1922](https://arxiv.org/html/2611.27193#bib.bib13)\), 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](https://arxiv.org/html/2611.27193#A1.SS3)\.

Across network layers, the mixing effect accumulates through products of residual matrices\. To quantify how contraction strength affects this cumulative mixing, we useDobrushin’s ergodicity coefficient\([Gaubert and Qu, 2015](https://arxiv.org/html/2611.27193#bib.bib9)\)τ⁡\(𝐇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<j⁡min⁡\(hl,i​kres′,hl,j​kres′\)\.\\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τ\\taumeans that different rows share more common mass; whenτ\\tauapproaches00, 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\]forl=0,…,L−1l=0,\\ldots,L\-1, whereλl=1\\lambda\_\{l\}=1leaves layerlluncontracted\. 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\)

![Refer to caption](https://arxiv.org/html/2611.27193v1/prodmix.png)
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τ\\tauunder differentλ\\lambdaand network depthLL\. Note that the matrices slightly deviate from exact doubly stochasticity because of the inference\-time low\-precision conversion\.See Appendix[C\.3](https://arxiv.org/html/2611.27193#A3.SS3)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 rateasLLincreases\. This implies that limiting such contraction to a small number of layers is important for alleviating the exponential convergence\.

Figure[3](https://arxiv.org/html/2611.27193#S3.F3)visualizes the cumulative residual matrix∏l=0L−1𝐇lres′\\prod\_\{l=0\}^\{L\-1\}\\mathbf\{H\}^\{\\mathrm\{res\}^\{\\prime\}\}\_\{l\}and its Dobrushin coefficientτ\\tauunder differentλ\\lambdaandLL\. Whenλ\\lambdadecreases from11to0\.970\.97,τ\\taudrops by about0\.50\.5, indicating a much stronger cumulative mixing effect\. Withλ=0\.7\\lambda=0\.7,τ\\taubecomes close to00, and the cumulative residual matrix is nearly indistinguishable from the uniform barycenter of the Birkhoff polytope\. And generally, increasingLLfurther reducesτ\\tau, which is consistent with the decreasing cumulative upper bound\.

### 3\.2The 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 inc\{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 then×nn\\times nidentity matrix\. Every column of the stream difference𝐱~\\tilde\{\\mathbf\{x\}\}sums to00\. 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\}forl≥1l\\geq 1111This only affects our additional over\-mixing analysis below \(Theorems[3\.2](https://arxiv.org/html/2611.27193#S3.Thmtheorem2)and[3\.3](https://arxiv.org/html/2611.27193#S3.Thmtheorem3)\), while the cumulative mixing bound in Theorem[3\.1](https://arxiv.org/html/2611.27193#S3.Thmtheorem1)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\.

![Refer to caption](https://arxiv.org/html/2611.27193v1/streamnorm.png)Figure 4:Frobenius norms of stream differences‖𝐱~‖F\{\\\|\\tilde\{\\mathbf\{x\}\}\\\|\}\_\{F\}over training steps\.###### Theorem 3\.2\(Norm upper bound of stream difference\)\.

ForL≥2L\\geq 2hyper\-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\)for2≤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](https://arxiv.org/html/2611.27193#A3.SS4)for the detailed proof\. Theorem[3\.2](https://arxiv.org/html/2611.27193#S3.Thmtheorem2)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](https://arxiv.org/html/2611.27193#S3.F4)\. 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\.97andλ=0\.7\\lambda=0\.7are 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 ofB4\{B\}\_\{4\}\(across all layers of nanoGPT\-L\)\. The2424vertices are ranked by theirα\\alphavalue\. Curves indicate the medians\. See Appendix[E\.4](https://arxiv.org/html/2611.27193#A5.SS4)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 inc\{c\}mHCinduces 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](https://arxiv.org/html/2611.27193#A3.SS5)for the detailed proof\. From Theorem[3\.2](https://arxiv.org/html/2611.27193#S3.Thmtheorem2), 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, consequentlyleading 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 ofB4\{B\}\_\{4\}in descending order, and compare their distributions across all layers betweenmHC\-liteandc\{c\}mHCwithλ=0\.97\\lambda=0\.97\. Figure[5](https://arxiv.org/html/2611.27193#S3.F5)shows thatc\{c\}mHCassigns 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\.3A Moderate Contraction to the Birkhoff Polytope

The analyses in Secs\.[3\.1](https://arxiv.org/html/2611.27193#S3.SS1)and[3\.2](https://arxiv.org/html/2611.27193#S3.SS2)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\. Weapply moderate contraction only to the firstKKlayers 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λ\\lambdashared by all firstKKlayers\. 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 becausethe contraction effect can accumulate and influence all subsequent layers\.We first provide a direct corollary from Theorem[3\.1](https://arxiv.org/html/2611.27193#S3.Thmtheorem1)below to extend it to any prefix ending at layerkk, where1≤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\]forl=0,…,L−1l=0,\\ldots,L\-1\. Then, for anyk∈\{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 layerkkdepends only on the normalized contraction coefficientsλl′\\lambda\_\{l\}^\{\\prime\}in the firstkklayers\. For a shallow contraction in the firstKKlayers,λl<1\\lambda\_\{l\}<1forl=0,⋯,Kl=0,\\cdots,K, so the Dobrushin’s coefficient has a smaller bound at layerkk\. This shows that shallow contraction can propagate its mixing effect through subsequent intermediate layers222This longer\-lasting effect could also increase the risk of over\-mixing, so careful choices ofλ\\lambdaandKKare 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](https://arxiv.org/html/2611.27193#bib.bib14)\), 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](https://arxiv.org/html/2611.27193#bib.bib6)\)\. We further provide empirical evidence in Sec\.[4\.2](https://arxiv.org/html/2611.27193#S4.SS2)\.

## 4Experiments

#### Setup\.

Following[Yang and Gao \(2026\)](https://arxiv.org/html/2611.27193#bib.bib4), we evaluate language modeling on two extensive web datasets: OpenWebText\([Gokaslan and Cohen, 2019](https://arxiv.org/html/2611.27193#bib.bib16)\)and FineWeb\-Edu\([Lozhkov et al\., 2024](https://arxiv.org/html/2611.27193#bib.bib17)\)\. We comparec\{c\}mHCwith representative residual and hyper\-connection baselines\. \(1\) Vanilla residual connections “Residual” with one single streamn=1n=1and multiple independent streams \(e\.g\.,n=4n=4\) without mixing\. \(2\) OriginalHC\([Zhu et al\., 2025](https://arxiv.org/html/2611.27193#bib.bib1)\)without the Birkhoff constraint on the residual matrices\. \(3\)mHC\([Xie et al\., 2026](https://arxiv.org/html/2611.27193#bib.bib3)\)with the Sinkhorn\-Knopp iteration constraint\. \(4\)mHC\-lite\([Yang and Gao, 2026](https://arxiv.org/html/2611.27193#bib.bib4)\)with the exact Birkhoff von\-Neumann parameterization of the residual matrices\. \(5\)KromHC\([Zhou et al\., 2026](https://arxiv.org/html/2611.27193#bib.bib12)\)which decomposes doubly stochastic matrices into Kronecker products of smaller ones\. See Appendix[D](https://arxiv.org/html/2611.27193#A4)for more details\.

### 4\.1Results on GPT\-2

We train nanoGPT\-S, nanoGPT\-M, and nanoGPT\-L from scratch for1010k iterations using the nanoGPT framework\([Karpathy, 2025](https://arxiv.org/html/2611.27193#bib.bib15)\)\. These models have 12, 24, and 48 hyper\-connection layers333Each Transformer block contains two hyper\-connection layers around attention and MLP layers, respectively\.and approximately4545M,0\.120\.12B, and0\.360\.36B parameters, respectively\. All methods usen=4n=4streams unless specified otherwise\. Results are averaged over three runs\.

Table 1:nanoGPT results on OpenWebText and FineWeb\-Edu \(mean±\\pmstandard deviation for 3 replicate experiments\)\. All methods use 4 streams except “Residual,n=1n=1”\.Avg\. Loss Rankmarks the average rank over the Train Loss and Val\. Loss\. Best results are inbold\. See Appendix[E\.1](https://arxiv.org/html/2611.27193#A5.SS1)for results on a different seed\.nanoGPT\-S, \#Layers=12nanoGPT\-M, \#Layers=24nanoGPT\-L, \#Layers=48MethodTrain LossVal\. LossGrad\. NormTrain LossVal\. LossGrad\. NormTrain LossVal\. LossGrad\. NormAvg\. Loss RankOpenWebTextResidual,n=1n=13\.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\.8Residual,n=4n=43\.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\.0HC3\.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\.7mHC3\.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\.0mHC\-lite3\.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\.7KromHC3\.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\.0c\{c\}mHC,λ=0\.70\\lambda=0\.70, all layers3\.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\.0c\{c\}mHC,λ=0\.85\\lambda=0\.85, all layers3\.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\.7c\{c\}mHC,λ=0\.97\\lambda=0\.97, all layers3\.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\.2c\{c\}mHC,λ=0\.97\\lambda=0\.97,K=10K=103\.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\.2c\{c\}mHC,λ=0\.97\\lambda=0\.97,K=5K=53\.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\.2c\{c\}mHC,λ=0\.97\\lambda=0\.97,K=2K=23\.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\-EduResidual,n=1n=13\.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\.2Residual,n=4n=43\.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\.3HC3\.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\.8mHC3\.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\.0mHC\-lite3\.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\.3KromHC3\.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\.3c\{c\}mHC,λ=0\.70\\lambda=0\.70, all layers3\.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\.3c\{c\}mHC,λ=0\.85\\lambda=0\.85, all layers3\.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\.0c\{c\}mHC,λ=0\.97\\lambda=0\.97, all layers3\.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\.3c\{c\}mHC,λ=0\.97\\lambda=0\.97,K=10K=103\.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\.7c\{c\}mHC,λ=0\.97\\lambda=0\.97,K=5K=53\.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\.0c\{c\}mHC,λ=0\.97\\lambda=0\.97,K=2K=23\.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\}

![Refer to caption](https://arxiv.org/html/2611.27193v1/lossgrad.png)Figure 6:Loss gaps relative toc\{c\}mHCand gradient norms \(nanoGPT\-S; OpenWebText\)\.#### Main comparative results\.

Table[1](https://arxiv.org/html/2611.27193#S4.T1)shows thatc\{c\}mHCwithλ=0\.97\\lambda=0\.97andK=2K=2achieves the best average loss rank on both datasets\. On OpenWebText, this configuration outperforms bothmHCandmHC\-litein training and validation loss at every scale, reducing validation loss overmHC\-liteby0\.00730\.0073,0\.00240\.0024, and0\.00450\.0045, respectively\. On FineWeb\-Edu,c\{c\}mHCachieves 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 ofc\{c\}mHCremain comparable to the traditionalmHCandmHC\-litewhile significantly better than the unconstrainedHC\. These results demonstrate improved language modeling through moderate stream mixing without additional learnable parameters\.

#### Convergence and stability\.

Figure[6](https://arxiv.org/html/2611.27193#S4.F6)shows the training curves of the loss gap and gradient norm\.c\{c\}mHCobtains the lowest training loss at convergence\. AlthoughHCappears 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:HCcontinues to fluctuate by∼0\.05\\sim\\\!0\.05in later training stages and remains substantially higher than the other baselines, whereasc\{c\}mHCmaintains one of the lowest and most stable gradient norms\. Moreover, in Figure[6](https://arxiv.org/html/2611.27193#S4.F6), all existing baselines have higher training losses than traditional residual connections with 4 independent streams, whilec\{c\}mHCis the only method that achieves a lower training loss\. See Appendix[E\.2](https://arxiv.org/html/2611.27193#A5.SS2)for more results on nanoGPT\-M and nanoGPT\-L\.

#### Ablation onλ\\lambda\.

With contraction applied to all layers, the moderate contractionλ=0\.97\\lambda=0\.97consistently outperforms the strong contractionλ=0\.70\\lambda=0\.70on both datasets\. The validation\-loss advantage grows from0\.00430\.0043to0\.01430\.0143on OpenWebText and from0\.00050\.0005to0\.01250\.0125on FineWeb\-Edu as depth increases from 12 to 48 layers\. These results support our mixing trade\-off strategy that applies a moderate contraction\.

#### Ablation onKK\.

Fixingλ=0\.97\\lambda=0\.97, we test the contraction on the firstK∈\{2,5,10\}K\\in\\\{2,5,10\\\}and all layers\. The results in Table[1](https://arxiv.org/html/2611.27193#S4.T1)suggest that applying contraction to only a few layers works better than applying it to all layers, especially in deeper networks\. Average loss ranks also improve asKKdecreases from1010to55to22\. These results support our mixing trade\-off strategy that encourages stream mixing on shallow layers\.

Table 2:Shallow and deep contractions on OpenWebText \(mean ± standard deviation over 3 runs\) with fixedλ=0\.97\\lambda=0\.97\. Best results are inbold\.nanoGPT\-S, \#Layers=12nanoGPT\-M, \#Layers=24nanoGPT\-L, \#Layers=48MethodTrain LossVal\. LossGrad\. NormTrain LossVal\. LossGrad\. NormTrain LossVal\. LossGrad\. NormAvg\. Loss Rankc\{c\}mHC,K=2K=23\.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\.00063\.2548\_\{\\pm 0\.0006\}3\.2540±0\.00073\.2540\_\{\\pm 0\.0007\}0\.3726±0\.01370\.3726\_\{\\pm 0\.0137\}3\.1791±0\.0032\\mathbf\{3\.1791\}\_\{\\pm 0\.0032\}3\.1904±0\.0032\\mathbf\{3\.1904\}\_\{\\pm 0\.0032\}0\.4353±0\.01400\.4353\_\{\\pm 0\.0140\}1\.3\\mathbf\{1\.3\}c\{c\}mHC,K=−1K=\-13\.4780±0\.00283\.4780\_\{\\pm 0\.0028\}3\.4743±0\.00273\.4743\_\{\\pm 0\.0027\}0\.3770±0\.01990\.3770\_\{\\pm 0\.0199\}3\.2557±0\.00193\.2557\_\{\\pm 0\.0019\}3\.2549±0\.00203\.2549\_\{\\pm 0\.0020\}0\.3728±0\.01480\.3728\_\{\\pm 0\.0148\}3\.1812±0\.00233\.1812\_\{\\pm 0\.0023\}3\.1918±0\.00263\.1918\_\{\\pm 0\.0026\}0\.4360±0\.01530\.4360\_\{\\pm 0\.0153\}3\.03\.0c\{c\}mHC,K=−2K=\-23\.4847±0\.00223\.4847\_\{\\pm 0\.0022\}3\.4802±0\.00223\.4802\_\{\\pm 0\.0022\}0\.3940±0\.03370\.3940\_\{\\pm 0\.0337\}3\.2576±0\.00473\.2576\_\{\\pm 0\.0047\}3\.2569±0\.00463\.2569\_\{\\pm 0\.0046\}0\.3738±0\.01670\.3738\_\{\\pm 0\.0167\}3\.1795±0\.00183\.1795\_\{\\pm 0\.0018\}3\.1908±0\.00183\.1908\_\{\\pm 0\.0018\}0\.4368±0\.01510\.4368\_\{\\pm 0\.0151\}3\.23\.2c\{c\}mHC,K=−10K=\-103\.5225±0\.04963\.5225\_\{\\pm 0\.0496\}3\.5184±0\.04923\.5184\_\{\\pm 0\.0492\}1\.3792±0\.19611\.3792\_\{\\pm 0\.1961\}3\.2528±0\.0019\\mathbf\{3\.2528\}\_\{\\pm 0\.0019\}3\.2518±0\.0017\\mathbf\{3\.2518\}\_\{\\pm 0\.0017\}0\.3761±0\.01690\.3761\_\{\\pm 0\.0169\}3\.1798±0\.00223\.1798\_\{\\pm 0\.0022\}3\.1906±0\.00213\.1906\_\{\\pm 0\.0021\}0\.4449±0\.01720\.4449\_\{\\pm 0\.0172\}2\.52\.5

### 4\.2Shallow vs\. Deep Contraction

To examine whether shallow contraction outperform deeper contraction, we conduct an experiment by keepingλ=0\.97\\lambda=0\.97and the other experimental settings fixed, and applying contraction to the lastmmlayers, denoted byK=−mK=\-mform∈\{1,2,10\}m\\in\\\{1,2,10\\\}\.

We can observe from the results in Table[2](https://arxiv.org/html/2611.27193#S4.T2)thatshallow contraction yields lower training and validation losses than deep contraction on both nanoGPT\-S and nanoGPT\-L\. The only exception isK=−10K=\-10on nanoGPT\-M, but the same setting substantially raises nanoGPT\-S validation loss to3\.51843\.5184\.Deep contraction models also have higher gradient norms in 8/9 cases, suggesting less stable training\.These results indicate that deep contraction does not yield a consistent and robust improvement over shallow contraction\.

### 4\.3Scalability: From 6B to 300B Parameters

#### Setup\.

We evaluate scalability using 6B and 300B parameter mixture\-of\-experts \(MoE\)\([Shazeer et al\., 2017](https://arxiv.org/html/2611.27193#bib.bib21)\)language models trained on FineWeb\-Edu\. Both adopt a DeepSeek\-style architecture\([DeepSeek\-AI, 2024](https://arxiv.org/html/2611.27193#bib.bib22)\)with multi\-latent attention and sparse MoE layers, using four residual streams\. We set thec\{c\}mHCcontraction coefficient toλ=0\.97\\lambda=0\.97for 6B andλ=0\.96\\lambda=0\.96for 300B\. Full architecture, training, and contraction settings are provided in Appendix[D\.1](https://arxiv.org/html/2611.27193#A4.SS1)\.

![Refer to caption](https://arxiv.org/html/2611.27193v1/lossgrad6+300.png)Figure 7:Loss gaps relative toc\{c\}mHCand gradient norms \(6B\- and 300B\-MoE; FineWeb\-Edu\)\.Figure[7](https://arxiv.org/html/2611.27193#S4.F7)compares the training loss gaps relative toc\{c\}mHCand the corresponding gradient norms\. At the 6B scale, after an early transient,c\{c\}mHCfinishes training with loss advantages of0\.0020\.002overmHCand0\.0050\.005overmHC\-liteat step71\.571\.5k\. Moreover, the gradient norm ofc\{c\}mHCkeeps an advantage over the two baselines, indicating its training stability\. From our scalability test on 300B\-MoE,c\{c\}mHCalso attains a lower loss thanmHC, with a gap of0\.01570\.0157at step22k;c\{c\}mHCmaintains smaller and smoother gradient norms, whereasmHCexhibits larger fluctuations\. These results provide evidence that the benefit of our geometric contraction extends from 6B to substantially larger 300B models, including both lower losses and more stable optimization\.

### 4\.4Efficient Fused Operators on Ascend NPUs

Although the geometric contraction introduces no additional asymptotic computation, a direct framework implementation still launches several small operators and repeatedly accesses the widened multi\-stream state\. We therefore implement fused Pre and Post operators in Ascend C\([Huawei Technologies Co\., Ltd\., 2025](https://arxiv.org/html/2611.27193#bib.bib18)\)\. The Pre operator combines coefficient generation, stream aggregation, and the projection of𝜶l\\bm\{\\alpha\}\_\{l\}onto the contracted permutation matrices\{𝐏l,m′\}m=1n\!\\\{\\mathbf\{P\}^\{\\prime\}\_\{l,m\}\\\}\_\{m=1\}^\{n\!\}; the Post operator fuses residual mixing and post expansion\. Dense projections run on cube cores, whereas reductions, nonlinearities, and the small\-nnmixing operations run on vector cores\. The contracted bases are prepared once per layer and cached, so the kernels implement exactly the same parameterization as \([3](https://arxiv.org/html/2611.27193#S2.E3)\)\. Architecture diagrams, kernel data paths, backward equations, and memory\-layout details are provided in Appendix[F](https://arxiv.org/html/2611.27193#A6)\.

We benchmark the complete fused\-operator pipeline on an Ascend 910C server with CANN 9\.1\.0\. All workloads useB=1B=1,S=4096S=4096, andn=4n=4; the Transformer sublayer is excluded so that the comparison isolates the hyper\-connection operators\. As shown in Table[3](https://arxiv.org/html/2611.27193#S4.T3), our implementation reduces total forward\+\+backward latency by44\.8%44\.8\\%,31\.0%31\.0\\%, and24\.1%24\.1\\%asDDincreases from2,0482,048to7,1687,168\. The benefit is largest at smaller hidden dimensions, where launch and intermediate\-memory overhead constitute a larger share of execution time\. Detailed Pre/Post breakdowns and comparison with an unfused MindSpore\([MindSpore, 2022](https://arxiv.org/html/2611.27193#bib.bib20)\)implementation are reported in Appendix[F](https://arxiv.org/html/2611.27193#A6)\.

Table 3:Total latency of the complete fusedc\{c\}mHCandmHCoperator pipelines on Ascend 910C, including both forward and backward Pre and Post operators\. Better latency time is inbold\.Input\[B,S,n,D\]\[B,S,n,D\]Total latency \(μ\\mus\)SpeedupReductionc\{c\}mHCmHC\[1,4096,4,2048\]\[1,4096,4,2048\]1,474\.59\\mathbf\{1,474\.59\}2,670\.022,670\.021\.81×1\.81\\times44\.8%44\.8\\%\[1,4096,4,3584\]\[1,4096,4,3584\]2,706\.02\\mathbf\{2,706\.02\}3,923\.593,923\.591\.45×1\.45\\times31\.0%31\.0\\%\[1,4096,4,7168\]\[1,4096,4,7168\]6,472\.56\\mathbf\{6,472\.56\}8,523\.018,523\.011\.32×1\.32\\times24\.1%24\.1\\%

## 5Conclusion

We study how manifold\-constrained hyper\-connections mix information across feature streams\. We first reveal that residual matrices in traditional methods tend to stay close to the permutation vertices of the Birkhoff polytope, leading to under\-mixing, while excessive mixing can drive streams toward a uniform state and suppress their differences\. Motivated by this mixing trade\-off, we proposec\{c\}mHC, which geometrically contracts the Birkhoff polytope toward its interior, providing a provable bound on stream mixing without introducing any new parameterization\. Our analysis bounds cumulative residual mixing, stream differences and gradient differences of mixing coefficients across layers, showing that the effect of contraction depends jointly on its strength and the number of contracted layers\. This motivates a simple but effective strategy that applies a moderate contraction to shallow layers to prevent over\-mixing\. Our comparative experiments and analyses of training dynamics from GPT\-2 to 6B\- and 300B\-MoE models validate the effectiveness and scalability ofc\{c\}mHC\. We further develop fused operators forc\{c\}mHCon Ascend NPUs, reducing hyper\-connection execution latency by up to 44\.8%, to further support industrial use\.

## References

- Alimaskinaet al\.\(2026\)E\. Alimaskina, G\. Molodtsov, and A\. BeznosikovAnalyzing stream collapse in hyper\-connections: from diagnosis to mitigation\.InICML 2026 Workshop on Weight\-Space Symmetries: from Foundations to Practical Applications,Cited by:[Appendix B](https://arxiv.org/html/2611.27193#A2.SS0.SSS0.Px2.p1.1),[Appendix B](https://arxiv.org/html/2611.27193#A2.SS0.SSS0.Px3.p1.1),[§1](https://arxiv.org/html/2611.27193#S1.SS0.SSS0.Px1.p1.1),[§2\.1](https://arxiv.org/html/2611.27193#S2.SS1.p1.1)\.
- Banach \(1922\)S\. BanachSur les opérations dans les ensembles abstraits et leur application aux équations intégrales\.Fundamenta Mathematicae3\(1\),pp\. 133–181\.Cited by:[Theorem A\.2](https://arxiv.org/html/2611.27193#A1.Thmtheorem2),[§3\.1](https://arxiv.org/html/2611.27193#S3.SS1.p1.1)\.
- Birkhoff \(1946\)G\. BirkhoffThree observations on linear algebra\.Univ\. Nac\. Tacuman, Rev\. Ser\. A5,pp\. 147–151\.Cited by:[Theorem A\.1](https://arxiv.org/html/2611.27193#A1.Thmtheorem1),[§2](https://arxiv.org/html/2611.27193#S2.SS0.SSS0.Px1.p1.3)\.
- Dandachi and Diggs\-Galligan \(2026\)T\. Dandachi and S\. Diggs\-Galligango\-mHC: direct parameterization of manifold\-constrained hyper\-connections via generalized orthostochastic matrices\.arXiv:2604\.02309\.Cited by:[Appendix B](https://arxiv.org/html/2611.27193#A2.SS0.SSS0.Px3.p1.1),[§1](https://arxiv.org/html/2611.27193#S1.SS0.SSS0.Px1.p1.1)\.
- DeepSeek\-AIet al\.\(2025\)DeepSeek\-AIet al\.DeepSeek\-R1: incentivizing reasoning capability in LLMs via reinforcement learning\.arXiv preprint arXiv:2501\.12948\.Cited by:[Appendix B](https://arxiv.org/html/2611.27193#A2.SS0.SSS0.Px1.p1.1)\.
- DeepSeek\-AIet al\.\(2026\)DeepSeek\-AIet al\.DeepSeek\-V4: towards highly efficient million\-token context intelligence\.arXiv preprint arXiv:2606\.19348\.Cited by:[Appendix B](https://arxiv.org/html/2611.27193#A2.SS0.SSS0.Px1.p1.1)\.
- DeepSeek\-AI \(2024\)DeepSeek\-AIDeepSeek\-V2: a strong, economical, and efficient mixture\-of\-experts language model\.arXiv:2405\.04434\.Cited by:[§4\.3](https://arxiv.org/html/2611.27193#S4.SS3.SSS0.Px1.p1.1)\.
- Gaubert and Qu \(2015\)S\. Gaubert and Z\. QuDobrushin’s ergodicity coefficient for Markov operators on cones\.Integral Equations and Operator Theory81\(1\),pp\. 127–150\.Cited by:[§3\.1](https://arxiv.org/html/2611.27193#S3.SS1.p2.1)\.
- Gokaslan and Cohen \(2019\)A\. Gokaslan and V\. CohenOpenWebText corpus\.External Links:[Link](http://skylion007.github.io/OpenWebTextCorpus)Cited by:[Appendix D](https://arxiv.org/html/2611.27193#A4.SS0.SSS0.Px1.p1.1),[§4](https://arxiv.org/html/2611.27193#S4.SS0.SSS0.Px1.p1.1)\.
- Grattafioriet al\.\(2024\)A\. Grattafioriet al\.The Llama 3 herd of models\.arXiv preprint arXiv:2407\.21783\.Cited by:[Appendix B](https://arxiv.org/html/2611.27193#A2.SS0.SSS0.Px1.p1.1)\.
- Guet al\.\(2026\)Y\. Gu, W\. Zhou, H\. Xing, and D\. MandicTEMPER: tensorized efficient manifold\-constrained parameterization for expressive residual routing\.arXiv:2608\.07851\.Cited by:[Appendix B](https://arxiv.org/html/2611.27193#A2.SS0.SSS0.Px2.p1.1)\.
- Guoet al\.\(2026\)H\. Guo, X\. Chen, B\. Ke, Y\. Lei, Z\. Xu, S\. Feng, Ximen, and W\. LuooHC: orthogonal hyper\-connections on SO\(4\) via quaternions\.arXiv:2609\.02672\.Cited by:[Appendix B](https://arxiv.org/html/2611.27193#A2.SS0.SSS0.Px3.p1.1),[§1](https://arxiv.org/html/2611.27193#S1.SS0.SSS0.Px1.p1.1)\.
- Heet al\.\(2016\)K\. He, X\. Zhang, S\. Ren, and J\. SunDeep residual learning for image recognition\.InCVPR,pp\. 770–778\.Cited by:[Appendix B](https://arxiv.org/html/2611.27193#A2.SS0.SSS0.Px2.p1.1),[§1](https://arxiv.org/html/2611.27193#S1.p1.1)\.
- Heet al\.\(2024\)Z\. Heet al\.Telechat technical report\.arXiv preprint arXiv:2401\.03804\.Cited by:[Appendix B](https://arxiv.org/html/2611.27193#A2.SS0.SSS0.Px1.p1.1)\.
- Huawei Technologies Co\., Ltd\. \(2025\)Huawei Technologies Co\., Ltd\.About Ascend C\.Note:CANN Documentation,[https://www\.hiascend\.com/document/detail/en/canncommercial/850/opdevg/Ascendcopdevg/atlas\_ascendc\_map\_10\_0002\.html](https://www.hiascend.com/document/detail/en/canncommercial/850/opdevg/Ascendcopdevg/atlas_ascendc_map_10_0002.html)Cited by:[Appendix F](https://arxiv.org/html/2611.27193#A6.p2.1),[§4\.4](https://arxiv.org/html/2611.27193#S4.SS4.p1.1)\.
- Huawei Technologies Co\., Ltd\. \(2026\)Huawei Technologies Co\., Ltd\.CANN 9\.1\.0 Documentation\.Note:Ascend Developer Zone,[https://www\.hiascend\.com/document/detail/zh/CANNCommunityEdition/910/index/index\.html](https://www.hiascend.com/document/detail/zh/CANNCommunityEdition/910/index/index.html)Cited by:[§F\.5](https://arxiv.org/html/2611.27193#A6.SS5.p1.1)\.
- Karpathy \(2025\)A\. KarpathyNanochat: the best ChatGPT that $100 can buy\.GitHub\.External Links:[Link](https://github.com/karpathy/nanochat)Cited by:[§4\.1](https://arxiv.org/html/2611.27193#S4.SS1.p1.1)\.
- Liuet al\.\(2025\)X\. Liuet al\.Training report of telechat3\-moe\.arXiv preprint arXiv:2512\.24157\.Cited by:[Appendix B](https://arxiv.org/html/2611.27193#A2.SS0.SSS0.Px1.p1.1)\.
- Liuet al\.\(2026\)Z\. Liu, H\. Zhang, and A\. LiSpectral\-sphere\-constrained hyper\-connections\.InNeurIPS,Cited by:[Appendix B](https://arxiv.org/html/2611.27193#A2.SS0.SSS0.Px2.p1.1),[Appendix B](https://arxiv.org/html/2611.27193#A2.SS0.SSS0.Px3.p1.1),[§1](https://arxiv.org/html/2611.27193#S1.SS0.SSS0.Px1.p1.1),[§2\.1](https://arxiv.org/html/2611.27193#S2.SS1.p1.1)\.
- Lozhkovet al\.\(2024\)A\. Lozhkov, L\. B\. Allal, L\. von Werra, and T\. WolfFineweb\-Edu: the finest collection of educational content\.External Links:[Link](https://huggingface.co/datasets/HuggingFaceFW/fineweb-edu)Cited by:[Appendix D](https://arxiv.org/html/2611.27193#A4.SS0.SSS0.Px1.p1.1),[§4](https://arxiv.org/html/2611.27193#S4.SS0.SSS0.Px1.p1.1)\.
- Lyubinin \(2026\)A\. LyubininTBP\-mHC: full expressivity for manifold\-constrained hyper connections through transportation polytopes\.arXiv:2605\.21724\.Cited by:[Appendix B](https://arxiv.org/html/2611.27193#A2.SS0.SSS0.Px3.p1.1)\.
- MindSpore \(2022\)MindSporeMindSpore technical white paper\.Note:MindSpore Documentation,[https://www\.mindspore\.cn/docs/en/r1\.7/design/technical\_white\_paper\.html](https://www.mindspore.cn/docs/en/r1.7/design/technical_white_paper.html)Accessed: 2026\-08\-27Cited by:[§F\.5](https://arxiv.org/html/2611.27193#A6.SS5.p5.1),[§4\.4](https://arxiv.org/html/2611.27193#S4.SS4.p2.1)\.
- Penget al\.\(2024\)B\. Peng, J\. Quesnelle, H\. Fan, and E\. ShippoleYaRN: efficient context window extension of large language models\.InICLR,Cited by:[§D\.1](https://arxiv.org/html/2611.27193#A4.SS1.SSS0.Px1.p1.1)\.
- Penget al\.\(2026\)W\. Peng, J\. Rai, K\. Tseng, S\. Wang, and S\. WuAblate and rescue: a causal analysis of residual stream hyper\-connections\.arXiv:2603\.14833\.Cited by:[Appendix B](https://arxiv.org/html/2611.27193#A2.SS0.SSS0.Px4.p1.1)\.
- Senguptaet al\.\(2026\)B\. Sengupta, J\. Wang, and L\. BrunswicJPmHC dynamical isometry via orthogonal hyper\-connections\.arXiv:2602\.18308\.Cited by:[Appendix B](https://arxiv.org/html/2611.27193#A2.SS0.SSS0.Px3.p1.1)\.
- Shazeeret al\.\(2017\)N\. Shazeer, A\. Mirhoseini, K\. Maziarz, A\. Davis, Q\. Le, G\. Hinton, and J\. DeanOutrageously large neural networks: the sparsely\-gated mixture\-of\-experts layer\.InICLR,Cited by:[§4\.3](https://arxiv.org/html/2611.27193#S4.SS3.SSS0.Px1.p1.1)\.
- Shazeer \(2020\)N\. ShazeerGLU variants improve Transformer\.arXiv:2002\.05202\.Cited by:[§D\.1](https://arxiv.org/html/2611.27193#A4.SS1.SSS0.Px1.p1.1)\.
- Songet al\.\(2026\)S\. Songet al\.TeleChat to xing4: advancing frontier agentic models on domestic chips and frameworks\.arXiv preprint arXiv:2611\.22115\.Cited by:[Appendix B](https://arxiv.org/html/2611.27193#A2.SS0.SSS0.Px1.p1.1)\.
- Suet al\.\(2024\)J\. Su, M\. Ahmed, Y\. Lu, S\. Pan, W\. Bo, and Y\. LiuRoFormer: enhanced Transformer with rotary position embedding\.Neurocomputing568,pp\. 127063\.Cited by:[§D\.1](https://arxiv.org/html/2611.27193#A4.SS1.SSS0.Px1.p1.1)\.
- von Neumann \(1953\)J\. von NeumannA certain zero\-sum two\-person game equivalent to the optimal assignment problem\.Contributions to the Theory of Games \(AM\-28\), Volume II2,pp\. 5–12\.Cited by:[Theorem A\.1](https://arxiv.org/html/2611.27193#A1.Thmtheorem1)\.
- Wanget al\.\(2024\)Z\. Wanget al\.TeleChat: an open\-source bilingual large language model\.InProceedings of the 10th SIGHAN Workshop on Chinese Language Processing \(SIGHAN\-10\),pp\. 10–20\.Cited by:[Appendix B](https://arxiv.org/html/2611.27193#A2.SS0.SSS0.Px1.p1.1)\.
- Wanget al\.\(2025\)Z\. Wanget al\.Technical report of telechat2, telechat2\. 5 and t1\.arXiv preprint arXiv:2507\.18013\.Cited by:[Appendix B](https://arxiv.org/html/2611.27193#A2.SS0.SSS0.Px1.p1.1)\.
- Xieet al\.\(2026\)Z\. Xie, Y\. Wei, H\. Cao, C\. Zhao, C\. Deng, J\. Li, D\. Dai, H\. Gao, M\. Xu, K\. Yu,et al\.mHC: manifold\-constrained hyper\-connections\.InICML,Cited by:[§A\.1](https://arxiv.org/html/2611.27193#A1.SS1.p1.1),[Appendix B](https://arxiv.org/html/2611.27193#A2.SS0.SSS0.Px2.p1.1),[§1](https://arxiv.org/html/2611.27193#S1.p1.1),[§2\.2](https://arxiv.org/html/2611.27193#S2.SS2.p3.1),[§4](https://arxiv.org/html/2611.27193#S4.SS0.SSS0.Px1.p1.1)\.
- Yanget al\.\(2025\)A\. Yanget al\.Qwen3 technical report\.arXiv preprint arXiv:2505\.09388\.Cited by:[Appendix B](https://arxiv.org/html/2611.27193#A2.SS0.SSS0.Px1.p1.1)\.
- Yang and Gao \(2026\)Y\. Yang and J\. GaomHC\-lite: you don’t need 20 Sinkhorn\-Knopp iterations\.InICLR 2026 Workshop on Geometry\-grounded Representation Learning and Generative Modeling,Cited by:[§A\.2](https://arxiv.org/html/2611.27193#A1.SS2.p1.1),[Appendix B](https://arxiv.org/html/2611.27193#A2.SS0.SSS0.Px2.p1.1),[Appendix D](https://arxiv.org/html/2611.27193#A4.SS0.SSS0.Px2.p1.1),[§1](https://arxiv.org/html/2611.27193#S1.p1.1),[§4](https://arxiv.org/html/2611.27193#S4.SS0.SSS0.Px1.p1.1)\.
- Yosinskiet al\.\(2014\)J\. Yosinski, J\. Clune, Y\. Bengio, and H\. LipsonHow transferable are features in deep neural networks?\.InNIPS,pp\. 3320–3328\.Cited by:[§3\.3](https://arxiv.org/html/2611.27193#S3.SS3.SSS0.Px1.p2.1)\.
- Zhang and Sennrich \(2019\)B\. Zhang and R\. SennrichRoot mean square layer normalization\.InNeurIPS,pp\. 12381–12392\.Cited by:[§D\.1](https://arxiv.org/html/2611.27193#A4.SS1.SSS0.Px1.p1.1)\.
- Zhanget al\.\(2026\)X\. Zhang, X\. Qin, S\. Zou, T\. Dai, X\. Shi, H\. Wu, Y\. Yang, Z\. Xia, S\. Zhang, L\. Yao,et al\.xHC: expanded hyper\-connections\.InNeurIPS,Cited by:[Appendix B](https://arxiv.org/html/2611.27193#A2.SS0.SSS0.Px2.p1.1),[Appendix B](https://arxiv.org/html/2611.27193#A2.SS0.SSS0.Px3.p2.1)\.
- Zhaoet al\.\(2026\)P\. Zhao, X\. Li, X\. Yu, W\. Guo, and Z\. DongHow does mHC use its residual streams? selective routing and near\-identity mixing\.arXiv:2609\.05309\.Cited by:[§3\.3](https://arxiv.org/html/2611.27193#S3.SS3.SSS0.Px1.p2.1)\.
- Zhouet al\.\(2026\)W\. Zhou, Y\. Gu, G\. Iacovides, and D\. MandicKromHC: manifold\-constrained hyper\-connections with Kronecker\-product residual matrices\.InICML,pp\.\.Cited by:[Appendix B](https://arxiv.org/html/2611.27193#A2.SS0.SSS0.Px2.p1.1),[§4](https://arxiv.org/html/2611.27193#S4.SS0.SSS0.Px1.p1.1)\.
- Zhuet al\.\(2025\)D\. Zhu, H\. Huang, Z\. Huang, Y\. Zeng, Y\. Mao, B\. Wu, Q\. Min, and X\. ZhouHyper\-connections\.InICLR,Cited by:[Appendix B](https://arxiv.org/html/2611.27193#A2.SS0.SSS0.Px2.p1.1),[§1](https://arxiv.org/html/2611.27193#S1.p1.1),[§4](https://arxiv.org/html/2611.27193#S4.SS0.SSS0.Px1.p1.1)\.

## Appendix Contents

## Appendix APreliminary

### A\.1Manifold\-Constrained Hyper\-Connections \(mHC\)

To resolve the training instability ofHCcaused by the unconstrained residual matrix𝐇res\\mathbf\{H\}^\{\\mathrm\{res\}\}, DeepSeek proposed Manifold\-Constrained Hyper\-Connections \(mHC\)\([Xie et al\., 2026](https://arxiv.org/html/2611.27193#bib.bib3)\)which constrains𝐇res\\mathbf\{H\}^\{\\mathrm\{res\}\}to the space of doubly stochastic matrices, known as theBirkhoff polytopeBn\{B\}\_\{n\}\. A matrix𝐔∈ℝn×n\\mathbf\{U\}\\in\\mathbb\{R\}^\{n\\times n\}is doubly stochastic if it satisfies:

ui​j≥0​∀i,j∈\{1,…,n\},∑i=1nui​j=1​∀i,∑j=1nui​j=1​∀j\.u\_\{ij\}\\geq 0\\ \\forall i,j\\in\\\{1,\\dots,n\\\},\\quad\\sum\_\{i=1\}^\{n\}u\_\{ij\}=1\\ \\forall i,\\quad\\sum\_\{j=1\}^\{n\}u\_\{ij\}=1\\ \\forall j\.\(15\)By forcing𝐇res\\mathbf\{H\}^\{\\mathrm\{res\}\}to be doubly stochastic, the mixing between feature streams becomes a convex combination\. As the spectral norm of a doubly stochastic matrix is bounded by 1, it prevents signal amplification and guarantees the mathematical preservation of the identity mapping\. In standard mHC, projection ontoBn\{B\}\_\{n\}is achieved via the iterative Sinkhorn\-Knopp algorithm:

𝐇\(0\)res=exp⁡\(𝐒\),𝐇\(t\+1\)res=Diag​\(𝐇\(t\)res​𝟏n\)−1​𝐇\(t\)res​Diag​\(𝟏n⊤​𝐇\(t\)res\)−1,\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{\(0\)\}=\\exp\(\\mathbf\{S\}\),\\quad\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{\(t\+1\)\}=\\mathrm\{Diag\}\\left\(\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{\(t\)\}\\mathbf\{1\}\_\{n\}\\right\)^\{\-1\}\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{\(t\)\}\\mathrm\{Diag\}\\left\(\\mathbf\{1\}\_\{n\}^\{\\top\}\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{\(t\)\}\\right\)^\{\-1\},\(16\)where𝐒∈ℝn×n\\mathbf\{S\}\\in\\mathbb\{R\}^\{n\\times n\}is a learned logit matrix\.

The components of amHCblock can be formalized as

\{𝐱l′=RMSNorm⁡\(flatten⁡\(𝐱l\)\),𝐇lpre=σ⁡\(alpre​𝐱l′​𝐖lpre\+𝐛lpre\),𝐇lpost=2​σ​\(alpost​𝐱l′​𝐖lpost\+𝐛lpost\),𝐇lres=Sinkhorn\-Knopp​\(alres​mat​\(𝐱l′​𝐖lres\)\+𝐛lres\),\\left\\\{\\begin\{aligned\} \\mathbf\{x\}^\{\\prime\}\_\{l\}&=\\mathrm\{RMSNorm\}\(\\mathrm\{flatten\}\(\\mathbf\{x\}\_\{l\}\)\),\\\\ \\mathbf\{H\}^\{\\mathrm\{pre\}\}\_\{l\}&=\\sigma\\left\(a^\{\\mathrm\{pre\}\}\_\{l\}\\mathbf\{x\}^\{\\prime\}\_\{l\}\\mathbf\{W\}^\{\\mathrm\{pre\}\}\_\{l\}\+\\mathbf\{b\}^\{\\mathrm\{pre\}\}\_\{l\}\\right\),\\\\ \\mathbf\{H\}^\{\\mathrm\{post\}\}\_\{l\}&=2\\sigma\\left\(a^\{\\mathrm\{post\}\}\_\{l\}\\mathbf\{x\}^\{\\prime\}\_\{l\}\\mathbf\{W\}^\{\\mathrm\{post\}\}\_\{l\}\+\\mathbf\{b\}^\{\\mathrm\{post\}\}\_\{l\}\\right\),\\\\ \\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{l\}&=\\text\{Sinkhorn\-Knopp\}\\left\(a^\{\\mathrm\{res\}\}\_\{l\}\\mathrm\{mat\}\\left\(\\mathbf\{x\}^\{\\prime\}\_\{l\}\\mathbf\{W\}^\{\\mathrm\{res\}\}\_\{l\}\\right\)\+\\mathbf\{b\}^\{\\mathrm\{res\}\}\_\{l\}\\right\),\\end\{aligned\}\\right\.\(17\)where𝐖lpre,𝐖lpost∈ℝn​d×n\\mathbf\{W\}^\{\\mathrm\{pre\}\}\_\{l\},\\mathbf\{W\}^\{\\mathrm\{post\}\}\_\{l\}\\in\\mathbb\{R\}^\{nd\\times n\},𝐖lres∈ℝn​d×n2\\mathbf\{W\}^\{\\mathrm\{res\}\}\_\{l\}\\in\\mathbb\{R\}^\{nd\\times n^\{2\}\}and𝐛lpre,𝐛lpost∈ℝ1×n\\mathbf\{b\}^\{\\mathrm\{pre\}\}\_\{l\},\\mathbf\{b\}^\{\\mathrm\{post\}\}\_\{l\}\\in\\mathbb\{R\}^\{1\\times n\},𝐛lres∈ℝ1×n2\\mathbf\{b\}^\{\\mathrm\{res\}\}\_\{l\}\\in\\mathbb\{R\}^\{1\\times n^\{2\}\}are linear projection weights and biases, respectively;alpre,alposta^\{\\mathrm\{pre\}\}\_\{l\},a^\{\\mathrm\{post\}\}\_\{l\}andalresa^\{\\mathrm\{res\}\}\_\{l\}are learnable scalars;mat:ℝ1×n2→ℝn×n\\mathrm\{mat\}\\\!:\\mathbb\{R\}^\{1\\times n^\{2\}\}\\rightarrow\\mathbb\{R\}^\{n\\times n\}is a reshape map;σ\\sigmais the Sigmoid function\.

### A\.2mHC\-lite: Birkhoff\-von Neumann Parameterization

A known issue ofmHC’s Sinkhorn\-Knopp algorithm is that it does not guarantee exact double stochasticity\. As it requires multiple iterations \(typicallyt≥10t\\geq 10or2020\) to converge, the column sum of𝐇lres\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{l\}may deviate from 1 under insufficient iterations\. To address this,mHC\-lite\([Yang and Gao, 2026](https://arxiv.org/html/2611.27193#bib.bib4)\)learns a direct convex combination of a set of pre\-defined 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\},\\quad\\bm\{\\alpha\}\_\{l\}=\\mathrm\{softmax\}\(a\_\{l\}^\{\\mathrm\{res\}\}\\mathbf\{x\}^\{\\prime\}\_\{l\}\\mathbf\{W\}^\{\\mathrm\{res\}\}\_\{l\}\+\\mathbf\{b\}^\{\\mathrm\{res\}\}\_\{l\}\),\(18\)and other components are identical to \([17](https://arxiv.org/html/2611.27193#A1.E17)\)\. This strategy guarantees exact double stochasticity because of the Birkhoff\-von Neumann Theorem:

###### Theorem A\.1\(Birkhoff\-von Neumann\([Birkhoff, 1946](https://arxiv.org/html/2611.27193#bib.bib7);[von Neumann, 1953](https://arxiv.org/html/2611.27193#bib.bib8)\)\)\.

Any doubly stochastic matrix𝐔∈Bn\\mathbf\{U\}\\in\{B\}\_\{n\}can be represented as a convex combination of permutation matrices:

𝐔=∑m=1n\!αm​𝐏m,\\mathbf\{U\}=\\sum\_\{m=1\}^\{n\!\}\\alpha\_\{m\}\\mathbf\{P\}\_\{m\},\(19\)where𝛂∈\[0,1\]n\!\\bm\{\\alpha\}\\in\[0,1\]^\{n\!\}is a probabilistic simplex vector and\{𝐏m\}m=1n\!∈ℝn×n\\\{\\mathbf\{P\}\_\{m\}\\\}\_\{m=1\}^\{n\!\}\\in\\mathbb\{R\}^\{n\\times n\}are permutation matrices\.

### A\.3Contraction Mapping and the Uniform Fixed Point

We provide the formal definition of a contraction mapping and establish the fixed point and convergence rate of the geometric map used inc\{c\}mHC\.

###### Definition A\.1\(Contraction mapping\)\.

Let\(M,d\)\(\{M\},d\)be a metric space\. A mapc:M→M\{c\}:\{M\}\\to\{M\}is a contraction if there exists0≤k<10\\leq k<1such that

d⁡\(c⁡\(u\),c⁡\(v\)\)≤k​d​\(u,v\),∀u,v∈M\.d\(\{c\}\(u\),\{c\}\(v\)\)\\leq k\\,d\(u,v\),\\qquad\\forall u,v\\in\{M\}\.\(20\)

###### Theorem A\.2\(Banach fixed\-point theorem\([Banach, 1922](https://arxiv.org/html/2611.27193#bib.bib13)\)\)\.

A contraction on a non\-empty complete metric space has a unique fixed point\. Starting from any point in the space, repeated application of the map converges to this fixed point\.

#### Applicability to the Birkhoff polytope\.

The Birkhoff polytopeBn\{B\}\_\{n\}is non\-empty and closed in the finite\-dimensional normed space\(ℝn×n,∥⋅∥F\)\(\\mathbb\{R\}^\{n\\times n\},\\\|\\cdot\\\|\_\{F\}\), and is therefore complete\. For a fixedλ∈\(1/n,1\)\\lambda\\in\(1/n,1\), define

𝐉n=1n​𝟏n​𝟏n⊤,λ′=n​λ−1n−1∈\(0,1\)\.\\mathbf\{J\}\_\{n\}=\\frac\{1\}\{n\}\\mathbf\{1\}\_\{n\}\\mathbf\{1\}\_\{n\}^\{\\top\},\\qquad\\lambda^\{\\prime\}=\\frac\{n\\lambda\-1\}\{n\-1\}\\in\(0,1\)\.\(21\)Equation \([4](https://arxiv.org/html/2611.27193#S2.E4)\) givesc⁡\(𝐇,λ\)=λ′​𝐇\+\(1−λ′\)​𝐉n\{c\}\(\\mathbf\{H\};\\lambda\)=\\lambda^\{\\prime\}\\mathbf\{H\}\+\(1\-\\lambda^\{\\prime\}\)\\mathbf\{J\}\_\{n\}\. Since𝐇,𝐉n∈Bn\\mathbf\{H\},\\mathbf\{J\}\_\{n\}\\in\{B\}\_\{n\}andBn\{B\}\_\{n\}is convex, this map sendsBn\{B\}\_\{n\}into itself\. Moreover,

‖c⁡\(𝐇,λ\)−c⁡\(𝐆,λ\)‖F=λ′​‖𝐇−𝐆‖F\.\\\|\{c\}\(\\mathbf\{H\};\\lambda\)\-\{c\}\(\\mathbf\{G\};\\lambda\)\\\|\_\{F\}=\\lambda^\{\\prime\}\\\|\\mathbf\{H\}\-\\mathbf\{G\}\\\|\_\{F\}\.\(22\)Thus, all conditions of Banach’s fixed\-point theorem hold\.

#### Unique fixed point\.

The fixed point𝐇∗\\mathbf\{H\}\_\{\*\}satisfies

𝐇∗=λ′​𝐇∗\+\(1−λ′\)​𝐉n\.\\mathbf\{H\}\_\{\*\}=\\lambda^\{\\prime\}\\mathbf\{H\}\_\{\*\}\+\(1\-\\lambda^\{\\prime\}\)\\mathbf\{J\}\_\{n\}\.\(23\)Since1−λ′\>01\-\\lambda^\{\\prime\}\>0, this implies𝐇∗=𝐉n\\mathbf\{H\}\_\{\*\}=\\mathbf\{J\}\_\{n\}\. Therefore, the unique fixed point is the uniform barycenter of the Birkhoff polytope\.

#### Convergence under repeated contraction\.

Let𝐇\(0\)∈Bn\\mathbf\{H\}^\{\(0\)\}\\in\{B\}\_\{n\}and define𝐇\(t\+1\)=c⁡\(𝐇\(t\),λ\)\\mathbf\{H\}^\{\(t\+1\)\}=\{c\}\(\\mathbf\{H\}^\{\(t\)\};\\lambda\)\. Subtracting𝐉n\\mathbf\{J\}\_\{n\}gives

𝐇\(t\+1\)−𝐉n=λ′​\(𝐇\(t\)−𝐉n\)\.\\mathbf\{H\}^\{\(t\+1\)\}\-\\mathbf\{J\}\_\{n\}=\\lambda^\{\\prime\}\(\\mathbf\{H\}^\{\(t\)\}\-\\mathbf\{J\}\_\{n\}\)\.\(24\)By induction,

𝐇\(t\)=𝐉n\+\(λ′\)t​\(𝐇\(0\)−𝐉n\),‖𝐇\(t\)−𝐉n‖F=\(λ′\)t​‖𝐇\(0\)−𝐉n‖F\.\\mathbf\{H\}^\{\(t\)\}=\\mathbf\{J\}\_\{n\}\+\(\\lambda^\{\\prime\}\)^\{t\}\(\\mathbf\{H\}^\{\(0\)\}\-\\mathbf\{J\}\_\{n\}\),\\qquad\\\|\\mathbf\{H\}^\{\(t\)\}\-\\mathbf\{J\}\_\{n\}\\\|\_\{F\}=\(\\lambda^\{\\prime\}\)^\{t\}\\\|\\mathbf\{H\}^\{\(0\)\}\-\\mathbf\{J\}\_\{n\}\\\|\_\{F\}\.\(25\)Hence, repeated contraction converges geometrically to𝐉n\\mathbf\{J\}\_\{n\}, with stronger contraction \(smallerλ\\lambda, hence smallerλ′\\lambda^\{\\prime\}\) yielding faster convergence\. At this limit, every output stream receives the same uniform mixture of input streams\.

## Appendix BRelated Work

#### Advances in large language models\.

Recent progress in large language models has been driven by advances in pretraining, post\-training, model architecture, and training systems\. Representative open\-weight model families, including Llama\([Grattafiori and others, 2024](https://arxiv.org/html/2611.27193#bib.bib38)\), Qwen\([Yang and others, 2025](https://arxiv.org/html/2611.27193#bib.bib39)\), and TeleChat\([He and others, 2024](https://arxiv.org/html/2611.27193#bib.bib37);[Wang and others, 2024](https://arxiv.org/html/2611.27193#bib.bib36)\), have improved multilingual language modeling and instruction following through large\-scale pretraining and alignment with human preferences\. Beyond general language capabilities, DeepSeek\-R1\([DeepSeek\-AI and others, 2025](https://arxiv.org/html/2611.27193#bib.bib40)\)and the TeleChat2, TeleChat2\.5, and T1 series\([Wang and others, 2025](https://arxiv.org/html/2611.27193#bib.bib35)\)demonstrate the role of post\-training and reinforcement learning in strengthening mathematical reasoning and code generation\. At the architectural and systems levels, sparse mixture\-of\-experts models and optimized distributed training have enabled further scaling, as illustrated by Qwen3\([Yang and others, 2025](https://arxiv.org/html/2611.27193#bib.bib39)\), DeepSeek\-V4\([DeepSeek\-AI and others, 2026](https://arxiv.org/html/2611.27193#bib.bib41)\), and TeleChat3\-MoE\([Liu and others, 2025](https://arxiv.org/html/2611.27193#bib.bib34)\)\. More recent efforts increasingly coordinate architectural design with execution efficiency: DeepSeek\-V4 combines compressed attention with manifold\-constrained hyper\-connections, while Xing4\([Song and others, 2026](https://arxiv.org/html/2611.27193#bib.bib33)\)jointly develops model architectures, training infrastructure, and reasoning and agentic post\-training on domestic chips and frameworks\. Together, these developments motivate stable and efficient architectural components for large\-scale models, providing the broader context for our study of residual\-stream mixing in hyper\-connections\.

#### Multi\-stream residual connections\.

Hyper\-Connections\([Zhu et al\., 2025](https://arxiv.org/html/2611.27193#bib.bib1)\)extend residual connections\([He et al\., 2016](https://arxiv.org/html/2611.27193#bib.bib2)\)with learnable aggregation, mixing, and redistribution across multiple streams\. To stabilize residual propagation,mHC\([Xie et al\., 2026](https://arxiv.org/html/2611.27193#bib.bib3)\)constrains residual mixing to doubly stochastic matrices through Sinkhorn normalization, whilemHC\-lite\([Yang and Gao, 2026](https://arxiv.org/html/2611.27193#bib.bib4)\)uses convex combinations of permutation matrices for an exact doubly stochastic constraint\. There are also improvements focusing on the efficiency of computing and scalability on more streams, such as Kronecker decomposition\([Zhou et al\., 2026](https://arxiv.org/html/2611.27193#bib.bib12)\), tensorization\([Gu et al\., 2026](https://arxiv.org/html/2611.27193#bib.bib28)\)and sparse stream update\([Zhang et al\., 2026](https://arxiv.org/html/2611.27193#bib.bib30)\)\. We discuss the mixing effectiveness of manifold\-constrained hyper\-connections, as existing research has revealed their under\-mixing phenomenon, also referred to as “stream collapse”\([Alimaskina et al\., 2026](https://arxiv.org/html/2611.27193#bib.bib5)\)or “identity degradation”\([Liu et al\., 2026](https://arxiv.org/html/2611.27193#bib.bib10)\); this harms the expressivity of multi\-stream design\.

#### Exploration of the Birkhoff polytope\.

A line of recent work exploresexpansionsof the Birkhoff polytope to address under\-mixing\. For example,[Liu et al\. \(2026\)](https://arxiv.org/html/2611.27193#bib.bib10)constrain the residual matrices into a spectral sphere which expands the doubly stochastic constraint to the negative domain\.[Guo et al\. \(2026\)](https://arxiv.org/html/2611.27193#bib.bib27)constrain residual matrices toS​O​\(n\)SO\(n\)rotation groups and parameterizesS​O​\(4\)SO\(4\)using pairs of unit quaternions\. However, such expansions cannot strictly guarantee a positive mixing effect inside the Birkhoff polytope without provable stream mixing bounds\. Another line of work focuses on a wider feasible region inside the Birkhoff polytope to encourage interior exploration\. For example,[Alimaskina et al\. \(2026\)](https://arxiv.org/html/2611.27193#bib.bib5)recommend a non\-symmetric initialization to unbind residual matrices from the polytope vertices;[Lyubinin \(2026\)](https://arxiv.org/html/2611.27193#bib.bib32)covers the polytope with recursive transport construction;[Dandachi and Diggs\-Galligan \(2026\)](https://arxiv.org/html/2611.27193#bib.bib11)and[Sengupta et al\. \(2026\)](https://arxiv.org/html/2611.27193#bib.bib31)introduce the orthogonal constraint to expand the spectral reach and ensure the stability of the gradient spectrum of hyper\-connections\. However, these approaches often rely on more involved constructions and parameterizations, such as Cayley Transform and per\-stream scaling vectors, while our approach introduces NO additional parameters and specialized constructions at all\.

Moreover, the effectiveness of most existing approaches is not validated on extremely large\-scale model pretraining\. To our knowledge, the largest parameter scale used for research\-based manifold\-constrained hyper\-connections is 28B by[Zhang et al\. \(2026\)](https://arxiv.org/html/2611.27193#bib.bib30), while we conduct scalability tests on a 300B mixture\-of\-experts model to validate the effectiveness and training stability of our method\.

#### Stream similarity and over\-mixing\.

A recent empirical analysis\([Peng et al\., 2026](https://arxiv.org/html/2611.27193#bib.bib29)\)shows that high representational similarity between streams does not imply functional interchangeability, as the non\-redundant part of streams can still play asymmetric roles to model predictions\. Our work examines a different question: we study stream differences through the convergence of residual mixing and the resulting risk of over\-mixing\. Besides, our concern is that residual mixing can drive streams towardidentical states, rather than merely making their representationssimilar\. When streams become nearly identical to each other, the redundancy between streams can be amplified and the informative asymmetry can be weakened\.

## Appendix CProofs

### C\.1Proof of Theorem[2\.1](https://arxiv.org/html/2611.27193#S2.Thmtheorem1)

Theorem[2\.1](https://arxiv.org/html/2611.27193#S2.Thmtheorem1)\(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\.

###### Proof\.

By the linearity of the convex combination, we have

c⁡\(𝐇lres,λ\)\\displaystyle\{c\}\(\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{l\};\\lambda\)=∑m=1n\!αl,m​\(λ​𝐏m\+1−λn−1​\(𝟏n​𝟏n⊤−𝐏m\)\)\\displaystyle=\\sum\_\{m=1\}^\{n\!\}\\alpha\_\{l,m\}\\left\(\\lambda\\mathbf\{P\}\_\{m\}\+\\frac\{1\-\\lambda\}\{n\-1\}\(\\mathbf\{1\}\_\{n\}\\mathbf\{1\}\_\{n\}^\{\\top\}\-\\mathbf\{P\}\_\{m\}\)\\right\)\(26\)=λ⁡\(∑m=1n\!αl,m​𝐏m\)\+1−λn−1​\(𝟏n​𝟏n⊤−∑m=1n\!αl,m​𝐏m\)\\displaystyle=\\lambda\\left\(\\sum\_\{m=1\}^\{n\!\}\\alpha\_\{l,m\}\\mathbf\{P\}\_\{m\}\\right\)\+\\frac\{1\-\\lambda\}\{n\-1\}\\left\(\\mathbf\{1\}\_\{n\}\\mathbf\{1\}\_\{n\}^\{\\top\}\-\\sum\_\{m=1\}^\{n\!\}\\alpha\_\{l,m\}\\mathbf\{P\}\_\{m\}\\right\)\(27\)=λ​𝐇lres\+1−λn−1​\(𝟏n​𝟏n⊤−𝐇lres\)\\displaystyle=\\lambda\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{l\}\+\\frac\{1\-\\lambda\}\{n\-1\}\(\\mathbf\{1\}\_\{n\}\\mathbf\{1\}\_\{n\}^\{\\top\}\-\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{l\}\)\(28\)for any doubly stochastic matrix𝐇lres\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{l\}\. As𝐇lres​𝟏n=𝟏n\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{l\}\\mathbf\{1\}\_\{n\}=\\mathbf\{1\}\_\{n\},𝟏n⊤​𝐇lres=𝟏n⊤\\mathbf\{1\}\_\{n\}^\{\\top\}\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{l\}=\\mathbf\{1\}\_\{n\}^\{\\top\}, we have

c⁡\(𝐇lres,λ\)​𝟏n\\displaystyle\{c\}\(\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{l\};\\lambda\)\\mathbf\{1\}\_\{n\}=λ​𝐇lres​𝟏n\+1−λn−1​\(𝟏n​𝟏n⊤−𝐇lres\)​𝟏n=\(λ−1−λn−1\+n⁡\(1−λ\)n−1\)​𝟏n=𝟏n,\\displaystyle=\\lambda\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{l\}\\mathbf\{1\}\_\{n\}\+\\frac\{1\-\\lambda\}\{n\-1\}\(\\mathbf\{1\}\_\{n\}\\mathbf\{1\}\_\{n\}^\{\\top\}\-\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{l\}\)\\mathbf\{1\}\_\{n\}=\\left\(\\lambda\-\\frac\{1\-\\lambda\}\{n\-1\}\+\\frac\{n\(1\-\\lambda\)\}\{n\-1\}\\right\)\\mathbf\{1\}\_\{n\}=\\mathbf\{1\}\_\{n\},\(29\)𝟏n⊤​c​\(𝐇lres,λ\)\\displaystyle\\mathbf\{1\}\_\{n\}^\{\\top\}\{c\}\(\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{l\};\\lambda\)=𝟏n⊤​λ​𝐇lres\+1−λn−1​𝟏n⊤​\(𝟏n​𝟏n⊤−𝐇lres\)=𝟏n⊤​\(λ−1−λn−1\+n⁡\(1−λ\)n−1\)=𝟏n⊤\.\\displaystyle=\\mathbf\{1\}\_\{n\}^\{\\top\}\\lambda\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{l\}\+\\frac\{1\-\\lambda\}\{n\-1\}\\mathbf\{1\}\_\{n\}^\{\\top\}\(\\mathbf\{1\}\_\{n\}\\mathbf\{1\}\_\{n\}^\{\\top\}\-\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{l\}\)=\\mathbf\{1\}\_\{n\}^\{\\top\}\\left\(\\lambda\-\\frac\{1\-\\lambda\}\{n\-1\}\+\\frac\{n\(1\-\\lambda\)\}\{n\-1\}\\right\)=\\mathbf\{1\}\_\{n\}^\{\\top\}\.\(30\)Soc⁡\(𝐇lres,λ\)\{c\}\(\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{l\};\\lambda\)is doubly stochastic and thusBn​\(λ\)⊆Bn\{B\}\_\{n\}\(\\lambda\)\\subseteq\{B\}\_\{n\}\. For any𝐇lres′∈Bn​\(λ\)\\mathbf\{H\}^\{\\mathrm\{res\}^\{\\prime\}\}\_\{l\}\\in\{B\}\_\{n\}\(\\lambda\),‖𝐇lres′‖1=‖𝐇lres′‖∞=1\\\|\\mathbf\{H\}^\{\\mathrm\{res\}^\{\\prime\}\}\_\{l\}\\\|\_\{1\}=\\\|\\mathbf\{H\}^\{\\mathrm\{res\}^\{\\prime\}\}\_\{l\}\\\|\_\{\\infty\}=1, so the spectral norm satisfies‖𝐇lres′‖≤‖𝐇lres′‖1​‖𝐇lres′‖∞=1\\\|\\mathbf\{H\}^\{\\mathrm\{res\}^\{\\prime\}\}\_\{l\}\\\|\\leq\\sqrt\{\\\|\\mathbf\{H\}^\{\\mathrm\{res\}^\{\\prime\}\}\_\{l\}\\\|\_\{1\}\\\|\\mathbf\{H\}^\{\\mathrm\{res\}^\{\\prime\}\}\_\{l\}\\\|\_\{\\infty\}\}=1\.

∎

### C\.2Proof of Theorem[2\.2](https://arxiv.org/html/2611.27193#S2.Thmtheorem2)

Theorem[2\.2](https://arxiv.org/html/2611.27193#S2.Thmtheorem2)\(Lower bound of stream mixing\)\.Forλ∈\(1/n,1\)\\lambda\\in\(1/n,1\), every entry of a contracted residual matrix satisfies

hl,i​jres′≥min⁡\(λ,1−λn−1\)\>0\.h^\{\\mathrm\{res\}^\{\\prime\}\}\_\{l,ij\}\\geq\\min\\left\(\\lambda,\\frac\{1\-\\lambda\}\{n\-1\}\\right\)\>0\.\(31\)
###### Proof\.

For each entry of𝐇lres′\\mathbf\{H\}^\{\\mathrm\{res\}^\{\\prime\}\}\_\{l\}, we have

hl,i​jres′\\displaystyle h^\{\\mathrm\{res\}^\{\\prime\}\}\_\{l,ij\}=∑m=1n\!αl,m​\(λ​pm,i​j\+1−λn−1​\(1−pm,i​j\)\)\\displaystyle=\\sum\_\{m=1\}^\{n\!\}\{\\alpha\_\{l,m\}\\left\(\\lambda p\_\{m,ij\}\+\\frac\{1\-\\lambda\}\{n\-1\}\(1\-p\_\{m,ij\}\)\\right\)\}\(32\)=λ​∑pm,i​j=1αl,m\+1−λn−1​∑pm,i​j=0αl,m\\displaystyle=\\lambda\\sum\_\{p\_\{m,ij\}=1\}\{\\alpha\_\{l,m\}\}\+\\frac\{1\-\\lambda\}\{n\-1\}\\sum\_\{p\_\{m,ij\}=0\}\{\\alpha\_\{l,m\}\}\(33\)=λ​∑pm,i​j=1αl,m\+1−λn−1​\(1−∑pm,i​j=1αl,m\)\.\\displaystyle=\\lambda\\sum\_\{p\_\{m,ij\}=1\}\{\\alpha\_\{l,m\}\}\+\\frac\{1\-\\lambda\}\{n\-1\}\\left\(1\-\\sum\_\{p\_\{m,ij\}=1\}\{\\alpha\_\{l,m\}\}\\right\)\.\(34\)As0≤∑pm,i​j=1αl,m≤10\\leq\\sum\_\{p\_\{m,ij\}=1\}\{\\alpha\_\{l,m\}\}\\leq 1,hl,i​jres′h^\{\\mathrm\{res\}^\{\\prime\}\}\_\{l,ij\}is a convex combination ofλ\\lambdaand1−λn−1\\frac\{1\-\\lambda\}\{n\-1\}, hencehl,i​jres′≥min⁡\(λ,1−λn−1\)h^\{\\mathrm\{res\}^\{\\prime\}\}\_\{l,ij\}\\geq\\min\\left\(\\lambda,\\frac\{1\-\\lambda\}\{n\-1\}\\right\)\. ∎

### C\.3Proof of Theorem[3\.1](https://arxiv.org/html/2611.27193#S3.Thmtheorem1)

Theorem[3\.1](https://arxiv.org/html/2611.27193#S3.Thmtheorem1)\(Convergence of cumulative stream mixing\)\.Letλl∈\(1/n,1\]\\lambda\_\{l\}\\in\(1/n,1\]forl=0,…,L−1l=0,\\ldots,L\-1, whereλl=1\\lambda\_\{l\}=1leaves layerlluncontracted\. 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\}\.\(35\)
###### Proof\.

For1/n<λl≤11/n<\\lambda\_\{l\}\\leq 1, the affine form of𝐇lres′\\mathbf\{H\}^\{\\mathrm\{res\}^\{\\prime\}\}\_\{l\}and the nonnegativity of𝐇lres\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{l\}give

hl,i​jres′=λl′​hl,i​jres\+1−λl′n≥1−λln−1≥0\.h^\{\\mathrm\{res\}^\{\\prime\}\}\_\{l,ij\}=\\lambda^\{\\prime\}\_\{l\}h^\{\\mathrm\{res\}\}\_\{l,ij\}\+\\frac\{1\-\\lambda^\{\\prime\}\_\{l\}\}\{n\}\\geq\\frac\{1\-\\lambda\_\{l\}\}\{n\-1\}\\geq 0\.\(36\)This includesλl=1\\lambda\_\{l\}=1, where the entrywise lower bound is zero and𝐇lres′=𝐇lres\\mathbf\{H\}^\{\\mathrm\{res\}^\{\\prime\}\}\_\{l\}=\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{l\}remains doubly stochastic\.

For every layerll, the entry\-wise lower bound \([36](https://arxiv.org/html/2611.27193#A3.E36)\) gives

∑k=1nmin⁡\(hl,i​kres′,hl,j​kres′\)≥n⁡\(1−λl\)n−1⇒τ⁡\(𝐇lres′\)≤1−n⁡\(1−λl\)n−1=λl′≤1\.\\sum\_\{k=1\}^\{n\}\\min\(h^\{\\mathrm\{res\}^\{\\prime\}\}\_\{l,ik\},h^\{\\mathrm\{res\}^\{\\prime\}\}\_\{l,jk\}\)\\geq\\frac\{n\(1\-\\lambda\_\{l\}\)\}\{n\-1\}\\quad\\Rightarrow\\quad\\tau\(\\mathbf\{H\}^\{\\mathrm\{res\}^\{\\prime\}\}\_\{l\}\)\\leq 1\-\\frac\{n\(1\-\\lambda\_\{l\}\)\}\{n\-1\}=\\lambda^\{\\prime\}\_\{l\}\\leq 1\.\(37\)Dobrushin’s coefficient is sub\-multiplicative \(τ⁡\(𝐀𝐁\)≤τ⁡\(𝐀\)​τ​\(𝐁\)\\tau\(\\mathbf\{A\}\\mathbf\{B\}\)\\leq\\tau\(\\mathbf\{A\}\)\\tau\(\\mathbf\{B\}\)\), so

τ⁡\(∏l=0L−1𝐇L−1−lres′\)≤∏l=0L−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\}\\tau\(\\mathbf\{H\}^\{\\mathrm\{res\}^\{\\prime\}\}\_\{l\}\)\\leq\\prod\_\{l=0\}^\{L\-1\}\\lambda^\{\\prime\}\_\{l\}\.\(38\)
∎

### C\.4Proof of Theorem[3\.2](https://arxiv.org/html/2611.27193#S3.Thmtheorem2)

Theorem[3\.2](https://arxiv.org/html/2611.27193#S3.Thmtheorem2)\(Norm upper bound of stream difference\)\.ForL≥2L\\geq 2hyper\-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\}\(39\)for2≤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\}\.

###### Proof\.

Since𝐇lres′\\mathbf\{H\}^\{\\mathrm\{res\}^\{\\prime\}\}\_\{l\}is doubly stochastic,𝚷n​𝐇lres′=𝐇lres′−𝐉n=𝐇lres′​𝚷n\\mathbf\{\\Pi\}\_\{n\}\\mathbf\{H\}^\{\\mathrm\{res\}^\{\\prime\}\}\_\{l\}=\\mathbf\{H\}^\{\\mathrm\{res\}^\{\\prime\}\}\_\{l\}\-\\mathbf\{J\}\_\{n\}=\\mathbf\{H\}^\{\\mathrm\{res\}^\{\\prime\}\}\_\{l\}\\mathbf\{\\Pi\}\_\{n\}\. Applying𝚷n\\mathbf\{\\Pi\}\_\{n\}to \([7](https://arxiv.org/html/2611.27193#S3.E7)\) and substituting \([4](https://arxiv.org/html/2611.27193#S2.E4)\) gives

𝐱~l\+1\\displaystyle\\tilde\{\\mathbf\{x\}\}\_\{l\+1\}≈𝐇lres′​𝐱~l\+𝚷n​𝐀l​𝐱l\\displaystyle\\approx\\mathbf\{H\}^\{\\mathrm\{res\}^\{\\prime\}\}\_\{l\}\\tilde\{\\mathbf\{x\}\}\_\{l\}\+\\mathbf\{\\Pi\}\_\{n\}\\mathbf\{A\}\_\{l\}\\mathbf\{x\}\_\{l\}\(40\)=λl′​𝐇lres​𝐱~l\+𝐀~l​𝐱~l\+𝚷n​𝐀l​𝐉n​𝐱l\\displaystyle=\\lambda^\{\\prime\}\_\{l\}\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{l\}\\tilde\{\\mathbf\{x\}\}\_\{l\}\+\\tilde\{\\mathbf\{A\}\}\_\{l\}\\tilde\{\\mathbf\{x\}\}\_\{l\}\+\\mathbf\{\\Pi\}\_\{n\}\\mathbf\{A\}\_\{l\}\\mathbf\{J\}\_\{n\}\\mathbf\{x\}\_\{l\}\(41\)≈\(λl′​𝐇lres\+𝐀~l\)​𝐱~l,\\displaystyle\\approx\(\\lambda^\{\\prime\}\_\{l\}\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{l\}\+\\tilde\{\\mathbf\{A\}\}\_\{l\}\)\\tilde\{\\mathbf\{x\}\}\_\{l\},\(42\)where𝐀~l=𝚷n​𝐀l\\tilde\{\\mathbf\{A\}\}\_\{l\}=\\mathbf\{\\Pi\}\_\{n\}\\mathbf\{A\}\_\{l\}andλl′=n​λl−1n−1∈\(0,1\)\\lambda^\{\\prime\}\_\{l\}=\\frac\{n\\lambda\_\{l\}\-1\}\{n\-1\}\\in\(0,1\)\. Forc\{c\}mHCwithL≥2L\\geq 2hyper\-connection layers, the stream difference for any output layer index2≤k≤L2\\leq k\\leq Lis

𝐱~k≈\(∏l=1k−1\(λk−l′​𝐇k−lres\+𝐀~k−l\)\)​𝐱~1\.\\tilde\{\\mathbf\{x\}\}\_\{k\}\\approx\\left\(\\prod\_\{l=1\}^\{k\-1\}\{\(\\lambda^\{\\prime\}\_\{k\-l\}\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{k\-l\}\+\\tilde\{\\mathbf\{A\}\}\_\{k\-l\}\)\}\\right\)\\tilde\{\\mathbf\{x\}\}\_\{1\}\.\(43\)As𝐀~l\\tilde\{\\mathbf\{A\}\}\_\{l\}is a finite\-dimensional linear operator, there exists a Lipschitz constantℓl=sup𝐙≠𝟎‖𝐀~l​𝐙‖F‖𝐙‖F\\ell\_\{l\}=\\sup\_\{\\mathbf\{Z\}\\neq\\mathbf\{0\}\}\\frac\{\\\|\\tilde\{\\mathbf\{A\}\}\_\{l\}\\mathbf\{Z\}\\\|\_\{F\}\}\{\\\|\\mathbf\{Z\}\\\|\_\{F\}\}for every layerllwhich satisfies‖𝐀~l​𝐙‖F≤ℓl​‖𝐙‖F\\\|\\tilde\{\\mathbf\{A\}\}\_\{l\}\\mathbf\{Z\}\\\|\_\{F\}\\leq\\ell\_\{l\}\\\|\\mathbf\{Z\}\\\|\_\{F\}for∀𝐙∈ℝn×d\\forall\\mathbf\{Z\}\\in\\mathbb\{R\}^\{n\\times d\}\. Since‖𝐇lres‖2≤1\\\|\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{l\}\\\|\_\{2\}\\leq 1, the approximate recurrence in \([40](https://arxiv.org/html/2611.27193#A3.E40)\) yields the following bound:

‖𝐱~l\+1‖F\\displaystyle\\\|\\tilde\{\\mathbf\{x\}\}\_\{l\+1\}\\\|\_\{F\}≤‖λl′​𝐇lres​𝐱~l‖F\+‖𝐀~l​𝐱~l‖F≤\(λl′\+ℓl\)​‖𝐱~l‖F\\displaystyle\\leq\\\|\\lambda^\{\\prime\}\_\{l\}\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{l\}\\tilde\{\\mathbf\{x\}\}\_\{l\}\\\|\_\{F\}\+\\\|\\tilde\{\\mathbf\{A\}\}\_\{l\}\\tilde\{\\mathbf\{x\}\}\_\{l\}\\\|\_\{F\}\\leq\(\\lambda^\{\\prime\}\_\{l\}\+\\ell\_\{l\}\)\\\|\\tilde\{\\mathbf\{x\}\}\_\{l\}\\\|\_\{F\}\(44\)⇒‖𝐱~k‖F\\displaystyle\\quad\\Rightarrow\\quad\\\|\\tilde\{\\mathbf\{x\}\}\_\{k\}\\\|\_\{F\}≤\(∏l=1k−1\(λl′\+ℓl\)\)​‖𝐱~1‖F\.\\displaystyle\\leq\\left\(\\prod\_\{l=1\}^\{k\-1\}\(\\lambda^\{\\prime\}\_\{l\}\+\\ell\_\{l\}\)\\right\)\\\|\\tilde\{\\mathbf\{x\}\}\_\{1\}\\\|\_\{F\}\.\(45\)∎

### C\.5Proof of Theorem[3\.3](https://arxiv.org/html/2611.27193#S3.Thmtheorem3)

Theorem[3\.3](https://arxiv.org/html/2611.27193#S3.Thmtheorem3)\(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\}\.\(46\)
###### Proof\.

From \([40](https://arxiv.org/html/2611.27193#A3.E40)\), the gradient of the stream difference at layerllis

∇𝐱~lℒ=\(λl′​𝐇lres\+𝐀~l\)⊤​∇𝐱~l\+1ℒ⇒∇𝐱~l\+1ℒ=\(∏k=l\+1L−1\(λk′​𝐇kres\+𝐀~k\)\)⊤​∇𝐱~Lℒ\.\\nabla\_\{\\tilde\{\\mathbf\{x\}\}\_\{l\}\}\\mathcal\{L\}=\(\\lambda^\{\\prime\}\_\{l\}\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{l\}\+\\tilde\{\\mathbf\{A\}\}\_\{l\}\)^\{\\top\}\\nabla\_\{\\tilde\{\\mathbf\{x\}\}\_\{l\+1\}\}\\mathcal\{L\}\\quad\\Rightarrow\\quad\\nabla\_\{\\tilde\{\\mathbf\{x\}\}\_\{l\+1\}\}\\mathcal\{L\}=\\left\(\\prod\_\{k=l\+1\}^\{L\-1\}\(\\lambda^\{\\prime\}\_\{k\}\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{k\}\+\\tilde\{\\mathbf\{A\}\}\_\{k\}\)\\right\)^\{\\top\}\\nabla\_\{\\tilde\{\\mathbf\{x\}\}\_\{L\}\}\\mathcal\{L\}\.\(47\)This shows that all later contractionsλk′\\lambda^\{\\prime\}\_\{k\}withk\>lk\>laffect the gradient received by layerll\.

We then analyze the update of𝜶\\bm\{\\alpha\}\. From \([2](https://arxiv.org/html/2611.27193#S2.E2)\) and \([40](https://arxiv.org/html/2611.27193#A3.E40)\), we have

∂𝐱~l\+1∂αl,m=λl′​∂𝐇lres∂αl,m​𝐱~l\+∂𝐀~l∂αl,m​𝐱~l⏟0=λl′​𝐏m​𝐱~l\.\\frac\{\\partial\\tilde\{\\mathbf\{x\}\}\_\{l\+1\}\}\{\\partial\\alpha\_\{l,m\}\}=\\lambda^\{\\prime\}\_\{l\}\\frac\{\\partial\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{l\}\}\{\\partial\\alpha\_\{l,m\}\}\\tilde\{\\mathbf\{x\}\}\_\{l\}\+\\underbrace\{\\frac\{\\partial\\tilde\{\\mathbf\{A\}\}\_\{l\}\}\{\\partial\\alpha\_\{l,m\}\}\\tilde\{\\mathbf\{x\}\}\_\{l\}\}\_\{0\}=\\lambda^\{\\prime\}\_\{l\}\\mathbf\{P\}\_\{m\}\\tilde\{\\mathbf\{x\}\}\_\{l\}\.\(48\)By the multivariate chain rule,

∂ℒ∂αl,m=∑i,j∂ℒ∂\(𝐱~l\+1\)i​j​∂\(𝐱~l\+1\)i​j∂αl,m=λl′​∑i,j\(∇𝐱~l\+1ℒ\)i​j​\(𝐏m​𝐱~l\)i​j,\\frac\{\\partial\\mathcal\{L\}\}\{\\partial\\alpha\_\{l,m\}\}=\\sum\_\{i,j\}\\frac\{\\partial\\mathcal\{L\}\}\{\\partial\(\\tilde\{\\mathbf\{x\}\}\_\{l\+1\}\)\_\{ij\}\}\\frac\{\\partial\(\\tilde\{\\mathbf\{x\}\}\_\{l\+1\}\)\_\{ij\}\}\{\\partial\\alpha\_\{l,m\}\}=\\lambda^\{\\prime\}\_\{l\}\\sum\_\{i,j\}\\left\(\\nabla\_\{\\tilde\{\\mathbf\{x\}\}\_\{l\+1\}\}\\mathcal\{L\}\\right\)\_\{ij\}\\left\(\\mathbf\{P\}\_\{m\}\\tilde\{\\mathbf\{x\}\}\_\{l\}\\right\)\_\{ij\},\(49\)and therefore

∇αl,mℒ=λl′​⟨∇𝐱~l\+1ℒ,𝐏m​𝐱~l⟩F,\\nabla\_\{\\alpha\_\{l,m\}\}\\mathcal\{L\}=\\lambda^\{\\prime\}\_\{l\}\\left\\langle\\nabla\_\{\\tilde\{\\mathbf\{x\}\}\_\{l\+1\}\}\\mathcal\{L\},\\ \\mathbf\{P\}\_\{m\}\\tilde\{\\mathbf\{x\}\}\_\{l\}\\right\\rangle\_\{F\},\(50\)where⟨𝐔,𝐕⟩F:=∑i,jui​j​vi​j\\langle\\mathbf\{U\},\\mathbf\{V\}\\rangle\_\{F\}:=\\sum\_\{i,j\}\{u\_\{ij\}v\_\{ij\}\}is the Frobenius inner product\. Substituting \([47](https://arxiv.org/html/2611.27193#A3.E47)\) and \([43](https://arxiv.org/html/2611.27193#A3.E43)\) into \([50](https://arxiv.org/html/2611.27193#A3.E50)\), we obtain

∇αl,mℒ=λl′⟨\(∏k=l\+1L−1\(λk′​𝐇kres\+𝐀~k\)\)⊤​∇𝐱~Lℒ⏞λ′\>lpart: backward constraint,𝐏m\(∏k=1l−1\(λk−l′​𝐇k−lres\+𝐀~k−l\)\)​𝐱~1⏞λ′<lpart: forward constraint⟩F\.\\nabla\_\{\\alpha\_\{l,m\}\}\\mathcal\{L\}=\\lambda^\{\\prime\}\_\{l\}\\left\\langle\{\\overbrace\{\\left\(\\prod\_\{k=l\+1\}^\{L\-1\}\(\\lambda^\{\\prime\}\_\{k\}\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{k\}\+\\tilde\{\\mathbf\{A\}\}\_\{k\}\)\\right\)^\{\\top\}\\nabla\_\{\\tilde\{\\mathbf\{x\}\}\_\{L\}\}\\mathcal\{L\}\}^\{\\lambda^\{\\prime\}\_\{\>l\}\\text\{ part: backward constraint\}\},\\ \\mathbf\{P\}\_\{m\}\\overbrace\{\\left\(\\prod\_\{k=1\}^\{l\-1\}\(\\lambda^\{\\prime\}\_\{k\-l\}\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{k\-l\}\+\\tilde\{\\mathbf\{A\}\}\_\{k\-l\}\)\\right\)\\tilde\{\\mathbf\{x\}\}\_\{1\}\}^\{\\lambda^\{\\prime\}\_\{<l\}\\text\{ part: forward constraint\}\}\}\\right\\rangle\_\{F\}\.\(51\)This indicates that the update ofαl,m\\alpha\_\{l,m\}is affected by three factors: \(1\) the contraction at the current layerλl′\\lambda^\{\\prime\}\_\{l\}; \(2\) the contractions in deeper layers\{λ\>l′\}\\\{\\lambda^\{\\prime\}\_\{\>l\}\\\}introduced by backpropagation; and \(3\) the contractions in earlier layers\{λ<l′\}\\\{\\lambda^\{\\prime\}\_\{<l\}\\\}introduced by the forward process\.

Now we compute the gradient difference between anyα\\alpha\-pair permutation matrices\. For two different permutation matrices𝐏i\\mathbf\{P\}\_\{i\}and𝐏j\\mathbf\{P\}\_\{j\}, we have

\(∇αl,i−∇αl,j\)​ℒ\\displaystyle\(\\nabla\_\{\\alpha\_\{l,i\}\}\-\\nabla\_\{\\alpha\_\{l,j\}\}\)\\mathcal\{L\}=λl′​\(⟨∇𝐱~l\+1ℒ,𝐏i​𝐱~l⟩F−⟨∇𝐱~l\+1ℒ,𝐏j​𝐱~l⟩F\)\\displaystyle=\\lambda^\{\\prime\}\_\{l\}\\left\(\\langle\\nabla\_\{\\tilde\{\\mathbf\{x\}\}\_\{l\+1\}\}\\mathcal\{L\},\\ \\mathbf\{P\}\_\{i\}\\tilde\{\\mathbf\{x\}\}\_\{l\}\\rangle\_\{F\}\-\\langle\\nabla\_\{\\tilde\{\\mathbf\{x\}\}\_\{l\+1\}\}\\mathcal\{L\},\\ \\mathbf\{P\}\_\{j\}\\tilde\{\\mathbf\{x\}\}\_\{l\}\\rangle\_\{F\}\\right\)\(52\)=λl′​⟨∇𝐱~l\+1ℒ,\(𝐏i−𝐏j\)​𝐱~l⟩F\.\\displaystyle=\\lambda^\{\\prime\}\_\{l\}\\left\\langle\\nabla\_\{\\tilde\{\\mathbf\{x\}\}\_\{l\+1\}\}\\mathcal\{L\},\\ \(\\mathbf\{P\}\_\{i\}\-\\mathbf\{P\}\_\{j\}\)\\tilde\{\\mathbf\{x\}\}\_\{l\}\\right\\rangle\_\{F\}\.\(53\)By the Cauchy\-Schwarz inequality,

\|\(∇αl,i−∇αl,j\)​ℒ\|≤λl′​‖∇𝐱~l\+1ℒ‖F​‖\(𝐏i−𝐏j\)​𝐱~l‖F\.\|\(\\nabla\_\{\\alpha\_\{l,i\}\}\-\\nabla\_\{\\alpha\_\{l,j\}\}\)\\mathcal\{L\}\|\\leq\\lambda^\{\\prime\}\_\{l\}\\\|\\nabla\_\{\\tilde\{\\mathbf\{x\}\}\_\{l\+1\}\}\\mathcal\{L\}\\\|\_\{F\}\\\|\(\\mathbf\{P\}\_\{i\}\-\\mathbf\{P\}\_\{j\}\)\\tilde\{\\mathbf\{x\}\}\_\{l\}\\\|\_\{F\}\.\(54\)Since a permutation matrix is orthogonal, left multiplication by it preserves the Frobenius norm\. With‖𝐏i−𝐏j‖2≤‖𝐏i‖2\+‖𝐏j‖2=2\\\|\\mathbf\{P\}\_\{i\}\-\\mathbf\{P\}\_\{j\}\\\|\_\{2\}\\leq\\\|\\mathbf\{P\}\_\{i\}\\\|\_\{2\}\+\\\|\\mathbf\{P\}\_\{j\}\\\|\_\{2\}=2, we reach the final result:

\|\(∇α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\}\.\(55\)∎

## Appendix DExperiment Setup

#### Datasets\.

OpenWebText\([Gokaslan and Cohen, 2019](https://arxiv.org/html/2611.27193#bib.bib16)\)is built from Reddit\-linked webpages, and FineWeb\-Edu\([Lozhkov et al\., 2024](https://arxiv.org/html/2611.27193#bib.bib17)\)is an education\-oriented subset of FineWeb\. For OpenWebText, we first tokenize it with GPT\-2 BPE tokenizer and use a small validation split; this gives∼9\.04\\sim\\\!\\\!9\.04B training tokens and∼4\.43\\sim\\\!\\\!4\.43M validation tokens after preprocessing\. For FineWeb\-Edu, we use the “sample\-10BT” split which contains roughly 10B GPT\-2 tokens, and construct a validation split following the same pipeline\. This gives∼9\.90\\sim\\\!\\\!9\.90B training tokens and∼49\.10\\sim\\\!\\\!49\.10M validation tokens\.

#### Hardware and hyperparameters\.

The nanoGPT experiments are conducted on 8×\\times80GB NVIDIA H100 GPUs\. For these comparative experiments, all models are pretrained for1010k iterations\. For a fair comparison, parameter initializations and nanoGPT\-related hyperparameters ofc\{c\}mHCstrictly follow the configurations inmHC\-lite\([Yang and Gao, 2026](https://arxiv.org/html/2611.27193#bib.bib4)\)\.

### D\.1Experiment Setup for Large\-Scale MoEs

#### Architecture\.

Table[4](https://arxiv.org/html/2611.27193#A4.T4)summarizes the 6B and 300B configurations\. Here, depth counts Transformer blocks; each block contains separate attention and feed\-forward hyper\-connections\. Both models use bias\-free linear projections, SwiGLU feed\-forward networks\([Shazeer, 2020](https://arxiv.org/html/2611.27193#bib.bib23)\), RMSNorm\([Zhang and Sennrich, 2019](https://arxiv.org/html/2611.27193#bib.bib24)\)withϵ=10−6\\epsilon=10^\{\-6\}, query/key normalization, and zero attention and hidden dropout\. Both use rotary position embeddings\([Su et al\., 2024](https://arxiv.org/html/2611.27193#bib.bib25)\)with base10,00010\{,\}000; the 300B command explicitly selects YaRN\([Peng et al\., 2024](https://arxiv.org/html/2611.27193#bib.bib26)\)with both magnitude scaling factors set to11\. The 6B configuration additionally enables one multi\-token prediction \(MTP\) layer with MTP auxiliary loss weight0\.10\.1and hyper\-connections disabled\.

#### Routing\.

Both configurations use sigmoid routing scores, expert bias updates, and sequence\-level auxiliary load\-balancing loss with coefficient10−310^\{\-3\}\. The expert bias update rates are10−410^\{\-4\}for 6B and10−310^\{\-3\}for 300B, and the scaling factors for routed outputs are2\.02\.0and2\.52\.5, respectively\.

#### Hyper\-connection settings\.

Both runs enablec\{c\}mHCwithn=4n=4residual streams\. In the 6B implementation, we useλ=0\.97\\lambda=0\.97andK=4K=4\. For 300B, the run usesλ=0\.96\\lambda=0\.96andK=6K=6\. FormHC, both configurations specify 20 Sinkhorn iterations\.

#### Data and optimization\.

Both runs use tokenized FineWeb\-Edu data\. Table[5](https://arxiv.org/html/2611.27193#A4.T5)reports training steps\. Token counts are computed as completed steps multiplied by global batch size and sequence length; they count processed token positions\.

Table 4:Architecture settings for the large\-scale experiments\. Expert widths are intermediate dimensions\. Model scales follow the experiment designations\.Setting6B\-MoE300B\-MoETransformer blocks2848Hidden size2,0487,168Dense feed\-forward width5,63218,432Initial dense blocks23MoE layers2645Attention heads16128Query low\-rank dimension5121,536Key/value low\-rank dimension256512Non\-rotary query/key head dimension128128Rotary query/key head dimension6464Value head dimension128128Num of experts64256Selected routed experts per token46Routed expert width5121,152Shared expert intermediate width \(total\)1,0241,152Vocabulary size131,072131,072Context length4,0964,096Residual streams44Table 5:Training settings and completed training lengths\. Token counts use the completed steps\. A dash denotes a value not specified in the supplied configuration\.Setting6B\-MoE300B\-MoEOptimizerAdamWMuonLearning rate after warmup10−510^\{\-5\}2×10−42\\times 10^\{\-4\}Warmup steps2,000200Schedule after warmupConstantConstantConfigured training steps71,5002,000Global batch size5124,096Micro\-batch size11Tokens per optimization step2,097,15216,777,216Processed tokens149\.95149\.95B33\.5533\.55BGradient clipping norm1\.01\.0Optimizerβ1,β2\\beta\_\{1\},\\beta\_\{2\}settings\(0\.9,0\.95\)\(0\.9,0\.95\)\(0\.9,0\.95\)\(0\.9,0\.95\)AdamWϵ\\epsilon10−810^\{\-8\}—Main computation precisionBF16BF16Tensor/context parallel degree1/11/11/11/1Pipeline parallel degree110Expert parallel degree88Table 6:nanoGPT\-S/M results with seed 1338 \(mean±\\pmstandard deviation for 3 replicate experiments\)\. All methods use 4 streams\.Avg\. Loss Rankmarks the average rank over the Train Loss and Val\. Loss\. Best results are inbold\.nanoGPT\-S, \#Layers=12nanoGPT\-M, \#Layers=24MethodTrain LossVal\. LossTrain LossVal\. LossAvg\. Loss RankOpenWebTextmHC3\.4677±0\.00133\.4677\_\{\\pm 0\.0013\}3\.4822±0\.00093\.4822\_\{\\pm 0\.0009\}3\.2674±0\.00213\.2674\_\{\\pm 0\.0021\}3\.2699±0\.00193\.2699\_\{\\pm 0\.0019\}3\.13\.1mHC\-lite3\.4668±0\.00023\.4668\_\{\\pm 0\.0002\}3\.4808±0\.00033\.4808\_\{\\pm 0\.0003\}3\.2731±0\.00223\.2731\_\{\\pm 0\.0022\}3\.2753±0\.00183\.2753\_\{\\pm 0\.0018\}3\.03\.0KromHC3\.4672±0\.00273\.4672\_\{\\pm 0\.0027\}3\.4818±0\.00273\.4818\_\{\\pm 0\.0027\}3\.2677±0\.00163\.2677\_\{\\pm 0\.0016\}3\.2699±0\.00123\.2699\_\{\\pm 0\.0012\}2\.92\.9c\{c\}mHC,λ=0\.97\\lambda=0\.97,K=2K=23\.4651±0\.0016\\mathbf\{3\.4651\}\_\{\\pm 0\.0016\}3\.4795±0\.0014\\mathbf\{3\.4795\}\_\{\\pm 0\.0014\}3\.2626±0\.0034\\mathbf\{3\.2626\}\_\{\\pm 0\.0034\}3\.2653±0\.0041\\mathbf\{3\.2653\}\_\{\\pm 0\.0041\}1\.0\\mathbf\{1\.0\}FineWeb\-EdumHC3\.4638±0\.0016\\mathbf\{3\.4638\}\_\{\\pm 0\.0016\}3\.4774±0\.0017\\mathbf\{3\.4774\}\_\{\\pm 0\.0017\}3\.2402±0\.00163\.2402\_\{\\pm 0\.0016\}3\.2531±0\.00183\.2531\_\{\\pm 0\.0018\}2\.12\.1mHC\-lite3\.4644±0\.00203\.4644\_\{\\pm 0\.0020\}3\.4779±0\.00213\.4779\_\{\\pm 0\.0021\}3\.2399±0\.00223\.2399\_\{\\pm 0\.0022\}3\.2526±0\.00203\.2526\_\{\\pm 0\.0020\}3\.03\.0KromHC3\.4638±0\.0002\\mathbf\{3\.4638\}\_\{\\pm 0\.0002\}3\.4775±0\.00043\.4775\_\{\\pm 0\.0004\}3\.2430±0\.00323\.2430\_\{\\pm 0\.0032\}3\.2556±0\.00303\.2556\_\{\\pm 0\.0030\}2\.92\.9c\{c\}mHC,λ=0\.97\\lambda=0\.97,K=2K=23\.4641±0\.00073\.4641\_\{\\pm 0\.0007\}3\.4777±0\.00083\.4777\_\{\\pm 0\.0008\}3\.2385±0\.0003\\mathbf\{3\.2385\}\_\{\\pm 0\.0003\}3\.2512±0\.0007\\mathbf\{3\.2512\}\_\{\\pm 0\.0007\}2\.0\\mathbf\{2\.0\}

![Refer to caption](https://arxiv.org/html/2611.27193v1/lossgrad_appen.png)Figure 8:Loss gaps relative toc\{c\}mHCand gradient norms \(nanoGPT\-M and nanoGPT\-L; OpenWebText\)\.

## Appendix EFull Results

### E\.1Results on Seed 1338

To further show that the observed improvements stem from gains in model capability rather than a lucky seed, we also repeat the nanoGPT\-S/M experiments with seed 1338, in addition to default seed 1337 used for Table[1](https://arxiv.org/html/2611.27193#S4.T1)\. We show results ofc\{c\}mHCand other strong baselines in Table[6](https://arxiv.org/html/2611.27193#A4.T6)\.

With seed 1338,c\{c\}mHChas the lowest mean training and validation losses among the evaluated baselines on nanoGPT\-S/M \+ OpenWebText and nanoGPT\-M \+ FineWeb\-Edu\. Its train/validation loss gaps to the strongest evaluated baseline are 0\.0017/0\.0013, 0\.0048/0\.0046 and 0\.0014/0\.0014, respectively\. Besides, 5/6 of the gaps exceedc\{c\}mHC’s corresponding standard deviations\. These are also the same three settings in whichc\{c\}mHChas the lowest mean validation loss in Table[1](https://arxiv.org/html/2611.27193#S4.T1), providing evidence that the advantage ofc\{c\}mHCpersists across seeds\. On nanoGPT\-S \+ FineWeb\-Edu, the setting thatmHC\-liteoutperformsc\{c\}mHCby 0\.0013/0\.0012 in Table[1](https://arxiv.org/html/2611.27193#S4.T1), all four methods perform on par: their mean training and validation losses span only 0\.0006 and 0\.0005, respectively\.

![Refer to caption](https://arxiv.org/html/2611.27193v1/heatmap_all.png)Figure 9:Full heatmaps of residual matrices \(c\{c\}mHC,λ=0\.97\\lambda=0\.97,K=2K=2; nanoGPT\-L\)\.Left: residual matrices𝐇lres\\mathbf\{H\}^\{\\mathrm\{res\}\}\_\{l\}for everyll\.Right: average and product of residual matrices, and cosine\-similarity distribution between streams\.
### E\.2Training Loss and Gradient Norm on GPT\-2

Figure[8](https://arxiv.org/html/2611.27193#A4.F8)shows full results for nanoGPT\-M and nanoGPT\-L, similar to Figure[6](https://arxiv.org/html/2611.27193#S4.F6)\. The loss gap is measured relative toc\{c\}mHC, so a positive value indicates a higher loss than ours\.c\{c\}mHCmaintains a lower training loss than all compared residual and hyper\-connection baselines at both depths\. The gradient norms indicate thatc\{c\}mHCpreserves the training stability ofmHCin deeper models\.

### E\.3Visualization of Residual Matrices

Figure[9](https://arxiv.org/html/2611.27193#A5.F9)visualizes every residual matrix of the attention and MLP layers inc\{c\}mHC\. Despite that the contraction is only applied to the first two layers, we can observe the dynamic stream mixing in later layers like layer 3 and 5\. Deeper layers also participate in stream mixing, but most of them remain close to near\-identity mappings\. This behavior matches our expectation: shallow\-layer mixing has a stronger cumulative effect on the network, while allowing later layers to stay near\-identity helps prevent over\-mixing\. The aggregated views further support this point: as the average residual matrix is near identity, the product of residual matrices is already close to, but still distinguishable from, the uniform barycenter𝐉n\\mathbf\{J\}\_\{n\}\. This contrast between the average and product residual matrices illustrates the mixing trade\-off: encouraging stream mixing while keeping the streams distinguishable\.

### E\.4Smoothness of the Mixing Coefficient

This section shows the original full version of Figure[5](https://arxiv.org/html/2611.27193#S3.F5)\. We further report thenormalized entropyH⁡\(𝜶l\)∈\[0,1\]H\(\\bm\{\\alpha\}\_\{l\}\)\\in\[0,1\]to measure the smoothness of the distribution:

H⁡\(𝜶l\)=−∑m=1n\!αl,mlogαl,mlog⁡n\!,H\(\\bm\{\\alpha\}\_\{l\}\)=\\frac\{\-\\sum\_\{m=1\}^\{n\!\}\\alpha\_\{l,m\}\\log\\alpha\_\{l,m\}\}\{\\log n\!\},\(56\)where a larger value indicates a smoother distribution\. Figure[10](https://arxiv.org/html/2611.27193#A5.F10)shows the distributions of𝜶l\\bm\{\\alpha\}\_\{l\}and their normalized entropy for every layerll\. In the majority of layers,c\{c\}mHCassigns more mass to the non\-dominant vertices and achieves higher normalized entropy thanmHC\-lite, despite that only the first 2 layers are contracted\. This supports our conclusion that even a numerically small geometric contraction can induce a smoother𝜶\\bm\{\\alpha\}distribution in deeper layers\.

![Refer to caption](https://arxiv.org/html/2611.27193v1/alphadistrankfull.png)Figure 10:Full experiment results: distributions of mixing coefficients𝜶l\\bm\{\\alpha\}\_\{l\}over the vertices ofB4\{B\}\_\{4\}for everyll\(nanoGPT\-L\)\. A purple \(blue\) background marks cases where the entropyH⁡\(𝜶l\)H\(\\bm\{\\alpha\}\_\{l\}\)ofc\{c\}mHCis larger \(smaller\) than that ofmHC\-lite\.Figure 11:Comparative results with 6 residual streams \(nanoGPT\-S\)\.
### E\.5Scaling to More Streams

Figure[11](https://arxiv.org/html/2611.27193#A5.F11)shows our experiments when scaling nanoGPT models to more hyper\-connection streams\. We useλ=0\.95\\lambda=0\.95such that the non\-diagonal entries in𝐏m′\\mathbf\{P\}\_\{m\}^\{\\prime\}remain0\.010\.01likeλ=0\.97\\lambda=0\.97for 4 streams\.c\{c\}mHCkeeps the superior performance on both datasets when streams are expanded to 6\.

## Appendix FImplementation Details of the Fused Operator

To reduce the execution overhead ofc\{c\}mHC, we develop an efficient fused\-operator implementation\. This section describes its design and implementation and compares its operator\-level performance with themHCfused\-operator pipeline and an equivalent unfused primitive\-operator implementation\.

We implement the fused operators in Ascend C, a C/C\+\+\-compatible programming language and API system for developing custom kernels on Ascend NPUs\([Huawei Technologies Co\., Ltd\., 2025](https://arxiv.org/html/2611.27193#bib.bib18)\)\. Ac\{c\}mHClayer places two fused operator boundaries around the model sublayer\. The fused Pre operator produces the sublayer input and residual\-path coefficients; the fused Post operator then performs residual mixing and post expansion\. Training executes the corresponding operators in reverse order\. The implementation contract is

\(Hin,Hres,Hpost\)=Pre⁡\(Xl\),hlout=ℱl​\(Hin\),Xl\+1=Post⁡\(Xl,Hres,hlout,Hpost\)\.\(H\_\{\\mathrm\{in\}\},H\_\{\\mathrm\{res\}\},H\_\{\\mathrm\{post\}\}\)=\\operatorname\{Pre\}\(X\_\{l\}\),\\quad h\_\{l\}^\{\\mathrm\{out\}\}=\\mathcal\{F\}\_\{l\}\(H\_\{\\mathrm\{in\}\}\),\\quad X\_\{l\+1\}=\\operatorname\{Post\}\(X\_\{l\},H\_\{\\mathrm\{res\}\},h\_\{l\}^\{\\mathrm\{out\}\},H\_\{\\mathrm\{post\}\}\)\.\(57\)Here the capitalized names follow the operator\-interface convention:Xl≡𝐱lX\_\{l\}\\equiv\\mathbf\{x\}\_\{l\},Hres≡𝐇lres′H\_\{\\mathrm\{res\}\}\\equiv\\mathbf\{H\}^\{\\mathrm\{res\}^\{\\prime\}\}\_\{l\},Hin≡𝐇lpre​𝐱lH\_\{\\mathrm\{in\}\}\\equiv\\mathbf\{H\}^\{\\mathrm\{pre\}\}\_\{l\}\\mathbf\{x\}\_\{l\}, andHpost≡𝐇lpostH\_\{\\mathrm\{post\}\}\\equiv\\mathbf\{H\}^\{\\mathrm\{post\}\}\_\{l\}\. Thus these tensors are the implementation\-level counterparts of the quantities defined in \([1](https://arxiv.org/html/2611.27193#S2.E1)\) and \([3](https://arxiv.org/html/2611.27193#S2.E3)\)\. The model sublayerℱl\\mathcal\{F\}\_\{l\}remains outside the fusion boundary because it may be an attention or feed\-forward block\. The resulting Pre and Post boundaries fuse only the surrounding connection logic, avoiding repeated reads of the widened residual state and launches of small framework operators\. Figure[12](https://arxiv.org/html/2611.27193#A6.F12)shows the forward and backward organization\.

Figure 12:Fused\-operator pipeline forc\{c\}mHC\. The backward path reverses the forward order and routes direct residual\-path gradients from Post backward to Pre backward\.### F\.1Architecture\-Aware Fusion Principles

LetBB,SS,nn, andDDdenote batch size, sequence length, residual\-stream count, and per\-stream hidden dimension, and letT=B​ST=BS\. The implementation specializesn=4n=4, whileTTandDDare large\. Accordingly, large projections use cube cores, whereas reductions, nonlinearities, coefficient transformations, and small\-nnstream mixing use vector cores\. Table[7](https://arxiv.org/html/2611.27193#A6.T7)summarizes this mapping\.

Table 7:Design principles and their mapping to the target architecture\.Design considerationKernel realizationIntended effectHeterogeneous arithmeticDense projections on cube cores; reductions, nonlinearities, and scale\-accumulate paths on vector coresMatch arithmetic granularity to the core typeSmall stream dimensionUse vector scaling, accumulation, and reduction forn=4n=4Post mixingAvoid GEMM setup, padding, and format conversion for tiny matricesLimited on\-chip storageTile token and hidden dimensions; retain small coefficients and accumulators in Unified Buffer \(UB\)Increase on\-chip reuse within the UB capacityGlobal\-memory trafficFuse common\-input operations; select ND/NZ workspace layouts at vector–cube handoffs; selectively bypass L2 for one\-pass tensorsReduce intermediate traffic, layout conversion, and cache pollutionMixed\-precision executionKeep activations in BF16/FP16 and coefficients and accumulators in FP32Reduce bandwidth while preserving coefficient accuracyLaunch and scheduling overheadProduce all outputs of each Pre or Post direction in one launchAmortize launch cost and avoid repeated state scansMemory\-layout and cache policies are selected by input shape\. Small workloads retain a dense ND workspace, whereas sufficiently largeTTandDDuse a blocked NZ workspace at vector–cube handoffs\. Large one\-pass tensors selectively bypass L2, while weights, cached bases, and intermediates reused across stages remain cacheable\. These conditional paths preserve useful locality for small inputs and avoid conversion and cache pollution at larger scales\.

Pre combines vector and cube cores because it contains both high\-dimensional projections and coefficient transformations\. Post uses vector cores only: its4×44\\times 4coefficient matrix cannot amortize a cube\-core schedule, whereas itsDD\-wide scale–accumulate loops map directly to vector instructions\.

### F\.2Fused Pre Forward Kernel

For the Pre implementation, we useDflat=n​DD\_\{\\mathrm\{flat\}\}=nD,R=n\!R=n\!, andQ=R\+2​nQ=R\+2nwithn=4n=4,R=24R=24andQ=32Q=32\. Table[8](https://arxiv.org/html/2611.27193#A6.T8)summarizes the tensors that determine its forward data path\.

Table 8:Primary tensor interface of the fusedc\{c\}mHCPre forward operator\.TensorRoleShapeData typeXlX\_\{l\}Multi\-stream input\[B,S,n,D\]\[B,S,n,D\]BF16/FP16Φ\\PhiProjection weight\[Q,n​D\]\[Q,nD\]FP32ssGroup\-wise scale\[3\]\[3\]FP32bbProjection bias\[Q\]\[Q\]FP32𝐏l′\\mathbf\{P\}^\{\\prime\}\_\{l\}Contracted permutation matrix\[R,n,n\]\[R,n,n\]FP32HinH\_\{\\mathrm\{in\}\}Aggregated sublayer input\[B,S,D\]\[B,S,D\]BF16/FP16HpostH\_\{\\mathrm\{post\}\}Post\-mapping coefficient\[B,S,n\]\[B,S,n\]FP32HresH\_\{\\mathrm\{res\}\}Residual\-mixing matrix\[B,S,n,n\]\[B,S,n,n\]FP32Let𝐏m\\mathbf\{P\}\_\{m\}denote themm\-th permutation matrix and𝐉n=𝟏n​𝟏n⊤/n\\mathbf\{J\}\_\{n\}=\\mathbf\{1\}\_\{n\}\\mathbf\{1\}\_\{n\}^\{\\top\}/nthe uniform doubly stochastic matrix\. Before kernel launch, the framework uses the normalized contraction coefficientλl′=\(n​λl−1\)/\(n−1\)\\lambda^\{\\prime\}\_\{l\}=\(n\\lambda\_\{l\}\-1\)/\(n\-1\)from Sec\.[2\.2](https://arxiv.org/html/2611.27193#S2.SS2)to construct

𝐏l,m′=λl′𝐏m\+\(1−λl′\)𝐉n,m=1,…,R,\\mathbf\{P\}^\{\\prime\}\_\{l,m\}=\\lambda^\{\\prime\}\_\{l\}\\mathbf\{P\}\_\{m\}\+\(1\-\\lambda^\{\\prime\}\_\{l\}\)\\mathbf\{J\}\_\{n\},\\qquad m=1,\\ldots,R,\(58\)which is algebraically identical to \([3](https://arxiv.org/html/2611.27193#S2.E3)\)\. Under the depth\-aware strategy,λl=1\\lambda\_\{l\}=1\(and henceλl′=1\\lambda^\{\\prime\}\_\{l\}=1\) beyond the firstKKlayers\. The resulting basis tensor𝐏l′\\mathbf\{P\}^\{\\prime\}\_\{l\}is cached by the framework and passed to the forward and backward Pre kernels; the fused kernels therefore receive the contracted bases rather than the scalarλl\\lambda\_\{l\}\.

The operator exposes one entry and executes the three stages in Figure[13](https://arxiv.org/html/2611.27193#A6.F13)\. Event synchronization and GM workspace enforce producer–consumer ordering between vector and cube cores\.

Figure 13:Three\-stage data path of the fusedc\{c\}mHCPre forward operator, including framework\-side preparation of the contracted bases\.#### Stage 1: projection and RMS statistics\.

The vector cores cast BF16/FP16 input tiles to FP32 and write them to workspace\. The same scan evaluates

ρ=\(mean\(Xl2\)\+ϵnorm\)−1/2\\rho=\\left\(\\operatorname\{mean\}\(X\_\{l\}^\{2\}\)\+\\epsilon\_\{\\mathrm\{norm\}\}\\right\)^\{\-1/2\}\(59\)for each token\. The cube cores consume the converted workspace and compute

M=FP32⁡\(Xl\)​Φ𝖳,M∈ℝT×Q\.M=\\operatorname\{FP32\}\(X\_\{l\}\)\\Phi^\{\\mathsf\{T\}\},\\qquad M\\in\\mathbb\{R\}^\{T\\times Q\}\.\(60\)Cross\-core events prevent the projection from reading incomplete workspace tiles\.

For sufficiently large workloads, the vector cores transform each FP32 tile from ND to NZ in UB before writing the workspace\. The cube cores then consume preformatted tiles through contiguous NZ transfers instead of converting ND data on the read path\. Host tiling retains the ND path for smaller inputs, where the vector\-side transformation cannot be amortized, and initializes only the selected matrix\-multiplication implementation\. The NZ workspace aligns theDflatD\_\{\\mathrm\{flat\}\}dimension to the hardware block size and preserves a fixed physical stride for tail tiles\.

#### Stage 2: coefficient generation and stream aggregation\.

The vector cores apply group\-wise scale and bias toMMandρ\\rho, generating the Pre, Post, andRR\-dimensional residual coefficients\. A stable FP32 softmax processes the residual segment\. The same stage rereads low\-precisionXlX\_\{l\}and reduces its weighted streams intoHinH\_\{\\mathrm\{in\}\}, avoiding separate gating, softmax, and aggregation operators\. For a token batch, the residual coefficients form𝑨∈ℝT×R\\bm\{A\}\\in\\mathbb\{R\}^\{T\\times R\}, whose rows are the coefficient vectors𝜶l\\bm\{\\alpha\}\_\{l\}from \([2](https://arxiv.org/html/2611.27193#S2.E2)\)\. They enter workspace for Stage 3 and are optionally exported for backward reuse\.

#### Stage 3: residual\-matrix projection\.

After a barrier makes the coefficient tiles visible, the cube cores evaluate

Hres♭=𝑨​\(𝐏l′\)♭,\[T,R\]×\[R,n2\]→\[T,n2\]\.H\_\{\\mathrm\{res\}\}^\{\\flat\}=\\bm\{A\}\(\\mathbf\{P\}^\{\\prime\}\_\{l\}\)^\{\\flat\},\\qquad\[T,R\]\\times\[R,n^\{2\}\]\\rightarrow\[T,n^\{2\}\]\.\(61\)Forn=4n=4, this is an FP32\[T,24\]×\[24,16\]\[T,24\]\\times\[24,16\]projection using the framework\-cached bases\. Work is partitioned along the token dimension, with explicit tail handling\.

The Pre path uses low\-precision activation I/O and an FP32 coefficient path\.XlX\_\{l\}andHinH\_\{\\mathrm\{in\}\}remain in BF16/FP16; projection weights, logits, softmax coefficients, and matrix multiplications use FP32\. The cast input, projection result, inverse RMS factor, and residual coefficients cross GM workspace only at required vector\-cube boundaries\.

### F\.3Fused Pre Backward Kernel and State Reuse

Pre backward fuses the gradients of stream aggregation, coefficient generation, softmax, and residual projection\. The vector cores reduce the upstreamHinH\_\{\\mathrm\{in\}\}gradient against the original streams and prepare tiles for the projection\-weight gradient\. With∇H=∇Hℒ∈ℝT×n2\\nabla\_\{H\}=\\nabla\_\{H\}\\mathcal\{L\}\\in\\mathbb\{R\}^\{T\\times n^\{2\}\}denoting the residual\-matrix gradient, the kernel evaluates

∇𝑨\\displaystyle\\nabla\_\{\\bm\{A\}\}=∇H\(\(𝐏l′\)♭\)𝖳,\\displaystyle=\\nabla\_\{H\}\(\(\\mathbf\{P\}^\{\\prime\}\_\{l\}\)^\{\\flat\}\)^\{\\mathsf\{T\}\},\(62\)∇Z\\displaystyle\\nabla\_\{Z\}=𝑨⊙\(∇𝑨−reduce​\_​sum⁡\(𝑨⊙∇𝑨\)\),\\displaystyle=\\bm\{A\}\\odot\\left\(\\nabla\_\{\\bm\{A\}\}\-\\operatorname\{reduce\\\_sum\}\(\\bm\{A\}\\odot\\nabla\_\{\\bm\{A\}\}\)\\right\),\(63\)where the reduction is independent for each token\. The vector path reconstructs sigmoid derivatives from saved Pre and Post outputs, propagates the inverse\-RMS gradient, and writes∇M\\nabla\_\{M\}to workspace\. The same cached𝐏l′\\mathbf\{P\}^\{\\prime\}\_\{l\}used in forward is read as a constant input; neither𝐏l′\\mathbf\{P\}^\{\\prime\}\_\{l\}norλl\\lambda\_\{l\}receives a gradient in this operator\.

The cube cores then execute the two high\-dimensional matrix multiplications

∇Xproj=∇MΦ,∇Φ=∇M𝖳​FP32⁡\(Xl\)\.\\nabla\_\{X\}^\{\\mathrm\{proj\}\}=\\nabla\_\{M\}\\Phi,\\qquad\\nabla\_\{\\Phi\}=\\nabla\_\{M\}^\{\\mathsf\{T\}\}\\operatorname\{FP32\}\(X\_\{l\}\)\.\(64\)The vector cores combine∇Xproj\\nabla\_\{X\}^\{\\mathrm\{proj\}\}with the aggregation, RMS, and optional direct Post gradients\. Gradients ofΦ\\Phi,ss, andbbare reduced deterministically; scale and bias use compensated accumulation\.

Training reuses the states in Table[9](https://arxiv.org/html/2611.27193#A6.T9)instead of recomputing Pre\. Atn=4n=4, they contain 65 FP32 values \(260 bytes\) per token\. BecauseHpostH\_\{\\mathrm\{post\}\}is already a forward output, only the remaining 61 values are optional training outputs; inference disables them\.

Table 9:Forward states reused by the fusedc\{c\}mHCPre backward operator forn=4n=4\.StateShapeData typeFP32 values/tokenInverse RMS factor\[T,1\]\[T,1\]FP321Projection outputMM\[T,32\]\[T,32\]FP3232Pre coefficients\[T,4\]\[T,4\]FP324Post coefficients\[T,4\]\[T,4\]FP324Residual coefficients𝑨\\bm\{A\}\[T,24\]\[T,24\]FP3224Total–FP3265
### F\.4Fused Post Forward and Backward Kernels

For tokentt, output streamii, and input streamjj, Post computes

Xl\+1,t,i,:=Hpost,t,ihoutl,t,:\+∑j=1nHres,t,j,iXl,t,j,:\.X\_\{l\+1,t,i,:\}=H\_\{\\mathrm\{post\},t,i\}\\,h^\{\\mathrm\{out\}\}\_\{l,t,:\}\+\\sum\_\{j=1\}^\{n\}H\_\{\\mathrm\{res\},t,j,i\}\\,X\_\{l,t,j,:\}\.\(65\)Input and output activations use BF16/FP16;HresH\_\{\\mathrm\{res\}\}andHpostH\_\{\\mathrm\{post\}\}use FP32\. Then=4n=4implementation supports\[B,S,n,D\]\[B,S,n,D\]and flattened\[T,n,D\]\[T,n,D\]layouts and requiresDDto be divisible by 128\.

Post forward uses vector cores only\. Each core processes a token\-hidden tile, initializes an FP32 accumulator withHpost,i​hloutH\_\{\\mathrm\{post\},i\}h\_\{l\}^\{\\mathrm\{out\}\}, and applies four residual\-stream scale\-accumulates\. The result is cast once on GM writeback\. Small coefficients remain on chip,hlouth\_\{l\}^\{\\mathrm\{out\}\}is reused across output streams, and double\-buffered queues overlap transfer with computation\.

Tiling selects between two reuse schedules\. If allnninput tiles fit in UB, they remain resident across output streams; otherwise, inputs are streamed while the FP32 accumulator remains resident\. This avoids UB overcommitment without changing the arithmetic\.

Given the upstream gradient∇Y=∇Xl\+1\\nabla\_\{Y\}=\\nabla\_\{X\_\{l\+1\}\}, the Post backward operator jointly evaluates

∇Xl,t,j,:\\displaystyle\\nabla\_\{X\_\{l\},t,j,:\}=∑i=1nHres,t,j,i∇Y,t,i,:,\\displaystyle=\\sum\_\{i=1\}^\{n\}H\_\{\\mathrm\{res\},t,j,i\}\\nabla\_\{Y,t,i,:\},∇Hres,t,j,i\\displaystyle\\nabla\_\{H\_\{\\mathrm\{res\}\},t,j,i\}=∑d=1DXl,t,j,d​∇Y,t,i,d,\\displaystyle=\\sum\_\{d=1\}^\{D\}X\_\{l,t,j,d\}\\nabla\_\{Y,t,i,d\},\(66\)∇hout,t,:\\displaystyle\\nabla\_\{h^\{\\mathrm\{out\}\},t,:\}=∑i=1nHpost,t,i∇Y,t,i,:,\\displaystyle=\\sum\_\{i=1\}^\{n\}H\_\{\\mathrm\{post\},t,i\}\\nabla\_\{Y,t,i,:\},∇Hpost,t,i\\displaystyle\\nabla\_\{H\_\{\\mathrm\{post\}\},t,i\}=∑d=1Dhl,t,dout​∇Y,t,i,d\.\\displaystyle=\\sum\_\{d=1\}^\{D\}h^\{\\mathrm\{out\}\}\_\{l,t,d\}\\nabla\_\{Y,t,i,d\}\.\(67\)All four gradient families are produced in one launch\. Tokens are distributed across vector cores, and the hidden dimension uses aligned tiles with an explicit tail path\. The Post vector and residual matrix remain in UB; vector multiply, multiply–accumulate, and reduction implement the small products\. The coefficient gradients accumulate in FP32 and are written once per token, while activation gradients are cast and written per tile\. Fusion reuses∇Y\\nabla\_\{Y\},XlX\_\{l\}, and the coefficients, avoiding four scans ofDD\.

### F\.5Operator\-Level Performance

We benchmark on an Ascend 910C server with CANN 9\.1\.0\([Huawei Technologies Co\., Ltd\., 2026](https://arxiv.org/html/2611.27193#bib.bib19)\)\. CANN \(Compute Architecture for Neural Networks\) provides the operator library, compiler toolchain, and runtime for Ascend processors\. ThemHCcomparison operators are the fused implementations from this release\. Both pipelines use the same Post implementation, isolating their implementation difference to Pre\.

All workloads useB=1B=1,S=4,096S=4,096,n=4n=4, andD∈\{2048,3584,7168\}D\\in\\\{2048,3584,7168\\\}\. Latency is reported in microseconds by input shape\. Speedup isTbaseline/ToursT\_\{\\mathrm\{baseline\}\}/T\_\{\\mathrm\{ours\}\}\. The model sublayer is excluded, and Pre and Post were timed independently\. The complete\-pipeline totals and reductions are reported in Table[3](https://arxiv.org/html/2611.27193#S4.T3); below we provide the detailed Pre/Post breakdowns\.

Table[10](https://arxiv.org/html/2611.27193#A6.T10)isolates the differing Pre stage\. The forward operator achieves3\.82×3\.82\\times,2\.51×2\.51\\times, and1\.93×1\.93\\timesspeedups\. The shape\-aware layout and cache policies are most consequential at largeDD, where wider rows otherwise increase cube\-side layout\-conversion cost and cache pressure\. The backward gain narrows withDD, reaching1\.46×1\.46\\timesatD=7,168D=7,168as projection gradients dominate fixed\-size coefficient work\.

Table 10:Latency of the fusedc\{c\}mHCPre andmHCPre operators\.Input\[B,S,n,D\]\[B,S,n,D\]Fwd latency \(μ\\mus\)Fwd speedupBwd latency \(μ\\mus\)Bwd speedupc\{c\}mHCmHCc\{c\}mHCmHC\[1,4096,4,2048\]\[1,4096,4,2048\]266\.70\\mathbf\{266\.70\}1,017\.501,017\.503\.82×3\.82\\times444\.40\\mathbf\{444\.40\}889\.03889\.032\.00×2\.00\\times\[1,4096,4,3584\]\[1,4096,4,3584\]485\.96\\mathbf\{485\.96\}1,217\.541,217\.542\.51×2\.51\\times879\.57\\mathbf\{879\.57\}1,365\.561,365\.561\.55×1\.55\\times\[1,4096,4,7168\]\[1,4096,4,7168\]1,168\.57\\mathbf\{1,168\.57\}2,255\.842,255\.841\.93×1\.93\\times2,082\.52\\mathbf\{2,082\.52\}3,045\.703,045\.701\.46×1\.46\\timesTable[11](https://arxiv.org/html/2611.27193#A6.T11)reports the identical Post cost in both pipelines\. It accounts for 51\.8%, 49\.5%, and 49\.8% of our forward\-plus\-backward cost, diluting the larger Pre\-only speedups\.

Table 11:Latency of the fused Post forward and backward operators used in the complete pipeline\.Input\[B,S,n,D\]\[B,S,n,D\]Fwd latency\(μ\\mus\)Bwd latency\(μ\\mus\)Total latency\(μ\\mus\)\[1,4096,4,2048\]\[1,4096,4,2048\]109\.32654\.17763\.49\[1,4096,4,3584\]\[1,4096,4,3584\]160\.201,180\.291,340\.49\[1,4096,4,7168\]\[1,4096,4,7168\]993\.842,227\.633,221\.47Table 12:Latency of our fused Pre operator and the MindSpore primitive\-operator composition\.Input\[B,S,n,D\]\[B,S,n,D\]Fwd latency \(μ\\mus\)Fwd speedupBwd latency \(μ\\mus\)Bwd speedupOursMindSporeOursMindSpore\[1,4096,4,2048\]\[1,4096,4,2048\]314\.17\\mathbf\{314\.17\}1,524\.501,524\.504\.85×4\.85\\times620\.95\\mathbf\{620\.95\}3,042\.443,042\.444\.90×4\.90\\times\[1,4096,4,3584\]\[1,4096,4,3584\]567\.43\\mathbf\{567\.43\}2,607\.342,607\.344\.59×4\.59\\times1,259\.12\\mathbf\{1,259\.12\}5,455\.295,455\.294\.33×4\.33\\times\[1,4096,4,7168\]\[1,4096,4,7168\]1,252\.86\\mathbf\{1,252\.86\}5,325\.695,325\.694\.25×4\.25\\times3,517\.94\\mathbf\{3,517\.94\}11,119\.7911,119\.793\.16×3\.16\\timesFinally, Table[12](https://arxiv.org/html/2611.27193#A6.T12)compares our fused Pre operator with an unfused MindSpore composition\([MindSpore, 2022](https://arxiv.org/html/2611.27193#bib.bib20)\)\. This isolates the benefit of custom\-kernel fusion, while themHCcomparison evaluates the contraction\-specific design\. The two comparisons are separate benchmark series; absolute latencies for our operator are comparable only within each table\.

Our fused Pre operator achieves4\.25×4\.25\\times–4\.85×4\.85\\timesforward and3\.16×3\.16\\times–4\.90×4\.90\\timesbackward speedup over the MindSpore composition, confirming that fusion removes substantial launch and intermediate memory overhead\. AsDDgrows, high\-dimensional work and the identical Post cost reduce the complete\-pipeline gain\.

Similar Articles

oHC: Orthogonal Hyper-Connections on SO(4) via Quaternions

arXiv cs.CL

This paper proposes Orthogonal Hyper-Connections (oHC), which restricts the residual mixing matrix to the rotation group SO(n) to maintain training stability and prevent stream homogenization. Evaluated on downstream tasks, oHC outperforms baselines like single-stream residuals and manifold-constrained hyper-connections.

xHC: Expanded Hyper-Connections

Hugging Face Daily Papers

This paper introduces xHC (Expanded Hyper-Connections), a method that enables meaningful expansion of residual streams in Transformers beyond the previous N=4 limit, achieving consistent improvements on 18B and 28B MoE models while adding only modest training FLOPs. It also presents xHC-Flash to reduce memory traffic, making large-N residual-stream expansion practical for LLM pre-training.

Heterogeneous Graph Condensation via Role-Aware Clustering

arXiv cs.LG

This paper proposes HGC-RC, a role-aware heterogeneous graph condensation framework that uses lightweight propagation and a hybrid clustering strategy to produce compact heterogeneous graphs, enabling efficient HGNN training on large-scale graphs without sacrificing performance.