liveBook · Manning

Reinforcement learning with human feedback

As explained in Software Testing with Generative AI

A model-alignment technique that uses human feedback to guide or refine a model's behavior.

Reinforcement learning with human feedback (RLHF) fine-tunes model behavior from human usage and feedback, increasing the probability of outputs that fit observed patterns. The technique helps explain why outputs vary, because LLMs remain probabilistic rather than repositories of structured information. section 2.1

Predictive messaging analogy

A phone keyboard may increase the probability of words such as “I am” and “away” because someone types them frequently. This illustrates RLHF, although applying the analogy directly to LLMs is an oversimplification. section 2.1

Figure 2.1 Probability distribution in action

Use the probability-distribution figure to visualize why model outputs are probabilistic and require vigilance. section 2.1

How Software Testing with Generative AI covers it

How deep it goes
Defines RLHF through a predictive-keyboard analogy but stops short of explaining its training algorithm or implementation.
Examples
Uses predictive phone messaging and frequently typed words as its concrete analogy.
What you can do after
Evaluate model outputs as probabilistic and apply vigilance when relying on them.
How it connects
Connects RLHF with large language models, unsupervised learning, and generative pretrained transformers.

Also explained in

Compare how 14 books explain reinforcement learning with human feedback →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Software Testing with Generative AI. The section links point to the parts of the book it draws on.