Navigation menu
Multi-Branch Transformer
Multi-Branch Transformer
Gaotang Li, Lingjie Chen, Chunyuan Deng, Zhiwei Xu, Hongzheng Chen, Christopher De Sa et al.
2026-11-18▲ 45arXiv 2611.19800v1Hugging FaceCode
AI-generated from the full paper (deepseek-flash). It may contain mistakes; check the original.
TL;DR
MBT organizes full Transformer blocks into parallel branches between shared prelude and coda, and with Joint-KV and a branch-aware engine it improves language-model quality and long-context decoding throughput over Standard Transformers.
Problem
Scaling Transformer language models requires choosing parameter capacity and how to organize it, with depth and width as conventional axes and sequential composition of full blocks as a common foundation. Prior parallel designs explore concurrency within blocks, width-depth trade-offs, or alternative parallel paths, but parallel composition of full Transformer blocks remains underexplored. The paper asks whether Transformers can scale more effectively and efficiently through parallel compositions of full blocks while also improving long-context inference efficiency.
Method
MBT replaces part of a serial Transformer stack with K independently parameterized branches between a shared prelude and coda; each branch preserves sequential block composition, and branch outputs are normalized, concatenated, and linearly projected back to the shared width. Under matched compute the paper defines Wide-Shallow, Narrow-Deep, and Balanced allocations that redistribute blocks, width, and depth across branches. Joint-KV constructs one shared KV cache per branch depth from concatenated branch inputs while keeping branch-local queries, reducing branch-region cache to 1/K of Independent-KV at fixed depth and KV dimensions. An inference engine built on nano-vLLM uses branch grouping to execute same-depth branch blocks in one stage and head folding to let branches share KV reads in a single grouped-query attention call. The authors pretrain MoE models at four scales W1-W4 and compare Standard, MBT variants, and Joint-KV MBTs, then run decoding benchmarks on one H200 GPU.
Results
- The best 2-branch Wide-Shallow MBT matches a Standard Transformer trained with approximately 1.23 times as much body compute. §3.2.1 Scaling Laws of 2-branch MBTs
- All four scales show a U-shaped parallel block ratio curve; best tested allocations cluster around 1/3 of blocks (28.6–37.5%) and reduce loss by 0.025–0.031 relative to Standard. §3.2.1 Scaling Laws of 2-branch MBTs
- Increasing branch count from 2 to 4 yields a mean absolute validation-loss change below 0.006 across both Wide-Shallow and Balanced families and all four scales, while every configuration outperforms Standard. §3.2.2 Scaling Laws of multi-branch MBTs
- 2-, 3-, and 4-branch Joint-KV MBTs match Standard Transformers trained with 1.16–1.26 times as much training body compute while reducing KV cache size by 19–34%. §1. Introduction
- On a single H200 GPU, the models achieve up to 51.4% higher decoding throughput than Standard with 64K-token inputs and 8 concurrent requests. §1. Introduction
- At matched KV-cache capacity, Joint-KV achieves lower validation loss than Independent-KV at all four scales by 0.011–0.012. §4.2 KV Sharing Across Branches
Limitations
- Exact equality with Standard need not fall on a sampled allocation; the paper estimates equality points by linear interpolation between neighboring observations.
- On the main ladder, an exactly cache-matched Independent-KV control does not exist at every scale; the §4.2 comparison re-derives head counts and raises the GQA ratio from the main 2:1 recipe to 8:1 or higher.
- Experiments cover four MoE scales with Standard models from 0.80B to 2.07B total parameters; larger-scale behavior is left open.
- Two-branch Joint-KV MBTs are slower than Standard in seven settings: six at W1 at 0.93× to 0.99× and one at W3 at 0.99×.
Key points
- MBT uses a shared prelude, K independently parameterized branch stacks, a fusion step, and a shared coda. §2.1 Architecture
- Fusion normalizes branch outputs, concatenates them along the hidden dimension, and applies a bias-free linear projection back to the shared width. §2.1 Architecture
- Wide-Shallow preserves block width and redistributes middle blocks; Narrow-Deep preserves depth with narrower blocks; Balanced interpolates between them. §2.2 Width–Depth Allocation
- Joint-KV shares KV across branches at each depth while queries remain branch-local; the branch-region cache is 1/K of Independent-KV at fixed branch depth and KV dimensions. §2.3 KV-Cache Sharing and Infrastructure Design
- Branch grouping executes same-depth blocks across branches in one stage; a 4-branch W3 Balanced MBT has 24 physical blocks but 12 sequential stages, versus 16 for Standard. §2.3 KV-Cache Sharing and Infrastructure Design
- The scaling ladder W1-W4 has Standard models from 0.80B to 2.07B total parameters and 139M–394M active-body parameters, with approximately 200 tokens per parameter. §3.1 Scaling Ladder Setup
- Averaged over W1-W4 and nine zero-shot tasks, 2-, 3-, and 4-branch Joint-KV MBTs score 55.92%, 55.56%, and 55.47%, compared with 54.23% for Standard. §3.3 Scaling MBTs with Joint-KV
- Engine ablation shows naive branch execution is slower than Standard; branch grouping helps short inputs and low concurrency, head folding gains grow with input length and concurrency, and only both together are faster in every setting. §B.4 Engine ablation
Mind map
Sign In
Choose a method to continue
By signing in, you agree to our Terms and Privacy Policy

