Multi-Branch Transformer

arXiv:2611.19800 · 2026-11-18 공개 · arXiv · PDF

long-context kv-cache model-scaling inference-efficiency transformer-architecture multi-branch-transformer joint-kv wide-shallow

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.

한국어 요약

한 줄 요약

Multi-Branch Transformer(MBT)는 병렬 브랜치 구조를 도입하여 언어 모델의 성능과 추론 효율성을 동시에 향상시키는 새로운 아키텍처를 제안한다.

핵심 기여도

핵심 아이디어

기존 트랜스포머는 블록의 깊이나 너비를 확장하는 방식으로 스케일링되지만, MBT는 전체 트랜스포머 블록을 병렬 브랜치로 구성함으로써 새로운 스케일링 차원을 제시한다. 이는 `prelude`와 `coda` 사이에 독립적으로 파라미터화된 브랜치를 병렬 실행하고, 결과를 퓨전함으로써 이루어진다. 핵심 아이디어는 각 브랜치 내에서는 순차적 구조를 유지하면서, 여러 변형 경로의 결과를 공유 레이어에서 결합하는 것이다. 이는 기존의 블록 병렬화 접근과는 구조적으로 차별화되며, Joint-KV를 통해 KV 캐시 공유를 가능하게 하여 추론 효율성을 높인다.

기술적 접근법

주요 결과

의의 및 한계

MBT는 기존의 너비와 깊이 기반 스케일링에 대안적인 브랜치 구조를 제시하며, 모델 품질과 추론 효율성을 동시에 향상시킬 수 있음을 입증한다. 특히, Joint-KV는 장문 컨텍스트 처리 시 효율성을 높이는 새로운 전략을 제시한다. 그러나 브랜치 수가 증가할수록 퓨전 전략의 선택이 중요하며, 이에 대한 최적화가 필요하다. 또한, 브랜치 구조는 모델 복잡도를 증가시키므로, 추론 엔진의 최적화가 필수적이다.

실용적 활용

MBT는 대규모 언어 모델의 효율적인 학습 및 추론이 필요한 산업, 예를 들어, 챗봇, 번역, 코드 생성 등에 적용 가능하다. 특히, Joint-KV와 병렬 브랜치 구조는 GPU 자원이 제한된 환경에서 성능 향상과 에너지 효율성을 동시에 달성할 수 있는 실용적 솔루션이 될 수 있다.