N-vium: Mixture-of-Exits Transformer for Accelerated Exact Generation
Aleksander Lorenc, Frédéric Berdoz, Joël Mathys, Roger Wattenhofer
NeurIPS 2026
TL;DR. N-vium redefines the transformer as a learned mixture of exits, enabling exact early sampling and up to 58% wall-clock speedup at no perplexity cost.
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.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:43 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper proposes N-vium, a mixture-of-exits to enabling more efficient (small batch) decoding through having token-level dynamic computation. N-vium differs from older mixture-of-exit approaches which simply copy the skipped over KV cache by computing the previously-skipped KV cache of previous tokens in parallel with the current token, thus enabling greater use of GPUs). The approach is able to push the pareto frontier of speed-up vs. perplexity degradation when compared to pervious early-exit and mixture-of-depths approarches.
Reviewers in general appreciated the method, as well as sound empirical experiments. Some weaknesses that were flagged include, demonstrations at the batch=1 setting only, and increased training time. While these are nontrivial weaknesses (which prevent me from recommending a higher rating), I think the contributions are still enough to warrant acceptance. For one, I disagree with reviewer sbkj that "decoding always happens at large batch sizes"---indeed, many applications (e.g., in edge deployment) would benefit from batch=1 or low-batch inference. With regard to increased training time, I think this is ok given that for small models, LLM developers are willing to (and practically do) spend more time training (than would be, say, FLOPs-optimal) for faster inference.
In summary, I think this paper is a worthwhile contribution to the conference.
Final justification
Please see above.
- Final justification
- Please see above.
Read meta-review
Meta-review
This paper proposes N-vium, a mixture-of-exits to enabling more efficient (small batch) decoding through having token-level dynamic computation. N-vium differs from older mixture-of-exit approaches which simply copy the skipped over KV cache by computing the previously-skipped KV cache of previous tokens in parallel with the current token, thus enabling greater use of GPUs). The approach is able to push the pareto frontier of speed-up vs. perplexity degradation when compared to pervious early-exit and mixture-of-depths approarches.
Reviewers in general appreciated the method, as well as sound empirical experiments. Some weaknesses that were flagged include, demonstrations at the batch=1 setting only, and increased training time. While these are nontrivial weaknesses (which prevent me from recommending a higher rating), I think the contributions are still enough to warrant acceptance. For one, I disagree with reviewer sbkj that "decoding always happens at large batch sizes"---indeed, many applications (e.g., in edge deployment) would benefit from batch=1 or low-batch inference. With regard to increased training time, I think this is ok given that for small models, LLM developers are willing to (and practically do) spend more time training (than would be, say, FLOPs-optimal) for faster inference.
In summary, I think this paper is a worthwhile contribution to the conference.
1 comment
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The authors' of N-vium contribute a method of accelerating autoregressive transformers by introducing a learnable mixture of exits, selectively allowing the transformer to exit early for predictions. This work has been explored previously in early exiting. However, the authors' expand on early exiting be generalizing the next-token distribution as a mixture of all exits. Contrary to previous work, the authors' identify a method of deferred computation such that they maximize FLOPs / sec rather than computation per token, yielding both decoding speedup in terms of wall-clock time while preserving exact inference.
Strengths and weaknesses
The authors' contribution to the space of accelerated inference with autoregressive transformers is incremental but strong and generally well-motivated. Their formulation of N-vium, as well as the re-framing of objectives in terms of effective FLOPs / sec, are relevant with some potential for societal and research impact. Ablations show that the learned exit heads yield non-degenerate outcomes, where tokens are routed across all heads. Their implementation is simple and explained clearly. Deferred computation in particular was a thoughtful extension of N-vium to allow for exact inference. However, N-vium's incompatibility with batch scoring appears to be fairly fundamental limitation. The authors' did not contribute an ablation or proposed solutions to making N-vium compatible with batch scoring, though they do mention in limitations that this is a shared concern with existing work. In addition, perplexity was the central evaluation metric against which N-vium and other methods were evaluated. I felt there was not enough comparison with existing baselines in general in the main paper. However, the extensive theoretical and empirical results in the appendix answered most of my questions.
Questions
- Are there any methods of enabling batch scoring while maintaining the benefits of exact inference and the speedups of N-vium?
- Even if you divert SFT results and other ablations to the appendix, could you summarize them in a section in the main paper?
Limitations
Yes
Formatting concerns
No concerns
2 comments
We thank the reviewer for the detailed review. We answer each point below.
Batched inference
Are there any methods of enabling batch scoring while maintaining the benefits of exact inference and the speedups of N-vium?
With batch size greater than 1, sequences sample their next token at different junctions. To fully utilize the method, these sampled tokens should be requeued as fast as possible. This is not supported when using standard batching strategies. The obstacle is shared with early-exit methods (Limitations, Section 6).
To our knowledge, existing dynamic re-batching methods for early-exit networks would require adaptation to N-vium. DREX [Liu et al., 2025] and [Iyer et al., 2024] address the problem for early-exit networks on single and multiple GPUs, and would need adaptation for N-vium. We scope this paper to batch size 1 and leave the extension to future work.
Summarizing the appendix results in the main text
Even if you divert SFT results and other ablations to the appendix, could you summarize them in a section in the main paper?
We agree. We will add a paragraph to Section 5 summarizing the SFT results (Appendix E) and the IsoFLOP and IsoSpeed comparisons (Appendix F), with forward references to the full tables.
References
[Liu et al., 2025] Dynamic Rebatching for Efficient Early-Exit Inference with DREX. arXiv:2512.15705.
[Iyer et al., 2024] Improving DNN Inference Throughput Using Practical, Per-Input Compute Adaptation. SOSP 2024.
Response to rebuttal
Thank you for the clarifications and adjustments. I maintain my score of accept.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 4/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
I will provide the review of N-vium: Mixture-of-Exits Transformer for Accelerated Exact Generation. This paper presents a novel architecture with an internal exit that bypasses layers and produces output. The first goal of this paper is to improve the method's throughput, and it provides promising results exceeding 50%. The authors trained 1.5B-parameter models and have shown that their method does not harm PPL. This paper provides an answer to provide an efficient LLM.
Regarding the proposed method. Unlike traditional Early Exit methods, N-vium does not treat intermediate outputs as mere approximations. Instead, it weights each exit's distribution using the Router's probabilities, training this mixture distribution as the model's official output. This allows accurate sampling from a fully optimized distribution at any depth. The core of this acceleration is decoupling next-token prediction from KV cache construction. When a token exits early, the remaining upper layers are not discarded; instead, they are parallelized on the GPU alongside subsequent tokens.
Regarding the comparison and experiments. N-vium outperforms existing methods. Although the authors transparently note that evaluating multiple exits increases training FLOPs, N-vium remains superior even when total training budgets are matched. Additionally, it introduces only 3.3% parameter overhead and appears compatible with quantization, MoE, and speculative decoding.
Strengths and weaknesses
N-vium achieves substantial wall-clock speedups not by cutting computation, but by reordering it. It is a highly complete piece of research offering strong novelty, practicality, and thorough evaluation.
Strength
-
The paper addresses the practically important problem of reducing autoregressive decoding latency without approximating the trained output distribution.
-
The mixture-of-exits formulation is conceptually clean: instead of treating intermediate predictions as approximations to the final head, the model directly optimizes a token-adaptive mixture over exits.
-
The experiments are promising, especially since they provide 1.5B-scale models.
-
The measurement is honest and well organized, and the results are promising.
-
The proposed method outperforms existing methods, and the experiments seem to be clear.
Weakness
-
The qualitative generations in Appendix C are notably poor and factually incorrect. I think the current quality matches the relevant size, but the authors need to provide more information.
-
The evaluation is limited to LLaMA-style decoder-only architectures. It would be useful to evaluate whether the method transfers to other architectures, attention variants, and modern serving systems.
-
N-vium incurs additional pretraining computation because multiple vocabulary projections and auxiliary routing components are evaluated during training.
I believe the weakness is very small, and I believe this is a very good paper and has a quality for acceptance for NeurIPS.
Questions
I have several questions to improve the paper.
Question about pre-training costs.
-
The paper acknowledges that evaluating multiple exits increases training FLOPs compared to a baseline. Can you provide actual training time?
-
The router warmup is applied during the first 5% of training. How sensitive are routing stability, perplexity, and final speedup to the duration of this warmup and to the balancing coefficient?
Question about parallel processing overhead.
-
How many additional kernel launches and synchronization points are introduced per generated token, and how much of the measured latency is attributable to this overhead?
-
How does the speedup vary with prompt length, generation length, and context length? In particular, does the advantage persist at 4K or longer contexts?
Question about Appendix C generated text.
- The generated text seems to be poor. Current texts appear to match a relevant size, but the lower text quality may lead to a misleading interpretation. The authors need to provide a more extended explanation of concrete examples.
Limitations
The authors provide limitations, and they are well written.
Final justification
The authors provide additional experiments and they are very consistent. I keep my positive assessment.
Formatting concerns
This paper does not have issue of formatting.
3 comments
We thank the reviewer for the detailed review. We report the requested measurements below.
Training time
The paper acknowledges that evaluating multiple exits increases training FLOPs compared to a baseline. Can you provide actual training time?
Wall-clock training times for both scaling axes of Table 2, on one node with four NVIDIA H200 GPUs:
Depth scaling (fixed width 768)
| Layers | Total Params (M) | LM head params (M) | Baseline PPL | N-vium PPL | Δ PPL (%) | Speedup (%) | Baseline training time | N-vium training time | N-vium training overhead |
|---|---|---|---|---|---|---|---|---|---|
| 6 | 99 | 24.6 | 27.99 | 27.63 | 1.3% | −8.3% | 26m 10s | 57m 58s | +121.5% |
| 12 | 141 | 24.6 | 22.99 | 22.29 | 3.1% | 10.9% | 58m 24s | 1h 43m | +76.4% |
| 24 | 226 | 24.6 | 18.90 | 18.21 | 3.6% | 26.8% | 2h 41m 8s | 3h 49m 58s | +42.7% |
| 36 | 311 | 24.6 | 16.88 | 16.25 | 3.7% | 36.4% | 5h 17m 29s | 6h 49m 10s | +28.9% |
| 48 | 396 | 24.6 | 15.94 | 15.18 | 4.8% | 41.6% | 10h 14m 47s | 12h 36m 50s | +23.1% |
Width scaling (fixed 24 layers)
| Width | Total Params (M) | LM head params (M) | Baseline PPL | N-vium PPL | Δ PPL (%) | Speedup (%) | Baseline training time | N-vium training time | N-vium training overhead |
|---|---|---|---|---|---|---|---|---|---|
| 128 | 13 | 4.1 | 78.02 | 65.89 | 15.5% | 53.8% | 8m 28s | 24m 14s | +186.2% |
| 256 | 36 | 8.2 | 35.84 | 33.92 | 5.4% | 35.3% | 19m 35s | 33m 51s | +72.9% |
| 512 | 112 | 16.4 | 22.26 | 21.28 | 4.4% | 25.0% | 59m 25s | 1h 33m 1s | +56.5% |
| 768 | 226 | 24.6 | 18.90 | 18.21 | 3.6% | 26.8% | 2h 41m 8s | 3h 49m 58s | +42.7% |
| 1024 | 381 | 32.8 | 17.50 | 17.12 | 2.2% | 23.8% | 6h 10m 2s | 8h 7m 52s | +31.8% |
| 1536 | 806 | 49.2 | 13.35 | 13.34 | 0% | 32.0% | 22h 40m 10s | 28h 25m 30s | +25.4% |
The relative overhead shrinks with scale, from +186.2% (width 128) to +25.4% (width 1536), and from +121.5% (6 layers) to +23.1% (48 layers). We will add these times to Appendix A.
Router warmup sensitivity
The router warmup is applied during the first 5% of training. How sensitive are routing stability, perplexity, and final speedup to the duration of this warmup and to the balancing coefficient?
We ran both ablations on the 141M model (width 768, 12 layers) of Table 2, with the paper's protocol.
Table A. Warmup duration ablation (warmup weight fixed at )
| Warmup duration (fraction of the total steps) | Perplexity | Speedup |
|---|---|---|
| 0.000 | 24.80 | 55.5% |
| 0.010 | 23.20 | 52.0% |
| 0.025 | 22.18 | 11.5% |
| 0.050 | 22.24 | 11.7% |
| 0.100 | 22.31 | 12.7% |
| 0.200 | 22.28 | 11.2% |
| 0.500 | 22.50 | 13.0% |
Table B. Warmup weight ablation (warmup duration fixed at 0.05)
| Warmup weight | Perplexity | Speedup |
|---|---|---|
| 0.1 | 22.26 | 7.0% |
| 0.2 | 22.17 | 10.6% |
| 0.5 | 22.24 | 10.3% |
| 1.0 | 22.24 | 11.3% |
| 2.0 | 22.37 | 13.3% |
Without warmup the router collapses: no tokens reach the final head, giving a large speedup but worse perplexity (24.80 vs. 22.24). At duration 0.01 the collapse is partial. From 0.025 onward, perplexity and speedup are stable, so the 5% setting sits well inside the stable region. For the weight , only 0.1 lowers the speedup (7.0%), and perplexity varies by less than 1% across the range. We will add both tables to Appendix A.
Kernel launches and synchronization overhead
How many additional kernel launches and synchronization points are introduced per generated token, and how much of the measured latency is attributable to this overhead?
We profiled the 226M model at batch size 1 with torch.profiler, against the matched dense baseline under standard autoregressive decoding. N-vium adds launches for the router and intermediate heads but removes more backbone launches, a net reduction of 297 per token: a piggybacked group traverses the upper layers once and launches each layer kernel once for the whole group, while standard decoding launches every layer kernel for every token.
N-vium adds about 2.5 CPU-GPU synchronizations per token. Re-running with them removed puts their cost at 66.7 µs/token, 0.43% of per-token latency. We will add this profile to Appendix A.
Speedup across prompt, generation, and context length
How does the speedup vary with prompt length, generation length, and context length? In particular, does the advantage persist at 4K or longer contexts?
Reviewer sbkj asked the same question, so we refer to our response there: after YaRN extension of the 226M model to 4k and 8k, the speedup is 30.5% and 31.3% and the perplexity advantage over the baseline is preserved. For prompt length, the SpecBench measurements already average over six prompt categories of varying length.
Qualitative generations in Appendix C
The generated text seems to be poor. Current texts appear to match a relevant size, but the lower text quality may lead to a misleading interpretation. The authors need to provide a more extended explanation of concrete examples.
We agree the examples need more framing. They come from a 311M model pretrained on C4 at a Chinchilla-scale token budget, so the text quality reflects the scale, not the mixture training. The purpose of the figure is to visualize per-token exit decisions. We will state this in the appendix and add commentary on each example.
Transfer beyond LLaMA-style decoders
The evaluation is limited to LLaMA-style decoder-only architectures. It would be useful to evaluate whether the method transfers to other architectures, attention variants, and modern serving systems.
The method is architecturally compatible with decoder-only Transformer variants that retain a depth-ordered stack and per-layer KV caches, including models using GQA or MQA; these variants change the size of cache entries but not the cache-repair mechanism. Integration with serving systems such as vLLM needs scheduler support for deferred computation, which we group with batched inference as future work.
Acknowledgement of the response
Thank you for the additional results. The authors further confirm the value of this paper. I maintain my positive assessment.
- Rating
- 3/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
- authors propose N-vium, a decoder-only transformer with prediction heads at evenly spaced depths
- model's output distribution is defined as a learned mixture over depths, trained end-to-end via the mixture log-likelihood plus a depth penalty
- the speedup comes from reduced sequential depth and better hardware utilization
- Models up to 1.5B pretrained on C4 show up to 57.9% latency-per-token reduction (although at 1K context length and unknown batch size, my guess is smallish -- but authors can comment on it :)) )
Strengths and weaknesses
Strenthgs:
- Making the mixture the model eliminates the train/test mismatch and hand-tuned confidence thresholds -- model itself decides when to exit
- Piggybacking yields complete, exact KV caches
- Good empirical execution covering lots of cases: real wall-clock measurements
Weaknesses:
- I think my biggest concern is batch size during decoding. See my questions below.
- its unclear if the savings would hold at long-context decoding
- there are no savings during prefill time (since the transformer must compute the complete KV cache) -- correct me if I am wrong :)
Questions
-
can you report the batch-size used during decoding? basically, i'd be interested in seeing how the savings are affected as you increase batch size. My concern is: if we are decoding a single sequence (batch size = 1), then yes, piggybacking wouldn't affect decoding a single token and one can get speed ups. But if batch size is large, I feel piggybacking may reduce decoding speeds? not sure, but I'd love to see a plot or a table for this :))
-
What happens at a longer context decoding of 4K or 8K? to reduce experimental load, perhaps you could do long-context extension and measure throughput (both at small and large batch size) and some accuracy on a benchmark. Note that I am not talking about prefill at 4k or 8k, I am talking if the model "reasons" or "decodes" large number of tokens, I think that's where the method could shine?
-
this paper reminds me of PonderNet paper, they also define a similar loss. Aren't there any follow up works to those that this paper miss? I am surprised that this simple idea was not explored :)) -- but I think the piggybacking thing is a bit non-trivial to figure out, and perhaps thats why.
I am def willing to increase my score if my questions are addressed. All the best! :)
Limitations
yes.
Final justification
i'd still like to keep my score.
reasons for acceptance:
- the proposed early exit way to train models is very simple
- it works on batch size 1, both for short and long-context decoding
reasons for rejection are:
- there is no implementation for batch size > 1
in the final rebuttal, authors do provide a mental model of how there are savings in pipeline parallelism (PP), but most medium-to-large scale models (< 100B) i'd say are deployed in tensor parallelism (TP) rather than pipeline parallelism (PP). you only need PP when the entire node (8 GPUs) cannot hold the model at all (only for models say > 8*80/2 = 320B of params one would use PP -- assuming a node of 8xH100s and FP16 deployment)
there is still no proof of an implementation at batch size > 1 that works on a single GPU or in TP, and most importantly the method provides latency savings in that regime of high batch size.
Formatting concerns
N/A
3 comments
We thank the reviewer for their precise questions. We answer each point below.
Decoding batch size
can you report the batch-size used during decoding? basically, i'd be interested in seeing how the savings are affected as you increase batch size. My concern is: if we are decoding a single sequence (batch size = 1), then yes, piggybacking wouldn't affect decoding a single token and one can get speed ups. But if batch size is large, I feel piggybacking may reduce decoding speeds? not sure, but I'd love to see a plot or a table for this :))
All speedup measurements use batch size 1. We will state this in Section 5 and Appendix A for clarification.
When using batch size greater than 1, sequences may sample the next token at different junctions. To fully utilize this, these sequences should be immediately requeued, but this is not supported with the naive batching strategy. DREX [Liu et al., 2025] and [Iyer et al., 2024] address it for early-exit networks on single and multiple GPUs. N-vium needs its own adaptation, which we leave to future work.
Long-context decoding
What happens at a longer context decoding of 4K or 8K? to reduce experimental load, perhaps you could do long-context extension and measure throughput (both at small and large batch size) and some accuracy on a benchmark. Note that I am not talking about prefill at 4k or 8k, I am talking if the model "reasons" or "decodes" large number of tokens, I think that's where the method could shine?
We ran the suggested experiment. We extend the 226M model of Table 2 (width 768, 24 layers) and its matched dense baseline identically, starting from the 1024-token pretrained checkpoints.
We use YaRN RoPE scaling [Peng et al., 2023] with:
| Parameter | Value |
|---|---|
factor |
4.0 (4k) / 8.0 (8k) |
original_max_position_embeddings |
1024 |
beta_fast |
32 (HF default) |
beta_slow |
1 (HF default) |
attention_factor |
unset (HF default, auto-computed) |
Training follows the YaRN recipe: 500 steps, WSD schedule (5% warmup, 10% decay), 10% of the peak pretraining LR, same global token batch size, unseen tokens of the same dataset repacked to 4k and 8k sequences.
Perplexity. Initial checkpoints are evaluated on the native 1024-token validation set, extended checkpoints on the 4096-/8192-token repacked validation set.
| Model | Context | Perplexity, initial checkpoint | Perplexity, post-extension |
|---|---|---|---|
| Baseline (226M) | 4k | 18.897 | 18.011 |
| Baseline (226M) | 8k | 18.897 | 17.939 |
| N-vium (226M) | 4k | 18.211 | 17.340 |
| N-vium (226M) | 8k | 18.211 | 17.271 |
Speedup. Same SpecBench setup as stated in Section 5 in the paper, but generating until prompt plus generated tokens fill the 4k/8k context. SpecBench prompts average about 110 tokens, so nearly the full context consists of decoded tokens.
| Model | Context | Speedup (N-vium vs. matched baseline) |
|---|---|---|
| N-vium (226M) | 4k | 30.5% |
| N-vium (226M) | 8k | 31.3% |
The speedup persists after extension (30.5% at 4k, 31.3% at 8k) and N-vium keeps its perplexity advantage over the baseline. We will add this experiment to the appendix.
Prefill
there are no savings during prefill time (since the transformer must compute the complete KV cache) -- correct me if I am wrong :)
Correct. Prefill already processes all prompt positions in parallel, so N-vium runs a standard dense prefill and all reported gains are decoding gains. We will state this in the Limitations paragraph of Section 6.
Relation to PonderNet
this paper reminds me of PonderNet paper, they also define a similar loss. Aren't there any follow up works to those that this paper miss? I am surprised that this simple idea was not explored :)) -- but I think the piggybacking thing is a bit non-trivial to figure out, and perhaps thats why.
We thank the reviewer for this observation. PonderNet defines a related loss over halting probabilities, in a more general setting. N-vium differs in two ways: the exits are distinct sub-networks at different depths rather than repetitions of a shared recurrent step, and the recurrent formulation never faces the KV cache problem that piggybacking solves.
The closest follow-up we know of is PALBERT [Balagansky & Gavrilov, 2022]. It trains with a PonderNet-style loss but replaces the sampled Bernoulli exits with a deterministic Q-exit criterion, on an encoder-only architecture where the KV cache problem does not arise. We will cite both works to Section 2.
References
[Liu et al., 2025] Dynamic Rebatching for Efficient Early-Exit Inference with DREX. arXiv:2512.15705.
[Iyer et al., 2024] Improving DNN Inference Throughput Using Practical, Per-Input Compute Adaptation. SOSP 2024.
[Peng et al., 2023] YaRN: Efficient Context Window Extension of Large Language Models. arXiv:2309.00071.
[Balagansky & Gavrilov, 2022] PALBERT: Teaching ALBERT to Ponder. NeurIPS 2022.
heyyy! extremely sorry for my late response.
nice results after long-context extension, and thanks for doing these experiments.
however, i'd still like to keep my score for the following reasons, let me know if you agree disagree :)
my reasoning is:
- if we forget about the N-vium method for now, the goal the paper set out to acheive was to reduce latency during decoding
- now, decoding always happens at large batch sizes
- since there's no implementation for the method at large batch size, did the paper achieve the set out goal? i'd say no
i’m not questioning the method itself -- my concern is that its current implementation may limit its practical usefulness (even if one trains N-vium, they won't deploy it, so whats the point? 😅)
my suggestion is, perhaps try to build up the batched implementation -- need not be production ready or anything, just a proof-of-concept should do. It seems you do know what needs to be done (since you cited those papers), so perhaps give it a try. Take help from Claude/Codex :))
I know this is limited time, but if it can be done, and there are latency savings at high batch sizes (say ~32 or 64) -- then the method is extremely useful! i'll convert my score to clear accept.
i'm sorry for the extremely late response, but hopefully you can do it :) all the best!
The speedups reported in the paper are measured at batch size 1, and we scope our claims accordingly. Batching is a known difficulty for early-exit and adaptive-depth architectures generally: once sequences in a batch exit at different depths the batch fragments, so per-token layer savings no longer translate directly into wall-clock gains. We regard efficient batched serving as an open problem for this family of methods, and present the prototype below. This is mainly a qualitative proof of concept that even beyond B > 1 N-vium can deliver positive speedups.
We run our tests under the following setup: We generate N tokens for B batched requests on G gpus. All input tokens are known when we start, and all B batches generate N tokens.
The main idea is to utilise the routed early tokens as soon as possible. When using pipeline parallelism (PP), we can split the model onto different GPUs. Say for a 4-vium and 4 GPUs each GPU holds one part of the model which can sample tokens. So if a token is sampled, instead of only continuing the computation with deeper layers, we can at the same time requeue it immediately.
We measure our 1.5B and 226M context-extended 4-vium models, which start with batch size B and requeue tokens as soon as they are sampled. Note that this computation naturally transitions from a full batch towards mini-batching. We compare against two baselines that utilise a regular architecture: densePP and densePP mini. DensePP uses PP with the full B batch (only one of the G GPUs is busy at any time). DensePP mini splits the batch into mini batches of size B/G and keeps all G GPUs utilised. This is to ensure that N-vium speedups are not solely due to minibatching effects. We remark that due to the used model size, it is not necessary to use PP. However it demonstrates that N-vium can deliver speedups for batchsize B>1, i.e. when combined with PP.
We provide results for the 1.5B parameter (48 layers, 1536 hidden dimension), and for the 226M parameter (24 layers, 768 hidden dimension, context extended to 8k tokens) models. All measurements use at most 4× A100 80GB, bfloat16, greedy decoding for both the head and the router, and Spec-Bench prompts truncated to 128 tokens. Each configuration is a single measured run. Time measurements are reported as seconds.
N = 512 generated tokens, 1.5B model
| G | B | N-vium | densePP full | densePP mini | vs full | vs mini |
|---|---|---|---|---|---|---|
| 4 | 4 | 4.69 | 7.58 | 10.96 | 1.61× | 2.34× |
| 4 | 16 | 6.01 | 11.09 | 11.13 | 1.85× | 1.85× |
| 4 | 64 | 9.02 | 15.45 | 14.12 | 1.71× | 1.57× |
| 2 | 4 | 5.02 | 7.33 | 7.33 | 1.46× | 1.46× |
| 2 | 16 | 6.17 | 8.65 | 8.49 | 1.40× | 1.37× |
| 2 | 64 | 9.53 | 15.84 | 19.41 | 1.66× | 2.04× |
N = 512 generated tokens, 226M model
| G | B | N-vium | densePP full | densePP mini | vs full | vs mini |
|---|---|---|---|---|---|---|
| 4 | 4 | 4.69 | 4.84 | 5.01 | 1.03× | 1.07× |
| 4 | 16 | 6.35 | 8.00 | 8.62 | 1.26× | 1.36× |
| 4 | 64 | 10.02 | 12.07 | 13.54 | 1.20× | 1.35× |
| 2 | 4 | 2.92 | 3.54 | 3.55 | 1.21× | 1.22× |
| 2 | 16 | 3.96 | 4.30 | 4.42 | 1.09× | 1.12× |
| 2 | 64 | 8.93 | 10.85 | 12.10 | 1.22× | 1.36× |
N = 8000 generated tokens, 226M model
| G | B | N-vium | densePP full | densePP mini | vs full | vs mini |
|---|---|---|---|---|---|---|
| 4 | 4 | 68.09 | 72.21 | 70.16 | 1.06× | 1.03× |
| 4 | 16 | 78.21 | 121.33 | 119.53 | 1.55× | 1.53× |
| 4 | 64 | 141.55 | 206.43 | 211.55 | 1.46× | 1.49× |
| 2 | 4 | 51.05 | 61.27 | 61.23 | 1.20× | 1.20× |
| 2 | 16 | 75.54 | 85.49 | 88.56 | 1.13× | 1.17× |
| 2 | 64 | 162.93 | 171.00 | 196.84 | 1.05× | 1.21× |
Across all 18 pipeline-parallel configurations reported here (G ∈ {2, 4}, B ∈ {4, 16, 64}), N-vium is faster than both dense baselines in every case: 1.03–1.85× over densePP full and 1.03–2.34× over densePP mini. The advantage holds at every batch size, including B = 64, and is therefore not an artifact of mini-batching, since densePP mini keeps all G GPUs occupied by construction. On the 226M model the margin grows with context: at G = 4, B = 64 it rises from 1.20× (N = 512) to 1.46× (N = 8000).
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
We thank the Area Chair for the guidance. On longer contexts: after YaRN extension of the 226M model and its matched baseline to 4k and 8k, the speedup persists (30.5% and 31.3%) and the perplexity advantage is preserved. Full tables are in our response to Reviewer sbkj.
Although batching improves aggregate throughput by processing independent requests in parallel, it does not reduce (and may slightly increase) per-request decoding latency. Our evaluation therefore isolates the complementary setting of batch-one latency, where N-vium directly accelerates generation; extending it to high-throughput batched serving requires dynamic re-batching and scheduler support, which we leave to future work.