speculative decoding explained
3-Second Blueprint (English)
- A small, fast draft model predicts ~5 candidate tokens ahead so the large target LLM can evaluate them in one parallel pass.
- Target and draft token probabilities are compared: higher target probabilities are accepted while excesses face proportional rejection.
- Rejected tokens are resampled from the redistributed residual distribution, guaranteeing identical LLM outputs 2 to 3x faster.
Speculative DecodingDraft & Target LLMsRejection SamplingResidual Distribution
3-Sekunden-Fazit (Deutsch)
- Ein kleines, schnelles Draft-Modell sagt etwa fünf Token voraus, die das große Zielmodell in einem parallelen Durchlauf prüft.
- Ziel- und Draft-Wahrscheinlichkeiten werden verglichen: Höhere Zielwerte werden akzeptiert, Überschüsse proportional abgelehnt.
- Abgelehnte Token werden aus der Restverteilung neu gezogen, was statistisch identische Ergebnisse 2- bis 3-mal schneller liefert.
Spekulatives DecodingDraft- & Ziel-LLMsRejection SamplingRestverteilung
Note / Hinweis: Blueprints are AI-generated educational summaries (0% Politics · 0% Religion · 0% Brainrot) and do not constitute medical, legal, or financial advice. / KI-generierte Zusammenfassung zu Bildungszwecken – ersetzt keine medizinische, rechtliche oder finanzielle Fachberatung.