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

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

[NeurIPS page](https://neurips.cc/virtual/2026/poster/154834) · [OpenReview](https://openreview.net/forum?id=AbwLJoCyB5) · [alphaXiv](https://www.alphaxiv.org/abs/2605.13190) · [Open on the map](../papers.html#p154834)

Category: [Efficient LLM Inference & Training](../pcat/14.md) › [Attention Optimization and Retrieval](../pgroup/693.md) · Type: new method · Keywords: accelerated transformer inference, mixture of exits, exact sampling, wall-clock speedup, deferred computation

Areas: [Model Architectures & Sequence Modeling](../areas/architectures.md) › Language Model Architectures › Efficient Inference

## Summary
N-vium is a mixture-of-exits transformer that partially parallelizes computation across depth, achieving up to 57.9% wall-clock speedup over standard transformers without sacrificing perplexity.

## Explained to a 5-year-old
A big computer brain writes sentences word by word. It has many layers that work one after another, but sometimes it can finish early using other shortcuts. For each word, it decides which shortcut to use, like picking the fastest one. If it needs to be extra careful, it can wait and use the full brain later. This makes the brain faster while still writing correct words.

## Explained to a 5-year-old, longer
A computer brain is trained to guess the next word in a sentence. Usually it goes through many layers one after another, which takes time. To make it faster, the researchers added extra shortcuts that let it finish early. These shortcuts are like small helpers that can predict a word before the whole brain is done. For each word, the brain chooses which helper to trust, like picking the fastest one. Sometimes the brain decides it needs more thinking, so it uses the full set of layers later. The helpers work together, and their predictions are mixed to get the final answer. This mixing is done in a way that the final answer is exactly the same as if the brain had gone through all layers. The brain also saves some information so it can finish the later layers quickly for the next words. By doing this, the brain can run many times faster on a normal computer. The speed-up does not make the words less accurate; the sentences stay just as good. This trick helps big language models be used more quickly in real life.

## For a technical reader
The system speeds up language model inference by allowing the model to produce outputs before processing all transformer layers. It adds extra prediction heads at different depths, and for each token it routes the computation to the most appropriate head. The final output is a weighted mixture of these heads' predictions, ensuring exact sampling without approximation. Upper-layer computations are deferred and batched with later tokens, and the necessary key-value caches are preserved. This design yields up to 58% faster wall-clock time while keeping perplexity unchanged, making it suitable for production deployments.

## Problem
Improving inference efficiency of autoregressive transformers while preserving model quality is challenging because common FLOPs-reduction techniques rely on approximations that hurt performance.

## Method
The approach partially parallelizes computation across transformer depth by attaching prediction heads at multiple layers and defining the next-token distribution as a learned mixture over these exits, using token-adaptive routing. This formulation generalizes the standard transformer and allows exact sampling while deferring upper-layer computation to batch with later tokens. KV caches are recovered by this deferral, enabling speedup.

## Results
The approach achieves a 57.9% wall-clock speedup over a matched standard transformer while maintaining perplexity, demonstrating that acceleration can be obtained without quality loss.

## Contributions
It introduces a depth-wise mixture of exits formulation that generalizes standard transformers, enables exact sampling, and recovers KV caches via deferred computation, allowing significant speedup without sacrificing perplexity.

## Research questions this paper is counted under

- [How can we reduce transformer inference cost while preserving model quality?](../q/869.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/154834)
