liveBook · Manning

Reward signal

As explained in Introduction to Generative AI, Second Edition

A reward is a numerical feedback value representing progress toward a task and reinforcing a model behavior.

A reward signal is a numerical feedback value indicating progress toward a task. In reinforcement learning, rewarded behavior becomes more likely to recur, while penalized behavior becomes less likely. section 1.1

Unlike supervised learning, which supplies desired outputs directly, reinforcement learning uses trial and error. The model generates possible responses and learns which ones receive higher scores. A reward function turns judgments about quality into those scores. section 2.10 section 2.12

For language models, reward signals can come from different evaluators:

  • Human feedback uses ratings or preferences to estimate a reward function, as in reinforcement learning from human feedback (RLHF). section 2.10
  • AI feedback uses model-generated judgments to train a reward model or verifier, as in reinforcement learning from AI feedback (RLAIF). section 2.12
  • Neither source of feedback guarantees a perfect definition of quality: people may disagree, while automated evaluation can increasingly replace human checks without eliminating uncertainty. section 2.10 section 2.12
Figure 1.1 The reinforcement learning cycle
A diagram of a task performance

AI-generated content may be incorrect.

Use the reinforcement learning cycle to connect environmental feedback, rewards or penalties, and changing behavior. section 1.1

How Introduction to Generative AI, Second Edition covers it

How deep it goes
Defines numerical feedback and explains its behavioral effect, but stops short of implementation details or formal optimization.
Examples
Uses model completions, human preference judgments, AI-rated responses, and the reinforcement learning cycle as teaching examples.
What it assumes
Assumes only a basic distinction between supervised learning and reinforcement learning, introducing rewards, penalties, and reward functions from first principles.
What you can do after
Evaluate how rewards shape model behavior and distinguish human-judged from AI-judged alignment feedback.
How it connects
Connects reinforcement learning with reward functions, human feedback, AI feedback, reward models, and supervised learning.

Also explained in

Compare how 11 books explain reward signal →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Introduction to Generative AI, Second Edition. The section links point to the parts of the book it draws on.