Elio Saade
Note

The Reinforcement Learning Problem

Topics: Reinforcement Learning

Reinforcement Learning (RL) is the study of learning by trial and error to achieve a certain goal. It employs the concept of reward and penalty to reinforce or change the behavior of the agent.

The goal of the agent in RL is to select/learn a policy which maximizes the expected return when the agent acts according to it.

A few equations here to make it concrete. Consider a stochastic policy and stochastic environment transitions. The the probability of a trajectory is:
P(τ∣π)=ρ0(s0)⋅∏t=0T−1P(st+1∣st,at)⋅π(at∣st)P(\tau \vert \pi) = \rho_0(s_0) \cdot \prod_{t=0}^{T-1} P(s_{t+1} \vert s_t, a_t) \cdot \pi(a_t \vert s_t)
where:
ρ0(s0)\rho_0(s_0): probability of the initial state
P(st+1∣st,at)P(s_{t+1} \vert s_t, a_t): state transition probability, which is the probability of moving to a new state given the current state and the selected action
π(at∣st)\pi(a_t \vert s_t): stochastic policy, which represents the probability of selecting an action given the current state

The expected return is:

J(π)=Eτ∼π[R(τ)]J(π)=∫τP(τ∣π)⋅R(τ)\begin{align*} & J(\pi) = \underset{\tau \sim \pi}{E}[R(\tau)] \\ \\ & J(\pi) = \int_\tau P(\tau \vert \pi) \cdot R(\tau) \end{align*}

where R(τ)R(\tau) is the return.

Then the central optimization problem in RL can be expressed as:
π∗=arg  maxπ[J(π)]\pi^* = \underset{\pi}{arg\;max}[J(\pi)]
where π∗\pi^* is the optimal policy, which is the policy that maximizes the expected return J(π)J(\pi).

References

Connections

Direct relationships to this note.