liveBook · Manning

Language model

As explained in Sutskever's List

A language model assigns probabilities to sequences of linguistic tokens and can generate or evaluate text.

A language model assigns probabilities to text. A sentence that is grammatical and plausible receives a higher probability than one with broken grammar or an unlikely meaning. section 5.1

Syntax and meaning

“The mouse ate the cheese” is grammatical and plausible. “The the mouse ate cheese” breaks grammar; “The cheese ate the mouse” is grammatical but semantically odd. A language model can assign both unusual sentences lower probabilities. section 5.1

Modern generative language models can sample from learned text distributions to produce new text or participate in conversations. Most are autoregressive: they predict each next token from what came before. Training uses shifted sequences as labels, while a causal mask prevents predictions from using future tokens. section 5.1

How Sutskever's List covers it

How deep it goes
Explains sentence probabilities and next-token training, including shifted labels and causal masking.
Examples
Contrasts grammatical and plausible text with broken grammar and grammatically correct but semantically odd text.
What you can do after
Evaluate how syntax and meaning affect text probabilities and understand how autoregressive models generate text.
How it connects
Connects language modeling to syntax, semantics, autoregressive modeling, self-supervised learning, and causal masking.

Also explained in

Compare how 67 books explain language model →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Sutskever's List. The section links point to the parts of the book it draws on.