Example

Example of LLM Output Generation for Grammaticality Judgment

After receiving a finalized input context, a language model generates the corresponding output by selecting the text with the highest likelihood. For instance, if the model is given the context x\mathbf{x} as "John seems happy today. \n Question: Is this sentence grammatically correct? \n Answer:", it evaluates possible answers based on this input. It will output "Yes", mathematically denoted as y\mathbf{y} = "Yes", if "Yes" is the text with the maximum probability of prediction given that specific context.

0

1

Updated 2026-04-19

Contributors are:

Who are from:

Tags

Foundations of Large Language Models

Ch.2 Generative Models - Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences