Short Answer

Applying Pruning in Sequence Generation

In a sequence generation task, the set of candidate sequences at step i-1 contains 3 distinct sequences (i.e., |Y_{i-1}| = 3). The vocabulary size is 1,000 (i.e., |V| = 1,000). The generation process uses the formula Y_i = Prune(Y_{i-1} × V), where the Prune(·) function is configured to keep only the 2 most promising sequences.

Based on this information, calculate:

  1. The size of the full set of expanded hypotheses (Y_{i-1} × V) before pruning.
  2. The size of the final set of candidate sequences (Y_i) after pruning.

0

1

Updated 2025-10-08

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

Application in Bloom's Taxonomy

Cognitive Psychology

Psychology

Social Science

Empirical Science

Science