SpecRouter: Reusable Payoff Prediction for Cost-Aware Speculative Decoding
Summary
- Researchers introduce ReFit, a cost-aware speculative decoding framework that decouples token generation payoff prediction from hardware-specific cost modeling.
- A compact 0.58M-parameter predictor reads the target model hidden states to estimate committed tokens for various drafter types, while a separate calibrated cost model prices each drafter.
- Evaluations show ReFit achieves 2.75x and 2.95x decoding speedups on Llama-3.1-8B and Qwen3-8B respectively, outperforming fixed drafter methods like EAGLE-3.
- The approach uses offline-computable training data without exploration and relies on recalibrating only the cost model when deploying across different hardware.
Why it matters
ReFit significantly accelerates large language model inference by dynamically selecting the most cost-effective speculative decoding drafter based on real-time hardware and workload constraints.