Learn Before
Multiple Choice

A text generation model is creating a sequence of words. It uses a search process that keeps track of the 2 most probable sequences at each step. The score for a sequence is the sum of the log-probabilities of its words. Given the state of the search below, which two sequences will be kept for the next step?

Step 1: The initial two sequences being tracked are:

  • Sequence 1: "The" (Score: -0.5)
  • Sequence 2: "A" (Score: -0.9)

Step 2: The model calculates the log-probabilities for the next possible words for each sequence:

  • Expanding "The":
    • "cat": -0.8
    • "dog": -1.1
  • Expanding "A":
    • "mouse": -0.2
    • "lion": -1.5

0

1

Updated 2025-09-26

Contributors are:

Who are from:

Tags

Data Science

Foundations of Large Language Models Course

Computing Sciences

Ch.5 Inference - Foundations of Large Language Models

Foundations of Large Language Models

Analysis in Bloom's Taxonomy

Cognitive Psychology

Psychology

Social Science

Empirical Science

Science

Related