Quasar: Quantized Self-Speculative Acceleration for Rapid Inference via Memory-Efficient Verification
Organizations: HKUST(GZ), Guangzhou, China · HKUST, Hong Kong, China
Abstract
Speculative Decoding (SD) has emerged as a premier technique for accelerating Large Language Model (LLM) inference by decoupling token generation into rapid drafting and parallel verification. While recent advancements in self-speculation and lookahead decoding have successfully minimized drafting overhead, they have shifted the primary performance bottleneck to the verification phase. Since verification requires a full forward pass of the target model, it remains strictly memory-bandwidth bound, fundamentally limiting the maximum achievable speedup.In this paper, we introduce Quasar (Quantized Self-speculative Acceleration for Rapid Inference), a novel, training-free framework designed to overcome this "memory wall" by employing low-bit quantization specifically for the verification stage. Our empirical analysis reveals that while aggressive structural pruning significantly degrades verification accuracy, quantization-based verification preserves the logit distribution with high fidelity while effectively halving memory traffic. Extensive experiments on state-of-the-art models (e.g., OpenPangu and Qwen3) demonstrate that Quasar maintains a speculative acceptance length comparable to full-precision methods while achieving a improvement in end-to-end throughput. Being orthogonal to existing drafting strategies, Quasar offers a generic and efficient pathway to accelerate the verification leg of speculative execution. Code is available at https://github.com/Tom-HG/Quasar.
Figures & tables
| Task | MT-bench | HumanEval | GSM8k | Alpaca | CNN/DM | Overall | |||||||
| OpenPangu | |||||||||||||
| Method | Speed | Speed | Speed | Speed | Speed | Speed | |||||||
| T=0 | Vanilla | 1.00× | 1.00 | 1.00× | 1.00 | 1.00× | 1.00 | 1.00× | 1.00 | 1.00× | 1.00 | 1.00× | 1.00 |
| Ngram | 1.04× | 1.21 | 1.13× | 1.36 | 1.23× | 1.44 | 1.01× | 1.16 | 1.03× | 1.19 | 1.08× | 1.27 | |
| Quasar | 1.11× | 1.25 | 1.22× | 1.41 | 1.26× | 1.46 | 1.06× | 1.17 | 1.02× | 1.15 | 1.13× | 1.29 | |
| T=1 | Vanilla | 1.00× | 1.00 | 1.00× | 1.00 | 1.00× | 1.00 | 1.00× | 1.00 | 1.00× | 1.00 | 1.00× | 1.00 |
| Temperature | Ngram (BF16) | Quasar (W8A8) | ||
|---|---|---|---|---|
| Speed | Speed | |||
| 1.18 | 1.33 | 1.28 | 1.40 | |
| 1.17 | 1.31 | 1.27 | 1.39 | |
| 1.16 | 1.30 | 1.26 | 1.38 | |
| 1.15 | 1.29 | 1.25 | 1.36 | |
| 1.14 | 1.28 | 1.24 | 1.35 | |
| Method | Metric | Speculative Tokens ( ) | ||||
|---|---|---|---|---|---|---|
| 3 | 5 | 7 | 9 | |||
| (1, 3) | Ngram | Speed | 1.27 | 1.28 | 1.23 | 1.23 |
| 1.35 | 1.43 | 1.49 | 1.52 | |||
| Quasar | Speed | 1.34 | 1.47 | 1.45 | 1.42 | |
| 1.44 | 1.46 | 1.49 | 1.59 | |||
| (2, 4) | Ngram | Speed | 1.14 | 1.21 | 1.28 | 1.29 |
| Benchmark (Acc ) | OpenPangu-7B | Qwen3-8B | ||
|---|---|---|---|---|
| Score | Score | |||
| MMLU-pro | 75.5 | 2.4% | 63.1 | 2.5% |
| CEval | 84.9 | 3.9% | 83.4 | 1.3% |
| GPQA-Diamond | 73.2 | 2.5% | 62.0 | 3.1% |
| MATH-500 | 97.0 | 3.6% | 87.4 | 2.1% |
| AIME24 | 79.3 | 3.4% | 76.0 | 4.5% |
| Method | Retention / Precision | Speedup | |
| Vanilla (Full Model) | 100% Layers / BF16 | 1.00 | 1.00 |
| Structural Pruning | |||
| Pruned-90% | 90% Layers / BF16 | 1.62 | 0.80 |
| Pruned-75% | 75% Layers / BF16 | 1.27 | 0.68 |
| Pruned-50% | 50% Layers / BF16 | 1.03 | 0.62 |
| Ours |
LLM Inference Acceleration
LLM inference acceleration develops algorithms and systems that reduce language-model latency, memory use, and serving cost while preserving output quality.
See all 1,080 papers