Reward r
rₜ is the reward received at step t; R(s, a) is the reward function that hands it out.
In ML papers
is the reward: a single number the environment returns after an action, saying how good that step was. (sometimes or ) is the reward function that produces it. The agent's goal is to maximize the discounted sum of rewards, the Return G.
In RLHF, the reward comes from a learned reward model that scores a response to a prompt , trained on human preference pairs. DPO (Rafailov et al. 2023) rewrites this reward in terms of the policy itself.
Other meanings, by context
- Return. Some papers write the return (sum of rewards) as or instead of ; check whether it is one step or a sum.
- Other uses. Outside RL, is often a rank (LoRA's ), a radius, or a correlation coefficient.
How to type it
| LaTeX | Shows |
|---|---|
r_t | |
R(s, a) reward function | |
r_\phi(x, y) a learned reward model |
A worked example
In a game won at the third move, the only nonzero reward comes at the end.
Common confusions
- Indexing differs: Sutton and Barto write the reward after action as , many deep RL papers as .