Learn Before
Formula for Step-wise Expansion of the Hypothesis Set
In language model inference, the set of candidate sequences, or hypotheses, is expanded at each step. The set of sequences at step i, denoted as , is formed by taking every sequence from the previous step's set, , and appending each possible token from the entire vocabulary, . This expansion process is formally expressed as the Cartesian product:

0
1
Tags
Ch.5 Inference - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Related
Example of Candidate Tokens in an Expansion Step
Formula for Step-wise Expansion of the Hypothesis Set
A text generation process is at a stage where it has identified 3 distinct, promising sequences, each 4 tokens long. To find the best 5-token sequences, it performs an expansion step where it considers every possible next token for each of the 3 sequences. If the model's vocabulary consists of 30,000 unique tokens, how many new candidate sequences, each 5 tokens long, are created in this single expansion step before any form of filtering or selection is applied?
In a text generation algorithm, the process often involves an 'expansion' step where a set of promising partial sentences are extended by one more word. This is followed by a 'selection' step that keeps only a limited number of the newly formed, longer sentences. What is the primary problem created by the expansion step that necessitates the subsequent selection step?
Identifying the Expansion Phase in Text Generation
Learn After
Complete Sequences as a Stopping Condition for Expansion
Formula for Pruned Step-wise Expansion of the Hypothesis Set
In a text generation process, the set of candidate sequences for the next step is created by appending every word from a fixed vocabulary to the end of each sequence in the current set. If the current set contains 5 candidate sequences and the vocabulary consists of 100 words, how many new candidate sequences will be generated for the next step?
Computational Implications of Hypothesis Expansion
Hypothesis Set Expansion in a Simplified Scenario