Optimized Multi-Token Joint Decoding With Auxiliary Model for LLM Inference

Zongyue Qin, Ziniu Hu, Zifan He, Neha Prakriya, Jason Cong, Yizhou Sun

Executive Summary

Multi-Token Assisted Decoding (MTAD) is a novel inference framework designed to break the traditional trade-off between Large Language Model (LLM) speed and output quality. By approximating the joint distribution of multiple tokens using a small auxiliary model and a unique verification mechanism, MTAD achieves a 1.42× speedup and a 1.54× energy reduction over vanilla speculative decoding. Crucially, it simultaneously improves downstream task performance by up to 25%.

The Problem: The "Memory Wall" and Quality Stagnation

Large Language Models are notoriously expensive and slow to run. Their autoregressive nature—generating one token at a time—creates a "memory wall" where the GPU spends more time moving data from memory to compute units than actually performing calculations.

Existing solutions, such as speculative decoding, mitigate this inefficiency by using a tiny "draft" model to guess several tokens ahead. The large "target" model then verifies these guesses in parallel. However, these methods have a major limitation: they still sample tokens based on their individual, single-token probabilities. While this accelerates generation, it does nothing to improve the actual quality or reasoning capabilities of the output.

The authors argue that inference should instead sample from the joint distribution of multiple tokens—a concept known as Multi-Token Joint Decoding (MTJD). Theoretically, evaluating the probability of a whole sequence rather than individual words leads to lower perplexity and better reasoning. The primary challenge is that calculating this joint distribution exactly is computationally impossible for any meaningful sequence length due to the exponential size of the search space.

Introducing Multi-Token Assisted Decoding (MTAD)

To make joint decoding practical, the researchers introduce MTAD. This framework leverages the speed of speculative decoding but adapts it to approximate joint token distributions. The process unfolds in four main stages:

Illustration of the draft-and-verify process in assisted decoding.
  1. Drafting with Beam Search: Instead of simple autoregressive drafting, the small auxiliary model uses beam search to find a high-likelihood sequence of tokens. This serves as an efficient, bounded approximation of the joint distribution.
  2. Parallel Verification: The large target model evaluates the entire draft sequence in a single forward pass, maximizing GPU utilization.
  3. Joint Likelihood Thresholding: Unlike standard speculative decoding, which accepts or rejects tokens strictly one-by-one, MTAD uses a joint verification mechanism. It accepts the longest prefix of tokens where the ratio of the target model’s joint probability to the draft model’s joint probability remains above a predefined threshold.
  4. Correction: If a sequence is partially rejected, the target model provides a "correction" token sampled from its own distribution, ensuring at least one high-quality token is produced per iteration.

Key Insights

  • Quality is Not a Zero-Sum Game with Speed: The most significant insight from this research is that shifting from single-token to joint-token distributions can make a model "smarter" during the inference phase without requiring any retraining or fine-tuning.
  • The Energy Paradox: MTAD technically performs more floating-point operations (FLOPs) than standard decoding because of the auxiliary model's beam search. However, energy consumption in LLMs is dominated by memory access, not FLOPs. By reducing the number of times the large model's weights must be loaded from global memory, MTAD significantly cuts total power usage.
  • Robustness to "Bad" Tokens: Because MTAD evaluates the joint probability of a sequence, it can tolerate a locally low-probability token if it acts as a bridge to a highly probable overall sequence. This leads to longer accepted sequences than strict token-by-token verification.

Key Results

The authors evaluated MTAD across a diverse range of benchmarks, including Spider (text-to-SQL), MT-Bench (multi-turn conversation), HumanEval (Python coding), and CNN Dailymail (summarization), using Llama-2, Llama-3, and OPT model families.

Perplexity reduction as the number of jointly decoded tokens (K) increases.
  • Performance Boost: MTAD improved downstream task scores—such as Execution Accuracy in SQL and coding tasks—by an average of 25% compared to standard multinomial sampling.
  • Efficiency Gains: Compared to vanilla speculative decoding (the previous state-of-the-art for speed), MTAD was 1.42× faster and consumed 1.54× less energy.
  • Perplexity Reduction: The method consistently achieved lower perplexity (a measure of how well the model predicts the text) across all tested datasets, confirming the theoretical benefits of joint decoding over single-token generation.

Limitations and Future Work

While MTAD proves highly effective, the authors note a few areas for further exploration:

  • Draft Model Alignment: The efficiency of MTAD heavily depends on how well the small model's distribution aligns with the large model. If their predictions diverge too much, the acceptance rate drops, reducing speedups.
  • Beam Search Overhead: While beam search helps find better sequences, it adds computational overhead to the drafting phase. Finding the optimal "sweet spot" for beam width is crucial for maximizing net speed.
  • Tree-Based Verification: Combining MTAD with "tree-based" speculative decoding—where multiple draft paths are verified simultaneously—could potentially yield even higher speedups, though it would likely increase memory footprint.

Summary updated

BibTeX
@inproceedings{qin2025optimized,
  author = {Zongyue Qin and Ziniu Hu and Zifan He and Neha Prakriya and Jason Cong and Yizhou Sun},
  title = {{Optimized Multi-Token Joint Decoding With Auxiliary Model for LLM Inference}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=ZHhBawo3k5},
}
Figure