Forge
Skip to main content

PPO vs RecurrentPPO (aka PPO LSTM) on environments with masked velocity (SB3 Contrib)

Last updated: October 9, 2022
This is for checking that PPO with recurrent network actually works.
Hyperparameters were tuned for PPO, so they are probably not optimal for RecurrentPPO (PPO LSTM).
PPO with frame-stacking (giving an history of observation as input) is usually quite competitive if not better, and faster than recurrent PPO. Still, on some envs, there is a difference, currently on: CarRacing-v0 and LunarLanderNoVel-v2.
Note: on some env, critic lstm need to be disabled (on CarRacing env, atari because of framestack?) as it slows down the process and hinder performance.
RL Zoo (training scripts): https://github.com/DLR-RM/rl-baselines3-zoo



PPO LSTM vs PPO (no FrameStack)

PendulumNoVel-v1



4 selected runs
3 selected runs


LunarLanderNoVel-v2



3 selected runs
3 selected runs


CartPoleNoVel-v1


18 selected runs
10 selected runs



MountainCarContinuousNoVel-v0



10 selected runs



LSTM vs FrameStacking

Note: n_stack=2

PendulumNoVel-v1 (n_stack=2)




11 selected runs
3 selected runs
3 selected runs


LunarLanderNoVel-v2 (n_stack=2)




4 selected runs
3 selected runs
4 selected runs


CartPoleNoVel-v1 (n_stack=2)


6 selected runs
10 selected runs
6 selected runs



MountainCarContinuousNoVel-v0 (n_stack=2)



4 selected runs
6 selected runs



4 selected runs
6 selected runs


CarRacing-v0 (n_stack=2)

Note: stacking also enabled for PPO LSTM, but critic lstm disabled (faster training).


1 selected runs
1 selected runs

Felipe Bivort Haiek
Felipe Bivort Haiek •  
Hi nice qork. Do you happen to have the code for this?
1 reply