1. 引入
该方法结合了 policy gradient 和 value-based methods
-
- "actor" → policy update
- "critic" → policy evaluation / value estimation
(1) Simplest actor-critic (SAC)
又称 QAC

图源:赵世钰《强化学习的数学原理》第 10 章 整个算法都是在更新 actor 的参数 $\theta$
critic 的作用即在于评估π,并计算对应的 $q_t(s,a)$

图源:赵世钰《强化学习的数学原理》第 10 章 
图源:赵世钰《强化学习的数学原理》第 10 章 $\}\ (s_t, a_t, r_{t+1}, s_{t+1}, a_{t+1})$
critic ~ "Sarsa + value function approximation"
actor ~ "Policy update algorithm"
该算法是 on-policy(Behaviour、target 一致)
2. Advantage actor-critic (A2C):QAC的推广
(1) Baseline invariance:

图源:赵世钰《强化学习的数学原理》第 10 章 引入一个新的 $b(s)$,不会对旧等式有影响

图源:赵世钰《强化学习的数学原理》第 10 章|手写批注:0 $\}\ \nabla_\theta \ln\pi(a|s,\theta) = \dfrac{\nabla_\theta \pi(a|s,\theta)}{\pi(a|s,\theta)}$

图源:赵世钰《强化学习的数学原理》第 10 章 $var(X)$ 与 $b(s)$ 有关

图源:赵世钰《强化学习的数学原理》第 10 章 若希望采样来近似 $\mathbb{E}[X]$,那 $var(X)$ 越小越好,所以应当选个 optimal baseline $b(s)$ 使 $v(s)$ 足够小

图源:赵世钰《强化学习的数学原理》第 10 章|手写批注:太复杂 (2) Algorithm of advantage actor-critic

图源:赵世钰《强化学习的数学原理》第 10 章 $q_\pi(S,A) - \sum_A \pi(A|S)\, q(S,A)$
实际上当策略 greedy 时,两者相等

图源:赵世钰《强化学习的数学原理》第 10 章 tips:在前面的章节中,采用:

图源:赵世钰《强化学习的数学原理》第 10 章 其中是绝对值
采用相对值更加合理

图源:赵世钰《强化学习的数学原理》第 10 章 原本要2个神经网络近似 $q_t$,$v_t$,现在仅需要一个

图源:赵世钰《强化学习的数学原理》第 10 章|手写批注:(on-policy)
3. off-policy actor-critic
(1) Introduction:

图源:赵世钰《强化学习的数学原理》第 10 章 
图源:赵世钰《强化学习的数学原理》第 10 章 
图源:赵世钰《强化学习的数学原理》第 10 章 
图源:赵世钰《强化学习的数学原理》第 10 章 
图源:赵世钰《强化学习的数学原理》第 10 章|手写批注:(p₀);(相当于 p₁) 
图源:赵世钰《强化学习的数学原理》第 10 章|手写批注:p₁;p₀ (2) Importance sampling:

图源:赵世钰《强化学习的数学原理》第 10 章 
图源:赵世钰《强化学习的数学原理》第 10 章 
图源:赵世钰《强化学习的数学原理》第 10 章 ?
tips:求 $\mathbb{E}[X]$ 需要 analytical expression of $p$
连续 / 复杂情况下,如神经网络
$$s \longrightarrow \boxed{\ \theta\ } \longrightarrow \pi(A|S)$$
难以数尽所有 $x \in \mathcal{X}$ when $\mathcal{X}$ 很大
(3) The theorem of off-policy policy gradient

图源:赵世钰《强化学习的数学原理》第 10 章 
图源:赵世钰《强化学习的数学原理》第 10 章 $\pi(A|S,\theta)$ 相当于之前的 $p_0$
$\beta(A|S)$ 相当于 $p_1$
(4) The algorithm of off-policy actor-critic:

图源:赵世钰《强化学习的数学原理》第 10 章 (true gradient)

图源:赵世钰《强化学习的数学原理》第 10 章 $\}\ \nabla_\theta \ln\pi(a|s,\theta) = \dfrac{\nabla_\theta \pi(a|s,\theta)}{\pi(a|s,\theta)}$
step size → $\dfrac{\delta(s_t,a_t)}{\beta(a_t|s_t)}$,分母固定,仅有 exploitation 没有 exploration

图源:赵世钰《强化学习的数学原理》第 10 章|手写批注:多了个 importance weight
4. Deterministic actor-critic (DPG)

原本
$$s \longrightarrow \underset{\pi}{\boxed{\ \theta\ }} \begin{array}{l} \longrightarrow \pi(a_1|s,\theta) > 0 \\ \qquad \vdots \\ \longrightarrow \pi(a_5|s,\theta) > 0 \end{array}$$
其针对的是有限个 action

输入 $s$,输出直接为 $a$ 而非概率
$$s \longrightarrow \boxed{\ \theta\ } \longrightarrow a$$
(1) The theorem of deterministic policy gradient:

图源:赵世钰《强化学习的数学原理》第 10 章|手写批注:天然就是 off-policy 
图源:赵世钰《强化学习的数学原理》第 10 章 
图源:赵世钰《强化学习的数学原理》第 10 章 
图源:赵世钰《强化学习的数学原理》第 10 章 tips:此处证明非常长,参考书本的 P229
(2) The algorithm of deterministic actor-critic

图源:赵世钰《强化学习的数学原理》第 10 章 
图源:赵世钰《强化学习的数学原理》第 10 章 ![图源:赵世钰《强化学习的数学原理》第 10 章|手写批注:比如[示意图:向上的实线箭头标 μ,周围散开几条虚线箭头]](../../assets/img/rl10-actor-critic/rl10-dac-remarks.png)
图源:赵世钰《强化学习的数学原理》第 10 章|手写批注:比如[示意图:向上的实线箭头标 μ,周围散开几条虚线箭头]