TL;DR: Some environments defy the “gravity” of RL / deep learning.
I have been toying with deep reinforcement learning (RL) for almost the past year, especially on Mujoco continuous control tasks. If you have taken any deep learning course / reinforcement learning course, you might have this intuition:
However, on two specific environments and SOTA algorithms, I was able to show the reverse is true.
The first example considers HalfCheetah(-v1/v2) environments on OpenAI gym, and the popular Proximal Policy Optimization algorithm (Schulman et al. 2017). It is able to achieve significantly higher sample efficiency by tuning down the initial value for standard deviation in the (parametrized) policy distribution. See this:
Although having larger initial standard deviation should give better (random) exploration, the sample complexity is much worse than with smaller initial standard deviation.
One would argue that maybe it is because the default standard deviation is 1, yet Mujoco tasks typically clip at [-1, 1], so it might be caused by higher variance in policy. However, this is not the case. In fact, the entropies of the policies drop to the same level, so the difference in reward cannot be caused by higher policy variance. Moreover, these policies seem to have converged to a local minimum, which seems to contradict with the argument that “exploration is good”!
The second example considers Walker2d(-v2) environments on OpenAI gym, and another popular algorithm, Actor-Critic with Kroneker factors and Trust Region (ACKTR) (Wu et al. 2017). This time, we reduce the momentum from 0.9 to 0 for the policy KFAC optimizer, and again show a consistent improvement in sample complexity.
Again, this is weird, since momentum seems extremely useful in the case of supervised learning, and almost everyone uses it. However, on this environment the introduction of momentum seems to have an adverse effect.
Don’t take my code for granted. It is easy to reproduce these by yourself:
logstdin the policy network (in
I would like to thank Yuhuai Wu for discussion on the HalfCheetah case, and Yang Song for inspiring the discovery on the second case.
I have not tried the second case extensively, but the first case works on HalfCheetah most significantly; on environments other than Humanoid, the results do not hold.