Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

GRIFFIN: Effective Token Alignment for Faster Speculative Decoding

About

Speculative decoding accelerates inference in large language models (LLMs) by generating multiple draft tokens simultaneously. However, existing methods often struggle with token misalignment between the training and decoding phases, limiting their performance. To address this, we propose GRIFFIN, a novel framework that incorporates a token-alignable training strategy and a token-alignable draft model to mitigate misalignment. The training strategy employs a loss masking mechanism to exclude highly misaligned tokens during training, preventing them from negatively impacting the draft model's optimization. The token-alignable draft model introduces input tokens to correct inconsistencies in generated features. Experiments on LLaMA, Vicuna, Qwen and Mixtral models demonstrate that GRIFFIN achieves an average acceptance length improvement of over 8% and a speedup ratio exceeding 7%, outperforming current speculative decoding state-of-the-art methods. Our code and GRIFFIN's draft models are released publicly in https://github.com/hsj576/GRIFFIN.

Shijing Hu, Jingyang Li, Xingyu Xie, Zhihui Lu, Kim-Chuan Toh, Pan Zhou• 2025

Related benchmarks

TaskDatasetResultRank
General speculative decoding performanceMean (MT-Bench, HumanEval, GSM8K)
Average Acceptance Length (τ)5.95
112
Mathematical ReasoningGSM8K
Tau ($ au$)5.58
97
Speculative DecodingGSM8K
Average Generation Length (τ)5.47
81
ChatMT-Bench--
73
Speculative DecodingMT-Bench
Tau (τ)5.11
53
Code GenerationHumanEval
Success Rate (SR)3.73
43
Multi-turn conversationMT-Bench
SR2.95
43
Code GenerationHumanEval
Avg Acceptance Length (τ)6.72
20
Multi-turn dialogueMT-Bench
Acceptance Length (τ)5.14
20
Mathematical ReasoningGSM8K
Average Acceptance Length (τ)5.98
20
Showing 10 of 20 rows

Other info

Follow for update