Short Answer

Calculating Sequence Log-Probability

A language model assigns the following conditional log-probabilities to the three-token sequence ('the', 'cat', 'sat'):

  • log Pr('the') = -1.5
  • log Pr('cat' | 'the') = -2.0
  • log Pr('sat' | 'the', 'cat') = -1.2

Based on the principle of decomposing a sequence's probability, calculate the log-probability of the entire sequence, log Pr('the', 'cat', 'sat').

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