Multi-Branch Transformer
AuthorsGaotang Li, Lingjie Chen, Chunyuan Deng, Zhiwei Xu, Hongzheng Chen, Christopher De Sa, Jingrui He, Yingheng Wang, Hanghang Tong
AffiliationsUniversity of Illinois Urbana-Champaign · Rice University · University of Michigan · Cornell University * †
A Transformer architecture that branches into parallel blocks aims to improve language-model quality while making long-context decoding faster and more memory-efficient.
Key results
Largest total-parameter scale evaluated.
Up to this many times the training body compute is needed by a standard Transformer to match the final models.
Reduction in full-model KV-cache storage.
Gain measured on a single NVIDIA H200 GPU.
What the paper found
Multi-Branch Transformer explores scaling language models by running full Transformer blocks in parallel, rather than only making sequential stacks wider or deeper. Its architecture shares initial and final layers around independently parameterized branches, then fuses branch outputs; experiments compare Wide-Shallow and Balanced allocations across mixture-of-experts models from 0.8B to 2.1B total parameters, pretrained on FineWeb-Edu with the Llama 3 tokenizer. Balanced models combine branch width and depth adjustments and improve validation loss over Wide-Shallow variants. For long-context decoding, Joint-KV builds one shared key-value cache per branch depth while keeping queries branch-specific; branch grouping and head folding let an inference engine reuse that cache and reduce sequential execution. Scaling fits suggest a standard Transformer needs up to 1.26 times the training body compute to match the final models’ validation loss. On a single NVIDIA H200 GPU, the approach reduces full-model KV-cache storage by up to 34% and raises decoding throughput by up to 51.4%. The results position parallel full-block branching as an architectural alternative that can improve both modeling quality and serving efficiency.
Original abstract
Transformer language models are commonly scaled by making their blocks wider or stacking them deeper. In this work, we explore a complementary path: branching, the parallel composition of full Transformer blocks. We introduce the Multi-Branch Transformer (MBT), which processes the input through shared initial layers, executes independently parameterized branches of sequential blocks in parallel, and fuses their outputs before shared final layers. At comparable training compute, we study three MBT variants: Wide-Shallow preserves block width, Narrow-Deep preserves sequential depth, and Balanced interpolates between them. In controlled pretraining experiments at four mixture-of-experts scales (0.8B to 2.1B total parameters), 2-branch Wide-Shallow MBTs consistently outperform sequential Transformers under matched parameter and training-compute budgets. Balanced MBTs improve further and retain comparable quality as the number of branches increases. To improve inference efficiency at long contexts, we introduce Joint-KV, which constructs a shared KV cache from branch representations at each depth. Our final recipe combines Balanced MBTs with Joint-KV, supported by an inference engine that exploits branch grouping and shared-cache reuse. Fitted scaling curves indicate that standard Transformers require up to 1.26x as much training body compute to match our final models' validation loss. These models reduce full-model KV-cache storage by up to 34% and deliver up to 51.4% higher decoding throughput on a single H200 GPU. Ablation studies show that branching yields gains beyond changes in width and depth, enables an effective KV-sharing strategy (Joint-KV), remains robust across fusion functions, and performs best in the middle layers. These findings show that branching offers a practical path for scaling language models toward both better modeling quality and faster inference.
Read the original paperMore in Transformers
Browse all 54 papers →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.
TPHC: Improving Hyper-Connections with Tensor-Parallel Grouped Updates
Xinying Hu, You Wu, Haoyi Wu, Jianchao Tan, Kefeng Zhang, Yuchen Xie, Kewei Tu
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.
Hierarchical Residuals: A Minimalist Decoupling of Residual Width from Compute Width
Ziteng Wang, Jianqiao Lu, Xinyu Ma, Jintao Zhang, Jun Zhu, Yiyuan Ma, Jianfei Chen
HiRes gives Transformers a wider memory path between blocks without making each layer more computationally expensive.