Editorial illustration for Researchers embed mask token in LLM weights to achieve 3× faster inference
LLM Inference Slashed: Mask Token Hack Boosts Speed 3x
Researchers embed mask token in LLM weights to achieve 3× faster inference
Everyone wants faster AI. Almost nobody wants to rebuild their entire system to get it. Researchers have just shown a way to get both: three times faster inference by tweaking the model's own brain, not its house.
The trick is a mask token. They embedded it directly into the model's weights, hijacking a slot in its vocabulary that wasn't being used. This token lets the model, when it's feeling confident, predict several words in one go instead of the usual plodding, one-word-at-a-time crawl.
The entire existing architecture, any production pipeline, stays exactly the same. You just get more words per second.
By co-opting an unused slot in a model's existing embedding matrix to act as an
mask token, the technique converts sequential operations into parallel ones. "Any standard next token prediction language model can be adapted in this way... the internal implementation -- MoE, windowed attention, SSM layers, etc. -- are left untouched and present no barrier to adaptation." For engineering teams, this means the adaptation can be applied to models already in production without rebuilding pipelines. Generating multiple tokens at the same time can still hurt the accuracy of the response at inference time. To maximize generation speed without sacrificing the quality of the output, the authors introduce an adaptive decoding strategy called ConfAdapt.
ConfAdapt evaluates a confidence threshold, such as 90%, at each step. The model generates a block of tokens, but it only keeps the tokens that meet or exceed this high-confidence threshold. When the upcoming text is highly predictable or structural, the model's confidence is very high.
It will accept and output a large chunk of tokens all at once, saving significant computational time on easy tokens. It then focuses its costly single-token passes on harder tokens that require more computational effort. Putting multi-token prediction to the test To see how the training paradigm performed in practice, the researchers applied their method to popular open-weight instruction-tuned models.
They tested the strong general-purpose model Llama-3.1-8B-Magpie and the smaller, efficient Qwen3-4B-Instruct-2507, which is often chosen for cost-sensitive enterprise deployments. Both models were tuned on MetaMathQA, a dataset of synthetic grade school math problems that rely heavily on reasoning traces. The experiments revealed a clear sweet spot between speed and accuracy.
Raw speed is useless if the model starts spitting nonsense. So they added a guardrail called ConfAdapt. The model checks its own confidence.
For boilerplate or simple text, it blasts through whole phrases. When the next word is tricky, it downshifts, taking the careful, expensive route. It knows when to sprint and when to walk.
Tests on models like Llama-3.1-8B and Qwen3-4B confirmed it works. The method found a balance. Not maximum possible speed, but maximum useful speed.
The gain is real, and it doesn't demand a revolution. It's an edit. For teams already running these models, the slow part just got a lot quieter.
Common Questions Answered
How does FastMTP improve LLM inference performance?
FastMTP accelerates LLM inference by fine-tuning a multi-token prediction (MTP) head with position-shared weights, enabling it to capture dependencies among consecutive future tokens. The method achieves an average 2.03× speedup compared to standard next token prediction, outperforming vanilla MTP by 82% while maintaining output quality.
What makes FastMTP different from existing speculative decoding approaches?
Unlike traditional speculative decoding methods, FastMTP integrates language-aware dynamic vocabulary compression into the MTP head to reduce computational overhead during the drafting process. The approach requires only lightweight training and can seamlessly integrate with existing inference frameworks, offering a practical solution for accelerating LLM inference.
Why is autoregressive token generation a bottleneck for large language models?
Current LLMs generate text sequentially, producing only one token per forward pass, which means the overall generation time scales linearly with sequence length. This becomes particularly problematic for scenarios requiring extensive generation, such as complex reasoning tasks that involve generating long chain-of-thought explanations.
Further Reading
- DART: Diffusion-Inspired Speculative Decoding for Fast LLM Inference — arXiv
- Simon Willison on llm-performance — Simon Willison
- AI News Briefs BULLETIN BOARD for February 2026 — Radical Data Science