Benchmarking a Mid-Sized Open Model: Choosing Between MTP and MoE for Inference
This article examines how a 12B dense open model performs on unified-memory devices, and compares it with a 26B mixture-of-experts (MoE) model from the same family. It explains the difference between multi-token prediction (MTP) and speculative decoding, reviews test results showing that MTP gains depend heavily on task type, and outlines how to measure and choose between dense and MoE models for deployment.
Larger parameter counts do not automatically mean faster inference. On a given device and inference framework, real performance often determines whether a deployment is practical. This article looks at a mid-sized 12B model from an inference optimization perspective, covering its behavior on unified-memory devices and comparing the practical differences between multi-token prediction (MTP) and MoE architectures.
1. The 12B Model’s Position and Hardware Bottlenecks
Parameter count determines memory footprint and compute cost. Open-source models have traditionally clustered at two ends: small on-device models with 2B to 4B parameters, and cloud models with tens or even hundreds of billions of parameters. A 12B dense model sits between the two. It aims to deliver answer quality close to much larger models on consumer or enterprise workstations.
Unified-memory devices, such as desktop chips based on the ARM architecture, let the CPU and GPU share one memory pool. This removes the data copies that a PCIe bus would otherwise require. During decoding, however, the inference program must read the full set of model weights to generate each token. As a result, memory bandwidth usually becomes the bottleneck before compute does. The following formula estimates the upper limit on decoding speed:
Decoding speed upper limit (token/s) ≈ Memory bandwidth (GB/s) ÷ Data read per token (GB)
The data read per token depends on the parameter count and the quantization precision. Real speed also depends on framework overhead, caching, and scheduling, so the formula only gives an order-of-magnitude estimate. Final numbers must come from measurements on the target machine.
2. MTP and Speculative Decoding: Clarifying the Concepts
Multi-token prediction (MTP) and speculative decoding are often treated as the same thing, but they are implemented differently.
- MTP: During training, the model learns to predict several subsequent token positions in addition to the next one. At inference time, these extra prediction heads propose candidate tokens. This approach depends on whether the model itself was built with this structure.
- Speculative decoding: This approach typically uses a separate, smaller model to quickly generate candidate tokens. The large model then verifies them in a single forward pass. It does not require the large model to have any particular structure.
Both methods follow a draft-then-verify pattern. The drafting step is cheap, and the large model handles verification. The higher the acceptance rate of candidate tokens, the more valid tokens each forward pass produces, and the greater the speedup.
3. MTP Test Results for the 12B Model and Their Interpretation
The test compared baseline mode with MTP-enabled mode across several task categories, measuring throughput, latency, and acceptance rate. The results are shown below.
| Task Category | Acceptance Rate | Baseline Throughput (t/s) | MTP Throughput (t/s) | Decoding Speedup |
|---|---|---|---|---|
| Coding (code generation) | 0.7608 | 36.15 | 42.83 | 1.18 |
| Humanities | 0.5752 | 37.45 | 31.43 | 0.84 |
| Writing | Not disclosed | Not disclosed | Not disclosed | 0.74 |
The overall acceptance rate is about 0.6355. Overall average latency rose from 31.47 seconds to 36.61 seconds. Average latency for writing tasks increased from 35 seconds to 47 seconds.
These results show that the benefit of MTP depends heavily on task type. Candidate tokens in code generation are accepted more often, so coding tasks gained speed. Humanities and writing tasks had lower acceptance rates, with most candidate tokens rejected. The extra drafting computation and state rollback slowed decoding in those cases.
The report does not disclose the model version, inference framework version, hardware model, batch size, context length, warm-up count, number of repetitions, or the statistical method used for latency. For this reason, the numbers should be treated as a reference only and not generalized to other environments.
The data suggests the problem may lie in the implementation or adaptation layer rather than the model itself. Possible causes include wasted computation on rejected candidate tokens, and the overhead of clearing caches and rolling back state after rejection. These remain hypotheses that need verification. You can check them by:
- Reviewing inference logs to count accepted tokens per verification and the number of rollbacks.
- Comparing the number of memory allocations with MTP turned on and off.
- Recording acceptance rates by task category to find the scenarios where acceptance falls below the break-even point.
For most developers, the safer approach is to leave MTP off at first, and enable it only after the acceptance rate and speedup for the target workload have been verified.
4. The Bandwidth Advantage of MoE Architecture
The test also showed that a 26B mixture-of-experts (MoE) model from the same family achieved higher decoding speed and better resource utilization than the 12B dense model on the unified-memory device.
This result matches the bandwidth model. Take a 26B MoE model with about 4B active parameters. Each token needs computation over only 4B parameters. The 12B dense model reads all 12B parameters for each token. In theory, the weight reads differ by about a factor of three, which matters a great deal on a bandwidth-limited device.
MoE also has costs. All 26B parameters must stay resident in memory, which raises the memory capacity requirement. Routing operations also cause scattered memory access, so the real gain depends on the specific implementation. Model selection therefore has to weigh capacity, bandwidth, and inference framework support together.
To compare them, run both the 12B dense model and the 26B MoE model on the same machine, with the same framework, quantization method, and batch size. Measure time to first token, time per token, and peak memory usage.
5. Key Considerations for Cloud-Edge Deployment
When workloads fluctuate heavily and a single edge device cannot handle high concurrency, some traffic needs to move to the cloud. Common practices include the following.
- Container orchestration: Use Kubernetes to manage inference services, and configure horizontal Pod autoscaling based on queue length, GPU utilization, or custom metrics.
- Model distribution: Store model weights in object storage. Verify file hashes at deployment time, and cache the files locally on each node to avoid downloading large files repeatedly across nodes.
