All Glossary Terms

Reward signal

A scalar feedback value provided to an agent after an action, representing the immediate utility or quality of that action relative to a goal.

What it is

When an agent executes an action within an environment, the environment returns a numerical value known as a reward signal. This value functions as a performance indicator, where positive numbers signal progress and negative numbers indicate failures or suboptimal moves. Systems often accumulate these signals over a series of actions to calculate a total return for an episode. Depending on the complexity, this signal can be sparse, occurring only at the end of a task, or dense, occurring after every discrete step.

Why it matters

As an engineer, you must care because the reward signal defines the entire optimization objective for your agent. If the signal is poorly designed or misaligned with business requirements, the model will optimize for the wrong metric. Ignoring the nuances of this signal often leads to catastrophic failure modes where the model exploits technical loopholes to maximize its score without actually performing the desired task.

In practice

You encounter this when defining objective functions in reinforcement learning or during alignment training such as RLHF. In production environments, you observe this via logging feedback loops where user clicks, task completion status, or latency metrics act as the proxy for the reward signal. You adjust these by weighting specific telemetry data points to bias the model behavior toward your target KPI.

The tradeoff

The primary tension is between reward density and objective alignment: dense signals make training converge faster but often encourage short term gains that sabotage the long term goal.