← Speech and Language Processing
NLP›Popular Textbooks› SLP · Chapter 8

Chapter 8

Post-training: Teaching Models to Answer, Prefer, and Verify

Chapter: Post-training, in Daniel Jurafsky and James H. Martin, Speech and Language Processing, 3rd edition draft, August 19, 2026.

Topics to learn

Page numbers refer to the linked chapter PDF.

FAQ

Does masking the prompt loss hide the prompt from the model?

No. The loss mask chooses which tokens are supervised. The attention mask chooses which context a prediction may read. Response-only training normally leaves the prompt visible.

Does DPO require a separately trained reward model?

Standard offline DPO needs preference pairs and a reference policy. It does not need a second model that scores rewards at training time. Someone still had to judge the pairs.

Does a lower preference loss mean the answer became true?

No. It means the policy fit that preference pair better, relative to the reference. Truth has to be checked with evidence for the task.

What does parameter-efficient fine-tuning change?

A small added set of weights, rather than every pretrained parameter. The base model still determines most of the computation.