TPHC:通过张量并行分组更新改进超连接
研究论文 · 2026/11/18
TPHC 将张量并行(TP)分片与超连接(HC)流结合,通过为每个 TP 分片路由不同的残差流混合,并在写回时保持各分片输出独立,使每个流能接收不同的输出混合,从而在不增加注意力或 FFN 子层参数与 FLOPs 的情况下增强残差流更新的表达能力。在 8B 模型上,四流时训练时间仅比 mHC 多 9%;流数从四增至十六时训练时间仅增 19%。在 1.1B 模型、100B token 训练下,相同流数(4/8/16)时验证损失降低 0.7-1.0%,六个常识推理基准的平均零样本准确率提升 0.3-0.7 个百分点。
TPHC 以极小的训练开销(四流时仅多 9% 时间)显著提升了超连接的表达能力,在验证损失和多个常识推理基准上均优于 mHC,且不增加子层参数或 FLOPs,为大规模 Transformer 训练提供了一种高效改进方案。
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 Nin{4,8,16}. Our code is available at https://github.com/wuyou2002/TPHC.