Paper commentary
Multi-Branch Transformer
- Problem Transformer scaling has mostly meant making blocks wider or stacking more of them in sequence, which leaves the sequential block stack itself unchanged. The question is whether parallel composition of full blocks improves modeling quality at matched compute and reduces long-context decoding cost.
- Method Runs K independently parameterized branches of full blocks between a shared prelude and coda, fuses their outputs by normalized concatenation and a linear projection, and in Joint-KV builds one shared KV cache per depth from all branch inputs while keeping branch-local queries.
- Results The 2-branch Wide-Shallow MBT raised mean zero-shot accuracy from 54.23% to 56.03% for Standard versus MBT, averaged over W1–W4 and nine tasks.
![Figure 2: Comparison of Transformer computation structures. (a) Standard sequential blocks; (b) within-block parallel
attention and FFN, as in PaLM [14]; (c)…](/papers/41db7368-f02a-4b93-a29d-688fd514713c/figures/figure-6121bca418d3b24250a3567d45e182b2.png?thumb=512)
Figure 2 . Comparison of Transformer computation structures. (a) Standard sequential blocks; (b) within-block parallel attention and FFN, as in PaLM [14]; (c) wider, shallower stacks; and (d) MBTs with concurrent, independently parameterized branches of full Transformer blocks. Depth denotes the number of sequential blocks along a computation path, excluding fusion. MBTs explore an orthogonal axis of parallelism at the granularity of full Transformer blocks.
Original paper · CC BY 4.0 · Gaotang Li, Lingjie Chen, Chunyuan Deng, Zhiwei Xu, Hongzheng Chen, Christopher De Sa, Jingrui He, Yingheng Wang, Hanghang Tong · Multi-Branch Transformer · Original paper figure · Extracted the figure area from page 3 of the original PDF.Why parallelize whole blocks
Scaling a Transformer usually involves two decisions, how much capacity to allocate and how to arrange it, and the common arrangements are more blocks in sequence or larger transformations inside each block. Recent work has changed much of the design inside the block, including attention, sparse experts and residual connections, yet the blocks themselves still run one after another.
The study asks whether full Transformer blocks can run in parallel as a separate way to organize parameters, and whether that scales both better and more efficiently.
The Multi-Branch Transformer (MBT) passes the input through shared prelude layers, splits the computation into K independently parameterized branches that run concurrently, fuses their outputs, and then applies shared coda layers. Within each branch, blocks still compose sequentially, while the shared layers after fusion can combine the results of several transformation paths.
Figure 2 places this against other parallel designs: concurrency inside one block as in PaLM, width and depth trade-offs, and parallel passes that use different computation paths.
Tensor and pipeline parallelism are systems techniques that the MBT design leaves in place and does not replace. The study therefore has two questions: whether branching at block granularity improves language modeling at comparable compute, and whether sharing the KV cache across branches makes long-context decoding cheaper without a quality loss.
How an MBT computes its output
Each block first adds causal attention to its input hidden states, then adds a mixture-of-experts feed-forward output computed from that updated state. For the hidden states \\(H\\) at a block input, the update is \\(H' = H + \\mathrm{Attn}_\\ell(H)\\) and \\(T_\\ell(H) = H' + \\mathrm{MoE}_\\ell(H')\\), with pre-normalization omitted in the notation.
A standard model embeds the tokens and applies L such blocks in sequence before the decoder produces the distribution over the next token.
An MBT keeps the first and last stacks of the model shared and replaces the serial middle with K of at least two branch stacks, each stack \\(G_i\\) having its own parameters. The model computes \\(H = P(X)\\), \\(Z_i = G_i(H)\\) for each branch, and \\(Y_b = \\mathrm{Dec}\\,C(F(Z_1,\\dots,Z_K))\\), where P is the prelude, F the fusion, C the coda, and Dec the decoder.
Fusion normalizes each branch output with its own RMSNorm, concatenates the normalized outputs along the hidden dimension, and projects the result back to the shared width with a bias-free linear map \\(W_F\\). The projected output goes straight to the coda with no separate residual from the branches, and the authors judged this simple form sufficient in the main experiments.
Three ways to split the middle blocks
The total physical block count is the prelude blocks plus all branch blocks plus the coda blocks, while the depth counts the prelude, the deepest branch and the coda. Because depth follows the longest branch rather than the sum of branches, branching reduces the number of sequential stages without changing the total number of physical blocks.
With the shared prelude and coda fixed, Wide-Shallow keeps the original block width and spreads the middle blocks across the branches, Narrow-Deep keeps the original depth along each branch with narrower blocks, and Balanced takes intermediate width and depth. For Narrow-Deep and Balanced, the residual width and MoE dimensions in each branch are reduced or set so that training FLOPs match the Standard reference, and the number of experts and the top-k setting stay unchanged.
In the six-block example, blocks A and F are the shared prelude and coda, and blocks B to E form the middle stack. Wide-Shallow places two original-width blocks in each branch, Narrow-Deep places four narrower blocks in each branch, and Balanced places three blocks per branch at an intermediate width.
Sharing the KV cache across branches
In the default Independent-KV setting, each block in each branch projects its own keys and values from its hidden states and keeps a separate cache, so more branches produce more caches. Joint-KV changes the model itself and is used in training, whereas the inference engine changes only how the trained model is run.
For the normalized input \\(\\bar{S}_{i,\\ell}\\) of branch i at depth \\(\\ell\\), Independent-KV uses \\(KV^{ind}_{i,\\ell} = \\bar{S}_{i,\\ell} W^{ind}_{i,\\ell}\\), while Joint-KV uses \\(KV^{shared}_\\ell = \\frac{1}{\\sqrt{K}}[\\bar{S}_{1,\\ell};\\dots;\\bar{S}_{K,\\ell}]\\,W^{shared}_\\ell\\). Joint-KV therefore concatenates the branch inputs along the hidden dimension and projects them into one cache per depth, while every branch keeps its own queries.
For a 4-branch W3 Balanced MBT, which has 24 physical blocks, branch grouping requires 12 sequential block stages, compared with 16 for Standard. Head folding places the branch dimension into the query-head dimension so that all branches run one grouped-query attention call over the shared KV heads, which lets the kernel reuse the same KV data.
With tensor parallelism, each device builds its assigned shared KV heads locally, and head folding stays local when the corresponding query heads sit on one device.
Scaling ladder and training recipe
Standard Transformers and MBTs were pretrained at four scales, W1 to W4, with the standard models spanning 0.80B to 2.07B total parameters. All models were trained on FineWeb-Edu with the Llama 3 tokenizer and a 4,096-token context, and each scale used about 200 training tokens per active-body parameter.
Each block contains a latent MoE with 64 SwiGLU experts and top-8 routing, and Quantile Balancing keeps expert loads balanced without an auxiliary balancing loss.
The Standard learning rate was tuned at each scale over the candidates listed in the study, while the MBT learning rate was tuned on one configuration and reused for the others. Table 1 gives the backbone of each scale and the best 2-branch Wide-Shallow allocation, with the Standard and MBT losses at each scale.
How many blocks belong in parallel branches
Wide-Shallow MBTs with two equal-depth branches were compared across allocations in which the fraction of physical blocks in the branches runs from zero to one, with prelude and coda blocks split equally.
The loss curve against the parallel block ratio is U-shaped at all four scales, with the best tested allocations near one third of blocks, between 28.6% and 37.5%. At those allocations the validation loss was 0.025–0.031 lower than Standard, and loss stayed at the Standard level when about 79% of blocks were in parallel branches. The largest measured ratios no worse than Standard were 66.7%, 71.4%, 75.0% and 77.8% for W1 to W4, and the interpolated equality points fall between 78% and 80%.
The fitted curves give Wide-Shallow MBT an approximately 1.23× body-compute advantage over Standard at matched validation loss. Averaged over W1–W4, the 2-branch MBT scored higher than Standard on all nine zero-shot tasks, raising mean accuracy from 54.23% to 56.03%.
Two, three and four branches
Table 2 shows the W3 allocations, where the Wide-Shallow and Balanced variants differ in block counts, widths and resulting depth.
The Balanced variant reaches lower loss than its Wide-Shallow counterpart at every scale and branch count, and its fitted curve has a lower coefficient A and a slightly larger exponent alpha.
The authors report that narrow-deep models with three or four branches need much smaller widths at fixed compute and perform worse, especially with four branches, so the study moves to Balanced allocations.
Joint-KV against Independent-KV at scale
Table 3 gives the W4 example, where Joint-KV reduces the KV cache relative to Standard by 23.74%, 28.79% and 31.82% for 2, 3 and 4 branches.
All 12 Joint-KV models reach lower validation loss than Standard, and Joint-KV follows the Independent-KV scaling curves closely at each branch count. Averaged over W1–W4 and the nine zero-shot tasks, the 2-, 3- and 4-branch Joint-KV MBTs score 55.92%, 55.56% and 55.47%, against 54.23% for Standard.
These numbers describe the Joint-KV recipe itself, and the speed numbers in the next section come from a separate serving measurement on the same family of models.
Decoding speed on one H200
Decoding was measured on one NVIDIA H200 GPU with the same engine serving Standard and MBT models, using the Balanced Joint-KV MBTs with 2 and 4 branches at all four scales. Prompts were 4K tokens from FineWeb-Edu or 16K, 64K and 128K tokens from RULER, each generating 1K tokens at temperature 1.0 and top-p 0.95. Concurrency was 1, 8 and 64 requests for the shorter prompts, with 32 for 64K and 16 for 128K prompts.
Decode speedup is the decoding throughput of the MBT divided by that of Standard, measured with generated tokens per second excluding prefill, and Standard was measured before and after the MBTs with the mean of the two runs used.
The decode step has a fixed cost for the serial blocks, which does not depend on request count or input length, and a memory cost for reading the KV cache, which grows with concurrency and context. Using F for the fixed cost, M for the Standard KV-read time and s for the KV saving, the speedup is approximately \\(S \\approx \\frac{F+M}{F/r_d+(1-s)M}\\), where \\(r_d\\) is the depth ratio of Standard to the MBT.
At short inputs and low concurrency the depth ratio dominates, and as context grows the KV reads dominate, so the speedup approaches \\(1/(1-s)\\).
What the ablations separate
Narrow-Deep keeps the Standard depth in each of two narrower branches, which makes it a depth-matched comparison against Standard.
At matched KV-cache capacity, Joint-KV lowers validation loss by 0.011–0.012 relative to Independent-KV at all four scales. To make the two caches equal, the study used Independent-KV with 1 private KV head per branch, Joint-KV with 2 KV heads per branch depth, and raised the GQA ratio to 8:1 or higher. The larger KV projection of Joint-KV adds less than 0.6% body compute, which the authors judge too small to explain the loss gap.
Six learned fusion operators tested in the W3 2-branch setting vary in final loss by less than 0.005.
Placing the 8 parallel blocks in the middle gives the lowest loss at 2.445, compared with 2.458 for early branches and 2.464 for late branches in the W3 two-branch setting. The authors read the difference as evidence that keeping a shared coda matters more than keeping a shared prelude in this setting.
Limitations
The MBT learning rate was tuned on a single configuration and reused across the other settings, while the Standard learning rate was tuned at each scale, so the baselines were not tuned to the same depth.
Joint-KV requires branches at the same depth to synchronize before attention, and the distributed layout that shares the KV projection depends on this synchronization.
Decode measurements used 1K generated tokens, so every sequence exceeds the 4K training context, and these runs measure speed only. The speed results come from one H200 GPU, and the 4-branch Joint-KV advantage is stated for the Balanced Joint-KV models at the four scales tested.
The fusion and placement ablations were run only in the W3 two-branch setting, and the width and depth controls were run on W1 to W4 with the same downstream evaluation.
Paper info
- Authors
- Gaotang Li, Lingjie Chen, Chunyuan Deng, Zhiwei Xu, Hongzheng Chen, Christopher De Sa, Jingrui He, Yingheng Wang, Hanghang Tong
- Venue
- arXiv · Preprint
- First published
- 2026-11-15
- Added
- 2026-11-17
- Updated
- 2026-11-15
- Version
- v1
- arXiv
- 2611.19800
- Category
- cs.LG · cs.CL
- Original paper terms
- CC BY 4.0
- What we show
- Paper info, commentary and permitted figures from the original paper
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
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.
Quote from the paper
Gaotang Li, Lingjie Chen, Chunyuan Deng, Zhiwei Xu, Hongzheng Chen, Christopher De Sa, Jingrui He, Yingheng Wang, Hanghang Tong (2026). Multi-Branch Transformer. arXiv:2611.19800v1. https://arxiv.org/abs/2611.19800v1
BibTeX
@misc{li2026multi,
title = {{Multi-Branch Transformer}},
author = {Gaotang Li and Lingjie Chen and Chunyuan Deng and Zhiwei Xu and Hongzheng Chen and Christopher De Sa and Jingrui He and Yingheng Wang and Hanghang Tong},
year = {2026},
eprint = {2611.19800},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.19800v1}
}