Source-linked AI summary
An Introduction to Deep Reinforcement Learning
Vincent Francois-Lavet, Peter Henderson, Riashat Islam, Marc G. Bellemare, Joelle Pineau
TL;DR
Deep RL addresses complex sequential decision-making by combining reinforcement learning with deep learning. This manuscript introduces its core methods, algorithms, generalization issues, benchmarks, and applications. Combined DQN improvements achieve state-of-the-art Atari 2600 performance, while convergence, policy-gradient bias, and multi-agent learning remain challenging.
Problem
Deep RL must address complex sequential decision-making while efficiently exploring environments and generalizing good behavior to slightly different contexts.
Method
The manuscript introduces deep RL models, value-based and policy-based algorithms, generalization techniques, benchmarks, broader settings, and practical applications.
Results
Combined DQN extensions achieve state-of-the-art performance on Atari 2600 benchmarks in sample efficiency and final performance, surpassing human-level performance on a large majority of games.
Takeaways & Limitations
The introduction equips readers to understand and apply key deep RL approaches and pursue further research.
Takeaways & Limitations
Deep RL learning can be unstable because function-approximation errors propagate, convergence may be slow or unstable, and Q-values can be overestimated.
Abstract
from arXiv · showhide
Deep reinforcement learning is the combination of reinforcement learning (RL) and deep learning. This field of research has been able to solve a wide range of complex decision-making tasks that were previously out of reach for a machine. Thus, deep RL opens up many new applications in domains such as healthcare, robotics, smart grids, finance, and many more. This manuscript provides an introduction to deep reinforcement learning models, algorithms and techniques. Particular focus is on the aspects related to generalization and how deep RL can be used for practical applications. We assume the reader is familiar with basic machine learning concepts.
Introduction
Deep RL combines reinforcement learning with deep learning to address challenging sequential decision-making, especially in high-dimensional settings. Despite notable successes and broad application potential, efficient exploration and generalization remain central challenges.
- Sequential decision-making requires choosing action sequences from experience in uncertain environments to achieve goals across domains including robotics, healthcare, finance, and smart grids.
- RL formalizes sequential decision-making through agents that interact with environments and optimize cumulative rewards from experience.
- Deep RL combines RL with deep learning and is especially useful for problems with high-dimensional state spaces.
- Deep RL has achieved super-human performance in Atari games, mastered Go, and defeated top professional poker players.
- Potential applications include robotics, self-driving cars, finance, and smart grids.
- Efficient exploration and generalization to slightly different contexts remain difficult, motivating many algorithms for different sequential decision-making settings.
- The introduction aims to guide readers toward effective use and understanding of deep RL's core methods.
4 Introduction
The manuscript organizes deep RL from foundational machine learning and RL frameworks through algorithms, generalization, online learning, benchmarks, broader settings, applications, and future directions. It is designed to support both understanding and practical application of the field.
- After reading, readers should understand key deep RL approaches and algorithms, apply them, and investigate the research literature.
- The manuscript reviews machine learning and deep learning foundations while assuming familiarity with basic supervised and unsupervised learning.
- It introduces the RL framework and MDPs, then distinguishes model-free value or policy learning from model-based planning with learned environment models.
- A dedicated chapter examines RL generalization through feature selection, function approximators, objective modification, and hierarchical learning.
- The online-learning discussion covers the exploration-exploitation dilemma and replay memory.
- The manuscript surveys RL benchmarks and presents best practices for consistent and reproducible evaluation.
- It also covers POMDPs, distributions of MDPs and transfer learning, learning without explicit rewards, and multi-agent systems.
- Later chapters discuss applications, successes, remaining challenges, neuroscience, future techniques, societal impact, and artificial intelligence.
Machine learning and deep learning
The chapter introduces supervised, unsupervised, and reinforcement learning before explaining function approximation and deep neural networks. It emphasizes generalization, the bias-variance tradeoff, and architectural choices for learning from complex data.
- Machine learning detects patterns in data to perform tasks, including supervised, unsupervised, and reinforcement learning.
- Supervised learning infers classifications or regressions from labeled training data, whereas unsupervised learning draws inferences without labeled responses.
- Reinforcement learning learns action sequences that maximize cumulative rewards.
- Function approximators include linear models, SVMs, decision trees, Gaussian processes, and deep learning.
- Deep learning has improved learning from high-dimensional time series, images, and videos through computing, methodological advances, software, and datasets.
- Supervised learning: Supervised learning maps inputs to outputs through models trained from datasets, with expected and empirical errors used to characterize performance.
- Supervised learning: Under squared loss, error decomposes into bias and variance, with parametric variance also called overfitting error.
- Supervised learning: Overfitting occurs when an overly complex model fits training samples well but fails to generalize, while underfitting can fail even on training data.
Introduction to reinforcement learning
Reinforcement learning formalizes sequential decision-making as an agent interacting with an environment to optimize cumulative rewards. Deep learning supports RL in high-dimensional settings by representing policies, value functions, or environment models from incremental experience.
- Reinforcement learning: RL agents learn behaviors incrementally through trial-and-error interaction rather than requiring complete prior knowledge of the environment.Offline RL learns from a pre-collected batch, whereas online RL updates progressively and must balance exploration with exploitation.
- Formal framework: At each time step, the agent observes its environment, selects an action, receives a reward, and transitions to a new state and observation.The general formulation is a discrete-time stochastic control process.
- Formal framework: An MDP is a Markovian model in which future transitions and rewards depend only on the current state or observation and action.An MDP is represented as the 5-tuple (S, A, T, R, γ), with state and action spaces, transition probabilities, rewards, and a discount factor.
- Policies and value functions: Policies specify action selection, while V-, Q-, and advantage functions quantify expected returns or action quality under a policy.The advantage function compares Qπ(s, a) with Vπ(s), and the optimal policy can be obtained directly from Q∗(s, a).
- RL approaches: RL methods may be model-free, using value or policy representations, or model-based, using an environment model together with planning.Hybrid approaches combine model-free and model-based components.
- Deep reinforcement learning: Deep learning is useful for complex RL problems because neural networks handle high-dimensional sensory inputs and can be trained incrementally from additional samples.Deep RL is particularly useful when state spaces are high-dimensional, although efficient exploration and generalization remain challenging.
Value-based methods for deep RL
Value-based deep RL methods estimate value functions with parameterized approximators to handle high-dimensional state-action spaces, while DQN adds target networks and replay memory to improve online learning stability.
- Deep Q-networks: DQN achieves superhuman-level control in Atari games directly from pixels using neural networks as function approximators.Its online algorithm builds on fitted Q-learning and was evaluated across a variety of Atari games.
- Q-learning foundations: Q-learning estimates action values with a Bellman operator, but its tabular assumptions become impractical for high-dimensional or continuous state-action spaces.The tabular convergence result assumes discrete state-action pairs and repeated sampling of all actions in all states.
- Fitted Q-learning: Parameterized Q-functions replace lookup tables, and neural fitted Q-learning updates their parameters by minimizing a square loss.A neural network can output one value per possible action and compute the next-state maximum in one forward pass.
- Fitted Q-learning: Function approximation can propagate errors, causing slow or unstable convergence and overestimated Q-values, so the Bellman contraction property alone does not guarantee convergence.Even fitted value iteration with linear regression can diverge, showing that approximation does not automatically ensure stability.
- Deep Q-networks: DQN stabilizes learning with a target network held fixed for C iterations and replay-memory mini-batches sampled from recent experience.The target network slows error propagation, while random mini-batches reduce update variance and cover a wider range of the state-action space.
- Deep Q-networks: Additional DQN practices include reward clipping, input preprocessing, convolutional layers, and RMSprop optimization.Reward clipping constrains derivative scale and supports a common learning rate across games, but introduces bias.
4.5 Dueling network architecture
The dueling architecture separates value and advantage estimates before recombining them into Q-values, while related DQN variants enrich learning targets and improve practical performance. These methods retain important constraints around bootstrapping, action spaces, and policy representation.
- Dueling network architecture: The dueling network decouples value and advantage estimation, modifying only the neural-network structure while retaining the DQN learning update.One stream estimates V(s), and the other estimates the advantage function.
- Dueling network architecture: The recombination can lose the original semantics of V and A, but the alternative formulation is preferred because it improves optimization stability.The advantages need only change as fast as their mean, which works better in practice.
- Distributional methods: Distributional reinforcement learning represents the full distribution of cumulative returns rather than only their expected value, enabling risk-aware behavior.The value distribution maps state-action pairs to return distributions whose expectation equals Qπ.
- Distributional methods: Distributional DQN can learn more effectively because its richer representation supplies additional training signals beyond the scalar Q-value.These signals are described as auxiliary tasks that improve learning in practice.
- Multi-step learning: Multi-step targets reduce reliance on recursive bootstrapping and can propagate delayed-reward information more quickly, but pure bootstrapping can become unstable with function approximation.Bootstrapping remains useful for learning from off-policy replay data, whereas n-step and TD(λ) methods can introduce bias off-policy.
- Off-policy learning: Retrace provides an off-policy update with guaranteed convergence and controlled variance, although estimating its target is more computationally expensive than a one-step DQN target.The additional cost comes from evaluating Q on more states.
- Combined DQN variants: Combining DQN extensions achieved state-of-the-art sample efficiency and final performance on Atari 2600, with agents surpassing human performance on a large majority of games.The result concerns the combination of variants studied by Hessel et al. (2017).
- Limitations: DQN-based approaches remain poorly suited to large or continuous action spaces and cannot explicitly learn stochastic policies.These limitations motivate policy-based approaches, while model-free methods also have limited sample efficiency because they do not use an environment model.
Policy gradient methods for deep RL
Policy gradient methods optimize a performance objective by updating stochastic or deterministic policy parameters using value-function estimates and gradient-based improvement. The section covers policy-gradient theorems, estimators, actor-critic architectures, and methods for off-policy learning.
- Policy gradient methods optimize expected cumulative reward by applying stochastic gradient ascent to parameters of a policy, often represented by a neural network.
- The policy gradient theorem enables policy-parameter updates from experience without requiring the gradient of the state distribution.REINFORCE derives a practical estimator using the likelihood-ratio trick.
- Policy-gradient learning alternates policy evaluation, which estimates Qπw, with policy improvement, which increases action probabilities according to expected return.
- An advantage function can replace Qπw to reduce gradient-estimator variance, while a state-dependent baseline improves numerical efficiency by allowing larger learning rates.
- Actor-critic architectures use an actor to update policy parameters and a critic to estimate the current policy’s value function.Deterministic methods such as DDPG extend policy-gradient ideas to continuous actions using gradients of Q with respect to actions.
- Multi-step actor-critic architectures combine replay memory with multi-step returns, using off-policy data while improving learning stability and reward propagation near on-policy behavior.
- A behavior policy β different from π generally makes the policy-gradient estimator biased, complicating convergence analysis without the GLIE assumption.
Model-based methods for deep RL
Model-based deep RL uses an environment model together with planning, while model-free methods learn values or policies directly. Their relative suitability depends on model access, computational constraints, and the structure of the task, motivating integrated approaches.
- Model-based methods combine an explicit or learned environment model with a planning algorithm, whereas model-free methods learn value functions or policies without such a model.
- Planning uses a model to recommend actions through lookahead search for discrete actions or trajectory optimization for continuous action spaces.
- Planning must balance exploration of under-simulated, high-variance regions against exploitation of the most promising moves.
- Monte-Carlo tree search samples trajectories from the current state, updates tree statistics, and recommends an action based on the simulations.
- Differentiable models permit analytic policy gradients through backpropagated rewards, while PILCO uses Gaussian-process uncertainty for planning and policy evaluation.Gaussian processes have not scaled reliably to high-dimensional problems.
- The best approach depends on model availability, model inaccuracies, planning cost, and whether the task structure is easier to capture through a model or through a policy or value function.
- Integrated model-free and model-based training aims to combine sample efficiency with computational efficiency, including architectures that embed differentiable planning modules.
- The VIN architecture learns planning from model-free objectives and performs well on navigation tasks while demonstrating strong generalization across several domains.
The concept of generalization
Generalization in deep RL concerns performance with limited data on the same task or on related tasks. Improving it requires balancing asymptotic bias against overfitting while choosing representations, algorithms, objectives, and hierarchy.
- Scope: Generalization means achieving good performance either in a familiar environment with limited data or in a related environment with changed dynamics or rewards.The first case is linked to sample efficiency; the second is linked to transfer learning and meta-learning.
- Bias-overfitting tradeoff: A policy learned from dataset D has suboptimality decomposed into asymptotic bias and an overfitting term caused by finite data.The objective is to minimize overall suboptimality rather than either component alone.
- Bias-overfitting tradeoff: Increasing policy-class capacity can improve expressiveness but also raises computation and the risk of overfitting when data are insufficient.The resulting bias-overfitting tradeoff is central to learning policies from limited data.
- Design choices: The main design choices for improving generalization are state representation, function approximators, model-free versus model-based learning, objective functions, and hierarchical learning.These choices affect performance when data are limited and when environments are related.
- Illustrative example: In the grid-world example, perfect knowledge favors collecting 0.6 every 3 steps, whereas limited data can make the apparently better reward of 1 seem deterministic on the right.With one experience tuple per state-action pair, this misleading estimate occurs with probability approximately 58%.
- Mitigating overfitting: Robust policies can avoid overfitting at the cost of bias; CRAR additionally learns a low-dimensional task representation and supports planning in its latent state space.A suitable approximator can also infer that the x-coordinate matters more than the y-coordinate in the example.
- Objective choice: Shortening the planning horizon may outperform the true horizon because a long horizon increases overfitting risk, while shortening it introduces bias.The tradeoff is especially relevant when the discount factor γ is close to 1.
Particular challenges in the online setting
Online RL adds an exploration-exploitation problem because agents can gather new data while learning. Deep RL methods address this by using randomization, uncertainty, novelty, skills, auxiliary tasks, or model-based planning.
- Online setting: In online RL, agents gather experience during training and can influence which transitions are collected, unlike batch RL with a fixed dataset.Online methods may also use replay memory to improve data efficiency.
- Exploration-exploitation: Exploration obtains environmental information, whereas exploitation maximizes expected return using current knowledge.The agent must balance learning about uncertain parts of the environment against pursuing promising strategies.
- Regret settings: Cumulative regret measures suboptimality when performance is required during learning, while simple regret measures suboptimality of a test policy after training.The deep RL community more commonly studies the latter setting.
- Exploration strategies: Undirected exploration ignores exploration-specific knowledge, whereas directed exploration uses interaction history and can scale polynomially rather than exponentially with MDP state-space size.ϵ-greedy is an example of undirected exploration.
- High-dimensional exploration: High-dimensional directed exploration should target regions with greatest uncertainty from limited data, and sparse rewards additionally require novelty measures on observations or states.Value-function uncertainty is useful when rewards are not sparse.
- Deep RL approaches: Deep RL exploration methods include randomized value functions, dropout or parameter noise, novelty bonuses, pseudo-counts, learned skills, auxiliary tasks, and model-based planning.These approaches provide different mechanisms for inducing exploration or directing it toward novel states.
Benchmarking Deep RL
Deep RL benchmarking spans games, continuous-control simulations, and reusable environment wrappers. Benchmark design must account for stochasticity, reproducibility, observation and action complexity, non-Markovian structure, and long planning horizons.
- Benchmarking challenges: Fair comparison and reproducibility are difficult because deep RL combines environmental stochasticity with stochasticity from model learning and often uses narrow datasets.These issues make algorithm comparisons especially challenging.
- Video games: Atari benchmarks test large and sometimes non-Markovian observation and action spaces with long planning horizons, and deep RL has reached super-human performance on most games.The ALE includes games such as Pong, Asteroids, and Montezuma’s Revenge.
- Video games: Similarity across Atari games makes them useful for evaluating generalization, multi-task learning, and transfer learning.The shared structure allows comparison across related tasks and variants.
- Video games: GVGAI supports testing agents across many games and constraints, including multiple unknown games with or without access to simulations.It also supports designing new game levels or rules.
- Continuous control: MuJoCo provides continuous-control locomotion tasks where agents learn gaits by applying joint torques from observations of positions and angles.These tasks evaluate complex planning in reinforcement learning algorithms.
- Simulation platforms: Roboschool, physics engines, Unity, and OpenAI Gym extend benchmarking to humanoid simulation, manipulation, transfer to robots, sensory complexity, and multi-agent environments.OpenAI Gym provides access to algorithmic, Atari, board-game, Box2D, classical-control, MuJoCo, and toy-text environments.
- Simulation platforms: Gym Retro provides over 1,000 games for studying generalization between games with similar concepts but different appearances.Other wrappers provide access to additional game and simulation environments.
Deep reinforcement learning beyond MDPs
Beyond fully observed MDPs, deep RL must handle partial observability, related task distributions, and multi-agent interaction. Histories, recurrent policies, meta-learning, and human feedback are among the approaches discussed.
- Generalization beyond MDPs: Non-Markovian environments, transfer learning, and multi-agent systems extend the standard setting in which the current state contains all relevant information.In these settings, the agent may benefit from using its entire observable history.
- Partial observability: A POMDP gives the agent observations that do not identify the state with certainty, while transitions and rewards still depend on hidden states and actions.Its formal components include states, actions, transitions, rewards, observations, observation probabilities, and a discount factor.
- Partial observability: When the full POMDP model is known, planning methods such as PBVI can solve the problem; without it, reinforcement learning techniques are required.The distinction is whether transition, reward, and observation models are available.
- Partial observability: Using only the latest observation is typically insufficient in a POMDP, so policies can instead use histories to estimate hidden-state dynamics.Using the whole history increases the policy search space, computation, and overfitting risk.
- Related task distributions: In meta-learning, the environment is a distribution of related tasks that may differ in rewards or transition probabilities, and the agent learns a policy from task experience.Recurrent networks have been trained on independently sampled environments to learn across tasks and negotiate exploration versus exploitation.
- Human feedback: Human feedback can be used to learn a separate reward model, significantly reducing the feedback required from a human teacher for high-dimensional deep RL tasks.The cited work presents practical applications of human feedback in this setting.
- Multi-agent systems: Multi-agent environments are stochastic from an individual agent’s perspective because other agents’ actions are unknown and affect how its actions contribute to rewards.Deep RL agents have achieved human-level performance in Quake III Arena Capture the Flag, illustrating multi-agent capability.
Perspectives on deep reinforcement learning
Deep RL has solved diverse, previously unsolved tasks, including games and algorithmic problems, while showing potential for real-world applications. Extending these methods to practice remains difficult because agents often cannot interact freely with real environments.
- Deep RL has demonstrated success on diverse challenging tasks previously considered unsolved.
- Superhuman-level performance has been attained in Atari games from pixel inputs.
- Deep RL has mastered Go and beaten professional poker players in heads-up no-limit Texas hold’em.
- These game achievements indicate potential for complex, diverse tasks involving high-dimensional inputs, including robotics, self-driving cars, finance, smart grids, and dialogue systems.
- Deep RL is already used in production for applications such as notification delivery and faster video loading through smart prefetching.
- The approach has also been applied to the travelling salesman problem, with broader impact conditional on exploiting problem structure.
- Real-world deployment is constrained because safety, cost, or time often prevent sufficient free interaction with the actual environment.
96 Perspectives on deep reinforcement learning
Real-world deep RL must address inaccurate simulations and settings where new observations are unavailable, motivating accurate simulators, generalization, and transfer learning. The field also has longstanding connections to neuroscience through reinforcement, prediction errors, and neural processing models.
- Real-world applications may involve learning from an inaccurate simulation rather than the true environment, creating a reality gap.
- New observations may be unavailable in batch settings such as medical trials, weather-dependent tasks, and trading markets.
- Simulated dynamics can coexist with limited data for an exogenous time series, combining both real-world constraints.
- Proposed responses include improving simulator accuracy and designing algorithms for better generalization or transfer learning.
- Reinforcement learning has both drawn inspiration from neuroscience and been used to explain neuroscience and neuroeconomics phenomena.
- Temporal-difference methods connect computational reinforcement learning with prediction-error learning and dopamine-neuron activity.
- Deep learning retains parallels with biological processing, including convolutional structures inspired by the animal visual cortex, despite incompatibility with some current neurobiology.
- Further understanding of biological brains may contribute to more powerful algorithms, while machine learning and neuroscience continue to influence each other.
Conclusion
Sequential decision-making remains an active field with open theoretical, methodological, and experimental challenges. Deep learning adds generalization capabilities that support work with large, high-dimensional state and action spaces.
- Sequential decision-making still presents open theoretical, methodological, and experimental challenges.
- Deep learning has contributed generalization capabilities that expand possibilities for large, high-dimensional state and action spaces.
- Generalization is identified as a central question in deep reinforcement learning.
- Future methods may make explicit algorithms differentiable, embed them in neural networks, and train them end-to-end for richer structures and more abstract reasoning.
100 Conclusion
The paper anticipates progress in hierarchical, lifelong, transfer, and curiosity-driven learning, alongside broad applications of deep RL. It also emphasizes safety, ethical governance, and societal risks from increasingly powerful automation.
- Smart architectures could support hierarchical learning, but temporal abstraction still requires substantial progress.
- Meta-learning and lifelong learning may embed previous knowledge to increase performance and reduce training time.
- Improved transfer between simulations and real-world cases could support learning complex decision-making problems with flexible simulation-based sampling.
- Deep RL is expected to develop curiosity-driven abilities that improve autonomous environmental discovery.
- Potential application areas include clinical decision support, marketing, finance, resource management, autonomous driving, robotics, and smart grids.
- Potential benefits include automating tedious tasks, adapting educational content, supporting clinical decisions, and managing ecological resources.
- Deep RL systems must be safe, reliable, and predictable because arbitrarily designed rewards can sometimes produce unexpected and potentially catastrophic behavior.
- Further automation and robotisation raise concerns involving autonomous weapons, employment, ecological crises, inequality, and social or economic instability.
Appendices
Existing reinforcement-learning frameworks support different development, benchmarking, algorithm, and environment-use needs. Their designs range from modular and accessible research tools to TensorFlow-integrated implementations and specialized platforms.
- Several frameworks provide algorithm implementations or benchmarked baselines, including OpenAI Baselines, rllab, Dopamine, and TensorForce.Dopamine includes Atari baselines, while OpenAI Baselines focuses on baseline implementations.
- TensorForce moves reinforcement computations into the TensorFlow graph for performance and efficiency but is heavily tied to TensorFlow.It includes implementations such as TRPO, DQN, PPO, and A3C.
- RL-Glue connects agents, environments, and experiment programs through a standard interface.
- Frameworks differ in focus, including value-based RL with linear approximators, real-time strategy games, general machine learning, and researcher accessibility.RLPy targets discrete-action value-based RL; ELF targets real-time strategy games; PyBrain offers some RL support; DeeR emphasizes accessibility and modularity.
- Table 1 summarizes characteristics of selected existing RL frameworks.