Case Study

Analyzing a Sequence Construction Method

An engineer is implementing a text generation algorithm. They describe their process for extending a sequence as follows: 'At step i, my current sequence is y_1...y_{i-1}. To find the next token, y_i, I identify the token that maximizes the conditional probability Pr(y_i | y_1...y_{i-1}). However, before I finalize the new sequence y_1...y_i, I compare its overall score to the score of a different, shorter sequence that I discarded at step i-2 to ensure I am still on the absolute best path overall.'

Analyze the engineer's process. Does the final step of their method (comparing the current sequence's score to a previously discarded path) correctly represent how the single optimal sequence is constructed in a greedy search? Explain your reasoning.

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

Analysis in Bloom's Taxonomy

Cognitive Psychology

Psychology

Social Science

Empirical Science

Science