liveBook · Manning

Return

As explained in Reinforcement Learning from Human Feedback

Cumulative reward is the aggregate of rewards collected across an episode or other interaction sequence.

Return is the reward aggregate used to judge an interaction sequence. At time t, the discounted return G_t sums each future reward with successively larger powers of γ: G_t = Σₖ γᵏRₜ₊ₖ₊₁. γ controls the horizon: zero values immediate reward only, while one weights future rewards equally. section 6.2 section 3.1.2

Return connects directly to reinforcement-learning objectives and estimators:

  • Value functions estimate expected return from a state: V(s) = E[G_t | S_t = s]. section 6.2
  • Policy-gradient methods maximize expected trajectory return and use sampled rollouts to estimate that objective. section 6.2 section 6.2.1
  • Advantages compare a return target with a value prediction, producing the policy-learning signal A_t = G_t − V(s_t). section 6.2.7

CartPole and token-level returns

In CartPole, early random episodes end quickly, whereas corrective pushes keep the pole balanced longer and increase cumulative reward. In PPO, a reverse-time loop accumulates post-KL per-token rewards, resets at terminals, applies γ, and stores each running value as a return target. section 3.1.2 section 6.2.7

Equation 6.2
\[\label{eq:return_definition} G_t = R_{t+1} + \gamma R_{t+2} + \cdots = \sum_{k=0}^\infty \gamma^k R_{t+k+1}.\]

Use the formal return equation to inspect discounted reward accumulation across future timesteps. section 6.2

How Reinforcement Learning from Human Feedback covers it

How deep it goes
Derives discounted and recursive forms, rollout estimators, and token-level PPO targets, stopping short of generalized advantage estimation details.
Examples
Uses CartPole episodes, sampled trajectories, and reverse-time token-level reward accumulation as concrete demonstrations.
What it assumes
Assumes states, actions, rewards, trajectories, and discount factors while formalizing return from sequential decision-making notation.
What you can do after
Apply it via rollout sums and recursive updates to estimate objectives, value targets, and advantage signals.
How it connects
Connects reward, discount factor, trajectories, value functions, policy gradients, advantages, Monte Carlo estimation, and PPO.

Also explained in

Compare how 4 books explain return →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Reinforcement Learning from Human Feedback. The section links point to the parts of the book it draws on.