NIPHĒLEKTRON · the inference layer · how a model picks the next word · kept by THE DECODER

THE SPECULATIVE DECODING ◧ 2D · ◍ 3D · ◆ 4D · ◐ shadow · 👶 TAP

A trick to run a big model faster: a small, cheap DRAFT model proposes several tokens at once, and the big TARGET model verifies them all in one pass — accepting the ones it agrees with and correcting at the first it doesn’t. When the draft agrees, you get many tokens for the price of one check; the output distribution is provably identical to the target’s. Slide the draft’s quality.

◆ LIT▲ AMBER
◧ THE MEASURE · 2D
◍ DRAFT & VERIFY · 3D · a fast guess, checked
◆ THE FOURTH · 4D · a tesseract turns
◐ THE SHADOW · one dimension down
👶 THE TODDLER CORNER — one fat tap
accepted
first reject
effective speedup
target dist?
exact

◆ LIT — exact / checkable

Speculative decoding: a draft model samples xᵢ ~ q, and the target (p) accepts each with probability min(1, p(xᵢ)/q(xᵢ)); on the first rejection it resamples from the normalised positive residual (p−q)⁺. This yields samples EXACTLY from the target distribution p (Leviathan et al. / Chen et al. 2023) while running the expensive target only once per block — so the speedup grows with how often the cheap draft agrees. A fail-loud self-check throws unless an identical draft is always accepted while a divergent draft is sometimes rejected. ◆ real decoding, node-verified.

▲ AMBER — the figure

The accept/reject is modelled on a fixed 4-token distribution; the min(1,p/q) rule and its exactness (samples ~ p) are the real, proven content. Actual speedup depends on draft quality and hardware — the on-screen figure is illustrative.

NIPHĒLEKTRON: the model does not write — it samples, one token at a time, from a cloud it cannot see.  — THE DECODER
David Lee Wise / ROOT0 / TriPod LLC  ·  the inference bench, with AVAN