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

Faster Cascades via Speculative Decoding

About

Cascades and speculative decoding are two common approaches to improving language models' inference efficiency. Both approaches involve interleaving models of different sizes, but via fundamentally distinct mechanisms: cascades employ a deferral rule that invokes the larger model only for "hard" inputs, while speculative decoding uses speculative execution to primarily invoke the larger model in parallel verification mode. These mechanisms offer different benefits: empirically, cascades offer better cost-quality trade-offs, often even outperforming the large model, while theoretically, speculative decoding offers a guarantee of quality-neutrality. In this paper, we leverage the best of both these approaches by designing new speculative cascading techniques that implement their deferral rule through speculative execution. We characterize the optimal deferral rule for our speculative cascades, and employ a plug-in approximation to the optimal rule. Experiments with Gemma and T5 models on a range of language benchmarks show that our approach yields better cost quality trade-offs than cascading and speculative decoding baselines.

Harikrishna Narasimhan, Wittawat Jitkrittum, Ankit Singh Rawat, Seungyeon Kim, Neha Gupta, Aditya Krishna Menon, Sanjiv Kumar• 2024

Related benchmarks

TaskDatasetResultRank
Code GenerationMBPP (test)
Pass@156
411
SummarizationXSum (test)
ROUGE-24.97
276
Mathematical ReasoningGSM8K
Accuracy93
105
Question AnsweringWebQuestions
Accuracy37
66
Question AnsweringNaturalQA
Accuracy37
66
SummarizationCNNDM
ROUGE-211.74
62
SummarizationXsum
ROUGE-28.27
46
Question AnsweringTriviaQA
Accuracy62
42
Machine TranslationWMT'14
BLEU27.5
28
Text SummarizationCNNDM
ROUGE-2 Score15.7
28
Showing 10 of 20 rows

Other info

Follow for update