liveBook · Manning

Reward signal

As explained in Experimentation for Engineers

A reward is the observed outcome assigned to a contextual-bandit action, represented here by the user's viewing time.

A reward signal is the observed outcome of a contextual-bandit action. In a recommendation system, displaying a post is the action, the user is the context, and viewing time is the reward: more viewing time indicates a better immediate outcome. section 5.1.1

The reward is measured after the system acts rather than chosen directly. A prediction model estimates viewing time from user features and a candidate post, while production logs record context, action, and observed reward for later model fitting. section 5.1.1

Viewing time as a measurable signal

A simulator treats measurement as a black box: it combines context and action weights, adds random variation, and returns a positive viewing-time value. A logged sample stores the context, selected action, and resulting reward.

Use reward signals with these constraints:

  • Evaluate a greedy recommender with mean viewing time per post over each model-fitting period. section 5.1.3
  • Require a short-term reward caused by one action, such as an ad click or a play click. section 5.1.3
  • Do not treat a multistep return as a single-action reward when later outcomes depend on earlier actions. section 5.1.3
  • Validate contextual-bandit changes with an A/B test, because exploration and feedback effects can alter measured performance. section 5.5

How Experimentation for Engineers covers it

How deep it goes
Defines reward, models its measurement, logs observations, evaluates averages, and distinguishes short-term rewards from multistep returns.
Examples
Uses post viewing time, ad clicks, song play clicks, a noisy simulator, and logs containing context, action, and reward.
What it assumes
Introduces context, action, and reward terminology while assuming familiarity with recommendation systems and model fitting.
What you can do after
Evaluate contextual-bandit decisions with observed business metrics and recognize when a metric is unsuitable as a single-action reward.
How it connects
Connects reward signals to contextual bandits, context, actions, supervised learning, exploration, returns, and A/B testing.

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