Evaluating Edge MTP Acceleration: Dense vs. MoE Models

    Multi-Token Prediction (MTP) is a common acceleration technique for Large Language Model inference, but its performance on edge devices varies significantly depending on model architecture and task type. This article analyzes empirical test results of deploying MTP on edge devices, comparing a dense model against a Mixture of Experts (MoE) model. We explore where MTP yields positive gains, why it sometimes leads to negative optimization in open-ended tasks, and provide practical optimization recommendations and a checklist for edge deployment.

    The Bottleneck of Medium-Scale Model Inference on Edge Devices

    In recent years, open-source Large Language Models (LLMs) have developed rapidly. Medium-scale models with around ten billion parameters strike a good balance between reasoning capability and hardware footprint, making them a common choice for local edge deployment. However, on unified memory devices, both memory bandwidth and compute capacity are constrained, making generation speed typically the first bottleneck encountered.

    Multi-Token Prediction (MTP) is a commonly used acceleration method. It first uses a lightweight mechanism to rapidly propose several candidate tokens, which are then verified in parallel by the main model. Accepted tokens can be output at once, reducing the overhead of sequential generation. This article uses MTP to refer to this enabled feature in the tests. Its drafting and parallel verification approach is identical to speculative decoding, though specific implementation details vary by framework.

    Core Metric: Acceptance Rate Determines the Gain

    The acceleration effect primarily depends on the acceptance rate, which is the proportion of candidate tokens accepted by the main model. When the acceptance rate is high, more tokens can be produced within a single time step, thereby increasing throughput. If the acceptance rate is low, the main model must discard a large number of candidate results while still bearing the verification overhead, which can actually decrease overall speed.

    Therefore, to determine if MTP is beneficial, one should simultaneously examine three metrics: acceptance rate, tokens generated per second (tokens/s), and per-request latency. Looking at only one metric can easily lead to biased conclusions.

    Test Scope and Data Range

    The empirical tests in this article cover various task categories, including programming, humanities, math, Q&A, RAG, reasoning, writing, multilingual, summarization, and role-playing. The comparison is made between a recently open-sourced medium-parameter dense model and a large-scale Mixture of Experts (MoE) model from the same series.

    The original tests did not disclose specific hardware models, framework versions, model quantization methods, batch sizes, sampling parameters, or sample sizes per task category. Therefore, the following data should be treated as directional references. Readers are advised to conduct their own tests on their devices before making decisions.

    Dense Models: Overall Negative Optimization with Localized Gains

    The overall average results show that the baseline speed (without MTP) was 36.42 tokens/s, while with MTP enabled, it dropped to 31.67 tokens/s. The speed ratio was 0.87x, a decrease of about 13%. The average latency increased from 31.473 seconds to 36.611 seconds, an increase of roughly 16%. The average acceptance rate was 0.6355.

    When broken down by task, the differences are significant:

    1. Programming tasks yielded the best results. Speed increased to 1.18x, with an acceptance rate of 0.76, and latency dropped from 28.6 seconds to 24.4 seconds. The structured syntax of code makes draft predictions highly accurate.
    2. RAG tasks had an acceptance rate of 0.81, with speed remaining basically flat. RAG answers often rely on retrieved content, resulting in higher text repetition, making it easier for drafts to hit the target.
    3. Q&A tasks had an acceptance rate of 0.64, with a slight decrease in speed.
    4. Reasoning tasks had an acceptance rate of 0.61, and speed dropped to 0.80x.
    5. Writing tasks had an acceptance rate of 0.58, speed dropped to 0.74x, and latency increased from 35 seconds to 47 seconds, representing the largest loss among all tested categories.

    Overall, enabling MTP for the dense model is not cost-effective for most open-ended tasks.

    Mixture of Experts Models: Qualitative Conclusions with Incomplete Data

    The original test provided qualitative conclusions for the MoE model. After enabling MTP, the overall speed did not experience the noticeable decline seen in the dense model, and some task categories achieved positive acceleration.

    This performance is related to MoE’s computation method. During inference, MoE only activates a subset of expert parameters, so the actual number of parameters involved in computation is much smaller than the total. Therefore, on bandwidth-constrained unified memory devices, the additional parallel verification exerts relatively less pressure on memory read/write operations. While this explanation aligns with architectural characteristics, the original test did not provide a side-by-side comparison table between MoE and dense models under identical conditions, making it impossible to directly quantify the gap. For model selection, it is recommended to test both model types separately using identical inputs, quantization methods, and sampling parameters.

    Why Dense Models Prone to Negative Optimization

    There are three possible reasons for the negative optimization in dense models:

    1. Shifting of the Bottleneck: The decoding phase is often limited by memory bandwidth, but parallel verification increases the computational load. If compute becomes the new bottleneck, the gains in bandwidth reduction are offset. Which side reaches the bottleneck first requires empirical testing to determine.
    2. Output Distribution Deviation in Open-Ended Tasks: Creative writing and complex reasoning involve highly variable outputs, making it difficult for the draft model to match the main model’s probability distribution. The more candidate tokens are rejected, the more compute power and memory access are wasted. The acceptance rate of 0.58 for writing tasks is consistent with this explanation.
    3. Framework Scheduling Overhead: Cache management, the organization of candidate sequences, and the verification process all introduce fixed overhead. In long-text generation, if the acceleration gains are insufficient to cover these overheads, overall latency will rise.

    Practical Recommendations for Edge Inference Optimization

    Based on the above data, developers can make decisions in the following order:

    1. Decide Whether to Enable MTP Based on Task Type. Structured tasks like code completion and templated text generation are worth trying first. In these tests, programming tasks reached a maximum of about 1.18x, though this is a single test result and does not guarantee the same across all coding scenarios. It is recommended to disable MTP for creative writing and complex reasoning tasks, using standard autoregressive decoding to ensure stable throughput.
    2. Perform Quantization First, Then Evaluate MTP. Model quantization (e.g., INT4, INT8) can reduce memory footprint and bandwidth pressure. Although this article did not test the impact of quantization on MTP, you should generally tune the basic inference to an acceptable state before stacking speculative acceleration, making it easier to isolate gains and losses.
    3. Partition Edge-Cloud Workloads as Needed. For high-concurrency, low-latency, or lengthy inference chain tasks, edge compute power may be insufficient. Edge devices can handle intent recognition, simple Q&A, and data preprocessing, while heavy workloads are offloaded to cloud inference services. When selecting an architecture, clarify several constraints: latency targets (whether P95 meets interactive requirements), data masking methods, bandwidth and cloud call costs, and data localization and industry compliance boundaries.
    4. When User Data is Involved, Confirm Data Retention and Transmission Rules Before Edge-Cloud Collaboration. Content uploaded to the cloud should be masked first, and raw sensitive text should not be retained in logs.

    Pre-Launch Checklist

    Before officially enabling MTP, it is recommended to conduct A/B testing on target devices and monitor the following metrics:

    • Acceptance Rate: Track by task type separately. Disable acceleration if it falls below a set threshold.
    • Speed and Latency: Look at both the average and P95 latency to avoid focusing solely on average speed.
    • Memory and VRAM Usage: Ensure that enabling MTP does not exceed the device’s available headroom.
    • Output Quality: Verify that output quality remains consistent before and after acceleration.

    Specific thresholds should be set according to business requirements; this article does not provide universal values.

    Conclusion

    The effectiveness of speculative decoding-like acceleration technologies is not universal. Model architecture (dense vs. MoE), task type (structured vs. open-ended), and hardware characteristics (memory bandwidth vs. compute ratio) collectively determine the magnitude of the gain. During edge deployment, decisions to toggle the acceleration feature per scenario should be driven by empirical acceptance rates and latency. This approach is more reliable than blindly enabling the acceleration option and makes it easier to maintain stable performance.