RCSD: Reinforcement and Continual Learning for Domain-Specific Speculative Decoding
Abstract
Speculative decoding accelerates large language model inference by employing a compact draft model to propose candidate tokens that are verified in parallel by a target model. Conventional training relies on soft-label distillation, which forces the draft model to mimic the target's full output distribution, including high-entropy regions that degrade acceptance rates and increase early rejection risk. We propose RCSD (Reinforcement and Continual Learning for Speculative Decoding), a training framework that aligns draft model optimization with the system-level objective of maximizing acceptance length. RCSD leverages naturally occurring accepted and rejected sequences during speculative inference to construct implicit preference pairs, with masked loss to avoid penalizing target-aligned tokens. Evaluated across multiple benchmarks, RCSD improves average acceptance length by 35% over HASS and achieves 1.35x faster end-to-end inference than HASS on practical workloads, without compromising generation quality.
Figures & tables
| Dataset | Model | Step 3 | Step 4 | Step 5 | Step 6 |
| HumanEval | HASS | 2.322 | 2.446 | 2.510 | 2.533 |
| HASS + DPO | 2.616 | 2.780 | 2.922 | 3.014 | |
| HASS + GRPO | 2.629 | 2.807 | 2.928 | 3.015 | |
| MT-Bench | HASS | 1.986 | 2.047 | 2.072 | 2.092 |
| HASS + DPO | 2.333 | 2.442 | 2.537 | 2.571 | |
| HASS + GRPO | 2.346 | 2.467 | 2.549 | 2.601 |
| Dataset | Model | Step 3 | Step 4 | Step 5 | Step 6 |
| HumanEval | HASS | 2.731 | 2.950 | 3.103 | 3.202 |
| HASS + DPO | 2.896 | 3.185 | 3.391 | 3.540 | |
| HASS + GRPO | 2.897 | 3.189 | 3.402 | 3.558 | |
| MT-Bench | HASS | 2.282 | 2.397 | 2.438 | 2.497 |
| HASS + DPO | 2.420 | 2.595 | 2.674 | 2.731 | |
| HASS + GRPO | 2.426 | 2.596 | 2.692 | 2.736 |
Speculative Decoding
Speculative decoding accelerates generation by drafting multiple tokens and verifying them in parallel with a larger target model.
See all 308 papers