Equation 18 · How AI Inference Serving Actually Works
What does this equation mean?
Read the formula alongside the article passage below. Each part has a deeper page with its role in the equation, the supporting passage and nearby citations.
This equation states an equality: the expressions on both sides have the same value under the article’s assumptions. Read the equation part by part below; each part has a contextual explanation and a link to its mathematical background.
Read it piece by piece
Symbol E
The expected value operator: the probability-weighted average of the quantity inside its brackets.
Symbol α^gamma+1
α^gamma+1 occurs above the fraction bar. The numerator is divided by the entire denominator below it.
Symbol α
α is one of the signed contributions combined to compute the quantity on the left.
=
The expressions on both sides represent the same quantity under the stated assumptions.
See an illustrated explanation →superscript
A raised number can be a power. When it is a label or bound, it selects a case or the upper limit of a sum; the formula’s structure distinguishes these uses.
See an illustrated explanation →Denominator: 1-α
The complete quantity below the fraction bar; it must be nonzero for this division.
How to interpret it
With a fixed numerator, increasing a nonzero denominator reduces the fraction. Read it with the definitions, units, and assumptions supplied by the article.
What the article says around this equation
The size of the win has a clean shape. Model the draft’s acceptance probability as per token, roughly constant and independent across the tokens proposed in a round — an idealization real traffic does not fully satisfy, but a useful one for seeing the ceiling. The expected number of tokens accepted per verification round is then . This rises with both and , but with steeply diminishing returns in for any below one: drafting fifty tokens ahead does not buy anywhere near fifty accepted tokens, because the marginal proposal deep into a long draft is unlikely to be exactly what the target would have generated. The bottleneck decode…
Read the full surrounding passage
The size of the win has a clean shape. Model the draft’s acceptance probability as per token, roughly constant and independent across the tokens proposed in a round — an idealization real traffic does not fully satisfy, but a useful one for seeing the ceiling. The expected number of tokens accepted per verification round is then . This rises with both and , but with steeply diminishing returns in for any below one: drafting fifty tokens ahead does not buy anywhere near fifty accepted tokens, because the marginal proposal deep into a long draft is unlikely to be exactly what the target would have generated. The bottleneck decode started with reappears one level down — the draft model is itself a small, serial, memory-bound process, so speculative decoding is not a free lunch; it trades some of decode’s own bandwidth cost for a second model running continuously, plus wasted target-model computation on every rejected proposal. Its win is largest where the roofline argument above says spare compute is most available: at low batch sizes, where the target model is memory-bound and its arithmetic units sit mostly idle during an ordinary decode step anyway. That idle arithmetic verifies the extra proposed tokens at close to no additional cost.
Sources cited in the article section
These citations give research context. Read each source to check which claims it supports.
Return to How AI Inference Serving Actually Works