benchmark string | question string | seed int64 | arm string | correct int64 | finish_reason string | completion_tokens int64 | wall_seconds float64 |
|---|---|---|---|---|---|---|---|
livecodebench_v6 | 1873_d | 0 | mode_biased_mtp_d6 | 1 | stop | 2,953 | 39.932 |
livecodebench_v6 | 1873_d | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 2,883 | 43.087 |
livecodebench_v6 | 2848 | 0 | mode_biased_mtp_d6 | 1 | stop | 1,614 | 21.402 |
livecodebench_v6 | 2848 | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 1,512 | 25.448 |
livecodebench_v6 | 2857 | 0 | mode_biased_mtp_d6 | 1 | stop | 5,965 | 88.663 |
livecodebench_v6 | 2857 | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 1,978 | 37.06 |
livecodebench_v6 | 2955 | 0 | mode_biased_mtp_d6 | 1 | stop | 301 | 3.526 |
livecodebench_v6 | 2955 | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 370 | 6.252 |
livecodebench_v6 | 3046 | 0 | mode_biased_mtp_d6 | 1 | stop | 3,080 | 46.55 |
livecodebench_v6 | 3046 | 0 | exact_mtp_adaptive_d3_4 | 0 | stop | 3,794 | 65.722 |
livecodebench_v6 | 3193 | 0 | mode_biased_mtp_d6 | 1 | stop | 540 | 7.24 |
livecodebench_v6 | 3193 | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 571 | 10.138 |
livecodebench_v6 | 3195 | 0 | mode_biased_mtp_d6 | 1 | stop | 407 | 5.255 |
livecodebench_v6 | 3195 | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 527 | 7.606 |
livecodebench_v6 | 3206 | 0 | mode_biased_mtp_d6 | 1 | stop | 217 | 2.55 |
livecodebench_v6 | 3206 | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 327 | 4.725 |
livecodebench_v6 | 3265 | 0 | mode_biased_mtp_d6 | 1 | stop | 3,340 | 50.325 |
livecodebench_v6 | 3265 | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 2,666 | 47.669 |
livecodebench_v6 | 3308 | 0 | mode_biased_mtp_d6 | 1 | stop | 3,399 | 55.058 |
livecodebench_v6 | 3308 | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 2,173 | 40.962 |
livecodebench_v6 | 3353 | 0 | mode_biased_mtp_d6 | 1 | stop | 760 | 10.387 |
livecodebench_v6 | 3353 | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 1,020 | 16.298 |
livecodebench_v6 | 3387 | 0 | mode_biased_mtp_d6 | 1 | stop | 5,712 | 88.547 |
livecodebench_v6 | 3387 | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 3,422 | 62.155 |
livecodebench_v6 | 3438 | 0 | mode_biased_mtp_d6 | 1 | stop | 3,176 | 43.583 |
livecodebench_v6 | 3438 | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 3,059 | 50.5 |
livecodebench_v6 | 3455 | 0 | mode_biased_mtp_d6 | 1 | stop | 1,665 | 25.416 |
livecodebench_v6 | 3455 | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 1,814 | 33.222 |
livecodebench_v6 | 3508 | 0 | mode_biased_mtp_d6 | 1 | stop | 835 | 10.272 |
livecodebench_v6 | 3508 | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 572 | 8.182 |
livecodebench_v6 | 3535 | 0 | mode_biased_mtp_d6 | 1 | stop | 4,070 | 55.956 |
livecodebench_v6 | 3535 | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 2,585 | 44.556 |
livecodebench_v6 | 3608 | 0 | mode_biased_mtp_d6 | 1 | stop | 30,355 | 474.496 |
livecodebench_v6 | 3608 | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 23,969 | 438.373 |
livecodebench_v6 | 3653 | 0 | mode_biased_mtp_d6 | 1 | stop | 1,814 | 25.885 |
livecodebench_v6 | 3653 | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 3,237 | 57.834 |
livecodebench_v6 | 3656 | 0 | mode_biased_mtp_d6 | 1 | stop | 1,734 | 24.922 |
livecodebench_v6 | 3656 | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 1,262 | 21.953 |
livecodebench_v6 | 3676 | 0 | mode_biased_mtp_d6 | 1 | stop | 303 | 4.436 |
livecodebench_v6 | 3676 | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 446 | 7.644 |
livecodebench_v6 | 3736 | 0 | mode_biased_mtp_d6 | 1 | stop | 461 | 6.034 |
livecodebench_v6 | 3736 | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 876 | 13.6 |
livecodebench_v6 | 3765 | 0 | mode_biased_mtp_d6 | 1 | stop | 17,863 | 283.695 |
livecodebench_v6 | 3765 | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 14,750 | 281.041 |
livecodebench_v6 | 3779 | 0 | mode_biased_mtp_d6 | 1 | stop | 33,328 | 580.948 |
livecodebench_v6 | 3779 | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 48,110 | 988.502 |
livecodebench_v6 | abc301_f | 0 | mode_biased_mtp_d6 | 0 | length | 100,000 | 1,869.344 |
livecodebench_v6 | abc301_f | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 58,811 | 1,206.558 |
livecodebench_v6 | abc307_a | 0 | mode_biased_mtp_d6 | 1 | stop | 364 | 4.421 |
livecodebench_v6 | abc307_a | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 243 | 4.755 |
livecodebench_v6 | abc309_d | 0 | mode_biased_mtp_d6 | 1 | stop | 3,925 | 53.575 |
livecodebench_v6 | abc309_d | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 3,939 | 73.493 |
livecodebench_v6 | abc310_f | 0 | mode_biased_mtp_d6 | 1 | stop | 20,055 | 301.641 |
livecodebench_v6 | abc310_f | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 12,718 | 235.895 |
livecodebench_v6 | abc312_e | 0 | mode_biased_mtp_d6 | 1 | stop | 27,614 | 428.89 |
livecodebench_v6 | abc312_e | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 69,178 | 1,310.423 |
livecodebench_v6 | abc323_d | 0 | mode_biased_mtp_d6 | 1 | stop | 3,910 | 60.376 |
livecodebench_v6 | abc323_d | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 3,048 | 58.557 |
livecodebench_v6 | abc326_e | 0 | mode_biased_mtp_d6 | 1 | stop | 4,289 | 57.733 |
livecodebench_v6 | abc326_e | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 1,710 | 28.322 |
livecodebench_v6 | abc329_c | 0 | mode_biased_mtp_d6 | 1 | stop | 677 | 7.847 |
livecodebench_v6 | abc329_c | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 570 | 9.747 |
livecodebench_v6 | abc330_c | 0 | mode_biased_mtp_d6 | 1 | stop | 3,175 | 39.699 |
livecodebench_v6 | abc330_c | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 5,554 | 98.32 |
livecodebench_v6 | abc333_a | 0 | mode_biased_mtp_d6 | 1 | stop | 79 | 0.995 |
livecodebench_v6 | abc333_a | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 85 | 1.393 |
livecodebench_v6 | abc334_d | 0 | mode_biased_mtp_d6 | 1 | stop | 927 | 10.132 |
livecodebench_v6 | abc334_d | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 1,474 | 21.783 |
livecodebench_v6 | abc341_e | 0 | mode_biased_mtp_d6 | 1 | stop | 13,611 | 199.403 |
livecodebench_v6 | abc341_e | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 18,177 | 337.818 |
livecodebench_v6 | abc348_d | 0 | mode_biased_mtp_d6 | 1 | stop | 38,627 | 700.714 |
livecodebench_v6 | abc348_d | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 24,729 | 480.974 |
livecodebench_v6 | abc351_f | 0 | mode_biased_mtp_d6 | 1 | stop | 4,753 | 66.19 |
livecodebench_v6 | abc351_f | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 1,981 | 33.099 |
livecodebench_v6 | abc355_c | 0 | mode_biased_mtp_d6 | 1 | stop | 1,502 | 17.901 |
livecodebench_v6 | abc355_c | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 999 | 15.704 |
livecodebench_v6 | abc363_a | 0 | mode_biased_mtp_d6 | 1 | stop | 363 | 3.956 |
livecodebench_v6 | abc363_a | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 360 | 5.056 |
livecodebench_v6 | abc363_f | 0 | mode_biased_mtp_d6 | 0 | stop | 62,079 | 922.306 |
livecodebench_v6 | abc363_f | 0 | exact_mtp_adaptive_d3_4 | 0 | stop | 91,475 | 1,787.071 |
livecodebench_v6 | abc369_a | 0 | mode_biased_mtp_d6 | 1 | stop | 870 | 11.587 |
livecodebench_v6 | abc369_a | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 782 | 14.064 |
livecodebench_v6 | abc382_c | 0 | mode_biased_mtp_d6 | 1 | stop | 2,566 | 34.996 |
livecodebench_v6 | abc382_c | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 1,896 | 33.614 |
livecodebench_v6 | abc384_b | 0 | mode_biased_mtp_d6 | 1 | stop | 483 | 5.646 |
livecodebench_v6 | abc384_b | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 610 | 9.45 |
livecodebench_v6 | abc388_g | 0 | mode_biased_mtp_d6 | 1 | stop | 32,437 | 529.734 |
livecodebench_v6 | abc388_g | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 27,214 | 510.146 |
livecodebench_v6 | abc395_a | 0 | mode_biased_mtp_d6 | 1 | stop | 330 | 3.377 |
livecodebench_v6 | abc395_a | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 160 | 2.521 |
livecodebench_v6 | abc399_d | 0 | mode_biased_mtp_d6 | 1 | stop | 14,861 | 225.221 |
livecodebench_v6 | abc399_d | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 20,356 | 391.456 |
livecodebench_v6 | arc184_d | 0 | mode_biased_mtp_d6 | 1 | stop | 67,706 | 1,251.036 |
livecodebench_v6 | arc184_d | 0 | exact_mtp_adaptive_d3_4 | 0 | length | 100,000 | 2,213.948 |
livecodebench_v6 | arc188_c | 0 | mode_biased_mtp_d6 | 0 | stop | 22,944 | 388.215 |
livecodebench_v6 | arc188_c | 0 | exact_mtp_adaptive_d3_4 | 0 | stop | 23,676 | 431.999 |
livecodebench_v6 | arc192_b | 0 | mode_biased_mtp_d6 | 0 | stop | 21,501 | 343.466 |
livecodebench_v6 | arc192_b | 0 | exact_mtp_adaptive_d3_4 | 0 | stop | 27,603 | 533.638 |
livecodebench_v6 | arc196_a | 0 | mode_biased_mtp_d6 | 1 | stop | 33,770 | 571.171 |
livecodebench_v6 | arc196_a | 0 | exact_mtp_adaptive_d3_4 | 1 | stop | 23,512 | 460.542 |
Mode-biased MTP: paired accuracy and speed results
This dataset holds the paired results behind mode-biased multi-token prediction (mb-MTP): a way to run MTP speculative decoding that finishes answers sooner. In our paired tests, mb-MTP cut total time per answer by about 10% overall (time ratio 0.902, 95% CI 0.865-0.939) and raised generation throughput. The accuracy differences we measured are not statistically distinguishable from zero.
Headline results
- Faster to finish. Total time per answer fell on both benchmarks, and both confidence intervals exclude 1.0: 0.904 on LiveCodeBench v6 and 0.857 on GPQA Diamond.
- Higher throughput. Generation speed rose from 55.0 to 66.8 tokens/s on LiveCodeBench (+21%) and from 98.3 to 108.7 tokens/s on GPQA Diamond (+11%).
- Accuracy. No accuracy difference reaches significance at p<=0.05 (all p-values are two-tailed). Each 95% confidence interval includes zero.
What it is
Multi-token prediction (MTP) speculative decoding. A small draft head proposes several next tokens at once. The main model then checks all of them in a single pass. Normal ("exact") acceptance keeps a drafted token only in a way that reproduces the main model's sampling distribution exactly.
Mode-biased MTP. Mode-biased acceptance relaxes that rule toward the main model's most-preferred tokens. Drafted tokens that agree with the model's high-probability choices are accepted more often. That lets the drafter run deeper (depth 6 here), so more tokens are accepted per verification step and answers finish sooner.
Why KL numbers are not comparable. The bias moves probability toward the model's own preferred (modal) answers, so it is mode-seeking rather than random noise. We measured a KL divergence of about 0.009 against the exact distribution on generated text at depth 6. That number should not be compared with KL from quantization or other lossy changes. Those can push probability in arbitrary directions, including toward answers the model does not prefer. Mode-biased acceptance sharpens the model toward what it already favors.
Availability. mb-MTP ships in the llamAmpere llama.cpp fork and is on by default for MTP. To opt out, pass --no-spec-mb-mtp. The opt-in form is --spec-mb-mtp, and the environment variable is LLAMA_ARG_SPEC_MB_MTP.
Setup
- Model: the public Swift 1.5 (Qwen3.8 27B) IQ4_XS-M GGUF.
- Sampling: temperature 1.0, top-k 20, top-p 0.95, min-p 0, reasoning effort medium.
- Arms: exact MTP at adaptive depth 3/4 (the normal default) versus mode-biased MTP at fixed depth 6.
- Pairing: each pair is the same question, same seed, same RNG seed, and same GPU box, run back to back with the order alternated.
- Hardware: a single RTX 3090-class GPU.
- LiveCodeBench release v6: a 100-task subset (29 easy, 33 medium, 38 hard) with 15 seeds, giving 1,500 pairs. Each answer is graded with all public and hidden tests in isolated Docker containers.
- GPQA Diamond: all 198 questions with 2 seeds, giving 396 pairs.
- Statistics: paired differences, with bootstrap resampling clustered by question (10,000 draws). All p-values are two-tailed.
Results
Wall-clock time to finish an answer
Ratio of total time, mb-MTP over exact (lower is faster). In every row the 95% CI excludes 1.0.
| Benchmark | Time ratio (95% CI) | Reading |
|---|---|---|
| LiveCodeBench v6 | 0.904 (0.867-0.942) | about 9.6% less time per answer |
| GPQA Diamond | 0.857 (0.791-0.924) | about 14.3% less time per answer |
| Pooled | 0.902 (0.865-0.939) | about 9.8% less time per answer |
Throughput and answer length
| Benchmark | Generation throughput (exact to mb-MTP) | Mean answer length in tokens (exact to mb-MTP) |
|---|---|---|
| LiveCodeBench v6 | 55.0 to 66.8 tokens/s (+21%) | 12,698 to 13,926 |
| GPQA Diamond | 98.3 to 108.7 tokens/s (+11%) | 4,062 to 3,848 |
On LiveCodeBench, mb-MTP answers ran about 10% longer yet still finished sooner. A separate, earlier speed study on the same model measured a 5.3% faster time-to-complete for depth-6 mb-MTP (two-tailed p = 0.0019).
Accuracy
| Benchmark | Pairs | Exact MTP | mb-MTP | Difference | 95% CI | Two-tailed p |
|---|---|---|---|---|---|---|
| LiveCodeBench v6 | 1,500 | 88.20% | 87.13% | -1.07 pts | -2.27 to +0.13 | 0.085 |
| GPQA Diamond | 396 | 81.06% | 82.83% | +1.77 pts | -1.26 to +4.80 | 0.27 |
| Pooled | 1,896 (298 questions) | - | - | -0.47 pts | -1.60 to +0.65 | 0.45 |
None of the accuracy differences is statistically significant at p<=0.05 (two-tailed), and every 95% confidence interval includes zero. The pooled estimate across 298 questions is -0.47 points. In these tests, mb-MTP's speedup came with no statistically detectable change in accuracy. More seeds or questions would narrow the intervals further.
Why this matters
- Faster answers on consumer GPUs. Time to finish an answer dropped by roughly 10-14% in these paired tests, with higher generation throughput.
- A mode-seeking bias. Acceptance leans toward the model's own preferred answers instead of adding random noise.
- Deeper drafting pays off. Looser acceptance lets the drafter run at depth 6 and turn the extra proposed tokens into real speedups.
Files
data/paired_results.csv has one row per question, seed, and arm.
| Column | Description |
|---|---|
benchmark |
Benchmark name (LiveCodeBench v6 or GPQA Diamond) |
question |
Question or task identifier |
seed |
Seed index; both arms of a pair share it |
arm |
exact_mtp_adaptive_d3_4 or mode_biased_mtp_d6 |
correct |
1 if the answer was graded correct, otherwise 0 |
finish_reason |
Why generation ended (for example stop or length) |
completion_tokens |
Number of generated tokens |
wall_seconds |
Prompt plus generation time, as reported by the server |
Raw model responses and internal measurement tooling are not included.
How to reproduce the summary
import pandas as pd
df = pd.read_csv("data/paired_results.csv")
# Per-arm accuracy by benchmark
print(df.groupby(["benchmark", "arm"])["correct"].mean().unstack() * 100)
# Time ratio (mb-MTP total time / exact total time) by benchmark and pooled
tot = df.groupby(["benchmark", "arm"])["wall_seconds"].sum().unstack()
ratio = tot["mode_biased_mtp_d6"] / tot["exact_mtp_adaptive_d3_4"]
print(ratio)
pooled = df.groupby("arm")["wall_seconds"].sum()
print(pooled["mode_biased_mtp_d6"] / pooled["exact_mtp_adaptive_d3_4"])
The confidence intervals in the tables come from bootstrap resampling clustered by question (10,000 draws), which is not included in the snippet above.
Limitations
- One model (Swift 1.5, Qwen3.8 27B) and one quantization (IQ4_XS-M).
- Single-GPU class (RTX 3090-class); other hardware may behave differently.
- The accuracy tests are not powered to rule out small differences. The LiveCodeBench point estimate is -1.07 pts (two-tailed p = 0.085, 95% CI -2.27 to +0.13), which is not statistically distinguishable from zero.
- Seed counts are modest: 15 seeds for LiveCodeBench and 2 for GPQA Diamond, so the GPQA interval is wide.
- More LiveCodeBench answers hit the length cap with mb-MTP than with exact MTP: 36 versus 21 of 1,500 each. All GPQA Diamond answers finished normally in both arms.
- Downloads last month
- 33