In this project, we implement Rainbow and replace c51 in Rainbow with IQN.
- Rainbow
- PER
- Noisy Nets
- Double
- c51
- Dueling nets
- IQN
Basically all arguments are from reference papers, I did not take much time to fine-tune these arguments, since it takes too long to run a trial on atari.
Video
Learning Curve
Episodic rewards averaged over 100 episodes at training time.
Compare to Google's Dopamine shown below, our implementation manages to achieving better performance on Breakout
Source: https://google.github.io/dopamine/baselines/plots.html, each iteration stands for 250000 steps.
# Silence tensorflow debug message
export TF_CPP_MIN_LOG_LEVEL=3
# By default, this line runs rainbow-iqn, which replaces c51 in rainbow with iqn
# For full argument specification, please refer to run/train.py
python run/train.py
All tests are done in PongNoFrameskip-v4 and BreakoutNoFrameskip-v4,
-
Double Q nets, noisy layers, PER, multi-steps are used by default.
-
Unlike the official implementation, we apply layer normalization to dense layers, instance normalization to conv layers, which could be designated by
conv_norm
anddense_norm
inalgo/rainbow_iqn/args.yaml
Dan Horgan et al. Distributed Prioritized Experience Replay
Hado van Hasselt et al. Deep Reinforcement Learning with Double Q-Learning
Tom Schaul et al. Prioritized Experience Replay
Meire Fortunato et al. Noisy Networks For Exploration
Ziyu Wang et la. Dueling Network Architectures for Deep Reinforcement Learning
Will Dabney et al. Implicit Quantile Networks for Distributional Reinforcement Learning