Reinforcement learning

Gt=∑k=0∞γkrt+k+1G_t = \sum_{k=0}^{\infty} \gamma^k r_{t+k+1} Return G

Gₜ is the return: the total discounted reward from step t onward. The agent maximizes its expectation.

In ML papers

The return GtG_t adds up all the rewards from step tt on, each discounted by Gamma: Gt=rt+1+γrt+2+γ2rt+3+⋯G_t = r_{t+1} + \gamma r_{t+2} + \gamma^2 r_{t+3} + \cdots. It is a random quantity, since it depends on which actions and states happen to follow. Value functions are its expectations: Vπ(s)=Eπ[Gt∣st=s]V^\pi(s) = \mathbb{E}_\pi[G_t \mid s_t = s].

The sum can also be written recursively, Gt=rt+1+γGt+1G_t = r_{t+1} + \gamma G_{t+1}, which is the step behind every Bellman equation.

Other meanings, by context

How to type it

LaTeXShows
G_tGtG_t
R(\tau) return of a whole trajectoryR(τ)R(\tau)

A worked example

G0=1+0.9×0+0.92×2=2.62G_0 = 1 + 0.9 \times 0 + 0.9^2 \times 2 = 2.62

Rewards 1,0,21, 0, 2 with γ=0.9\gamma = 0.9. The last reward is shrunk by 0.810.81 because it arrives two steps later.

Common confusions

Equations that use it

Related

rt=R(st,at)r_t = R(s_t, a_t)Reward rγ\gammaGammaVπ(s)=Eπ[Gt∣st=s]V^\pi(s) = \mathbb{E}_\pi\left[G_t \mid s_t = s\right]Value function V∑i=1Nxi\sum_{i=1}^{N} x_iSummation

Decode this example →