地址:https://arxiv.org/abs/1709.06009
在第 12 页,文章提出了粘性动作(sticky actions),目的是向 ALE(The Arcade Learning Environment) 游戏中加入随机性(stochasticity),并且评估智能体的健壮性(robustness)。
粘性动作是指,每次环境执行的动作( A t − 1 A_{t-1} At−1)有 ζ \zeta ζ 的概率是上一步动作( a t − 1 a_{t-1} at−1),有 1 − ζ 1-\zeta 1−ζ 的概率是此次智能体选择的动作( a a a)。
A t − 1 = { a , with prob. 1 − ζ a t − 1 , with prob. ζ A_{t-1}=\begin{cases} \begin{aligned} a&, &\text{with prob.} &&1-\zeta \\ a_{t-1}&, &\text{with prob.} &&\zeta \end{aligned} \end{cases} At−1={aat−1,,with prob.with prob.1−ζζ
以 gym 中的游戏 Pong 为例,下表中的 Repeat action probability
表示粘性动作机制。p=0.25 表示每次有 0.25 的概率重复上一次动作,0.75 的概率执行智能体选择的动作。Frame Skip
为 2~4 的目的也是为了增加随机性。表格来自 https://www.endtoend.ai/envs/gym/atari/
Name | Frame Skip k | Repeat action probability p |
---|---|---|
Pong-v0 | 2~4 | 0.25 |
Pong-v4 | 2~4 | 0 |
PongDeterministic-v0 | 4 | 0.25 |
PongDeterministic-v4 | 4 | 0 |
PongNoFrameskip-v0 | 1 | 0.25 |
PongNoFrameskip-v4 | 1 | 0 |
下图是文章 5.2 部分解释 frame skiping=4 和 sticky actions 共同作用的效果。