cmHC:通过几何收缩平衡超连接中的流混合

媒体报道 Hugging Face Papers 原文语言:中文

本文提出c{c}mHC,一种通过几何收缩将Birkhoff多重随机矩阵收缩至内部的精确双随机方法,解决超连接中的欠混合与过混合问题,并在大规模模型预训练中实现最高44.8%的执行延迟降低。

全文

c{c}mHC: 通过几何收缩平衡超连接中的流混合

Haowei He 机构:中国电信星辰AGI实验室 Ziwen Zhao 机构:香港科技大学(广州) Chenshuo Pan 机构:中国电信星辰AGI实验室 Gang Lin 机构:哈尔滨工业大学(深圳) Zhihao Yang 机构:中国电信星辰AGI实验室 Chao Wang 机构:中国电信星辰AGI实验室 Xinzhang Liu 机构:中国电信星辰AGI实验室 Kaidong Yu 机构:中国电信星辰AGI实验室 Han Gao 机构:华为技术有限公司 Dongfang Li 机构:哈尔滨工业大学(深圳) Menglin Yang 机构:香港科技大学(广州)

Shuangyong Song 机构:中国电信星辰AGI实验室 Yongxiang Li 机构:中国电信星辰AGI实验室

Abstract

流形约束超连接(mHC)将残差连接扩展到多个流,并通过将流混合残差矩阵约束在 Birkhoff 多胞形(即双随机矩阵集合)上,来稳定残差传播。在这项工作中,我们研究了如何在 Birkhoff 多胞形内有效地混合残差流。我们揭示了一个混合权衡:当混合不足的残差矩阵停留在 Birkhoff 多胞形的顶点附近时,超连接将退化为一组几近独立的流;当混合过度的残差矩阵集中在多胞形的均匀重心周围时,各个流将变得难以区分。我们通过对跨层的累积残差混合、流差异以及混合系数的梯度差异进行界定,从理论上验证了我们的发现。受这些发现的启发,我们提出了流形约束超连接收缩方法(c{c}mHC),这是一种精确的双随机方法,能够在几何上将 Birkhoff 多胞形向其内部收缩。这种收缩通过强制残差矩阵向多胞形内部更深处探索来缓解混合不足,具有可证明的流混合界限且无需新的参数化。此外,我们在浅层应用适度的收缩以防止混合过度,从而在超大规模模型预训练中实现稳定的梯度传播。在各种参数规模的稠密模型和混合专家(MoE)模型上进行的广泛实验证明了 c{c}mHC 的有效性和可扩展性。我们还在昇腾 NPU 上开发了针对 c{c}mHC 的融合算子,将超连接执行延迟降低了高达 44.8\%。

keywordsHyper-Connections, Birkhoff Polytope, large language model, geometry, pretraining

1 Introduction

超连接(HC)(Zhu 等人,2025)通过在多个特征流之间进行可学习的混合,扩展了标准的残差连接(He 等人,2016),如图 1(a) 所示。由于不受约束的混合会破坏深层网络中信号传播的稳定性,流形约束超连接(mHC)(Xie 等人,2026)将残差矩阵约束在 Birkhoff 多胞形(即双随机矩阵集合)上。mHC-lite(Yang 和 Gao,2026)通过置换矩阵的可学习凸组合,提供了精确的双随机约束。尽管这些方法通过双随机流混合展现出了训练稳定性,但它们并未确保流之间有效的信息交换。我们通过分析两种病态混合状态(混合不足和混合过度),研究了如何在超连接中更有效地混合流。更多相关工作见附录 B。

Figure 1: Illustration of our geometric contraction and its effect on stream mixing. (a) Architecture of hyper-connections at layer ll. Our method focuses on the hyper-connection module. (b) Two-dimensional projections of the Birkhoff polytope for n=3n\!=\!3, along with the sampled trajectories of layer-averaged residual matrices during training, ended at the star . Traditional methods like mHC-lite do not encourage an interior exploration of the polytope, so the residual matrices remain close to a permutation vertex; our moderate contraction encourages interior exploration, while a strong contraction may drive the residual matrices toward the uniform barycenter. (c) Layer-averaged residual matrices and cosine similarity distributions between streams for n=4n\!=\!4. A lower contraction coefficient λ\lambda indicates a stronger contraction.

Under-mixing.

先前的工作观察到超连接中存在混合不足的状态:残差混合矩阵通常保持接近单位矩阵,从而限制了跨流交互(Alimaskina et al., 2026)。我们进一步观察到,这种行为并非单位矩阵所独有:混合可以保持集中在初始化所偏好的其他置换顶点附近。在这些情况下,流更多是进行了置换而非积极地混合,从而限制了多流架构的表达能力。为了解决这个问题,现有方法通过残差矩阵的不同参数化探索了伯克霍夫多胞体(Birkhoff polytope)的内部(Liu et al., 2026; Dandachi and Diggs-Galligan, 2026; Guo et al., 2026),但它们往往依赖于更复杂的构造,且没有严格保证混合效果,其有效性也未在大规模模型预训练中得到验证。这促使我们提出了具有可证明的流混合界且无需引入新参数的几何收缩策略:我们限制对置换顶点的访问,并迫使残差矩阵更深入地探索多胞体内部。我们提出了用于流形约束超连接的收缩方法(c{c}mHC),该方法通过用平滑矩阵替换置换矩阵,将多胞体收缩为其内部的一个较小区域。这在保持精确双随机性的同时,严格保证了正混合。如图1(b)所示,收缩防止了残差混合在置换顶点周围退化,表明了有保证的内部探索。

混合权衡。

我们工作的另一个重要方面是揭示了潜在的过度混合问题,据我们所知,这一问题在近期的研究中大体上仍未得到探索。尽管它们通过不同的约束和参数化鼓励积极的流混合,但我们认为更强的混合并不总是越好,因为过度的混合会使特征流变得难以区分。如图1(c)所示,当收缩增强时,流之间的平均相似度变得更接近1。我们从理论上证明了累积混合界共同取决于收缩强度和收缩层的数量。我们进一步揭示了流混合的“蝴蝶效应”:即使是数值上很小的收缩也会影响混合系数的流差异和梯度差异,从而在深层网络中放大过度混合。这些发现促使我们在c{c}mHC中采用了一个简单但有效的策略:我们仅在浅层应用适度的收缩,在鼓励早期信息交换的同时,允许在更深的层中进行接近恒等的映射。我们通过在GPT-2以及6B和300B参数规模的混合专家模型(mixture-of-experts)上进行的大量实验,验证了c{c}mHC的有效性和可扩展性,展示了权衡设计如何在极大规模模型预训练中实现更低的训练损失,同时稳定梯度传播。此外,尽管不需要新的参数化,我们通过在昇腾NPU(Ascend NPU)上开发融合算子,提升了c{c}mHC在工业场景中的效率,将超连接执行延迟降低了多达44.8\%。综上所述,我们的贡献主要体现在三个方面:

•

我们在理论和实验上揭示了mHC中的混合权衡:混合不足会导致超连接退化为一组单一的流,而过度混合会使各个流之间变得难以区分。

•

我们提出了c{c}mHC,这是一种精确的双随机方法,它对伯克霍夫多胞体执行适度的几何收缩,同时不引入额外的参数。

•

我们通过从GPT-2到6B-MoE和300B-MoE的大量实验评估了c{c}mHC,以验证其有效性和可扩展性,并在昇腾NPU上开发了高效的融合算子以支持高效执行。

2 从混合不足到几何收缩

预备知识。

超连接维护 $n$ 个特征流 $\mathbf{x}_{l}\in\mathbb{R}^{n\times d}$ 并将其更新为

\mathbf{x}_{l+1}=\mathbf{H}^{\mathrm{res}}_{l}\mathbf{x}_{l}+{\mathbf{H}^{\mathrm{post}}_{l}}^{\top}f(\mathbf{H}^{\mathrm{pre}}_{l}\mathbf{x}_{l};\mathbf{\Theta}_{l}), (1)

where 𝐇lres∈ℝn×n\mathbf{H}^{\mathrm{res}}_{l}\in\mathbb{R}^{n\times n} mixes residual streams and 𝐇lpre,𝐇lpost∈ℝ1×n\mathbf{H}^{\mathrm{pre}}_{l},\mathbf{H}^{\mathrm{post}}_{l}\in\mathbb{R}^{1\times n} aggregate and redistribute the feature streams, respectively. To ensure exact double stochasticity, mHC-lite parameterizes the residual matrix as a convex combination of the n!n! permutation matrices 𝐏m\mathbf{P}_{m}:

𝐇lres=∑m=1n!αl,m​𝐏m,𝜶l=softmax⁡(alres​𝐱l′​𝐖lres+𝐛lres),\mathbf{H}^{\mathrm{res}}_{l}=\sum_{m=1}^{n!}\alpha_{l,m}\mathbf{P}_{m},\qquad\bm{\alpha}_{l}=\mathrm{softmax}\left(a_{l}^{\mathrm{res}}\mathbf{x}^{\prime}_{l}\mathbf{W}^{\mathrm{res}}_{l}+\mathbf{b}^{\mathrm{res}}_{l}\right), (2)

where 𝐱l′\mathbf{x}^{\prime}_{l} is the normalized, flattened feature streams, and alresa_{l}^{\mathrm{res}}, 𝐖lres\mathbf{W}^{\mathrm{res}}_{l}, and 𝐛lres\mathbf{b}^{\mathrm{res}}_{l} are learnable parameters. This exactly constrains the residual matrices in a Birkhoff polytope Bn=conv⁡{𝐏m}m=1n!{B}_{n}=\operatorname{conv}\{\mathbf{P}_{m}\}_{m=1}^{n!} because of the Birkhoff–von Neumann theorem (Birkhoff, 1946); see Appendix A.2 for details.

2.1 Under-mixing in Hyper-Connections

Under-mixing has been widely considered a key bottleneck that limits the expressivity of hyper-connections. Intuitively, it makes the multi-stream architecture degenerate into a set of nearly independent streams. Prior work has observed this phenomenon in mHC-lite: in most layers, 𝐇lres\mathbf{H}^{\mathrm{res}}_{l} stays close to the identity matrix with only small off-diagonal mass, instead of learning active stream mixing (Liu et al., 2026; Alimaskina et al., 2026). Geometrically, 𝐇lres\mathbf{H}^{\mathrm{res}}_{l} remains near the identity vertex of the Birkhoff polytope during training, as shown in Figure 1(b).

Figure 2: The under-mixing phenomenon under different initializations. Left: 1L​∑l=0L−1𝐇lres\frac{1}{L}\sum_{l=0}^{L-1}\mathbf{H}^{\mathrm{res}}_{l} at training steps 0 (initial state), 5k, and 10k. Across different initializations, 1L​∑l=0L−1𝐇lres\frac{1}{L}\sum_{l=0}^{L-1}\mathbf{H}^{\mathrm{res}}_{l} keeps close to the initial permutation matrix, not only the identity. Right: entry distributions of mixing coefficients 𝜶\bm{\alpha}. The coefficient assigned to the initialized permutation (“Init perm”) stays close to 1, while the majority of coefficients over all permutations (“All perms”) stays close to 0.

We further observe that under-mixing is not specific to the identity; it can occur around any permutation matrix favored at initialization. In mHC-lite, the input 𝐱0\mathbf{x}_{0} is first duplicated across nn streams. Then, the diagonal entries of the residual bias 𝐛lres\mathbf{b}^{\mathrm{res}}_{l} are set to 00, while the others are set to −8-8. This makes 𝐇lres\mathbf{H}^{\mathrm{res}}_{l} close to the identity matrix through the softmax in (2). When we change the initialization of 𝐛lres\mathbf{b}^{\mathrm{res}}_{l} to favor another permutation matrix, the average 𝐇res\mathbf{H}^{\mathrm{res}} stays close to that permutation during training, as shown in Figure 2.

From the perspective of training dynamics, the stream 𝐱l,m\mathbf{x}_{l,m} favored by initialization receives a larger coefficient update, which pushes its mixing coefficient αl,m\alpha_{l,m} toward 1 and suppresses the remaining coefficients. As a result, a single 𝐏m\mathbf{P}_{m} dominates 𝐇lres\mathbf{H}^{\mathrm{res}}_{l}. Since 𝐏m\mathbf{P}_{m} only permutes stream positions, cross-stream information exchange is suppressed. Figure 2 shows that the entry distribution of 𝜶\bm{\alpha} remains close to its initial near-Dirac state during training: the coefficient of the initialized permutation stays near 1, while most other permutation coefficients stay near 0.

2.2 c{c}mHC: Geometric Contraction of the Birkhoff Polytope

To mitigate under-mixing, we introduce a geometric contraction c⁡(⋅,λ):ℝn×n→ℝn×n{c}(\cdot;\lambda):\mathbb{R}^{n\times n}\rightarrow\mathbb{R}^{n\times n} which replaces each permutation matrix 𝐏m\mathbf{P}_{m} with a smoothed version:

𝐏m′=c⁡(𝐏m,λ)=λ​𝐏m+1−λn−1​(𝟏n​𝟏n⊤−𝐏m).\mathbf{P}^{\prime}_{m}={c}(\mathbf{P}_{m};\lambda)=\lambda\mathbf{P}_{m}+\frac{1-\lambda}{n-1}(\mathbf{1}_{n}\mathbf{1}_{n}^{\top}-\mathbf{P}_{m}). (3)

其中 λ∈(1/n,1) 控制收缩强度。当 λ→1 时恢复 mHC-lite,而 λ→1/n 时得到均匀混合。平滑的置换矩阵可以预先计算,并在不增加可学习参数或改变其大小的情况下替换原始基矩阵。

设 𝐉_n=𝟏_n𝟏_n^⊤/n 且 λ′=(nλ−1)/(n−1)。使用式 (2) 的系数,残差矩阵为

𝐇^{\mathrm{res}'}_{l}=\sum_{m=1}^{n!}\alpha_{l,m}\mathbf{P}'_{m}=c(\mathbf{H}^{\mathrm{res}}_{l};\lambda)=\lambda'\mathbf{H}^{\mathrm{res}}_{l}+(1-\lambda')\mathbf{J}_{n}. (4)

得到的收缩多面体 B_n(λ)=\operatorname{conv}\{\mathbf{P}'_{m}\}_{m=1}^{n!} 具有以下性质。

定理 2.1(双随机性的保持)。

对于 λ∈(1/n,1),有 B_n(λ)\subseteq B_n。特别地,每个收缩后的残差矩阵都是双随机的,且谱范数至多为 1。

定理 2.2(流混合的下界)。

对于 λ∈(1/n,1),收缩残差矩阵的每个条目满足

h^{\mathrm{res}'}_{l,ij}\geq\min\left(\lambda,\frac{1-\lambda}{n-1}\right)>0. (5)

证明见附录 C.1 与 C.2。定理 2.1 表明 c mHC 保持严格的双随机性,确保 \|\mathbf{H}^{\mathrm{res}'}_{l}\|_2\leq1。因此,对于固定的混合系数,残差混合算子及其转置是非扩张的,保持了双随机混合的稳定特性(Xie 等,2026)。与此同时,定理 2.2 保证在 1/n<λ<1 时每个输入流对每个输出流都有严格正的贡献,防止极端的欠混合。

收缩映射。

式 (4) 将 c 表示为原始矩阵与均匀重心 𝐉_n 之间的插值。对于 1/n<λ<1,有 0<λ′<1,且对任意 𝐇,𝐆∈B_n,

\|c(\mathbf{H};\lambda)-c(\mathbf{G};\lambda)\|_{F}=\lambda'\|\mathbf{H}-\mathbf{G}\|_{F}. (6)

因此,c 在 Frobenius 范数下是 B_n 上的收缩映射,收缩因子为 λ′。由于 c(𝐉_n,λ)=𝐉_n,它同样将每个矩阵到重心的距离按 λ′ 缩放,将原多面体映射到其相对内部的更小区域。收缩映射的一般定义见附录 A.3。

如图 1(b) 所示,原始置换顶点不再可达。即使 α_l 集中在单一分量上,𝐇^{\mathrm{res}'}_{l} 也会变为平滑的 𝐏'_m 而非置换顶点 𝐏_m。这表明几何收缩保证了正的跨流混合,从而缓解了欠混合效应。

3 混合权衡

更强的混合促进信息交流,但也可能降低流的可区分性。为此,我们首先分析收缩残差矩阵的乘积。随后使用对 Transformer 分支的局部线性近似 𝐇^{\mathrm{post}}^\top f(𝐇^{\mathrm{pre}}\mathbf{x};\Theta)\rightarrow 𝐇^{\mathrm{post}}^\top \Theta 𝐇^{\mathrm{pre}}\mathbf{x}=\mathbf{A}\mathbf{x},得到

\mathbf{x}_{l+1}\approx(\mathbf{H}^{\mathrm{res}'}_{l}+\mathbf{A}_{l})\mathbf{x}_{l}. (7)

这些分析共同表明,在浅层使用适度的收缩是一种权衡方案。

3.1 累积收缩的收敛性

方程 (4) 定义了在完备度量空间 $(B_n(\lambda), \|\cdot\|_F)$(其中 $1/n < \lambda < 1$)上的压缩映射。根据巴拿赫不动点定理(Banach, 1922),重复应用该压缩映射会收敛到一个唯一的不动点,即均匀重心 $\mathbf{J}_n$。向重心的收敛表明了一种过度混合状态:所有输出流对每个输入流都赋予了相同的权重,而不是学习动态的流间交互。详情见附录 A.3。

在各个网络层之间,混合效应通过残差矩阵的乘积累积。为了量化压缩强度如何影响这种累积混合,我们使用杜布鲁辛遍历性系数(Dobrushin’s ergodicity coefficient, Gaubert and Qu, 2015)$\tau(\mathbf{H}^{\mathrm{res}^{\prime}}_l) \in [0,1]$ 来衡量非齐次矩阵乘积的收敛性。其定义为

\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)

更小的 $\tau$ 意味着不同的行共享更多的公共质量;当 $\tau$ 接近 $0$ 时,各行变得几乎相同,表明过度混合更强。随后,下列定理将累积流混合的收敛速度与压缩强度联系起来。

定理 3.1(累积流混合的收敛性)。

设对于 $l=0, \ldots, L-1$ 有 $\lambda_l \in (1/n, 1]$,其中 $\lambda_l=1$ 表示第 $l$ 层未被压缩。定义 $\lambda^{\prime}_l = (n\lambda_l - 1)/(n - 1)$ 且 $\mathbf{H}^{\mathrm{res}^{\prime}}_l = \lambda^{\prime}_l \mathbf{H}^{\mathrm{res}}_l + (1 - \lambda^{\prime}_l)\mathbf{J}_n$。则

\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)

图 3:在不同 $\lambda$ 和网络深度 $L$ 下的累积残差矩阵 $\prod_{l=0}^{L-1} \mathbf{H}^{\mathrm{res}^{\prime}}_l$ 与杜布鲁辛遍历性系数 $\tau$。注意,由于推理时的低精度转换,矩阵与精确的双随机性略有偏差。

证明参见附录 C.3。如果所有层都满足 $\lambda^{\prime}_l < 1$,则随着 $L$ 的增加,累积残差矩阵以指数速率接近 $\mathbf{J}_n$。这暗示将这种压缩限制在少数几层对于缓解指数级收敛非常重要。

图 3 直观地展示了在不同 $\lambda$ 和 $L$ 下的累积残差矩阵 $\prod_{l=0}^{L-1} \mathbf{H}^{\mathrm{res}^{\prime}}_l$ 及其杜布鲁辛系数 $\tau$。当 $\lambda$ 从 $1$ 降至 $0.97$ 时,$\tau$ 下降了约 $0.5$,表明累积混合效应显著增强。当 $\lambda = 0.7$ 时,$\tau$ 接近 $0$,且累积残差矩阵与伯克霍夫多面体(Birkhoff polytope)的均匀重心几乎无法区分。通常情况下,增加 $L$ 会进一步减小 $\tau$,这与递减的累积上界一致。

3.2 几何压缩的“蝴蝶效应”

本节揭示了由几何压缩引起的“蝴蝶效应”:即使数值上很小的压缩不仅能加速累积残差矩阵的收敛,还会影响 $\bm{\alpha}$ 的推理和梯度传播,从而增加 c{c}mHC 中过度混合的风险。

推理过程中的流差异 $\|\tilde{\mathbf{x}}\|_F$。

为了凸显各流之间的差异,我们首先对特征流应用均值-差异分解:

\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)

其中 𝚷n=𝐈n−𝚉n\mathbf{\Pi}_{n}=\mathbf{I}_{n}-\mathbf{J}_{n},且 𝐈n\mathbf{I}_{n} 是 n×nn\times n 的单位矩阵。流差 𝐱~\tilde{\mathbf{x}} 的每一列之和为 00。为了隔离收缩对流差的影响,我们采用局部线性近似,不考虑非线性 Transformer 分支引入的差异:对于 l≥1l\geq 111 1,有 𝚷n​𝐀l​𝚉n≈𝟎\mathbf{\Pi}_{n}\mathbf{A}_{l}\mathbf{J}_{n}\approx\mathbf{0}。这仅影响我们下面附加的过度混合分析(定理 3.2 和 3.3),而定理 3.1 中的累积混合界不依赖于这种近似。我们从第一层的输出流 𝐱~1\tilde{\mathbf{x}}_{1} 开始,其流差范数 ‖𝐱~1‖F>0\|\tilde{\mathbf{x}}_{1}\|_{F}>0。以下定理给出了流差范数的上界。

图 4:训练步骤中流差的 Frobenius 范数 ‖𝐱~‖F{\|\tilde{\mathbf{x}}\|}_{F}。

定理 3.2(流差的范数上界)。

对于 L≥2L\geq 2 个超连接层,流差范数满足

‖𝐱~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)

对于 2≤k≤L2\leq k\leq L,其中 λl′=n​λl−1n−1\lambda^{\prime}_{l}=\frac{n\lambda_{l}-1}{n-1} 是归一化收缩系数,而 ℓl=sup𝐙≠𝟎‖𝐀~l​𝐙‖F‖𝐙‖F\ell_{l}=\sup_{\mathbf{Z}\neq\mathbf{0}}\frac{\|\tilde{\mathbf{A}}_{l}\mathbf{Z}\|_{F}}{\|\mathbf{Z}\|_{F}} 是 𝐀~l=𝚷n​𝐀l\tilde{\mathbf{A}}_{l}=\mathbf{\Pi}_{n}\mathbf{A}_{l} 的 Lipschitz 常数。

详细证明见附录 C.4。定理 3.2 表明,对于固定的 ℓl\ell_{l} 和 𝐱~1\tilde{\mathbf{x}}_{1},更强的收缩可以降低流差范数的上界。乘法累积意味着早期层的收缩可以抑制后续层的差异。这揭示了过度混合的风险:更强的信息交换会使流的区分度降低。

我们在图 4 中分析了流差范数 ‖𝐱~‖F{\|\tilde{\mathbf{x}}\|}_{F}。注意 ‖𝐱~‖F{\|\tilde{\mathbf{x}}\|}_{F} 的上界也受 Transformer 层训练稳定性(ℓl\ell_{l})的影响,因此较深的层并不保证具有更小的范数。尽管如此,λ=0.97\lambda=0.97 和 λ=0.7\lambda=0.7 的流差范数明显低于 λ=1\lambda=1 的流差范数。这验证了几何收缩可以抑制流间差异。

图 5:B4{B}_{4} 顶点上的混合系数 𝜶\bm{\alpha} 分布(横跨 nanoGPT-L 的所有层)。2424 个顶点按其 α\alpha 值排序。曲线表示中位数。完整结果见附录 E.4。

混合系数 𝜶\bm{\alpha} 的梯度。

接下来,我们分析收缩强度如何影响混合系数 𝜶\bm{\alpha} 的学习。直观上,简单地用更平滑的版本 𝐏m′\mathbf{P}^{\prime}_{m} 替换预设的置换矩阵 𝐏m\mathbf{P}_{m} 不应直接影响 𝜶\bm{\alpha} 的学习。然而,我们发现 c{c}mHC 中的几何收缩通过减少任意一对置换矩阵的梯度差的上界,从而诱导出了更平滑的 𝜶\bm{\alpha} 分布。形式上:

定理 3.3(不同置换的梯度差)。

对于两个不同的置换矩阵 𝐏i,𝐏j∈ℝn×n\mathbf{P}_{i},\mathbf{P}_{j}\in\mathbb{R}^{n\times n},预训练损失 ℒ\mathcal{L} 关于其系数 αl,i,αl,j\alpha_{l,i},\alpha_{l,j} 的梯度差满足以下上界

|(∇α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)

参见附录 C.5 获取详细证明。根据定理 3.2,收缩降低了 \|\tilde{\mathbf{x}}_{l}\|_{F} 的上界。对于固定的输入梯度 \|\nabla_{\tilde{\mathbf{x}}_{l+1}}\mathcal{L}\|_{F},这也降低了对应的上界 \|(\nabla_{\alpha_{l,i}}-\nabla_{\alpha_{l,j}})\mathcal{L}\|。这表明收缩倾向于为置换矩阵的不同系数分配相似的梯度,从而导致 \bm{\alpha} 的分布更平滑,进一步促进流的混合。这解释了为何数值上较小的收缩可以显著鼓励混合,而强烈的收缩可能反而增加过度混合的风险。

为了检验此效应,我们对所有 B_{4} 顶点的系数 \bm{\alpha} 按降序排序,并比较 mHC-lite 与 λ=0.97 的 c{c}mHC 在所有层中的分布。图 5 显示 c{c}mHC 将更多质量分配给非主导顶点,而不是仅在顶点 0 累积质量。这支持几何收缩会产生更平滑的 \bm{\alpha} 分布的观点。

3.3 对 Birkhoff 多面体的适度收缩

第 3.1 节和第 3.2 节的分析指出了过度混合的风险:累计收缩会使 \mathbf{H}^{\mathrm{res}^{\prime}} 指数式地趋向于 Birkhoff 多面体的均匀重心,且收缩还会影响流的差异并导致系数分布更平滑。这些发现促使我们采用混合权衡策略,以控制收缩的强度和层数。我们仅在前 K 层施加适度收缩,而在更深层允许近似恒等映射:

\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} \quad (13)

我们为所有前 K 层设置一个共享的收缩系数 \lambda。这提升了超连接架构的表达能力,同时降低了过度混合的风险。

为什么要收缩浅层?

浅层的收缩比深层更有效,因为收缩效应可以累积并影响所有后续层。我们首先给出定理 3.1 的直接推论,以将其扩展到以第 k 层结束的任意前缀,其中 1\leq k\leq L。

推论 3.1(中间层的累计混合)。

设 \lambda_{l}\in(1/n,1],对 l=0,\dots,L-1 成立。则对任意 k\in\{1,\dots,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}. \quad (14)

这意味着第 k 层的上界仅取决于前 k 层的归一化收缩系数 \lambda_{l}^{\prime}。对于前 K 层的浅层收缩,\lambda_{l}<1(l=0,\dots,K),因此 Dobrushin 系数在第 k 层具有更小的上界。这表明浅层收缩可以通过后续中间层传播其混合效应。这种更持久的效应也可能增加过度混合的风险,因此需要谨慎选择 \lambda 和 K,而深层收缩仅影响流交互的最终阶段。从深度表征学习的层次视角来看,浅层往往编码更通用的特征,深层则更具专属性(Yosinski 等,2014),因此在深层混合流时应更为谨慎。此发现与近期强调早期混合器更重要的工作(Zhao 等,2026)一致。我们在第 4.2 节进一步提供实证证据。

4 实验

设置。

参考 Yang 和 Gao (2026) 的方法,我们在两个大型网络数据集上评估了语言建模性能:OpenWebText (Gokaslan 和 Cohen, 2019) 以及 FineWeb-Edu (Lozhkov 等人, 2024)。我们将 c{c}mHC 与具有代表性的残差和超连接基准方法进行比较。(1) 纯残差连接 “Residual”,包含单个流 n=1n=1 以及多个不进行混合的独立流(例如 n=4n=4)。(2) 原始 HC (Zhu 等人, 2025),残差矩阵没有 Birkhoff 约束。(3) mHC (Xie 等人, 2026),带有 Sinkhorn-Knopp 迭代约束。(4) mHC-lite (Yang 和 Gao, 2026),对残差矩阵采用精确的 Birkhoff von-Neumann 参数化。(5) KromHC (Zhou 等人, 2026),将双随机矩阵分解为较小矩阵的克罗内克积。更多详情参见附录 D。

4.1 GPT-2 上的结果

我们使用 nanoGPT 框架 (Karpathy, 2025) 从头开始训练 nanoGPT-S、nanoGPT-M 和 nanoGPT-L,迭代次数为 1010k。这些模型分别具有 12、24 和 48 个超连接层33 3 每个 Transformer 块在注意力层和 MLP 层周围分别包含两个超连接层。,参数量分别约为 4545M、0.120.12B 和 0.360.36B。除非另有说明,所有方法均使用 n=4n=4 个流。结果取三次运行的平均值。

表 1:nanoGPT 在 OpenWebText 和 FineWeb-Edu 上的结果(3 次重复实验的平均值 ±\pm 标准差)。除“Residual, n=1n=1”外,所有方法均使用 4 个流。平均损失排名(Avg. Loss Rank)表示训练损失和验证损失的平均排名。最佳结果以粗体显示。不同随机种子下的结果参见附录 E.1。

nanoGPT-S,#Layers=12 nanoGPT-M,#Layers=24 nanoGPT-L,#Layers=48 方法 训练损失 验证损失 梯度范数 训练损失 验证损失 梯度范数 训练损失 验证损失 梯度范数 平均损失 排名 OpenWebText 残差,n=1n=1 3.5677±0.0006 3.5677_{\pm 0.0006} 3.5636±0.0007 3.5636_{\pm 0.0007} 0.4239±0.0194 0.4239_{\pm 0.0194} 3.3371±0.0008 3.3371_{\pm 0.0008} 3.3363±0.0007 3.3363_{\pm 0.0007} 0.3452±0.0099 0.3452_{\pm 0.0099} 3.2311±0.0009 3.2311_{\pm 0.0009} 3.2442±0.0001 3.2442_{\pm 0.0001} 0.3330±0.0064 0.3330_{\pm 0.0064} 11.8 11.8 残差,n=4n=4 3.4777±0.0039 3.4777_{\pm 0.0039} 3.4742±0.0036 3.4742_{\pm 0.0036} 0.3877±0.0339 0.3877_{\pm 0.0339} 3.2591±0.0029 3.2591_{\pm 0.0029} 3.2587±0.0028 3.2587_{\pm 0.0028} 0.3751±0.0150 0.3751_{\pm 0.0150} 3.1801±0.0009 3.1801_{\pm 0.0009} 3.1909±0.0011 3.1909_{\pm 0.0011} 0.4537±0.0325 0.4537_{\pm 0.0325} 6.0 6.0 HC 3.4749±0.0017 3.4749_{\pm 0.0017} 3.4796±0.0072 3.4796_{\pm 0.0072} 0.4300±0.0584 0.4300_{\pm 0.0584} 3.2697±0.0008 3.2697_{\pm 0.0008} 3.2681±0.0006 3.2681_{\pm 0.0006} 0.4990±0.1291 0.4990_{\pm 0.1291} 3.2232±0.0013 3.2232_{\pm 0.0013} 3.2356±0.0011 3.2356_{\pm 0.0011} 0.5519±0.1373 0.5519_{\pm 0.1373} 9.7 9.7 mHC 3.4813±0.0059 3.4813_{\pm 0.0059} 3.4775±0.0064 3.4775_{\pm 0.0064} 0.3882±0.0269 0.3882_{\pm 0.0269} 3.2562±0.0016 3.2562_{\pm 0.0016} 3.2558±0.0013 3.2558_{\pm 0.0013} 0.3734±0.0146 0.3734_{\pm 0.0146} 3.1795±0.0020 3.1795_{\pm 0.0020} 3.1920±0.0020 3.1920_{\pm 0.0020} 0.4665±0.0357 0.4665_{\pm 0.0357} 6.0 6.0 mHC-lite 3.4801±0.0027 3.4801_{\pm 0.0027} 3.4759±0.0021 3.4759_{\pm 0.0021} 0.3688±0.0155 0.3688_{\pm 0.0155} 3.2578±0.0034 3.2578_{\pm 0.0034} 3.2564±0.0034 3.2564_{\pm 0.0034} 0.3854±0.0197 0.3854_{\pm 0.0197} 3.1821±0.0033 3.1821_{\pm 0.0033} 3.1949±0.0033 3.1949_{\pm 0.0033} 0.4317±0.0202 0.4317_{\pm 0.0202} 6.7 6.7 KromHC 3.4809±0.0024 3.4809_{\pm 0.0024} 3.4766±0.0029 3.4766_{\pm 0.0029} 0.3898±0.0338 0.3898_{\pm 0.0338} 3.2612±0.0041 3.2612_{\pm 0.0041} 3.2602±0.0041 3.2602_{\pm 0.0041} 0.3867±0.0177 0.3867_{\pm 0.0177} 3.1807±0.0019 3.1807_{\pm 0.0019} 3.1934±0.0024 3.1934_{\pm 0.0024} 0.4589±0.0322 0.4589_{\pm 0.0322} 8.0 8.0 c{c}mHC,λ=0.70\lambda=0.70,所有层 3.4790±0.0045 3.4790_{\pm 0.0045} 3.4756±0.0046 3.4756_{\pm 0.0046} 0.3637±0.0134 0.3637_{\pm 0.0134} 3.2626±0.0021 3.2626_{\pm 0.0021} 3.2618±0.0023 3.2618_{\pm 0.0023} 0.3760±0.0160 0.3760_{\pm 0.0160} 3.2063±0.0016 3.2063_{\pm 0.0016} 3.2169±0.0013 3.2169_{\pm 0.0013} 0.4346±0.0164 0.4346_{\pm 0.0164} 9.0 9.0 c{c}mHC,λ=0.85\lambda=0.85,所有层 3.4770±0.0025 3.4770_{\pm 0.0025} 3.4732±0.0026 3.4732_{\pm 0.0026} 0.3634±0.0166 0.3634_{\pm 0.0166} 3.2579±0.0031 3.2579_{\pm 0.0031} 3.2575±0.0029 3.2575_{\pm 0.0029} 0.3758±0.0150 0.3758_{\pm 0.0150} 3.2012±0.0012 3.2012_{\pm 0.0012} 3.2119±0.0014 3.2119_{\pm 0.0014} 0.4334±0.0155 0.4334_{\pm 0.0155} 6.7 6.7 c{c}mHC,λ=0.97\lambda=0.97,所有层 3.4745±0.0014 3.4745_{\pm 0.0014} 3.4713±0.0014 3.4713_{\pm 0.0014} 0.3629±0.0121 0.3629_{\pm 0.0121} 3.2550±0.0018 3.2550_{\pm 0.0018} 3.2542±0.0020 3.2542_{\pm 0.0020} 0.3790±0.0159 0.3790_{\pm 0.0159} 3.1915±0.0016 3.1915_{\pm 0.0016} 3.2026±0.0013 3.2026_{\pm 0.0013} 0.4456±0.0252 0.4456_{\pm 0.0252} 4.2 4.2 c{c}mHC,λ=0.97\lambda=0.97,K=10K=10 3.4755±0.0035 3.4755_{\pm 0.0035} 3.4718±0.0037 3.4718_{\pm 0.0037} 0.3805±0.0195 0.3805_{\pm 0.0195} 3.2588±0.0029 3.2588_{\pm 0.0029} 3.2584±0.0029 3.2584_{\pm 0.0029} 0.3705±0.0141 0.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.0150 0.4340_{\pm 0.0150} 4.2 4.2 c{c}mHC,λ=0.97\lambda=0.97,K=5K=5 3.4731±0.0028 3.4731_{\pm 0.0028} 3.4693±0.0035 3.4693_{\pm 0.0035} 0.3726±0.0182 0.3726_{\pm 0.0182} 3.2563±0.0014 3.2563_{\pm 0.0014} 3.2549±0.0017 3.2549_{\pm 0.0017} 0.3734±0.0142 0.3734_{\pm 0.0142} 3.1801±0.0007 3.1801_{\pm 0.0007} 3.1913±0.0005 3.1913_{\pm 0.0005} 0.4341±0.0141 0.4341_{\pm 0.0141} 3.2 3.2 c{c}mHC,λ=0.97\lambda=0.97,K=2K=2 3.4723±0.0025\mathbf{3.4723}_{\pm 0.0025} 3.4686±0.0027\mathbf{3.4686}_{\pm 0.0027} 0.3774±0.0200 0.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.0137 0.3726_{\pm 0.0137} 3.1791±0.0032 3.1791_{\pm 0.0032} 3.1904±0.0032 3.1904_{\pm 0.0032} 0.4353±0.0140 0.4353_{\pm 0.0140} 1.3\mathbf{1.3} FineWeb-Edu 残差,n=1n=1 3.5284±0.0023 3.5284_{\pm 0.0023} 3.5319±0.0021 3.5319_{\pm 0.0021} 0.4395±0.0204 0.4395_{\pm 0.0204} 3.3228±0.0042 3.3228_{\pm 0.0042} 3.3206±0.0042 3.3206_{\pm 0.0042} 0.3603±0.0094 0.3603_{\pm 0.0094} 3.2308±0.0002 3.2308_{\pm 0.0002} 3.2270±0.0002 3.2270_{\pm 0.0002}

0.3347±0.00590.3347_{\pm 0.0059} 11.211.2 Residual, n=4n=4 3.4644±0.00173.4644_{\pm 0.0017} 3.4684±0.00173.4684_{\pm 0.0017} 0.3645±0.01270.3645_{\pm 0.0127} 3.2489±0.00053.2489_{\pm 0.0005} 3.2474±0.00083.2474_{\pm 0.0008} 0.3689±0.01360.3689_{\pm 0.0136} 3.1837±0.00233.1837_{\pm 0.0023} 3.1819±0.00233.1819_{\pm 0.0023} 0.4587±0.02970.4587_{\pm 0.0297} 5.35.3 HC 3.4699±0.00013.4699_{\pm 0.0001} 3.4724±0.00033.4724_{\pm 0.0003} 0.4493±0.07080.4493_{\pm 0.0708} 3.2900±0.00533.2900_{\pm 0.0053} 3.2898±0.00563.2898_{\pm 0.0056} 2.7226±2.23252.7226_{\pm 2.2325} 3.2413±0.01883.2413_{\pm 0.0188} 3.2363±0.01793.2363_{\pm 0.0179} 0.9607±0.67550.9607_{\pm 0.6755} 10.810.8 mHC 3.4626±0.00093.4626_{\pm 0.0009} 3.4667±0.00103.4667_{\pm 0.0010} 0.3684±0.01250.3684_{\pm 0.0125} 3.2483±0.00103.2483_{\pm 0.0010} 3.2471±0.00053.2471_{\pm 0.0005} 0.3663±0.01210.3663_{\pm 0.0121} 3.1862±0.00093.1862_{\pm 0.0009} 3.1838±0.00083.1838_{\pm 0.0008} 0.4755±0.03380.4755_{\pm 0.0338} 4.04.0 mHC-lite 3.4621±0.0008\mathbf{3.4621}_{\pm 0.0008} 3.4660±0.0013\mathbf{3.4660}_{\pm 0.0013} 0.3709±0.01370.3709_{\pm 0.0137} 3.2480±0.00263.2480_{\pm 0.0026} 3.2477±0.00233.2477_{\pm 0.0023} 0.3742±0.01630.3742_{\pm 0.0163} 3.1884±0.00203.1884_{\pm 0.0020} 3.1846±0.00213.1846_{\pm 0.0021} 0.4502±0.02500.4502_{\pm 0.0250} 4.34.3 KromHC 3.4643±0.00163.4643_{\pm 0.0016} 3.4673±0.00163.4673_{\pm 0.0016} 0.3653±0.01230.3653_{\pm 0.0123} 3.2485±0.00213.2485_{\pm 0.0021} 3.2480±0.00183.2480_{\pm 0.0018} 0.3695±0.01380.3695_{\pm 0.0138} 3.1836±0.00063.1836_{\pm 0.0006} 3.1802±0.0004\mathbf{3.1802}_{\pm 0.0004} 0.4531±0.02490.4531_{\pm 0.0249} 4.34.3 c{c}mHC, λ=0.70\lambda=0.70, all layers 3.4678±0.00203.4678_{\pm 0.0020} 3.4718±0.00203.4718_{\pm 0.0020} 0.3648±0.01180.3648_{\pm 0.0118} 3.2514±0.00183.2514_{\pm 0.0018} 3.2503±0.00213.2503_{\pm 0.0021} 0.3683±0.01610.3683_{\pm 0.0161} 3.2067±0.00103.2067_{\pm 0.0010} 3.2049±0.00113.2049_{\pm 0.0011} 0.4320±0.00140.4320_{\pm 0.0014} 9.39.3 c{c}mHC, λ=0.85\lambda=0.85, all layers 3.4652±0.00223.4652_{\pm 0.0022} 3.4691±0.00193.4691_{\pm 0.0019} 0.3653±0.01300.3653_{\pm 0.0130} 3.2466±0.00173.2466_{\pm 0.0017} 3.2454±0.00193.2454_{\pm 0.0019} 0.3750±0.01740.3750_{\pm 0.0174} 3.2059±0.00193.2059_{\pm 0.0019} 3.2043±0.00193.2043_{\pm 0.0019} 0.4393±0.01550.4393_{\pm 0.0155} 6.06.0 c{c}mHC, λ=0.97\lambda=0.97, all layers 3.4673±0.00223.4673_{\pm 0.0022} 3.4713±0.00243.4713_{\pm 0.0024} 0.3593±0.01180.3593_{\pm 0.0118} 3.2477±0.00113.2477_{\pm 0.0011} 3.2463±0.00093.2463_{\pm 0.0009} 0.3800±0.02210.3800_{\pm 0.0221} 3.1936±0.00133.1936_{\pm 0.0013} 3.1924±0.00133.1924_{\pm 0.0013} 0.4644±0.03460.4644_{\pm 0.0346} 6.36.3 c{c}mHC, λ=0.97\lambda=0.97, K=10K=10 3.4679±0.00043.4679_{\pm 0.0004} 3.4718±0.00043.4718_{\pm 0.0004} 0.3682±0.01370.3682_{\pm 0.0137} 3.2465±0.0019\mathbf{3.2465}_{\pm 0.0019} 3.2453±0.0018\mathbf{3.2453}_{\pm 0.0018} 0.3685±0.01280.3685_{\pm 0.0128} 3.1883±0.00233.1883_{\pm 0.0023} 3.1864±0.00213.1864_{\pm 0.0021} 0.4563±0.02900.4563_{\pm 0.0290} 5.75.7 c{c}mHC, λ=0.97\lambda=0.97, K=5K=5 3.4642±0.00083.4642_{\pm 0.0008} 3.4677±0.00093.4677_{\pm 0.0009} 0.3651±0.01250.3651_{\pm 0.0125} 3.2487±0.00273.2487_{\pm 0.0027} 3.2474±0.00243.2474_{\pm 0.0024} 0.3691±0.01250.3691_{\pm 0.0125} 3.1845±0.00243.1845_{\pm 0.0024} 3.1832±0.00263.1832_{\pm 0.0026} 0.4556±0.02530.4556_{\pm 0.0253} 5.05.0 c{c}mHC, λ=0.97\lambda=0.97, K=2K=2 3.4634±0.00023.4634_{\pm 0.0002} 3.4672±0.00063.4672_{\pm 0.0006} 0.3683±0.01360.3683_{\pm 0.0136} 3.2480±0.00213.2480_{\pm 0.0021} 3.2464±0.00203.2464_{\pm 0.0020} 0.3707±0.01300.3707_{\pm 0.0130} 3.1834±0.0012\mathbf{3.1834}_{\pm 0.0012} 3.1817±0.00143.1817_{\pm 0.0014} 0.4364±0.01810.4364_{\pm 0.0181} 2.8\mathbf{2.8}

图 6:相对于 c{c}mHC 的损失差距以及梯度范数(nanoGPT‑S;OpenWebText)。

主要比较结果。

表 1 显示,在 $\lambda=0.97$ 且 $K=2$ 的情况下,c{c}mHC 在两个数据集上均取得了最佳的平均损失排名。在 OpenWebText 上,该配置在所有规模下的训练损失和验证损失均优于 mHC 和 mHC-lite,相比于 mHC-lite,其验证损失分别降低了 0.0073、0.0024 和 0.0045。在 FineWeb-Edu 上,c{c}mHC 针对 nanoGPT-M ($K=10$) 实现了最低的训练和验证损失,针对 nanoGPT-L ($K=2$) 实现了最低的训练损失,同时在 nanoGPT-S 上保持了竞争力。此外,c{c}mHC 的梯度范数与传统的 mHC 和 mHC-lite 相当,且显著优于无约束的 HC。这些结果证明了通过适度的流混合(无需额外的可学习参数)可以改进语言建模。

收敛性与稳定性。

图 6 显示了损失差和梯度范数的训练曲线。c{c}mHC 在收敛时获得了最低的训练损失。尽管 HC 在前 4k 步中似乎收敛更快,但其残差矩阵是无约束的,导致所有方法中其训练波动最大。在梯度范数中也观察到了类似的模式:HC 在训练后期继续波动约 $\sim\!0.05$,并保持

原文配图

Figure 1: Illustration of our geometric contraction and its effect on stream mixing. (a) Architecture of hyper-connections at layer ll. Our method focuses on the hyper-connection module. (b) Two-dimensional projections of the Birkhoff polytope for n=3n\!=\!3, along with the sampled trajectories of layer-averaged residual matrices during training, ended at the star . Traditional methods like mHC-lite do not encourage an interior exploration of the polytope, so the residual matrices remain close t
Figure 1: Illustration of our geometric contraction and its effect on stream mixing. (a) Architecture of hyper-connections at layer ll. Our method focuses on the hyper-connection module. (b) Two-dimensional projections of the Birkhoff polytope for n=3n\!=\!3, along with the sampled trajectories of layer-averaged residual matrices during training, ended at the star . Traditional methods like mHC-lite do not encourage an interior exploration of the polytope, so the residual matrices remain close t
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 (“Ini
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 (“Ini
Figure 3: Cumulative residual matrix ∏l=0L−1𝐇lres′\prod_{l=0}^{L-1}\mathbf{H}^{\mathrm{res}^{\prime}}_{l} and Dobrushin’s ergodicity coefficient τ\tau under different λ\lambda and network depth LL. Note that the matrices slightly deviate from exact doubly stochasticity because of the inference-time low-precision conversion.
Figure 3: Cumulative residual matrix ∏l=0L−1𝐇lres′\prod_{l=0}^{L-1}\mathbf{H}^{\mathrm{res}^{\prime}}_{l} and Dobrushin’s ergodicity coefficient τ\tau under different λ\lambda and network depth LL. Note that the matrices slightly deviate from exact doubly stochasticity because of the inference-time low-precision conversion.
Figure 4: Frobenius norms of stream differences ‖𝐱~‖F{\|\tilde{\mathbf{x}}\|}_{F} over training steps.
Figure 4: Frobenius norms of stream differences ‖𝐱~‖F{\|\tilde{\mathbf{x}}\|}_{F} over training steps.
Figure 6: Loss gaps relative to c{c}mHC and gradient norms (nanoGPT-S; OpenWebText).
Figure 6: Loss gaps relative to c{c}mHC and gradient norms (nanoGPT-S; OpenWebText).
Figure 8: Loss gaps relative to c{c}mHC and gradient norms (nanoGPT-M and nanoGPT-L; OpenWebText).
Figure 8: Loss gaps relative to c{c}mHC and gradient norms (nanoGPT-M and nanoGPT-L; OpenWebText).
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 every ll. Right: average and product of residual matrices, and cosine-similarity distribution between streams.
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 every ll. Right: average and product of residual matrices, and cosine-similarity distribution between streams.
Figure 10: Full experiment results: distributions of mixing coefficients 𝜶l\bm{\alpha}_{l} over the vertices of B4{B}_{4} for every ll (nanoGPT-L). A purple (blue) background marks cases where the entropy H⁡(𝜶l)H(\bm{\alpha}_{l}) of c{c}mHC is larger (smaller) than that of mHC-lite.
Figure 10: Full experiment results: distributions of mixing coefficients 𝜶l\bm{\alpha}_{l} over the vertices of B4{B}_{4} for every ll (nanoGPT-L). A purple (blue) background marks cases where the entropy H⁡(𝜶l)H(\bm{\alpha}_{l}) of c{c}mHC is larger (smaller) than that of mHC-lite.

正文为 AI 译文。

参考来源

← 返回每日AI报告