Home▸AI & Machine Learning▸Speculative Decoding: Draft Acceptance Rate, Expected Tokens per Pass and Exact Target Distribution

Speculative Decoding: Draft Acceptance Rate, Expected Tokens per Pass and Exact Target Distribution

A cheap draft model guesses several tokens ahead and a large target model verifies them all in one pass. Tune the draft length, draft cost, draft sharpness and target temperature, and watch the rounds play out token by token: accepted guesses, a corrected token at the first rejection or a bonus token when everything passes. The measured tokens per pass converge to the closed form, and the output distribution stays exactly the target's. Blender-built machines with numerical checks of the acceptance rate, the exactness identity and the speedup formula.

AI & Machine Learning3DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 2D version
Speculative Decoding: Draft Acceptance Rate, Expected Tokens per Pass and Exact Target Distribution ↗ Open standalone

A cheap draft model guesses several tokens ahead and a large target model verifies them all in one pass. Tune the draft length, draft cost, draft sharpness and target temperature, and watch the rounds play out token by token: accepted guesses, a corrected token at the first rejection or a bonus token when everything passes. The measured tokens per pass converge to the closed form, and the output distribution stays exactly the target's. Blender-built machines with numerical checks of the acceptance rate, the exactness identity and the speedup formula.

⚙ Under the hood

A cheap draft model guesses several tokens ahead and a large target model verifies them all in one pass. Tune the draft length, draft cost, draft sharpness and target temperature, and watch the rounds play out token by token: accepted guesses, a corrected token at the first rejection or a bonus token when everything passes. The measured tokens per pass converge to the closed form, and the output distribution stays exactly the target's. Blender-built machines with numerical checks of the acceptance rate, the exactness identity and the speedup formula.

Semantic CoreSpeculative DecodingLLM InferenceAcceptance RateRejection SamplingDraft Model

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)