scimeatlas

Research map / Architectures and efficiency / Attention and transformers

Fast Inference from Transformers via Speculative Decoding

Yaniv Leviathan, Matan Kalman, Yossi Matias

ICML 2023Architectures and efficiency › Attention and transformersapproach: Efficient language transformersopen problems in this approach32 citations (OpenAlex)

Google · Tel Aviv University

Read the paperPlace an idea next to itCheck your own paper ↗

8measured effects
5improved
3hurt

AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use a smaller off-the-shelf approximation model (T5-small 77M) instead of running the target aloneT5-XXL decoding · EnDe and CNNDMspeed-up (walltime): 3.4X argmax / 2.6X sampling on EnDe; 3.1X / 2.3X on CNNDMImproved
Replace T5-small draft with T5-large draft (larger approximation model) (ablation)T5-XXL speculative decoding · EnDe, temp=0speed-up: 1.7X vs 3.4X for T5-smallHurt
Use trivial bigram model as approximation model instead of T5-small (ablation)T5-XXL speculative decoding · EnDeacceptance rate alpha (temp=1): 0.19 vs 0.62 for T5-smallHurt
Larger approximation model increases acceptance rate (ablation)T5-XXL speculative decoding · EnDe and CNNDMacceptance rate alpha: alpha rises from 0.75 (T5-small) to 0.82 (T5-large) at temp=0Improved
Lenience (accept draft tokens when q scaled by l) with T5-small draft (ablation)T5-XXL speculative decoding, standard sampling · EnDeacceptance rate alpha: alpha 0.62 at l=1 to 0.84 at l=0.1Improved
Use n-gram/unigram draft instead of a neural draft (ablation)T5-XXL and GPT-like targets · EnDe, CNNDM, lm1bacceptance rate alpha: unigram alpha 0.03-0.13 across settingsHurt
Sharper (argmax, temp=0) sampling instead of standard sampling (ablation)T5-XXL speculative decoding · EnDe and CNNDM with T5-small draftspeed-up: 3.4X vs 2.6X (EnDe); 3.1X vs 2.3X (CNNDM)Improved
Using a 6M GPT-like decoder draft instead of a 97M target-level model on unconditional lm1b (ablation)GPT-like 97M target · lm1b unconditional generationacceptance rate alpha (temp=1): 0.89 vs 0.05 for bigramImproved

Open problems in efficient language transformers

Which efficient transformer designs keep their quality, speed and memory gains at larger scale and in more languages?

All 5 open problems and what was already tried →

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy