liveBook · Manning

Next-token prediction

As explained in Reinforcement Learning from Human Feedback

Next-token prediction is a language-modeling objective that trains a model to predict the token following a given context.

Next-token prediction trains a language model to produce the token most likely to follow a given context. Internet-scale pretraining uses this objective to build broad knowledge and capabilities, but the resulting model naturally continues text rather than conducting useful question-and-answer conversations. Post-training therefore reshapes the model’s behavior from token continuation toward conversational responses. section 1.4

From continuation to conversation

A base model may possess substantial knowledge while still responding through ordinary text continuation. Instruction tuning and later post-training make that capability accessible through question-answering formats; OLMoE Instruct’s post-training update improved its benchmark average from 35 to 48 without changing most pretraining. section 1.4

How Reinforcement Learning from Human Feedback covers it

How deep it goes
Defines the objective conceptually and contrasts its behavior with question-answering, but does not derive its loss or implementation.
Examples
Uses OLMoE Instruct’s two versions and benchmark averages of 35 and 48 to illustrate post-training effects.
What it assumes
Assumes familiarity with language models and pretraining while treating the behavioral distinction between continuation and conversation as the key intuition.
What you can do after
Evaluate/understand how pretraining and post-training divide capability acquisition from conversational behavior.
How it connects
Connects next-token prediction with language modeling, pretraining, instruction tuning, post-training, alignment, and question answering.

Also explained in

Compare how 9 books explain next-token prediction →

Related concepts

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