arXiv(opens in a new tab)cs.LGSep 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2609.05309

How Does mHC Use Its Residual Streams? Selective Routing and Near-Identity Mixing

Pengxiang Zhao, Xing Li, Xianzhi Yu, Wei Guo, Zhenhua Dong

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Hyper-Connections and their manifold-constrained variant (mHC) widen a residual pathway from one stream to nn, yet how trained models use this capacity remains unclear: how broadly blocks read and write, how strongly the residual pathway mixes streams, and whether the streams carry distinct representations. We examine these properties in the four-stream residual pathway of DeepSeek-V4-Flash using effective stream counts, cross-stream residual weights, and inter-stream cosine similarity. Read/write routing is concentrated but varies across depth: a typical attention or FFN site effectively uses about two streams, while the dominant stream changes across layers and the representations remain directionally distinct. Residual mixing is modest and occurs primarily in early layers; in layers 22–42, the pathway mostly carries each stream forward separately. Targeted interventions establish the functional significance of these patterns. Replacing the late mixers by identity increases C4 perplexity by only 1.9% and preserves the six-task average score, whereas replacing the early mixers increases perplexity by 41%. Fixing each early mixer to its C4 diagnostic mean increases perplexity by only 0.2% and reduces the average score by 0.25 percentage points, showing that its site-specific structure matters more than its token-wise variation on the evaluated metrics. Likewise, retaining the three largest routing weights per token at every site increases perplexity by at most 2.7% and changes the average score by at most 0.4 points. Thus, the studied model realizes only part of the flexibility afforded by four-stream mHC: individual blocks rarely require all four streams, and late residual mixing provides little measured benefit.

Figure

Figure 1: Realized multi-stream computation in DeepSeek-V4-Flash. At four sites spanning depth and both sublayer types, color identifies the source stream, arrows show the direction of information flow, and line width encodes the measured token-averaged routing or residual weight. Routing concentrates on changing stream subsets, whereas residual exchange largely disappears after mid-depth; the callouts give the exact intervention effects on C4 perplexity and the six-task average score.

1 INTRODUCTION

Hyper-Connections (HC) (Zhu et al., 2024) generalize the standard single-stream residual pathway (He et al., 2016) to nn coupled streams. At each sublayer, a read map aggregates the streams into a single branch input, a write map distributes the branch output back across the streams, and a residual mixer linearly recombines the incoming stream states along the skip pathway. Manifold-constrained Hyper-Connections (mHC) (Xie et al., 2025) are designed to improve training stability by constraining each residual mixer to be doubly stochastic, thereby limiting signal amplification as these mixers compose across depth. This design widens the state propagated across depth while retaining a single computation branch at each sublayer.

However, mHC makes broad routing and cross-stream mixing possible, while training determines how and where the resulting model uses this flexibility. Because the read, write, and residual maps are token-conditioned and learned at each layer, their realized behavior can vary across both tokens and depth. Accordingly, the read and write maps may distribute branch computation broadly or concentrate it on a subset of streams; the residual pathway may mix the stream states or propagate them separately; and the streams may encode distinct or redundant representations.

Recent work on 120M- and 360M-parameter HC models built with nanoGPT (Karpathy, 2022) finds a dominant-stream regime: read/write signals and interpretable features concentrate in one stream, while residual mixing remains close to identity (Alimaskina et al., 2026). Because model scale and training regime may shape how the learned maps allocate computation across streams, it remains unclear whether this regime is characteristic of trained mHC models or only one of several possible organizations of multi-stream computation. Moreover, these structural patterns do not by themselves establish post-training functional redundancy. Determining this requires testing whether weak routing weights can be pruned and whether near-identity residual mixers can be replaced by exact identity maps without degrading model quality.

We address both gaps with a true-forward analysis of DeepSeek-V4-Flash, a 284B-parameter mHC model pretrained on more than 32T tokens (DeepSeek-AI, 2026). Our framework measures effective read/write width, cross-stream residual weights, and inter-stream representation similarity across tokens, sublayers, and depth. These depth-resolved diagnostics distinguish a single globally dominant stream from shifting stream use across layers and determine whether the streams retain distinct representations. We pair them with targeted inference-time interventions to connect the observed routing and mixing patterns to model quality.

Applying this framework reveals concentrated but depth-varying routing: a typical attention or FFN site effectively uses about two of the four streams, while the dominant stream changes across layers and the stream representations remain directionally distinct. Routing ablations show that this concentration creates local redundancy but does not reduce the pathway to two streams. Retaining the three largest realized read or write weights for every token at every site increases perplexity on C4 (Raffel et al., 2020) by at most 2.7% and changes the average downstream score by at most 0.4 percentage points; retaining only two weights per token instead increases perplexity by 12–14% and reduces the average downstream score by 2.9–6.6 percentage points.

Residual mixing also varies with depth. Cross-stream residual weights are modest overall and most pronounced in layers 0–21 of the 43-layer model, whereas the residual mixers in layers 22–42 remain close to the identity. Residual-mixer ablations confirm that this depth profile has functional significance. Replacing the mixers in layers 22–42 by exact identity maps increases C4 perplexity by only 1.9% and preserves the average score across six downstream benchmarks, whereas replacing those in layers 0–21 increases perplexity by 41%. Yet fixing each early mixer to its C4 diagnostic mean raises perplexity by only 0.2% and reduces the six-task average score by 0.25 points, indicating that its learned site-specific structure accounts for most of its measured benefit, while token-wise variation contributes little on the evaluated metrics. Figure 1 provides a data-driven overview of this analysis, tracing realized routing and residual exchange across representative depths and linking both to their measured intervention effects.

In summary, our contributions are threefold:

  • True-forward analysis of multi-stream computation. We introduce a framework that resolves read/write routing, residual mixing, and stream representations across tokens, sub-

Figure

Figure 2: Data flow through HC residual sublayer ll. The read map HlpreH_l^{\text{pre}} forms the computation-branch input, the write map HlpostH_l^{\text{post}} distributes the branch output across streams, and the residual mixer HlresH_l^{\text{res}} carries forward and linearly recombines the incoming stream states.

layers, and depth, and connects these measurements to model quality through inference-time interventions.

  • A depth-resolved characterization of DeepSeek-V4-Flash. We show that its four streams exhibit locally concentrated but depth-varying routing, retain distinct representations, and exchange information primarily in the first half of the network.

  • Functional localization of routing and mixing capacity. Controlled interventions identify where additional routing weights and learned residual mixing affect model quality, revealing local redundancy in read/write maps and limited functional dependence on late-layer residual mixing.

References (22)