Behaviour Suite for Reinforcement Learning
Abstract
This paper introduces the Behaviour Suite for Reinforcement Learning , or bsuite for short.
bsuite is a collection of carefully-designed experiments that investigate core capabilities of reinforcement learning (RL) agents with two objectives.
First, to collect clear, informative and scalable problems that capture key issues in the design of general and eﬃcient learning algorithms.
Second, to study agent behaviour through their performance on these shared benchmarks.
To complement this eﬀort, we open source github.com/deepmind/bsuite , which automates evaluation and analysis of any agent on bsuite .
This library facilitates reproducible and accessible research on the core issues in RL, and ultimately the design of superior learning algorithms.
Our code is Python, and easy to use within existing projects.
We include examples with OpenAI Baselines, Dopamine as well as new reference implementations.
Going forward, we hope to incorporate more excellent experiments from the research community, and commit to a periodic review of bsuite from a committee of prominent researchers.
Introduction
The reinforcement learning (RL) problem describes an agent interacting with an environment with the goal of maximizing cumulative reward through time (Sutton & Barto, 2017).
Unlike other branches of control, the dynamics of the environment are not fully known to the agent but can be learned through experience.
Unlike other branches of statistics and machine learning, an RL agent must consider the eﬀects of its actions upon future experience.
An eﬃcient RL agent must address three challenges simultaneously:
Generalization: be able to learn eﬃciently from data it collects.
Exploration : prioritize the right experience to learn from. 3.
Long-term consequences : consider eﬀects beyond a single timestep.
The great promise of reinforcement learning are agents that can learn to solve a wide range of important problems.
According to some deﬁnitions, an agent that can learn to perform at or above human level across a wide variety of tasks is an artiﬁcial general intelligence (AGI) (Minsky, 1961; Legg et al., 2007).
Interest in artiﬁcial intelligence has undergone a resurgence in recent years.
Part of this interest is driven by the constant stream of innovation and success on high proﬁle challenges previously deemed impossible for computer systems.
Improvements in image recognition are a clear example of these accomplishments, progressing from individual digit recognition (LeCun et al., 1998), to mastering ImageNet in only a few years (Deng et al., 2009; Krizhevsky et al., 2012).
The advances in RL systems have been similarly impressive: from checkers (Samuel, 1959), to Backgammon (Tesauro, 1995), to Atari games (Mnih et al., 2015a), to competing with professional players at DOTA (Pachocki et al., 2019) or StarCraft (Vinyals et al., 2019) and beating world champions at Go (Silver et al., 2016).
Outside of playing games, decision systems are increasingly guided by AI systems (Evans & Gao, 2016).
As we look towards the next great challenges for RL and AI, we need to understand our systems better (Henderson et al., 2017).
This includes the scalability of our RL algorithms, the environments where we expect them to perform well, and the key issues outstanding in the design of a general intelligence system.
We have the existence proof that a single self-learning RL agent can master the game of Go purely from self-play (Silver et al., 2018).
We do not have a clear picture of whether such a learning algorithm will perform well at driving a car, or managing a power plant.
If we want to take the next leaps forward, we need to continue to enhance our understanding.
1. Practical theory often lags practical algorithms
The practical success of RL algorithms has built upon a base of theory including gradient descent (Bottou, 2010), temporal diﬀerence learning (Sutton, 1988) and other foundational algorithms.
Good theory provides insight into our algorithms beyond the particular, and a route towards general improvements beyond ad-hoc tinkering.
As the psychologist Kurt
Lewin said, ‘there is nothing as practical as good theory’ (Lewin, 1943).
If we hope to use
RL to tackle important problems, then we must continue to solidify these foundations.
This need is particularly clear for RL with nonlinear function approximation, or ‘deep RL’.
At the same time, theory often lags practice, particularly in diﬃcult problems.
We should not avoid practical progress that can be made before we reach a full theoretical understanding.
The successful development of algorithms and theory typically moves in tandem, with each side enriched by the insights of the other.
The evolution of neural network research, or deep learning , provides a poignant illustration of how theory and practice can develop together (LeCun et al., 2015).
Many of the key ideas for deep learning have been around, and with successful demonstrations, for many years before the modern deep learning explosion (Rosenblatt, 1958; Ivakhnenko, 1968; Fukushima, 1979).
However, most of these techniques remained outside the scope of developed learning theory, partly due to their complex and non-convex loss functions.
Much of the ﬁeld turned away from these techniques in a ‘neural network winter’, focusing instead of function approximation under convex loss (Cortes & Vapnik, 1995).
These convex methods were almost completely dominant until the emergence of benchmark problems, mostly for image recognition, where deep learning methods were able to clearly and objectively demonstrate their superiority (LeCun et al., 1998; Krizhevsky et al., 2012).
It is only now, several years after these high proﬁle successes, that learning theory has begun to turn its attention back to deep learning (Kawaguchi, 2016; Bartlett et al., 2017; Belkin et al., 2018).
The current theory of deep RL is still in its infancy.
In the absence of a comprehensive theory, the community needs principled benchmarks that help to develop an understanding of the strengths and weakenesses of our algorithms.
1. An ‘MNIST’ for reinforcement learning
In this paper we introduce the Behaviour Suite for Reinforcement Learning (or bsuite for short): a collection of experiments designed to highlight key aspects of agent scalability.
Our aim is that these experiments can help provide a bridge between theory and practice, with beneﬁts to both sides.
These experiments embody fundamental issues, such as ‘exploration’ or ‘memory’ in a way that can be easily tested and iterated.
For the development of theory, they force us to instantiate measurable and falsiﬁable hypotheses that we might later formalize into provable guarantees.
While a full theory of RL may remain out of reach, the development of clear experiments that instantiate outstanding challenges for the ﬁeld is a powerful driver for progress.
We provide a description of the current suite of experiments and the key issues they identify in Section 2.
Our work on bsuite is part of a research process, rather than a ﬁnal oﬀering.
We do not claim to capture all, or even most, of the important issues in RL.
Instead, we hope to provide a simple library that collects the best available experiments, and makes them easily accessible to the community.
As part of an ongoing commitment, we are forming a bsuite committee that will periodically review the experiments included in the oﬃcial bsuite release.
We provide more details on what makes an ‘excellent’ experiment in Section 2, and on how to engage in their construction for future iterations in Section 5.
The Behaviour Suite for Reinforcement Learning is a not a replacement for ‘grand challenge’ undertakings in artiﬁcial intelligence, or a leaderboard to climb.
Instead it is a collection of diagnostic experiments designed to provide insight into key aspects of agent behaviour.
Just as the MNIST dataset oﬀers a clean, sanitised, test of image recognition as a stepping stone to advanced computer vision; so too bsuite aims to instantiate targeted experiments for the development of key RL capabilities.
The successful use of illustrative benchmark problems is not unique to machine learning, and our work is similar in spirit to the Mixed Integer Programming Library (MIPLIB) (miplib2017).
In mixed integer programming, and unlike linear programming, the majority of algorithmic advances have (so far) eluded theoretical analysis.
In this ﬁeld, MIPLIB serves to instantiate key properties of problems (or types of problems), and evaluation on
MIPLIB is a typical component of any new algorithm.
We hope that bsuite can grow to perform a similar role in RL research, at least for those parts that continue to elude a uniﬁed theory of artiﬁcial intelligence.
We provide guidelines for how researchers can use bsuite eﬀectively in Section 3.
1. Open source code, reproducible research
As part of this project we open source github.com/deepmind/bsuite , which instantiates all experiments in code and automates the evaluation and analysis of any RL agent on bsuite .
This library serves to facilitate reproducible and accessible research on the core issues in reinforcement learning.
It includes:
• Canonical implementations of all experiments, as described in Section
• Reference implementations of several reinforcement learning algorithms.
• Example usage of bsuite with alternative codebases, including ‘OpenAI Gym’.
• Launch scripts for Google cloud that automate large scale compute at low cost.•
A ready-made bsuite Jupyter notebook with analyses for all experiments.
• Automated L A TEX appendix, suitable for inclusion in conference submission.
We provide more details on code and usage in Section 4.
We hope the Behaviour Suite for Reinforcement Learning, and its open source code, will provide signiﬁcant value to the RL research community, and help to make key conceptual issues concrete and precise.
bsuite can highlight bottlenecks in general algorithms that are not amenable to hacks, and reveal properties and scalings of algorithms outside the scope of current analytical techniques.
We believe this oﬀers an avenue towards great leaps on key issues, separate to the challenges of large-scale engineering (Nair et al., 2015).
Further, bsuite facilitates clear, targeted and uniﬁed experiments across diﬀerent code frameworks, something that can help to remedy issues of reproducibility in RL research (Tanner & White, 2009; Henderson et al., 2017).
1. Related work
The Behaviour Suite for Reinforcement Learning ﬁts into a long history of RL benchmarks.
From the beginning, research into general learning algorithms has been grounded by the performance on speciﬁc environments (Sutton & Barto, 2017).
At ﬁrst, these environments were typically motivated by small MDPs that instantiate the general learning problem.
‘CartPole’ (Barto et al., 1983) and ‘MountainCar’ (Moore, 1990) are examples of classic benchmarks that has provided a testing ground for RL algorithm development.
Similarly, when studying speciﬁc capabilities of learning algorithms, it has often been helpful to design diagnostic environments with that capability in mind.
Examples of this include ‘RiverSwim’ for exploration (Strehl & Littman, 2008) or ‘Taxi’ for temporal abstraction (Dietterich, 2000).
Performance in these environments provide a targeted signal for particular aspects of algorithm development.
As the capabilities or RL algorithms have advanced, so has the complexity of the benchmark problems.
The Arcade Learning Environment (ALE) has been instrumental in driving progress in deep RL through surfacing dozens of Atari 2600 games as learning environments (Bellemare et al., 2013).
Similar projects have been crucial to progress in continuous control (Duan et al., 2016; Tassa et al., 2018), model-based RL (Wang et al., 2019) and even rich 3D games (Beattie et al., 2016).
Performing well in these complex environments requires the integration of many core agent capabilities.
We might think of these benchmarks as natural successors to ‘CartPole’ or ‘MountainCar’.
The Behaviour Suite for Reinforcement Learning oﬀers a complementary approach to existing benchmarks in RL, with several novel components:
bsuite experiments enforce a speciﬁc methodology for agent evaluation beyond just the environment deﬁnition.
This is crucial for scientiﬁc comparisons and something that has become a major problem for many benchmark suites (Machado et al., 2017)
(Section 2).
bsuite aims to isolate core capabilities with targeted ‘unit tests’, rather than integrate general learning ability.
Other benchmarks evolve by increasing complexity, bsuite aims to remove all confounds from the core agent capabilities of interest (Section 3).
bsuite experiments are designed with an emphasis on scalability rather than ﬁnal performance.
Previous ‘unit tests’ (such as ‘Taxi’ or ‘RiverSwim’) are of ﬁxed size, bsuite experiments are speciﬁcally designed to vary the complexity smoothly (Section 2).
github.com/deepmind/bsuite has an extraordinary emphasis on the ease of use, and compatibility with RL agents not speciﬁcally designed for bsuite .
Evaluating an agent on bsuite is practical even for agents designed for a diﬀerent benchmark (Section 4).
Experiments
This section outlines the experiments included in the Behaviour Suite for Reinforcement
Learning 2019 release.
In the context of bsuite , an experiment consists of three parts:
Environments : a ﬁxed set of environments determined by some parameters.
Interaction : a ﬁxed regime of agent/environment interaction (e.g. 100 episodes).
Analysis : a ﬁxed procedure that maps agent behaviour to results and plots.
One crucial part of each bsuite analysis deﬁnes a ‘score’ that maps agent performance on the task to [0 , 1].
This score allows for agent comparison ‘at a glance’, the Jupyter notebook includes further detailed analysis for each experiment.
All experiments in bsuite only measure behavioural aspects of RL agents.
This means that they only measure properties that can be observed in the environment, and are not internal to the agent.
It is this choice that allows bsuite to easily generate and compare results across diﬀerent algorithms and codebases.
Researchers may still ﬁnd it useful to investigate internal aspects of their agents on bsuite environments, but it is not part of the standard analysis.
Every current and future bsuite experiment should target some key issue in RL.
We aim for simple behavioural experiments, where agents that implement some concept well score better than those that don’t.
For an experiment to be included in bsuite it should embody ﬁve key qualities:
• Targeted : performance in this task corresponds to a key issue in RL.
Simple : strips away confounding/confusing factors in research.
• Challenging : pushes agents beyond the normal range.
• Scalable : provides insight on scalability, not performance on one environment.
• Fast : iteration from launch to results in under 30min on standard CPU.
Where our current experiments fall short, we see this as an opportunity to improve the
Behaviour Suite for Reinforcement Learning in future iterations.
We can do this both through replacing experiments with improved variants, and through broadening the scope of issues that we consider.
We maintain the full description of each of our experiments through the code and accompanying documentation at github.com/deepmind/bsuite .
In the following subsections, we pick two bsuite experiments to review in detail: ‘memory length’ and ‘deep sea’, and review these examples in detail.
By presenting these experiments as examples, we can emphasize what we think makes bsuite a valuable tool for investigating core RL issues.
We do provide a high level summary of all other current experiments in Appendix A.
To accompany our experiment descriptions, we present results and analysis comparing three baseline algorithms on bsuite : DQN (Mnih et al., 2015a), A2C (Mnih et al., 2016) and
Bootstrapped DQN (Osband et al., 2016).
As part of our open source eﬀort, we include full code for these agents and more at bsuite/baselines .
All plots and analysis are generated through the automated bsuite Jupyter notebook, and give a ﬂavour for the sort of agent comparisons that are made easy by bsuite .
2. Example experiment: memory length
Almost everyone agrees that a competent learning system requires memory , and almost everyone ﬁnds the concept of memory intuitive.
Nevertheless, it can be diﬃcult to provide a rigorous deﬁnition for memory.
Even in human minds, there is evidence for distinct types of ‘memory’ handled by distinct regions of the brain (Milner et al., 1998).
The assessment of memory only becomes more diﬃcult to analyse in the context of general learning algorithms, which may diﬀer greatly from human models of cognition.
Which types of memory should we analyse?
How can we inspect belief models for arbitrary learning systems?
Our approach in bsuite is to sidestep these debates through simple behavioural experiments.
We refer to this experiment as memory length ; it is designed to test the number of sequential steps an agent can remember a single bit.
The underlying environment is based on a stylized
T-maze (O’Keefe & Dostrovsky, 1971), parameterized by a length N ∈ N .
Each episode lasts N steps with observation o t =
( c t , t/N ) for t = 1 , .., N and action space
A
= {− 1 , +1 } .
The context c 1 ∼ Unif( A ) and c t = 0 for all t ≥ 2.
The reward r t = 0 for all t < N , but r N =
Sign( a N = c 1 ).
For the bsuite experiment we run the agent on sizes N = 1 , ..,exponentially spaced and look at the average regret compared to optimal after 10k episodes.
The summary ‘score’ is the percentage of runs for which the average regret is less than 75% of that achieved by a uniformly random policy.
Memory length is a good bsuite experiment because it is targeted, simple, challenging, scalable and fast.
By construction, an agent that performs well on this task has mastered some use of memory over multiple timesteps.
Our summary ‘score’ provides a quick and dirty way to compare agent performance at a high level.
Our sweep over diﬀerent lengths N provides empirical evidence about the scaling properties of the algorithm beyond a simple pass/fail.
Figure 2a gives a quick snapshot of the performance of baseline algorithms.
Unsurprisingly, actor-critic with a recurrent neural network greatly outperforms the feedforward DQN and Bootstrapped DQN.
Figure 2b gives us a more detailed analysis of the same underlying data.
Both DQN and Bootstrapped DQN are unable to learn anything for length > 1, they lack functioning memory.
A2C performs well for all N ≤ 30 and essentially random for all N > 30, with quite a sharp cutoﬀ. While it is not surprising that the recurrent agent outperforms feedforward architectures on a memory task, Figure 2b gives an excellent insight into the scaling properties of this architecture.
In this case, we have a clear explanation for the observed performance: the RNN agent was trained via backprop-through-time with length 30.
bsuite recovers an empirical evaluation of the scaling properties we would expect from theory.
2. Example experiment: deep sea
Reinforcement learning calls for a sophisticated form of exploration called deep exploration (Osband et al., 2017).
Just as an agent seeking to ‘exploit’ must consider the long term [Figure] consequences of its actions towards cumulative rewards, an agent seeking to ‘explore’ must consider how its actions can position it to learn more eﬀectively in future timesteps.
The literature on eﬃcient exploration broadly states that only agents that perform deep exploration can expect polynomial sample complexity in learning (Kearns & Singh, 2002).
This literature has focused, for the most part, on uncovering possible strategies for deep exploration through studying the tabular setting analytically (Jaksch et al., 2010; Azar et al., 2017).
Our approach in bsuite is to complement this understanding through a series of behavioural experiments that highlight the need for eﬃcient exploration.
The deep sea problem is implemented as an N × N grid with a one-hot encoding for state.
The agent begins each episode in the top left corner of the grid and descends one row per timestep.
Each episode terminates after N steps, when the agent reaches the bottom row.
In each state there is a random but ﬁxed mapping between actions
A = { 0 , 1 } and the transitions ‘left’ and ‘right’.
At each timestep there is a small cost r = − 0 .
01 /N of moving right, and r = 0 for moving left.
However, should the agent transition right at every timestep of the episode it will be rewarded with an additional reward of +1.
This presents a particularly challenging exploration problem for two reasons.
First, following the ‘gradient’ of small intermediate rewards leads the agent away from the optimal policy.
Second, a policy that explores with actions uniformly at random has probability 2 − N of reaching the rewarding state in any episode.
For the bsuite experiment we run the agent on sizes
N = 10 , 12 , .., 50 and look at the average regret compared to optimal after 10k episodes.
The summary ‘score’ computes the percentage of runs for which the average regret drops below 0.9 faster than the 2 N episodes expected by dithering.
Deep Sea is a good bsuite experiment because it is targeted, simple, challenging, scalable and fast.
By construction, an agent that performs well on this task has mastered some key properties of deep exploration.
Our summary score provides a ‘quick and dirty’ way to compare agent performance at a high level.
Our sweep over diﬀerent sizes N can help to provide empirical evidence of the scaling properties of an algorithm beyond a simple pass/fail.
Figure 3 presents example output comparing A2C, DQN and Bootstrapped DQN on this task.
Figure 4a gives a quick snapshot of performance.
As expected, only Bootstrapped
DQN, which was developed for eﬃcient exploration, scores well.
Figure 4b gives a more detailed analysis of the same underlying data.
When we compare the scaling of learning with problem size N it is clear that only Bootstrapped DQN scales gracefully to large problem sizes.
Although our experiment was only run to size 50, the regular progression of learning times suggest we might expect this algorithm to scale towards N > 50.
[Figure]
How to use bsuite
This section describes some of the ways you can use bsuite in your research and development of RL algorithms.
Our aim is to present a high-level description of some research and engineering use cases, rather than a tutorial for the code installation and use.
We provide examples of speciﬁc investigations using bsuite in Appendixes C, D and E. Section 4 provides an outline of our code and implementation.
Full details and tutorials are available at github.com/deepmind/bsuite .
A bsuite experiment is deﬁned by a set of environments and number of episodes of interaction.
Since loading the environment via bsuite handles the logging automatically, any agent interacting with that environment will generate the data required for required for analysis through the Jupyter notebook we provide (P´erez & Granger, 2007).
Generating plots and analysis via the notebook only requires users to provide the path to the logged data.
The ‘radar plot’ (Figure 5) at the start of the notebook provides a snapshot of agent behaviour, based on summary scores.
The notebook also contains a complete description of every experiment, summary scoring and in-depth analysis of each experiment.
You can interact with the full report at bit.ly/bsuite-agents .
If you are developing an algorithm to make progress on fundamental issues in RL, running on bsuite provides a simple way to replicate benchmark experiments in the ﬁeld.
Although many of these problems are ‘small’, in the sense that their solution does not necessarily require large neural architecture, they are designed to highlight key challenges in RL.
Further, although these experiments do oﬀer a summary ‘score’, the plots and analysis are designed to provide much more information than just a leaderboard ranking.
By using this common code and analysis, it is easy to benchmark your agents and provide reproducible and veriﬁable research.
If you are using RL as a tool to crack a ‘grand challenge’ in AI, such as beating a world champion at Go, then taking on bsuite gridworlds might seem like small fry.
We argue that one of the most valuable uses of bsuite is as a diagnostic ‘unit-test’ for large-scale algorithm development.
Imagine you believe that ‘better exploration’ is key to improving your performance on some challenge, but when you try your ‘improved’ agent, the performance does not improve.
Does this mean your agent does not do good exploration?
Or maybe that exploration is not the bottleneck in this problem?
Worse still, these experiments might take days and thousands of dollars of compute to run, and even then the information you get might not be targeted to the key RL issues.
Running on bsuite , you can test key capabilities of your agent and diagnose potential improvements much faster, and more cheaply.
For example, you might see that your algorithm completely fails at credit assignment beyond n = 20 steps.
If this is the case, maybe this lack of credit-assignment over long horizons is the bottleneck and not necessarily exploration.
This can allow for much faster, and much better informed agent development - just like a good suite of tests for software development.
Another beneﬁt of bsuite is to disseminate your results more easily and engage with the research community.
For example, if you write a conference paper targeting some improvement to hierarchical reinforcement learning, you will likely provide some justiﬁcation for your results in terms of theorems or experiments targeted to this setting.
However, it is typically a large amount of work to evaluate your algorithm according to alternative metrics, such as exploration.
This means that some ﬁelds may evolve without realising the connections and distinctions between related concepts.
If you run on bsuite , you can automatically generate a one-page Appendix, with a link to a notebook report hosted online.
This can help provide a scientiﬁc evaluation of your algorithmic changes, and help to share your results in an easily-digestible format, compatible with ICML, ICLR and NeurIPS formatting.
We provide examples of these experiment reports in Appendices B, C, D and E.
Code structure
To avoid discrepancies between this paper and the source code, we suggest that you take practical tutorials directly from github.com/deepmind/bsuite .
A good starting point is bit.ly/bsuite-tutorial : a Jupyter notebook where you can play the code right from your browser, without installing anything.
The purpose of this section is to provide a high-level overview of the code that we open source.
In particular, we want to stress is that bsuite is designed to be a library for RL research, not a framework.
We provide implementations for all the environments, analysis, run loop and even baseline agents.
However, it is not necessary that you make use of them all in order to make use of bsuite .
The recommended method is to implement your RL agent as a class that implements a policy method for action selection, and an update method for learning from transitions and rewards.
Then, simply pass your agent to our run loop, which enumerates all the necessary bsuite experiments and logs all the data automatically.
If you do this, then all the experiments and analysis will be handled automatically and generate your results via the included Jupyter notebook.
We provide examples of running these scripts locally, and via Google cloud through our tutorials.
If you have an existing codebase, you can still use bsuite without migrating to our run loop or agent structure.
Simply replace your environment with environment = bsuite.load and record(bsuite id) and add the ﬂag bsuite id to your code.
You can then complete a full bsuite evaluation by iterating over the bsuite id s deﬁned in sweep.
SWEEP .
Since the environments handle the logging themselves, your don’t need any additional logging for the standard analysis.
Although full bsuite includes many separate evaluations, no single bsuite environment takes more than 30 minutes to run and the sweep is naturally parallel.
As such, we recommend launching in parallel using multiple processes or multiple machines.
Our examples include a simple approach using Python’s multiprocessing module with Google cloud compute.
We also provide examples of running bsuite from OpenAI baselines (Dhariwal et al., 2017) and Dopamine (Castro et al., 2018).
Designing a single RL agent compatible with diverse environments can cause problems, particularly for specialized neural networks.
bsuite alleviates this problem by specifying an observation spec that surfaces the necessary information for adaptive network creation.
By default, bsuite environments implement the dm env standards (Muldal et al., 2017), but we also include a wrapper for use through Openai gym (Brockman et al., 2016).
However, if your agent is hardcoded for a format, bsuite oﬀers the option to output each environment with the observation spec of your choosing via linear interpolation.
This means that, if you are developing a network suitable for Atari and particular observation spec , you can choose to swap in bsuite without any changes to your agent.
Future iterations
This paper introduces the Behaviour Suite for Reinforcement Learning, and marks the start of its ongoing development.
With our opensource eﬀort, we chose a speciﬁc collection of experiments as the bsuite2019 release, but expect this collection to evolve in future iterations.
We are reaching out to researchers and practitioners to help collate the most informative, targeted, scalable and clear experiments possible for reinforcement learning.
To do this, submissions should implement a sweep that determines the selection of environments to include and logs the necessary data, together with an analysis that parses this data.
In order to review and collate these submissions we will be forming a bsuite committee.
The committee will meet annually during the NeurIPS conference to decide which experiments will be included in the bsuite release.
We are reaching out to a select group of researchers, and hope to build a strong core formed across industry and academia.
If you would like to submit an experiment to bsuite or propose a committee member, you can do this via github pull request, or via email to bsuite.committee@gmail.com .
We believe that bsuite can be a valuable tool for the RL community, and particularly for research in deep RL.
So far, the great success of deep RL has been to leverage large amounts of computation to improve performance.
With bsuite we hope to leverage largescale computation for improved understanding .
By collecting clear, informative and scalable experiments; and providing accessible tools for reproducible evaluation we hope to facilitate progress in reinforcement learning research
A Experiment summary
This appendix outlines the experiments that make up the bsuite 2019 release.
In the interests of brevity, we provide only an outline of each experiment here.
Full documentation for the environments, interaction and analysis are kept with code at github.com/deepmind/bsuite .
A. Basic learning
We begin with a collection of very simple decision problems, and standard analysis that conﬁrms an agent’s competence at learning a rewarding policy within them.
We call these experiments ‘basic’, since they are not particularly targeted at speciﬁc core issues in RL, but instead test a general base level of competence we expect all general agents to attain.
A.1. Simple bandit
[Table]
A.1. MNIST
[Table]
A.1. Catch
[Table]
[Table]
[Table]
A.1. Cartpole
[Table]
[Table]
[Table]
[Table]
[Table]
[Table]
[Table]
A.1. Mountain car
[Table]
A. Stochasticity
To investigate the robustness of RL agents to noisy rewards [Table] we repeat the experiments from
Section A.1 under diﬀering levels of Gaussian noise.
This time we allocate the 20 diﬀerent seeds across 5 levels of Gaussian noise N (0 , σ 2 ) for σ = [0 . 1 , 0 . 3 , 1 , 3 , 10] with 4 seeds each.
A. Problem scale
To investigate the robustness of RL agents to problem scale, we repeat the experiments from Section A.1 under diﬀering reward scales.
This time we allocate the 20 diﬀerent seeds across 5 levels of reward scaling, where we multiply the observed rewards by λ =
[0 . 01 , 0 . 1 , 1 , 10 , 100] with 4 seeds each.
A. Exploration
As an agent interacts with its environment [Table] it observes the outcomes that result from previous states and actions [Table]
and learns about the system dynamics.
This leads to a fundamental tradeoﬀ: by exploring poorly-understood states and actions the agent can learn to improve future performance, but it may attain better short-run performance by exploiting its existing knowledge.
Exploration is the challenge of prioritizing useful information for learning, and the experiments in this section are designed to necessitate eﬃcient exploration for good performance
[Table]
A.4. Deep sea
[Table]
A.4. Stochastic deep sea
[Table]
stochasticity
A.4. Cartpole swingup
[Table]
A. Credit assignment
Reinforcement learning extends contextual bandit decision problem to allow long term consequences in decision problems.
This means that actions in one timestep can eﬀect dynamics in future timesteps.
One of the challenges of this setting is that of credit assignment
[Table]
and the experiments in this section are designed to highlight these issues
[Table]
A.5. Umbrella length
[Table]
A.5. Umbrella features
[Table]
A.5. Discounting chain
[Table]
A. Memory
Memory is the challenge that an agent should be able to curate an eﬀective state representation from a series of observations.
In this section we review a series of experiments in which agents with memory can perform much better than those that only have access to the immediate observation.
A.6. Memory length
[Table]
A.6. Memory bits
[Table]
B bsuite report as conference appendix
If you run an agent on bsuite , and you want to share these results as part of a conference submission, we make it easy to share a single-page ‘ bsuite report’ as part of your appendix.
We provide a simple L A TEXﬁle that you can copy/paste into your paper, and is compatible out-the-box with ICLR, ICML and NeurIPS style ﬁles.
This single page summary displays the summary scores for experiment evaluations for one or more agents, with plots generated automatically from the included ipython notebook.
In each report, two sections are left for the authors to ﬁll in: one describing the variants of the agents examined and another to give some brief commentary on the results.
We suggest that authors promote more in-depth analysis to their main papers, or simply link to a hosted version of the full bsuite analysis online.
You can ﬁnd more details on our automated reports at github.com/deepmind/bsuite .
The sections that follow are example bsuite reports, that give some example of how these report appendixes might be used.
We believe that these simple reports can be a good complement to conference submissions in RL research, that ‘sanity check’ the elementary properties of algorithmic implementations.
An added bonus of bsuite is that it is easy to set up a like for like experiment between agents from diﬀerent ‘frameworks’ in a way that would be extremely laborious for an individual researcher.
If you are writing a conference paper on a new RL algorithm, we believe that it makes sense for you to include a bsuite report in the appendix by default .
C bsuite report: benchmarking baseline agents
The Behaviour Suite for Reinforcement Learning , or bsuite for short, is a collection of carefully-designed experiments that investigate core capabilities of a reinforcement learning (RL) agent.
The aim of the bsuite project is to collect clear, informative and scalable problems that capture key issues in the design of eﬃcient and general learning algorithms and study agent behaviour through their performance on these shared benchmarks.
This report provides a snapshot of agent performance on bsuite2019 , obtained by running the experiments from github.com/deepmind/bsuite (Osband et al., 2019).
C. Agent definition
In this experiment all implementations are taken from bsuite/baselines with default conﬁgura- tions.
We provide a brief summary of the agents run on bsuite2019 :
• random : selects action uniformly at random each timestep.
• dqn : Deep Q-networks (Mnih et al., 2015b).
• boot dqn : bootstrapped DQN with prior networks (Osband et al., 2016; 2018).
• actor critic rnn : an actor critic with recurrent neural network (Mnih et al., 2016).
C. Summary scores
Each bsuite experiment outputs a summary score in [0,1].
We aggregate these scores by according to key experiment type, according to the standard analysis notebook.
A detailed analysis of each of these experiments may be found in a notebook hosted on Colaboratory bit.ly/bsuite-agents .
C. Results commentary
• random performs uniformly poorly, conﬁrming the scores are working as intended.
• dqn performs well on basic tasks, and quite well on credit assignment, generalization, noise and scale.
DQN performs extremely poorly across memory and exploration tasks.
The feedforward MLP has no mechanism for memory, and (cid:15)
=5%-greedy action selection is ineﬃcient exploration.
• boot dqn is mostly identically to DQN, except for exploration where it greatly outperforms.
This result matches our understanding of Bootstrapped DQN as a variant of DQN designed to estimate uncertainty and use this to guide deep exploration.
• actor critic rnn typically performs worse than either DQN or Bootstrapped DQN on all tasks apart from memory.
This agent is the only one able to perform better than random due to its recurrent network architecture.
D bsuite report: optimization algorithm in DQN
The Behaviour Suite for Reinforcement Learning , or bsuite for short, is a collection of carefully-designed experiments that investigate core capabilities of a reinforcement learning (RL) agent.
The aim of the bsuite project is to collect clear, informative and scalable problems that capture key issues in the design of eﬃcient and general learning algorithms and study agent behaviour through their performance on these shared benchmarks.
This report provides a snapshot of agent performance on bsuite2019 , obtained by running the experiments from github.com/deepmind/bsuite (Osband et al., 2019).
D. Agent definition
All agents correspond to diﬀerent instantiations of the DQN agent (Mnih et al., 2015b), as imple- mented in bsuite/baselines but with diﬀernet optimizers from Tensorﬂow (Abadi et al., 2015).
In each case we tune a learning rate to optimize performance on ‘basic’ tasks from { 1e-1, 1e-2, 1e-3 } , keeping all other parameters constant at default value.
• sgd : vanilla stochastic gradient descent with learning rate 1e-2 (Kiefer & Wolfowitz, 1952).
• rmsprop : RMSProp with learning rate 1e-3 (Tieleman & Hinton, 2012).
• adam : Adam with learning rate 1e-3 (Kingma & Ba, 2015).
D. Summary scores
Each bsuite experiment outputs a summary score in [0,1].
We aggregate these scores by according to key experiment type, according to the standard analysis notebook.
A detailed analysis of each of these experiments may be found in a notebook hosted on Colaboratory: bit.ly/bsuite-optim .
D. Results commentary
Both RMSProp and Adam perform better than SGD in every category.
In most categories, Adam slightly outperforms RMSprop, although this diﬀerence is much more minor.
SGD performs particularly badly on environments that require generalization and/or scale.
This is not particularly surprising, since we expect the non-adaptive SGD may be more sensitive to learning rate optimization or annealing.
In Figure 11 we can see that the diﬀerences are particularly pronounced on the cartpole domains.
We hypothesize that this task requires more eﬃcient neural network optimization, and the nonadaptive SGD is prone to numerical issues.
E bsuite report:
ensemble size in Bootstrapped DQN
The Behaviour Suite for Reinforcement Learning , or bsuite for short, is a collection of carefully-designed experiments that investigate core capabilities of a reinforcement learning (RL) agent.
The aim of the bsuite project is to collect clear, informative and scalable problems that capture key issues in the design of eﬃcient and general learning algorithms and study agent behaviour through their performance on these shared benchmarks.
This report provides a snapshot of agent performance on bsuite2019 , obtained by running the experiments from github.com/deepmind/bsuite (Osband et al., 2019).
E. Agent definition
In this experiment, all agents correspond to diﬀerent instantiations of a Bootstrapped DQN with prior networks (Osband et al., 2016; 2018).
We take the default implementation from bsuite/baselines .
We investigate the eﬀect of the number of models used in the ensemble, sweep- ing over { 1, 3, 10, 30 } .
E. Summary scores
Each bsuite experiment outputs a summary score in [0,1].
We aggregate these scores by according to key experiment type, according to the standard analysis notebook.
A detailed analysis of each of these experiments may be found in a notebook hosted on Colaboratory: bit.ly/bsuite-ensemble .
E. Results commentary
Generally, increasing the size of the ensemble improves bsuite performance across the board.
However, we do see signﬁcantly decreasing returns to ensemble size, so that ensemble 30 does not perform much better than size 10.
These results are not predicted by the theoretical scaling of proven bounds (Lu & Van Roy, 2017), but are consistent with previous empirical ﬁndings (Osband et al., 2017; Russo et al., 2017).
The gains are most extreme in the exploration tasks, where ensemble sizes less than 10 are not able to solve large ‘deep sea’ tasks, but larger ensembles solve them reliably.
Even for large ensemble sizes, our implementation does not completely solve every cartpole swingup instance.
Further examination learning curves suggests this may be due to some instability issues,