Log inStart free
LESSON 30.C2 · 6 STAGES · 3 CONTROLS · 2 CHECKSPRO · PREVIEW

Speculative decoding variants at equal acceptance rate

Watch five ways to guess tokens race at one acceptance rate.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 2 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 30.C2 · DECODE BAYα 8/12 ≈ 0.67 · MEAN β 0.67
01
Stage 1 of 6 · One rate
Every guesser keeps 8 of 12 words: an acceptance rate α ≈ 0.67. The sampling draft has the same mean β.
Explain it simply

To compare five ways of guessing fairly, each guesser here is right equally often. The boxes show the guess at each place, and the brick ones are misses, at "mat", "and", "dog" and "door". The sampling draft keeps a word with chance beta, shown under each place. Its average is the same, about 0.67.

The guesses match the target at 8 of 12 places. The sampling draft's beta averages 0.67.

guesspass, guess costrejectedtarget token, speedup
one acceptance ratethecatsatonthematandthedogsleptbythedoor.every guesssampling βsat0.62on0.67the0.84cat0.60.0.58the0.81cat0.58slept0.59by0.58the0.84cat0.67.0.6202468101214passessatonthematandthedogsleptbythedoor.plain1×every guesser: α = 8/12 ≈ 0.67 · sampling draft: mean β ≈ 0.67one acceptance ratethecatsatonthematandthedogsleptbythedoor.every guesssampling βsat0.62on0.67the0.84cat0.60.0.58the0.81cat0.58slept0.59by0.58the0.84cat0.67.0.6202468101214passessatonthematandthedogsleptbythedoor.plain1×every guesser: α = 8/12 ≈ 0.67 · sampling draft: mean β ≈ 0.67
Toy: the 30.C2 trigram target, 12 tokens; every guesser tuned to one rate; time in target passes
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
α=kept12=112∑iβi\sy{a}{data}{\alpha} = \tfrac{\text{kept}}{12} = \tfrac{1}{12}\textstyle\sum_i \sy{b}{data}{\beta_i}
α=812≈0.67; βˉ≈0.67\alpha = \tfrac{8}{12} \approx 0.67;\ \bar\beta \approx 0.67

Every guesser keeps the same share of words.

Common mix-ups

MYTHEqual acceptance rates give equal speedups.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
2 CHECKS · PRO
Q01At 50% draft cost, does the draft model beat the early exit?

Make your guess, then test it in the diagram. All 2 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 3 live controls
  • 2 mix-up cards and 2 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.