N-vium: Mixture-of-Exits Transformer for Accelerated Exact Generation
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 →
| Benchmark | Method | Metric | Score | Protocol / Evidence |
|---|---|---|---|---|
| 1.5B scaling evaluation | Quadrivium (4-vium), 1.5B (1536-wide, 48-layer), adaptive β | perplexity (PPL) | 11.56-0.07 vs baseline | Language Modeling · params=1.5B · width=1536 · layers=48 · variant=4-vium, adaptive β · parameters=1.5BSource quoteL7: \def\adaptNviumPPL{11.56} |
| 1.5B scaling evaluation | Quadrivium (4-vium), 1.5B (1536-wide, 48-layer), adaptive β | wall-clock speedup | 57.9% | Language Modeling Inference · params=1.5B · width=1536 · layers=48 · variant=4-vium, adaptive β · hardware=A100 80GB PCIe · parameters=1.5BSource quoteL8: \def\adaptNviumSpeedup{57.9} |
| IsoFLOP/isoSpeed comparison | 4-vium (48L) | PPL | 15.18-0.32 vs baseline | Language Modeling · layers=48 · hardware=A100 · training_compute=isoFLOP-matched · inference_throughput=isoSpeed-matchedSource quoteL818: 4-vium (48L) │ 396M │ 15.18 │ 38.80{±}0.36 │ 1.041 │ 30{,}211 │ 41.6% |
Reported baseline / comparator measurements (2)
| Benchmark | Method | Metric | Score | Protocol / Evidence |
|---|---|---|---|---|
| 1.5B scaling evaluation | Dense transformer baseline baseline | perplexity (PPL) | 11.63 | Language Modeling · params=1.5B · data=data-matched to Quadrivium · parameters=parameter-matched to QuadriviumSource quoteL4: \def\adaptBaselinePPL{11.63} |
| IsoFLOP/isoSpeed comparison | Dense (33L) baseline | PPL | 15.50 | Language Modeling · layers=33 · hardware=A100 · training_compute=isoFLOP-matched · inference_throughput=isoSpeed-matchedSource quoteL819: 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},
}Ask Althea to put this paper to the test.