Case Study

Evaluating a Speculative Decoding Step

An accelerated text generation system proposes a sequence of candidate tokens. Each token is then verified according to the following rules:

  1. A token is accepted if its 'target model probability' is greater than or equal to its 'draft model probability'.
  2. If the target probability is lower, the token is rejected only if a random number r (from 0 to 1) is greater than the ratio (target probability / draft model probability). Otherwise, it is accepted.

The system appends a continuous block of tokens from the beginning of the sequence up to the first rejected token. Given the data in the case study, how many tokens are ultimately appended to the final output? Explain your step-by-step reasoning for each token's evaluation.

0

1

Updated 2025-10-05

Contributors are:

Who are from:

Tags

Ch.5 Inference - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Analysis in Bloom's Taxonomy

Cognitive Psychology

Psychology

Social Science

Empirical Science

Science

Related