N-vium: Mixture-of-Exits Transformer for Accelerated Exact Generation

Aleksander Lorenc, Frédéric Berdoz, Joël Mathys, Roger Wattenhofer

Abstract

Improving the inference efficiency of autoregressive transformers typically means reducing FLOPs per token, usually through approximations that degrade model quality. We introduce N-vium, a mixture-of-exits transformer that partially parallelizes computation across depth on standard hardware, increasing effective FLOPs per second rather than minimizing compute per token. N-vium attaches prediction heads at multiple depths and defines the next-token distribution as a learned mixture over these exits, with token-adaptive routing. This formulation strictly generalizes the standard transformer, which is recovered exactly when routing assigns zero mass to all intermediate heads. Sampling from the mixture is exact, and complete KV caches are recovered by deferring the upper-layer computation and batching it with later tokens. We pretrain N-vium at scales up to 1.5B parameters. Our largest model reaches 57.9% wall-clock speedup over a parameter- and data-matched standard transformer at no perplexity cost.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
1.5B scaling evaluationQuadrivium (4-vium), 1.5B (1536-wide, 48-layer), adaptive βperplexity (PPL)11.56-0.07 vs baselineLanguage Modeling · params=1.5B · width=1536 · layers=48 · variant=4-vium, adaptive β · parameters=1.5B
Source quote
L7: \def\adaptNviumPPL{11.56}
1.5B scaling evaluationQuadrivium (4-vium), 1.5B (1536-wide, 48-layer), adaptive βwall-clock speedup57.9%Language Modeling Inference · params=1.5B · width=1536 · layers=48 · variant=4-vium, adaptive β · hardware=A100 80GB PCIe · parameters=1.5B
Source quote
L8: \def\adaptNviumSpeedup{57.9}
IsoFLOP/isoSpeed comparison4-vium (48L)PPL15.18-0.32 vs baselineLanguage Modeling · layers=48 · hardware=A100 · training_compute=isoFLOP-matched · inference_throughput=isoSpeed-matched
Source quote
L818: 4-vium (48L) │ 396M │ 15.18 │ 38.80{±}0.36 │ 1.041 │ 30{,}211 │ 41.6%
Reported baseline / comparator measurements (2)
BenchmarkMethodMetricScoreProtocol / Evidence
1.5B scaling evaluationDense transformer baseline baselineperplexity (PPL)11.63Language Modeling · params=1.5B · data=data-matched to Quadrivium · parameters=parameter-matched to Quadrivium
Source quote
L4: \def\adaptBaselinePPL{11.63}
IsoFLOP/isoSpeed comparisonDense (33L) baselinePPL15.50Language Modeling · layers=33 · hardware=A100 · training_compute=isoFLOP-matched · inference_throughput=isoSpeed-matched
Source quote
L819: Dense (33L) │ 283M │ 15.50 │ 39.23{±}0.11 │ 0.620 │ 50{,}729 │ ---
BibTeX
@inproceedings{lorenc2026n,
  author = {Aleksander Lorenc and Frédéric Berdoz and Joël Mathys and Roger Wattenhofer},
  title = {{N-vium: Mixture-of-Exits Transformer for Accelerated Exact Generation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=AbwLJoCyB5},
}
Figure