NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Fast Large Language Model Collaborative Decoding via Speculation

Jiale Fu, Yuchu Jiang, Junkai Chen, Jiaming Fan, Xin Geng, Xu Yang

Collaborative decoding techniques for Large Language Models (LLMs) improve output quality by combining the strengths of multiple models at each generation step. However, this collaboration comes at a steep computational cost. Collaborative decoding via Speculation (CoS) is a novel framework that adapts speculative decoding to multi-model setups, achieving speedups of up to 2.23x with zero loss in generation quality.

The "Collaboration Tax"

In the quest for better LLMs, researchers often use collaborative decoding, which involves combining the outputs of multiple models at each step. Common applications include:

  • Ensembling: Averaging predictions of several models to improve overall accuracy.
  • Contrastive Decoding: Subtracting a smaller, "amateur" model's logits from a larger model's logits to reduce hallucinations.
  • Realignment: Combining a base model with a safety-aligned model to control behavior.

The catch is that these methods are painfully slow. If you collaborate with two models, inference time roughly doubles because both models must perform a full forward pass for every single token. The authors tackle this "collaboration tax," aiming to provide the quality benefits of multiple models at the speed of a single model.

Collaborative Decoding via Speculation (CoS)

To solve this inefficiency, the authors build on the foundation of Speculative Decoding (SD). In standard SD, a tiny "draft" model guesses a sequence of tokens sequentially, and a larger "target" model verifies them all at once in a single parallel pass.

CoS introduces two major innovations to adapt this paradigm to collaborative settings:

Comparison of decoding methods
  1. Naive-CoS: The authors realized that the "target" for verification doesn't have to be a single model. It can be the mathematically combined distribution of the entire ensemble. By treating the collaborative result as the target, they can use a single model to "propose" tokens and the combined ensemble to "verify" them.
  2. Alternate Proposal Framework (APF): In standard speculation, the roles of "proposer" and "verifier" are strictly fixed. CoS breaks this hierarchy. When a verifier accepts a sequence, it often generates an extra "bonus token." In CoS, this bonus token is treated as a high-quality new proposal, and the models effectively swap roles. This keeps the computation pipeline full and avoids wasting the verifier's extra work.
Alternate Proposal Framework

Key Insights and Performance

The researchers evaluated CoS across a diverse range of standard benchmarks (HumanEval, GSM8K, MMLU, CNNDM) using various model families (Llama-2, Llama-3, Vicuna, Qwen-2.5, and OPT) ranging from 68M to 13B parameters.

  • Zero-Loss Acceleration: Unlike some decoding methods that slightly alter outputs, CoS is mathematically guaranteed to produce the exact same token distribution as the original collaborative method. It is a completely lossless acceleration.
  • Mathematical Guarantee of Speed: The authors provide a theoretical proof that CoS is never slower than standard collaborative decoding. Even in the worst-case scenario where every guess is wrong, it defaults back to the speed of the original method.
  • Significant Speedups: CoS achieved speedups of 1.34x–1.85x for weighted ensembles and 1.11x–2.23x for contrastive decoding.
  • Hardware Agnostic: The results were consistent across different hardware, including NVIDIA GPUs (RTX 3090/A6000) and Huawei NPUs (Ascend 910B3).

Limitations and Future Work

While highly effective, CoS has a few areas for future refinement:

  • Hyperparameter Tuning: Performance depends on the "proposal length." If the proposer guesses too many tokens that get rejected, efficiency drops. Finding the optimal length dynamically is a suggested area for future research.
  • Communication Overhead: In distributed settings where models reside on different chips, the communication overhead of passing proposals back and forth could reduce the net speed gains.
  • Complex Combinations: The current study focuses on linear combinations of logits or probabilities. Future work could explore how CoS handles more complex, non-linear collaboration functions.

Summary updated

BibTeX
@inproceedings{fu2025fast,
  author = {Jiale Fu and Yuchu Jiang and Junkai Chen and Jiaming Fan and Xin Geng and Xu Yang},
  title = {{Fast Large Language Model Collaborative Decoding via Speculation}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=SGrJ8a9a5U},
}
Figure