liveBook · Manning

Reward signal

As explained in Causal AI

A reward is a scalar feedback signal that evaluates the desirability of an agent's outcome or action in reinforcement learning.

An investment can pay off or fail, and the choice to invest does not guarantee either result. A reward signal assigns a value to what happens so an agent can compare actions. In a simple investment model, the utility or reward function is U(Y): a $1,000 investment yields utility of $99,000 if it returns $100,000, and −$1,000 if it returns nothing. Loss or cost reverses the sign: L(Y) = −U(Y). section 12.1.1

A reward value alone does not tell the agent which action to take. Other causes, such as economic conditions, can change the outcome or directly affect utility. To choose between actions, compare the reward distributions under the actions being considered—not merely the outcomes observed among people who previously chose them. One decision rule selects the action x with the greatest expected utility E[U(Yₓ)], where Yₓ denotes the outcome under that action. A minimax rule instead limits worst-case loss; a softmax rule allows less-than-optimal choices. section 12.1.2 section 12.2.2

The timing and structure of feedback change how the signal is used:

  • With bandit feedback, an action produces an outcome and its utility immediately; trials are independent across timesteps. A policy can nevertheless use past actions and reward outcomes to select the next action. section 12.3.1 section 12.4.1
  • In sequential care decisions, a medication policy considers earlier pain reports and doses. Its utility accounts for pain, overdose risk, and addiction risk rather than only the latest pain report. section 12.4.1
  • In a Markov decision process, rewards sit alongside states, actions, and transitions. A grid-world agent receives 100 for reaching a goal square and −100 for entering a square it should avoid. section 12.5.1
Figure 12.27 A simple grid world
figure

The grid makes positive and negative rewards concrete: the agent must navigate around an obstacle toward the rewarded goal while avoiding the penalized square. section 12.5.1

Implementation depends on the decision being modeled. Represent reward as a utility node, specify what determines its value, and evaluate candidate actions against the resulting utility distribution. In a causal model, intervening on an action matters: an observed association between an action and a high reward need not be the reward that choosing that action would produce. section 12.1.1 section 12.1.2 section 12.2.6

How Causal AI covers it

How deep it goes
Defines utility and negative loss, then uses reward distributions in decision rules, bandit feedback, and a grid-world decision process.
Examples
Uses investment returns, medication decisions, a slot-machine analogy, and positive and negative grid-world rewards.
What it assumes
Introduces utility and loss directly, then uses probability distributions, causal DAGs, and intervention notation to compare actions.
What you can do after
Evaluate/understand reward-based choices by comparing utility under candidate actions while accounting for uncertain outcomes.
How it connects
Connects to causal interventions, expected utility, minimax decision rules, bandit feedback, policies, and Markov decision processes.

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