arXiv:2611.23026cs.CLNov 2026

Manuscript Offprint

arXiv:2611.23026

TPHC: Improving Hyper-Connections with Tensor-Parallel Grouped Updates

Xinying Hu, You Wu, Haoyi Wu, Jianchao Tan, Kefeng Zhang, Yuchen Xie, Kewei Tu

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

Abstract

Hyper-Connections (HC) expand the residual stream of a Transformer into NN parallel streams, and manifold-constrained HC (mHC) stabilizes them at scale. However, mHC benefits little from more than four streams, partly because each sublayer writes a single output to all streams, limiting how differently they can be updated. In this work, we propose TPHC, which integrates tensor-parallel (TP) shards with HC streams to promote greater independence across streams. Specifically, we route a separate mixture of the residual streams to each TP shard and keep the individual shard outputs separate during write-back, so each stream can receive a different mixture of those outputs. This design makes the residual-stream updates more expressive without adding parameters or FLOPs to the attention or FFN sublayers. With native support for stream sharding under TP, TPHC requires only 9% more training time than mHC on an 8B model when both use four streams. Increasing the number of streams from four to sixteen raises its training time by only 19%. On a 1.1B model trained on 100B tokens, TPHC reduces validation loss by 0.7–1.0% and raises average zero-shot accuracy across six commonsense reasoning benchmarks by 0.3–0.7 percentage points relative to mHC at matched stream counts N∈{4,8,16}N\in\{4,8,16\}. Our code is available at https://github.com/wuyou2002/TPHC.

1 Introduction

Hyper-Connections (Zhu et al., 2025a, HC;) have recently attracted growing interest as an effective approach to improving the performance of large language models (LLMs). HC expands standard residual connections (He et al., 2016a; He et al., 2016b) from a single residual path to NN parallel residual streams, introducing learnable control over inter-layer information flow. Specifically, each sublayer reads a learned mixture of the streams and writes its output back to them, while a learned N×NN{\times}N matrix mixes the residual streams. Building on HC, Manifold-Constrained Hyper-Connections (Xie et al., 2026, mHC;) constrain this residual mixing matrix to be doubly stochastic to stabilize signal propagation across layers. The DeepSeek-V4 series adopts mHC (DeepSeek-AI, 2026b), and DeepSeek-V4.1-Flash uses a Single-Pass variant designed to enable more efficient kernel fusion (DeepSeek-AI, 2026a).

(a) mHC\mathbf{x}_{0}$$\mathbf{x}_{1}$$\mathbf{x}_{2}$$\mathbf{x}_{3}$$X_{l}$$X_{l+1}$$\mathcal{H}^{\mathrm{pre}}_{l}$$1{\times}N$$\mathcal{F}_{l}sublayer, one output\mathcal{H}^{\mathrm{post}}_{l}$$N{\times}1$$\mathbf{u}$$\mathbf{o}$$\mathcal{H}^{\mathrm{res}}_{l}$$N{\times}N(b) TPHC (ours)\mathbf{x}_{0}$$\mathbf{x}_{1}$$\mathbf{x}_{2}$$\mathbf{x}_{3}$$X_{l}$$X_{l+1}$$\mathcal{H}^{\mathrm{pre}}_{l}$$k{\times}N$$\mathcal{F}_{l,0}$$\mathcal{F}_{l,1}$$\mathcal{F}_{l,2}$$\mathcal{F}_{l,3}$$k groups of Fl\mathcal{F}_{l}, outputs kept separate\mathcal{H}^{\mathrm{post}}_{l}$$N{\times}k$$\mathbf{u}_{0}$$\mathbf{o}_{0}$$\mathbf{u}_{1}$$\mathbf{o}_{1}$$\mathbf{u}_{2}$$\mathbf{o}_{2}$$\mathbf{u}_{3}$$\mathbf{o}_{3}$$\mathcal{H}^{\mathrm{res}}_{l}$$N{\times}N

Figure 1: One sublayer (attention or FFN) of (a) mHC and (b) TPHC with N=4N{=}4 streams. Horizontal lines are residual streams. (a) In mHC, the sublayer reads one mixture u\mathbf{u} of the streams, and its single output o\mathbf{o} is written to every stream, while Hlres\mathcal{H}^{\mathrm{res}}_{l} mixes all NN streams densely. (b) In TPHC, the sublayer is split into k=4k{=}4 groups: group jj reads its own mixture uj\mathbf{u}_{j} of the streams and returns its own output oj\mathbf{o}_{j}, and Hlpost\mathcal{H}^{\mathrm{post}}_{l} gives each stream its own mixture of the kk outputs. The illustrated case shows the full update, which writes all NN streams. The sparse update (§3.2) restricts Hlpost\mathcal{H}^{\mathrm{post}}_{l} and Hlres\mathcal{H}^{\mathrm{res}}_{l} to the kk active streams.

Most HC-family models use N=4N{=}4, since additional streams bring little gain while substantially increasing computational cost. xHC (Zhang et al., 2026) attributes these limited gains to the shared source of stream updates: each stream receives a scaled copy of the same sublayer output. Therefore, it proposes temporal feature augmentation (TFA) to address this problem, which derives additional write-back components from causal convolutions of the FFN outputs from nearby preceding tokens.

In this work, we explore the possibility of using the partial outputs of tensor-parallel shards as a complementary source of write-back diversity. Large models commonly use tensor parallelism (Shoeybi et al., 2019, TP;) for training and inference. Consider the computation graph of mHC with TP sharding. TP splits each attention and FFN sublayer across kk devices by heads or hidden units, so that each shard computes a partial output from a shared input. An all-reduce aggregates these partial outputs into a single output, which mHC then writes to all streams. Thus, the kk partial outputs already computed by TP are collapsed into the single write-back component. Instead, we propose TPHC (Tensor-Parallel grouped Hyper-Connections), which treats the shards as groups and preserves their outputs as separate write-back components (Figure 1). In this way, each sublayer contributes kk separate write-back components rather than one. In addition, each group reads its own learned mixture of the NN streams, allowing group-specific inputs as well as outputs. Unlike xHC, our grouped write-back applies to both attention and FFN sublayers by adapting the existing HC read and write mappings to the TP groups, without introducing additional feature-augmentation modules. TPHC increases the training time of mHC by only 7–8% on 1.1B and 8B models when both use four streams.

This grouped design also naturally supports tensor parallelism. Each group resides on a separate device, naturally partitioning the group inputs and outputs across devices. The residual streams can also be sharded accordingly, with both read and write operations implemented using reduce-scatter collectives. This reduces the memory cost of the residual streams and makes training models with larger stream counts feasible: at the 8B scale, increasing NN from 44 to 1616 raises the training time of TPHC by only 19%, compared with 59% without sharding.

In order to further reduce the cost of the mappings, we adopt the sparse update of xHC (Zhang et al., 2026) with a fixed schedule, so each layer writes only kk of the NN streams while every sublayer still reads all of them. This reduces the cost of generating the mappings from O(N3C)O(N^{3}C) to O(kN2C+k3C)O(kN^{2}C+k^{3}C). In addition, we initialize each group to read from and write to its own stream. This group-specific initialization breaks the symmetry (Alimaskina et al., 2026) within each sublayer and we empirically find it benefical to model performance.

Our experiments demonstrate the effectiveness of TPHC. On a 1.1B model, TPHC achieves lower training and validation loss than mHC with NN from 44 to 1616. It also improves average zero-shot accuracy on commonsense reasoning tasks by up to 0.7 percentage points over mHC. Notably, TPHC with 8 streams outperforms mHC with 16 streams. Our analysis also suggests that the shared write drives the mHC streams toward a common direction, whereas the TPHC streams remain less homogeneous.

References (25)