Elio Saade
Note

Value Functions in RL

Topics: Reinforcement Learning

Definition

"Value" means the expected return when starting from a state or state-action pair. In other words, it indicates how good/bad it is to be in a current state or state-action.

The 4 Value Functions

There are 4 main "value" functions in RL:

The On-Policy Value Function

Vπ(s)=Eτ∼π[R(τ)∣s0=s]V^\pi(s) = \underset{\tau \sim \pi}{E}[ R(\tau) \vert s_0=s]
which gives the expected return if you start in a state ss and act according to the policy π\pi.

The On-Policy Action-Value Function

Qπ(s,a)=Eτ∼π[R(τ)∣s0=s,a0=a]Q^\pi (s,a) = \underset{\tau \sim \pi}{E} [R(\tau) \vert s_0=s, a_0=a]
which gives the expected return if you start in a state ss, take an arbitrary action aa (which may not have come from the policy), and then forever follow policy π\pi.

The Optimal Value Function

V∗(s)=maxπ  Eτ∼π[R(τ)∣s0=s]V^*(s) = \underset{\pi}{max} \;\underset{\tau \sim \pi}{E}[ R(\tau) \vert s_0=s]
which gives the expected return if you start in a state ss and always act according to the optimal policy π\pi.

The Optimal Action-Value Function

Q∗(s,a)=maxπ  Eτ∼π[R(τ)∣s0=s,a0=a]Q^* (s,a) = \underset{\pi}{max} \; \underset{\tau \sim \pi}{E} [R(\tau) \vert s_0=s, a_0=a]
which gives the expected return if you start in a state ss, take an arbitrary action aa, and then forever follow the optimal policy.

Relations Between Value Functions

  1. Vπ(s)=Ea∼π[Qπ(s,a)]V^\pi (s) = \underset{a \sim \pi}{E} [Q^\pi (s,a)]
  2. V∗(s)=maxa  Q∗(s,a)V^* (s) = \underset{a}{max} \; Q^* (s,a)
  3. a∗(s)=arg  maxa  Q∗(s,a)a^* (s) = \underset{a}{arg\;max} \; Q^*(s,a)

References

Connections

Direct relationships to this note.