English

QSpec: Speculative Decoding with Complementary Quantization Schemes

Machine Learning 2025-10-03 v3 Artificial Intelligence

Abstract

Quantization is widely adopted to accelerate inference and reduce memory consumption in large language models (LLMs). While activation-weight joint quantization enables efficient low-precision decoding, it suffers from substantial performance degradation on multi-step reasoning tasks. We propose QSpec, a novel quantization paradigm that decouples efficiency from quality by integrating two complementary schemes via speculative decoding: low-precision joint quantization for fast drafting and high-precision weight-only quantization for accurate verification. QSpec reuses both weights and KV cache across stages, enabling near-zero-cost switching without retraining or auxiliary models. Compared to high-precision baselines, QSpec achieves up to 1.64x speedup without quality degradation, and outperforms state-of-the-art speculative decoding methods by up to 1.55x in batched settings. Furthermore, QSpec supports plug-and-play deployment and generalizes well across model scales, quantization methods, and workloads. These properties make QSpec a practical and scalable solution for high-fidelity quantized LLM serving under memory-constrained scenarios. Our code is available at https://github.com/hku-netexplo-lab/QSpec.

Keywords

Cite

@article{arxiv.2410.11305,
  title  = {QSpec: Speculative Decoding with Complementary Quantization Schemes},
  author = {Juntao Zhao and Wenhao Lu and Sheng Wang and Lingpeng Kong and Chuan Wu},
  journal= {arXiv preprint arXiv:2410.11305},
  year   = {2025}
}