Multi-Branch Transformer
Gaotang Li, Lingjie Chen, Chunyuan Deng, Zhiwei Xu, Hongzheng Chen, Christopher De Sa, Jingrui He, Yingheng Wang and 1 others
University of Illinois Urbana-Champaign · Rice University · University of Michigan · Cornell University
Published November 15, 2026 · on the feed November 18, 2026 · ▲ 47 · arXiv 2611.19800
The 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.
The Brief
2:45A short podcast summary of the paper. Written and voiced by AI.
Transcript
Multi-Branch Transformer. By Gaotang Li and eight others, from the University of Illinois Urbana-Champaign, Rice University, and two other institutions. Published on the fifteenth of November.
There are two familiar ways to scale a Transformer language model. Make its blocks wider, or stack more of them so it runs deeper. Both of those grow the model along a single sequential path. The authors ask whether there is a third direction that complements the other two, and the one they explore is branching: composing full Transformer blocks in parallel rather than only in sequence.
The Multi-Branch Transformer, or MBT, is built in three parts. The input first passes through shared initial layers. It then enters several branches, each a sequence of blocks with its own independent parameters, and those branches run in parallel. Their outputs are fused, and the fused result passes through shared final layers. Holding training compute comparable, there are three ways to lay out the branches. Wide-Shallow keeps the width of each block. Narrow-Deep keeps the sequential depth. Balanced sits between the two.
The second contribution targets inference efficiency at long contexts. The authors introduce Joint-KV, which builds one shared KV cache from the branch representations at each depth, so the branches draw on a common cache rather than separate ones. The final recipe pairs Balanced MBTs with Joint-KV, and it runs on an inference engine designed around the structure: it exploits the grouping of branches and the reuse of the shared cache.
The experiments are controlled pretraining runs at four mixture-of-experts scales, ranging from zero point eight to two point one billion total parameters. Under matched parameter and training-compute budgets, two-branch Wide-Shallow MBTs consistently outperform sequential Transformers. Balanced MBTs improve further, and they keep comparable quality as the number of branches grows.
For the final recipe, fitted scaling curves indicate that a standard Transformer would need up to one point two six times as much training body compute to reach the same validation loss. On the inference side, the final models reduce full-model KV-cache storage by up to thirty-four percent, and deliver up to fifty-one point four percent higher decoding throughput on a single H200 GPU.
Ablations address the obvious objection, that branching is only a disguised change of width or depth. They show gains beyond those changes. They also show that branching is what makes an effective KV-sharing strategy possible in the form of Joint-KV, that results hold across different fusion functions, and that branching works best when placed in the middle layers of the network.
Width and depth are the two dials everyone already turns. This work adds a third, parallel composition of whole blocks, and reports that it helps on both sides of the ledger at once: better modeling quality during training, and a smaller cache with faster decoding at inference. The authors read that as a practical path for scaling language models, one that does not force a choice between the two.
The deep dive
6:06A longer episode, written from the whole paper. Written and voiced by AI.
Transcript
Multi-Branch Transformer. By Gaotang Li and eight others, from the University of Illinois Urbana-Champaign, Rice University, and two other institutions. Published on the fifteenth of November. This is the long version: the whole paper rather than the abstract.
There are two familiar ways to give a Transformer language model more capacity. You stack more blocks in sequence, or you make each block wider. Recent architecture work has changed a great deal inside that template, from attention variants to sparse experts to new residual connections, but the sequential stack of full blocks has stayed the common foundation. This paper asks whether there is a third axis. What if some of the full blocks ran side by side instead of one after another? The bet is that this could help twice over: better modelling quality for the same training compute, and faster decoding, because parallel blocks do not lengthen the serial path a token has to travel.
The Multi-Branch Transformer keeps a shared stack of blocks at the start, called the prelude, and a shared stack at the end, called the coda. In between, the hidden state is handed to several independently parameterized branches, each a short sequential stack of ordinary attention and mixture-of-experts blocks. Their outputs are fused and passed on to the coda. Two quantities now come apart. The physical block count is every block in the model. Depth counts only the blocks along the longest path, so two branches of four blocks add eight blocks but only four steps of depth. Every comparison holds training compute fixed, and that forces a choice. Wide-Shallow keeps the original block width and spreads the middle blocks across branches. Narrow-Deep keeps the full depth in each branch, using narrower blocks. Balanced sits between them.
Fusion is deliberately plain. At each token position, each branch output is normalized, the results are concatenated, and a single linear map projects them back to the shared width, with no extra residual around the branches. The second piece is Joint-KV. By default each block in each branch builds its own key-value cache, so more branches mean more cache. Joint-KV instead builds one shared cache per depth, by projecting the concatenated inputs of all the branches at that depth, while each branch keeps its own queries. The shared projection has the same parameter count and the same arithmetic as the separate ones, and at fixed dimensions the cache in the branch region shrinks to one over the number of branches.
The third piece is an inference engine with two tricks. Branch grouping runs all blocks at the same depth as one batched stage, so a four-branch model at the third scale, with twenty-four physical blocks, needs only twelve serial stages, against sixteen for the standard model. Head folding moves the branch dimension into the query heads, so every branch reads the shared cache in one grouped attention call instead of reloading it. The paper models decode time as a fixed cost per serial block plus the time to read the cache. Grouping cuts the first, and sharing with folding cuts the second.
Training runs at four mixture-of-experts scales, from zero point eight to about two point one billion total parameters, on FineWeb-Edu at roughly two hundred tokens per parameter. With two Wide-Shallow branches, all four scales trace the same U-shaped curve. Putting about a third of the blocks into branches gives the lowest loss, and loss stays level with the standard model until about seventy-nine percent are branched. Fitted curves put the best two-branch model at about one point two three times the standard model's compute, and mean zero-shot accuracy across nine tasks rises from fifty-four point two three percent to fifty-six point zero three percent. Going from two branches to three or four barely moves loss, and Balanced beats Wide-Shallow at every scale and branch count.
The comparison that most directly tests the thesis is the width ablation. If branching were only a disguised way to build a shallower, wider network, then simply widening would match it. It does not. Wide-Shallow branching beats both a globally widened stack and a single wide core of the same depth at all four scales, and Narrow-Deep, which keeps the standard model's full depth, beats the standard model too. A cache-matched test gives Joint-KV lower loss than private per-branch caches at every scale. The final recipe cuts full-model cache by up to thirty-four percent, and averaged over scales the four-branch model decodes between one point one two and one point five times as fast on a single H200.
The paper has no limitations section; its conclusion lists future directions instead. Its own appendix supplies some caveats. Two branches are slower than the standard model in seven of the benchmarked settings, six of them at the smallest scale, where branching removes only one block of depth and the extra fusion and cache operations cost more than that saves. Every run uses one fixed seed, and the loss tables carry no error bars, so gaps of one to three hundredths in loss rest on single runs. The models train with a context of about four thousand tokens, and the long-input decoding tests run far beyond it, so those runs measure speed only and say nothing about long-context quality. And the largest model has about two point one billion total parameters, so behaviour at larger scales is untested here.
The idea to carry away is that how blocks are arranged is a scaling axis in its own right, alongside width and depth. Placing full blocks side by side in the middle of the network improved loss at fixed compute, and the arrangement unlocked something sequential stacks cannot offer: a cache shared across branches at the same depth. Quality and speed came from the same structural choice, provided the inference engine was built to exploit it.
Paper Quest · 7 chapters · about 40 min
Play this paper
Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.
Chapter 1 🧩 · The problem
Wider or deeper: the two old answers. Is there a third?
You are scaling a language model and have two familiar levers: make each block wider, or stack more blocks so the model runs deeper. Both grow the model along one single sequential path.
The road ahead
- 1 · The problem ~6 min Language models usually grow wider or deeper, and both choices lengthen or fatten one single sequential path of blocks.
- 2 · What came before ~3 min
- 3 · The key idea ~9 min Branching places several full stacks of blocks side by side between shared layers, fuses them, and lets them share one KV cache per depth.
- 4 · Choose your own research ~3 min
- 5 · Build the method ~8 min The input goes through shared prelude layers, then independent branches run in parallel, their outputs are fused, and shared coda layers finish.
- 6 · The experiment ~6 min You’ll guess: On a single H200 GPU, how much higher was the decoding throughput of the final multi-branch models than a standard Transformer's, at best?
- 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Free, with Google or an email address. Your stars and progress are kept.