NTH

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

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

AffiliationsSchool of Information Science and Technology, ShanghaiTech University · Shanghai Engineering Research Center of Intelligent Vision and Imaging · Meituan

November 24, 2026 2 min read
Watch on YouTube
The one-line take

TPHC lets Transformer residual streams learn more distinct updates by coordinating them with tensor-parallel shards, improving language-model results with modest extra training time.

Key results

1.1B
Training model size

Llama model used for the main language-modeling and reasoning evaluation.

100B
Training tokens

SlimPajama tokens used to train the 1.1B model.

0.7%
Validation-loss reduction

Lower endpoint of the reported 0.7–1.0% reduction relative to mHC.

0.7
Zero-shot accuracy gain

Maximum improvement in average accuracy, measured in percentage points over mHC.

19%
Training-time increase

Increase when scaling sharded-stream TPHC on an 8B model from 4 to 16 streams.

What the paper found

TPHC improves hyper-connections by turning tensor-parallel shards into distinct update groups: each group reads its own learned mixture of residual streams, and its output remains separate when written back. This gives streams more varied updates than mHC’s shared sublayer output, while leaving attention and feed-forward network parameter counts and FLOPs unchanged. TPHC also uses sparse updates, changing only four active streams per sublayer, and initializes groups to read from and write mainly to their own streams. The work builds on mHC, a design used in DeepSeek-V4, and evaluates TPHC on Llama models. On a 1.1B model trained on 100B SlimPajama tokens, it lowers validation loss by 0.7–1.0% and improves average zero-shot accuracy by up to 0.7 percentage points across HellaSwag, OpenBookQA, WinoGrande, ARC-Challenge, ARC-Easy, and PIQA. TPHC with 8 streams also outperforms mHC with 16. With sharded streams on an 8B model, increasing TPHC from 4 to 16 streams raises training time by just 19%, making larger stream counts more practical.

Original abstract

Hyper-Connections (HC) expand the residual stream of a Transformer into $N$ 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\in\{4,8,16\}$. Our code is available at https://github.com/wuyou2002/TPHC.

Read the original paper

More in Transformers

Browse all 54 papers →
01Transformer

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

Haowei He, Ziwen Zhao, Chenshuo Pan, Gang Lin, Zhihao Yang, Chao Wang, Xinzhang Liu, Kaidong Yu, Han Gao, Dongfang Li, Menglin Yang, Shuangyong Song, Yongxiang Li

cmHC keeps transformer residual streams mixing in a useful balance, aiming to improve large-scale training while reducing execution latency.

Read analysis
02Transformer

Multi-Branch Transformer

Gaotang Li, Lingjie Chen, Chunyuan Deng, Zhiwei Xu, Hongzheng Chen, Christopher De Sa, Jingrui He, Yingheng Wang, Hanghang Tong

A Transformer architecture that branches into parallel blocks aims to improve language-model quality while making long-context decoding faster and more memory-efficient.

Read analysis