liveBook · Manning

Reinforcement learning with human feedback

As explained in Generative AI in Action

Reinforcement learning from human feedback is a model-training technique that uses human preferences as feedback to optimize generated behavior.

Reinforcement learning from human feedback (RLHF) adapts a model using human judgments about its behavior. It combines reinforcement learning and supervised learning, making it useful when quality depends on preferences or context that are difficult to express as a fixed reward function. section 9.7

Evaluators provide ratings, preferences, or suggestions about model outputs. That feedback guides training toward responses people find more helpful and truthful, while seeking to reduce harm and bias. Instruct models are examples of language models adapted with RLHF. section 9.7

Evaluating a conversational assistant

For an assistant that generates replies, human evaluators could rate outputs for usefulness and harmful content. Their judgments supply feedback where an explicit rule for a good reply would miss subjective or context-specific qualities. This illustrates the training role of feedback, not a production implementation. section 9.7 section 9.7.1

Plan for the costs and limits of RLHF:

  • Collect enough qualified, diverse human feedback; inconsistent or biased judgments can weaken reliability and reinforce prejudice. section 9.7.1
  • Budget for specialized ML skills, reward and feedback systems, and substantial compute. Scaling also requires efficient collection, sampling, distributed evaluation, and quality checks. section 9.7.1 section 9.7.2
  • Monitor model behavior and test for harms. RLHF is a model-level safety measure, not a substitute for content filters, application safeguards, or user review. section 9.7.2 section 13.3.3

How Generative AI in Action covers it

How deep it goes
Explains feedback types and alignment goals, then outlines implementation and scaling concerns without a training algorithm or code walkthrough.
Examples
Uses Instruct models, conversation, content generation, and social-media moderation as applications.
What it assumes
Assumes advanced ML, reinforcement learning, and NLP skills for implementation, while defining RLHF through human judgment and feedback.
What you can do after
Evaluate/understand it as an alignment option while assessing feedback quality, compute demands, bias, and complementary safety controls.
How it connects
Connects reinforcement learning and supervised learning to model adaptation, content moderation, bias mitigation, and layered AI safety.

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 Generative AI in Action. The section links point to the parts of the book it draws on.