ValuSpec: Plug-and-Play Candidate Valuation before Target Verification for Tree-Based Speculative Decoding
Liang He, SiYuan Ma, Qishi Zhan, Yongqi Fan, Mingyu Cao, Qizhen Lan, Zhaolu Kang, Xilu Wang
NeurIPS page · Open on the map
Category: Efficient LLM Inference & Training › Speculative Decoding Optimization · Type: new method · Keywords: speculative decoding, candidate filtering, plug-and-play, LLM inference acceleration, tree-based decoding, verification efficiency
Summary
ValuSpec is a plug-and-play candidate valuation mechanism that filters low-quality branches from tree-based speculative decoding, achieving up to 2.78× end-to-end speedup.
Explained to a 5-year-old
A big computer that talks, like a chatbot, makes many possible answers at the same time to be faster. But many of those answers are not good, so checking them takes a lot of time. We found a way to look at those answers and keep only the good ones before checking. To know which ones are good, we look at a few examples the computer already knows. This makes the computer give answers faster without changing how it works.
Explained to a 5-year-old, longer
When a big computer talks to people, it needs to think of answers quickly. It can try many possible answers at once to speed things up. But sometimes it makes a lot of wrong guesses, which wastes time. Other methods try to remember old guesses, but they still have many bad ones. We created a simple filter that looks at those guesses and removes the bad ones before checking. To learn what is good, we show the computer a few examples it already knows. This filter works without changing the computer’s memory or training it. After filtering, the computer checks only the good guesses, which makes the whole process faster. The filtered guesses are still guaranteed to match the answers the computer would give normally. This helps the computer serve many people more quickly and use less energy.
For a technical reader
The paper presents a filter that removes low-quality speculative candidates before verification, using a threshold derived from the target model’s greedy paths on a calibration set. This filter is plug-and-play, works with any tree-based speculative decoder, and guarantees that accepted tokens match standard autoregressive decoding. Experiments show up to 2.78× end-to-end speedup when integrated with existing frameworks.
Problem
Tree-based speculative decoding generates many low-quality candidate branches, especially when reusing historical drafts, which reduces verification efficiency and wastes computation. This limits the speedups achievable in practical serving scenarios.
Method
The approach introduces transfer-based supervision to align a filtering mechanism with the target model's behavior, estimates a filtering threshold from the target model's greedy trajectories on a calibration split without training, and then verifies the filtered tree using the target model's greedy rule to guarantee output-identical decoding.
Results
The approach achieves up to 2.38× end-to-end speedup in retrieval-based tree settings and up to 2.78× speedup when integrated with the EAGLE-3 dynamic tree framework.
Contributions
A plug-and-play candidate valuation mechanism that filters low-quality branches using transfer-based supervision, a threshold estimation method without parameter training, and verification that guarantees output-identical decoding. Demonstrations of significant speedups on multiple benchmarks and compatibility with existing tree-based frameworks.
Practical relevance
The approach reduces inference latency and computational cost for serving large language models, enabling faster response times in production environments.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction