# Rainbow: Combining Improvements in Deep Reinforcement Learning

Matteo Hessel, Joseph Modayil, Hado van Hasselt, Tom Schaul, Georg Ostrovski, Will Dabney and 4 more · arXiv · 2017-10-6

- **Problem** Each DQN extension fixes a different weakness, such as overestimation or uneven replay sampling. It was unclear which of them could be combined in one agent.
- **Method** Rainbow is one agent that combines double Q-learning, prioritized replay, dueling networks, multi-step targets, distributional learning and noisy networks. The authors remove one component at a time to measure its contribution.
- **Results** Rainbow reaches a median normalized score of 223% in the no-ops regime and 153% in the human starts regime across 57 Atari games.

## Why combine separate DQN extensions

DQN made deep reinforcement learning practical on Atari by pairing Q-learning with a convolutional network and an experience replay buffer, so that agents learn from raw pixels. Follow-up work then attacked specific weaknesses: overestimation in Q-learning, uniform sampling from replay, the way action values are represented, the bias-variance balance of the learning targets, the use of distributions instead of means, and exploration.

Because these methods address largely different problems while sharing one framework, the authors argue they could plausibly be combined.

The study goes further by building one agent that contains all the listed ingredients and asking how much of each gain survives in the combination. The evaluation uses the 57-game Atari 2600 suite from the Arcade Learning Environment, judged on both data efficiency and final performance.

## The DQN baseline and its target

The task is a Markov decision process with states, actions, transition probabilities, rewards and a discount factor, and the agent chooses actions from a policy. The quantity the agent optimizes is the discounted return, a sum of future rewards in which each reward is weighted by the product of the discounts applied up to that step. Episodic tasks use a discount of zero at episode termination.

Value-based methods estimate state values or state-action values, and a common way to act is epsilon-greedy selection over those action values, which balances exploitation with random exploration.

DQN represents the action values with a convolutional network that takes a stack of raw pixel frames as input. Each transition is stored in a replay buffer of the last million transitions, and mini-batches are sampled uniformly from it. The learning target bootstraps from the largest action value at the next state, computed by a periodically copied target network, and the squared difference between this target and the current estimate is minimized by gradient descent on the online network.

The optimizer is RMSprop, and the target-network copy is what keeps learning relatively stable.

## What each of the six extensions changes

Double Q-learning separates the choice of the next action from its evaluation: the online network selects the action that maximizes the value, and the target network evaluates it. This targets the overestimation that comes from taking a maximum over noisy estimates. Prioritized replay changes the sampling distribution rather than the target.

Transitions are drawn with a probability that grows with the absolute TD error raised to an exponent omega, and new transitions enter with maximum priority.

The dueling architecture uses two streams, one for a state value and one for action advantages, which share a convolutional encoder. The advantages are centred by subtracting their average over the actions, so that the two streams are identifiable. Multi-step learning replaces the one-step reward with a truncated n-step return, summing n discounted rewards before bootstrapping from the state n steps ahead.

The authors note that suitably tuned n often speeds learning, and the value of n is a sensitive setting.

Distributional learning models the return as a categorical distribution over a fixed support of atoms, with one softmax per action, rather than only its mean. The target distribution is the next-state distribution shifted by the reward and contracted by the discount, projected back onto the fixed support, and fitted by minimizing a Kullback-Leibler divergence.

The greedy action for the target is taken from the mean of the distribution.

## How the six pieces are combined

The one-step distributional loss is replaced by a multi-step version whose target is the n-step return shifted distribution, taken from the state n steps ahead and contracted by the cumulative discount. Double Q-learning is kept in this setting: the greedy action at the state n steps ahead is chosen by the online network and evaluated with the target network.

Prioritization uses the KL loss of the distributional update instead of the absolute TD error, because that is what the algorithm minimizes. The authors suggest the KL loss may be more robust in stochastic environments, since it can keep decreasing when returns are not deterministic. The network is a dueling architecture adapted to distributions: a shared representation feeds a value stream with one output per atom and an advantage stream with one output per atom and action.

For each atom the two streams are combined, passed through a softmax over atoms, and centred by the mean advantage over actions.

## Experimental protocol and shared settings

Every agent is trained and tested on the 57 Atari games, following the training and evaluation procedures of earlier DQN work. During training the agent is evaluated every 1M steps by pausing learning and running the latest agent for 500K frames.

The median normalized score across games is the main aggregate. The number of games above fixed fractions of human performance is also tracked, to show where median gains come from, since the mean is dominated by a few games with very large scores. At the end of training the best snapshot is re-evaluated under two regimes: no-ops starts, where a random number of up to 30 no-op actions begins each episode, and human starts, where episodes begin from states sampled from human expert trajectories.

Hyper-parameter tuning was limited because the full space is too large to search. Each component began from the values of its original paper, and the most sensitive settings were tuned by manual coordinate descent. Rainbow uses Adam with a learning rate of the DQN value divided by four, chosen from three candidates, and a priority exponent of 0.5 with importance-sampling exponent annealed from 0.4 to 1.

A multi-step length of 3 was chosen over 1 and 5, and the same hyper-parameters are used for all 57 games, as listed in the table of settings with 51 atoms over the range from -10 to 10.

## Comparison with published baselines

Median human-normalized curves for Rainbow are plotted against DQN, DDQN, Prioritized DDQN, Dueling DDQN, A3C, Distributional DQN and Noisy DQN over frames. The Dueling and Prioritized curves were provided by their authors, and DQN, A3C, DDQN, Distributional DQN and Noisy DQN were re-run by the study.

Rainbow matches the final DQN performance after 7M frames and surpasses the best final score of the baselines within 44M frames. Its final performance is substantially higher than all of them. The final median score is 223% in the no-ops regime and 153% in the human starts regime, and the published medians of each baseline are listed for comparison in the table of medians.

The gap appears at every threshold in the threshold plots, both in games where baselines were already good and in games where they were far from human level.

Parallel training setups from other papers were excluded, so the comparison is per algorithm on one GPU, and the study leaves scalability and parallelism to future work.

## Which components matter in the ablations

Six ablated agents each drop one component from full Rainbow, and their median curves are compared with the full agent and DQN. Removing prioritized replay or multi-step learning causes a large drop in median performance, and both removals hurt early learning. Removing multi-step learning also lowers final performance. Per game, the full agent beats each of these two ablations in 53 of 57 games.

Removing distributional learning produces no visible difference in the median during the first 40 million frames, and then the agent falls behind. In the threshold plots the loss is concentrated in games at or above human level. Removing noisy networks lowers the median and produces a large drop in several games, while small gains appear in others.

Removing dueling produced no significant difference in the aggregate, but the threshold plots suggest it helps above-human games and slightly hurts games below human level. Double Q-learning shows a small median difference, and its effect changes sign between games.

## Limitations

Tuning was limited to coordinate descent on the most sensitive settings, so the reported configuration is one of many possible ones. Multi-step length was compared only at 1, 3 and 5, and the study did not test other values.

Two games where DQN outperforms Rainbow are omitted from the per-game ablation figure. The median summarizes the agents, so the mean, which is dominated by a few games, is not used as the main measure. Since the study uses algorithmic comparisons on one GPU, claims about wall-clock efficiency against parallel methods are not made.

## Components outside the study

The study covers value-based methods from the Q-learning family and leaves out purely policy-based methods and actor-critic methods. Exploration alternatives such as bootstrapped DQN, intrinsic motivation and count-based exploration, as well as asynchronous, hierarchical and auxiliary-task methods, are named as candidates for future integration.

## Paper info

- **Authors**: Matteo Hessel, Joseph Modayil, Hado van Hasselt, Tom Schaul, Georg Ostrovski, Will Dabney, Dan Horgan, Bilal Piot, Mohammad Azar, David Silver
- **Venue**: arXiv · Preprint
- **First published**: 2017-10-6
- **Added**: 2026-11-6
- **Updated**: 2017-10-6
- **Version**: v1
- **arXiv**: 1710.02298
- **Category**: cs.AI · cs.LG
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1710.02298v1) · [PDF ↗](https://arxiv.org/pdf/1710.02298v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Matteo Hessel, Joseph Modayil, Hado van Hasselt, Tom Schaul, Georg Ostrovski, Will Dabney, Dan Horgan, Bilal Piot, Mohammad Azar, David Silver (2017). Rainbow: Combining Improvements in Deep Reinforcement Learning. arXiv:1710.02298v1. https://arxiv.org/abs/1710.02298v1

**BibTeX**

```
@misc{hessel2017rainbow,
  title = {{Rainbow: Combining Improvements in Deep Reinforcement Learning}},
  author = {Matteo Hessel and Joseph Modayil and Hado van Hasselt and Tom Schaul and Georg Ostrovski and Will Dabney and Dan Horgan and Bilal Piot and Mohammad Azar and David Silver},
  year = {2017},
  eprint = {1710.02298},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1710.02298v1}
}
```

## Other paper commentary

- [Deep Reinforcement Learning with Double Q-learning](https://refivu.com/en/papers/f2b03deb-df54-4587-b32e-077bd6c02e5b-deep-reinforcement-learning-with-double-q-learning.md)
- [When to Trust Your Model: Model-Based Policy Optimization](https://refivu.com/en/papers/c30bd870-19cb-4a6e-8e2b-d348ea953f92-when-to-trust-your-model-model-based-policy.md)
- [Addressing Function Approximation Error in Actor-Critic Methods](https://refivu.com/en/papers/88b36232-904a-4e73-a6d0-c363af4ff547-addressing-function-approximation-error-in-actor-critic.md)
- [Dueling Network Architectures for Deep Reinforcement Learning](https://refivu.com/en/papers/9ab4aa94-b111-4c78-9b27-cec02635ef27-dueling-network-architectures-for-deep-reinforcement.md)
- [Prioritized Experience Replay](https://refivu.com/en/papers/eb45d234-3a97-4b83-a45a-70c8f675b136-prioritized-experience-replay.md)
- [Deep Reinforcement Learning Based Intelligent Reflecting Surface for Secure Wireless Communications](https://refivu.com/en/papers/7f104da3-3d98-4ecd-95d9-a25944d61e36-deep-reinforcement-learning-based-intelligent-reflecting.md)
- [Improved Techniques for Training GANs](https://refivu.com/en/papers/fa2b409d-90c8-47af-916c-aa43ebfdf357-improved-techniques-for-training-gans.md)
- [Variational Inference with Normalizing Flows](https://refivu.com/en/papers/681d4ceb-2dde-4627-a4ad-6ee307d4d2ec-variational-inference-with-normalizing-flows.md)
- [Quo Vadis, Action Recognition? A New Model and the Kinetics Dataset](https://refivu.com/en/papers/a36880da-386c-4bbc-b8bb-64ba26cb1619-quo-vadis-action-recognition-a-new-model-and.md)
- [Generative Adversarial Imitation Learning](https://refivu.com/en/papers/4c0dc7dc-4282-4fe9-8bb5-0b267ba684d1-generative-adversarial-imitation-learning.md)
- [Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks](https://refivu.com/en/papers/9ce22173-9f5b-4145-a8ef-d0ea3e39660a-unsupervised-representation-learning-with-deep-convolutional.md)
- [Improved Denoising Diffusion Probabilistic Models](https://refivu.com/en/papers/3bb46a03-77c5-4d37-8dd5-2e14817051ef-improved-denoising-diffusion-probabilistic-models.md)

## Terms in this paper

- [prioritized experience replay](https://refivu.com/en/terms/f111cab95d19-prioritized-experience-replay)
- [Deep Q-Network (DQN)](https://refivu.com/en/terms/df5d1042fd66-deep-q-network-dqn)
- [Double Q-learning](https://refivu.com/en/terms/d75ff4441f32-double-q-learning)
- [human-normalized score](https://refivu.com/en/terms/fc3568b3e76f-human-normalized-score)
- [Dueling network](https://refivu.com/en/terms/0ac3c805e1c0-dueling-network)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/b98e78e1-7a51-4f55-b8c6-f920fb30d547-rainbow-combining-improvements-in-deep-reinforcement)
