- Introduced by
- Mnih, V. et al. (DQN)
- Year
- 2015
- Type
- Sequential decision-making (agent–environment interaction)
What does it do?
Deep Reinforcement Learning combines deep neural networks with reinforcement learning, so an agent learns a decision policy by acting in an environment and receiving rewards, rather than from a labelled dataset.
The approach gained wide attention through Mnih and colleagues' 2015 Nature paper on human-level control in Atari games. The agent's objective is to maximise long-run cumulative reward.
The intuition behind the method
Imagine learning to play a game with no rulebook: you try moves, see your score change, and slowly figure out which actions pay off later. Deep RL automates exactly this trial-and-error loop. A neural network estimates how good situations and actions are, and the agent keeps the choices that earn more reward over time — even when the payoff comes many steps after the decision.
History
Deep Reinforcement Learning gained wide attention with Mnih and colleagues' 2015 Nature paper, which reported a deep Q-network reaching human-level control across many Atari games. Asynchronous training followed: Mnih et al. (2016), in 'Asynchronous methods for deep reinforcement learning' (ICML), introduced A3C, which runs several actor-learners in parallel and combines a policy with a learned value function. Policy-gradient and actor-critic methods continued to develop, and Schulman et al. (2017) introduced Proximal Policy Optimization (PPO), which became widely used for its comparatively stable training.
When to use it
Choose Deep RL when the problem is sequential: each action changes the situation in which later decisions are made, and the goal is a policy that maximises cumulative reward. It suits settings where an agent can interact with a simulator or live environment at scale and where a reward can be specified. Do not use it when you have a fixed labelled dataset of outcomes, because supervised methods such as Random Forest or XGBoost are better suited to predicting from static records. Do not use it when interaction is costly or unsafe, or when the interaction budget is small relative to what the environment requires, since the policy may not converge reliably.
Limitations and considerations
- Requires a simulator or interaction environment and an explicitly designed reward function; neither is supplied by a dataset.
- Sample-hungry: learning typically requires large amounts of interaction. The amount needed depends on the environment, the algorithm and the reward scale, so convergence should be checked empirically rather than assumed.
- Training is sensitive to hyperparameters and reward scaling, and outcomes can vary between runs with different random seeds.
- Value estimates and policies are learned from the agent's own, changing data, so training can be unstable. PPO was designed in part to limit how far each policy update can move, to address this.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Learns a decision policy from interaction and reward alone, without labelled examples of correct actions.
- Neural function approximation lets value estimates and policies generalise across state spaces too large to enumerate, as in the Atari setting of the 2015 DQN work.
- The discounted-return objective credits actions for consequences that appear many steps later, which suits delayed-reward problems.
- The variants span value-based (DQN) and policy-gradient or actor-critic (PPO, A3C) designs, so the algorithm can be chosen to match the problem and its stability needs.
Applications
- Game playing and agent control, such as Atari games, the setting of the 2015 DQN work.
- Robot control and continuous-control tasks, where a simulator is available for training.
- Recommendation and other sequential optimisation problems, provided user responses can be modelled in a simulator. Logged data alone cannot act as an environment without a validated user-response model, and simulation-based training should be validated before deployment.
- Clinical decision support, only where a validated simulator of patient response exists; live interaction with patients is rarely feasible.
How it works
How it works
At each step the agent observes the state of an environment (a game, a simulator, a robot), selects an action, and receives a reward and the next state. This loop requires a simulator or other interaction environment. The reward function must be designed explicitly, because it defines what counts as good behaviour; a misspecified reward can lead the agent to optimise something other than the intended goal.
A neural network approximates the quantities in the Bellman optimality relation for Q* shown above. In DQN, the action-value Q(s,a) is estimated by a network and pulled toward the target r + γ·max Q(s′,a′) (Mnih et al., 2015). Policy-gradient methods such as PPO parameterise the policy directly, and A3C combines a policy with a learned value function in an actor-critic arrangement. Neural approximation is what lets the agent generalise across state spaces too large to store in a table. The relation assumes a Markov decision process, in which the next state and reward depend only on the current state and action, and the discount factor γ, between 0 and 1, sets how strongly later rewards count relative to immediate ones.
Formula
Q^*(s,a) = \mathbb{E}\big[r + \gamma \max_{a'} Q^*(s',a')\big]The policy is adjusted so that actions leading to higher expected discounted return become more likely, which is the objective written in the final formula. Updates are driven entirely by rewards collected through interaction, so the quality of the learned policy depends on how much experience the agent gathers; with limited experience, convergence is not assured. Training typically needs considerable compute, often a GPU. Results should be reported across several random seeds, showing the mean and spread of cumulative reward over training, and evaluated on held-out episodes or environment configurations. Convergence should be judged from the learning curve rather than from a single final score.
Formula
\pi^* = \arg\max_{\pi} \mathbb{E}_\pi\Big[\sum_t \gamma^t r_t\Big]Common pitfalls
- Applying Deep RL to a small amount of interaction data where the policy cannot converge, when a supervised model on logged outcomes would answer the question.
- Specifying a reward that the agent can satisfy without achieving the intended goal, a form of reward exploitation.
- Treating a static table of past records as an environment; without the ability to act and observe consequences, the agent has nothing to learn from.
- Reporting a policy without checking convergence, for example without examining how cumulative reward evolves over training.
- Drawing conclusions from a single training run, since RL results can differ across random seeds.
Frequently asked questions
How much data does Deep RL need?
A large amount of interaction, and the amount depends on the environment, the algorithm and the reward scale. Convergence is not assured with limited experience, so it should be checked from the learning curve. When only static outcome records are available, a supervised model is usually the safer choice.
What is the difference between DQN, PPO, and A3C?
DQN learns an action-value function, the expected return of each action. During training it typically explores with a strategy such as epsilon-greedy, and at evaluation it chooses actions greedily with respect to the learned values. PPO, introduced by Schulman et al. (2017), and A3C, introduced by Mnih et al. (2016), learn a policy directly. A3C is an actor-critic method, combining a policy with a learned value function. PPO optimises the policy with a clipped surrogate objective that limits how far each update can move it, which is why it is valued for training stability.
Do I need a simulator?
Yes. Deep RL learns from interaction, so a simulator or a live interaction environment is required, along with a deliberately designed reward function that encodes the goal.
Do I need a GPU?
A GPU is typically recommended, because training neural networks over many interactions is computationally heavy. Without suitable compute, training is slow and convergence is harder to reach.
Related methods
Sources
Mnih, V. et al. (2015). Human-Level Control through Deep Reinforcement Learning. Nature, 518, 529–533.
Open DOI referenceSchulman, J. et al. (2017). Proximal Policy Optimization Algorithms. arXiv:1707.06347.
Open publication reference2018_Book_NeuralNetworksAndDeepLearning, p. s.492 (bibliography entry [337]: Mnih et al., Asynchronous methods for deep reinforcement learning, ICML 2016)