The Basic Idea

Speculative decoding[1],[2] is an inference technique for increasing the throughput of an LLM. In its most basic form, there is a large/slow target model and a small/fast draft model. The draft model is used to quickly generate a draft sequence of the next (N) tokens1. Then, a single pass of the target model is used to obtain (N+1) next-token distributions2. A verification procedure takes the above information into consideration and decides how much of the draft sequence to accept (i.e. determine some (M\le N), and keep the first (M) draft tokens). Finally, an ((M+1)^{\text{st}}) token, which we will call the continuation token3, is sampled ei…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help