Deployment-Efficient Reinforcement Learning via Model-Based Offline Optimization

Tatsuya Matsushima, Hiroki Furuta, Yutaka Matsuo, Ofir Nachum, Shixiang Gu

Introduction

Reinforcement learning (RL) algorithms have recently demonstrated impressive success in learning behaviors for a variety of sequential decision-making tasks . Virtually all of these demonstrations have relied on highly-frequent online access to the environment, with the RL algorithms often interleaving each update to the policy with additional experience collection of that policy acting in the environment. However, in many real-world applications of RL, such as health , education , dialog agents , and robotics , the deployment of a new data-collection policy may be associated with a number of costs and risks. If we can learn tasks with a small number of data collection policies, we can substantially reduce these costs and risks.

Based on this idea, we propose a novel measure of RL algorithm performance, namely deployment efficiency, which counts the number of changes in the data-collection policy during learning, as illustrated in Figure 1. This concept may be seen in contrast to sample efficiency or data efficiency , which measures the amount of environment interactions incurred during training, without regard to how many distinct policies were deployed to perform those interactions. Even when the data efficiency is high, the deployment efficiency could be low, since many on-policy and off-policy algorithms alternate data collection with each policy update . Such dependence on high-frequency policy deployments is best illustrated in the recent works in offline RL , where baseline off-policy algorithms exhibited poor performance when trained on a static dataset. These offline RL works, however, limit their study to a single deployment, which is enough for achieving high performance with data collected from a sub-optimal behavior policy, but often not from a random policy. In contrast to those prior works, we aim to learn successful policies from scratch with minimal amounts of data and deployments.

Many existing model-free offline RL algorithms are tuned and evaluated on large datasets (e.g., one million transitions). In order to develop an algorithm that is both sample-efficient and deployment-efficient, each iteration of the algorithm between successive deployments has to work effectively on much smaller dataset sizes. We believe model-based RL is better suited to this setting due to its higher demonstrated sample efficiency than model-free RL . Although the combination of model-based RL and offline or limited-deployment settings seems straight-forward, we find this naïve approach leads to poor performance. This problem can be attributed to extrapolation errors similar to those observed in model-free methods. Specifically, the learned policy may choose sequences of actions which lead it to regions of the state space where the dynamics model cannot predict properly, due to poor coverage of the dataset. This can lead the policy to exploit approximation errors of the dynamics model and be disastrous for learning. In model-free settings, similar data distribution shift problems are typically remedied by regularizing policy updates explicitly with a divergence from the observed data distribution , which, however, can overly limit policies’ expressivity .

In order to better approach these problems arising in limited deployment settings, we propose Behavior-Regularized Model-ENsemble (BREMEN), which learns an ensemble of dynamics models in conjunction with a policy using imaginary rollouts while implicitly regularizing the learned policy via appropriate parameter initialization and conservative trust-region learning updates. We evaluate BREMEN on high-dimensional continuous control benchmarks and find that it achieves impressive deployment efficiency. BREMEN is able to learn successful policies with only 5-10 deployments, significantly outperforming existing off-policy and offline RL algorithms in this deployment-constrained setting. We further evaluate BREMEN on standard offline RL benchmarks, where only a single static dataset is used. In this fixed-batch setting, our experiments show that BREMEN can not only achieve performance competitive with state-of-the-art when using standard dataset sizes but also learn with 10-20 times smaller datasets, which previous methods are unable to attain.

Preliminaries

We consider a Markov Decision Process (MDP) setting, characterized by the tuple M=(S,A,p,r,γ)\mathcal{M}=(\mathcal{S},\mathcal{A},p,r,\gamma), where S\mathcal{S} is the state space, A\mathcal{A} is the action space, p(s′∣s,a)p(s^{\prime}|s,a) is the transition probability distribution or dynamics, r(s)r(s) is the reward function and γ∈(0,1)\gamma\in(0,1) is the discount factor. A policy π\pi is a function that determines the agent behavior, mapping from states to probability distributions over actions. The goal is to obtain the optimal policy π∗\pi^{\ast} as

where η[π]\eta[\pi] is the expectation of the discounted sum of rewards under the policy π\pi. The transition probability p(s′∣s,a)p(s^{\prime}|s,a) is usually unknown, and it is estimated with a parameterized dynamics model fϕf_{\phi} (e.g., a neural network) in model-based RL. For simplicity, we assume that the reward function r(s)r(s) is known, and the reward can be computed for any arbitrary state, but we can easily extend to the unknown setting and predict it using a parameterized function.

On-policy vs Off-policy, Online vs Offline At high-level, most RL algorithms iterate many times between collecting a batch of transitions (deployments) and optimizing the policy (learning). If the algorithms discard data after each policy update, they are on-policy , while if they accumulate data in a buffer D\mathcal{D}, i.e. experience replay , they are off-policy because not all the data in buffer comes from the current policy. However, we consider all these algorithms to be online RL algorithms, since they involve many deployments during learning, ranging from hundreds to millions. On the other hand, in pure offline RL, one does not assume direct interaction and learns a policy from only a fixed dataset, which effectively corresponds to a single deployment allowed for learning. Classically, interpolating these two extremes were semi-batch RL algorithms , which improve the policy through repetitions of collecting a large batch of transitions D={(s,a,s′,r)}\mathcal{D}=\{(s,a,s^{\prime},r)\} and performing many or full policy updates. While these semi-batch RL also realize good deployment efficiency, they have not been extensively studied with neural network function approximators or in off-policy settings with experience replay for scalable sample-efficient learning. In our work, we aim to have both high deployment efficiency and sample efficiency by developing an algorithm that can solve the tasks with minimal policy deployments as well as transition samples.

Deployment Efficiency

Deploying a new policy for data collection can be associated with a number of costs and risks for many real-world applications like medicine or robotic control . While there is an abundance of works on safety for RL , these methods often do not provide guarantees in practice when combined with neural networks and stochastic optimization. It is therefore necessary to validate each policy before deployment. Due to the cost associated with each deployment, it is desirable to minimize the number of distinct deployments needed during the learning process.

In order to focus research on these practical bottlenecks, we propose a novel measure of RL algorithms, namely, deployment efficiency, which counts how many times the data-collection policy has been changed during improvement from random policy to solve the task. For example, if an RL algorithm operates by using its learned policy to collect transitions from the environment II times, each time collecting a batch of BB new transitions, then the number of deployments is II, while the total number of samples collected is I×BI\times B. The lower II is, the more deployment-efficient the algorithm is; in contrast, sample efficiency looks at I×BI\times B. Online RL algorithms, whether they are on-policy or off-policy, typically update the policy and acquire new transitions by deploying the newly updated policy at every iteration. This corresponds to performing hundreds to millions of deployments during learning on standard benchmarks , which is severely deployment inefficient. On the other hand, offline RL literature only studies the case of 1 deployment. A deployment-efficient algorithm would stand in the middle of these two extremes and ideally learn a successful policy from scratch while deploying only a few distinct policies, as illustrated in Figure 1.

Recent deep RL literature seldom emphasizes deployment efficiency, with few exceptions in specific applications where such a learning procedure is necessary. Although current state-of-the-art algorithms on continuous control have substantially improved sample or data efficiency, they have not optimized for deployment efficiency. For example, SAC , an efficient model-free off-policy algorithm, performs half a million to one million policy deployments during learning on MuJoCo benchmarks. ME-TRPO , a model-based algorithm, performs a much lower 100-300 policy deployments, although this is still relatively high for practical settings.We examined the number of deployments by checking their original implementations, while the frequency of data collection is a tunable hyper-parameter. In our work, we demonstrate successful learning on standard benchmark environments with only 5-10 deployments.

Behavior-Regularized Model-Ensemble

To achieve high deployment efficiency, we propose Behavior-Regularized Model-ENsemble (BREMEN). BREMEN incorporates Dyna-style model-based RL, learning an ensemble of dynamics models in conjunction with a policy using imaginary rollouts from the ensemble and behavior regularization via conservative trust-region updates.

As in recent Dyna-style model-based RL methods , BREMEN uses an ensemble of KK deterministic dynamics models f^ϕ={f^ϕ1,…,f^ϕK}\hat{f}_{\phi}=\left\{\hat{f}_{\phi_{1}},\dots,\hat{f}_{\phi_{K}}\right\} to alleviate the problem of model bias. Each model f^ϕi\hat{f}_{\phi_{i}} is parameterized by ϕi{\phi_{i}} and trained by the following objective, which minimizes mean squared error between the prediction of next state f^ϕi(st,at)\hat{f}_{\phi_{i}}(s_{t},a_{t}) and true next state st+1s_{t+1} over a dataset D\mathcal{D}:

During training of a policy πθ\pi_{\theta}, imagined trajectories of states and actions are generated sequentially, using a dynamics model f^ϕi\hat{f}_{\phi_{i}} that is randomly selected at each time step:

2 Policy Update with Behavior Regularization

In order to manage the discrepancy between the true dynamics and the learned model caused by the distribution shift in batch settings, we propose to use iterative policy updates via a trust-region constraint, re-initialized with a behavior-cloned policy after every deployment. Specifically, after each deployment, we are given an updated dataset of experience transitions D\mathcal{D}. With this dataset, we approximate the true behavior policy πb\pi_{b} through behavior cloning (BC), utilizing a neural network π^β\hat{\pi}_{\beta} parameterized by β\beta, where we implicitly assume a fixed variance, a common practice in BC :

After obtaining the estimated behavior policy, we initialize the target policy πθ\pi_{\theta} as a Gaussian policy with mean from π^β\hat{\pi}_{\beta} and standard deviation of 11. This BC initialization in conjunction with gradient descent based optimization may be seen as implicitly biasing the optimized πθ\pi_{\theta} to be close to the data-collection policy , and thus works as a remedy for the distribution shift problem . To further bias the learned policy to be close to the data-collection policy, we opt to use a KL-based trust-region optimization . Therefore, the optimization of BREMEN becomes

where Aπθk(s,a)A^{\pi_{\theta_{k}}}(s,a) is the advantage of πθk\pi_{\theta_{k}} computed using model-based rollouts in the learned dynamics model and δ\delta is the maximum step size.

The combination of BC for initialization and finite iterative trust-region updates serves as an implicit KL regularization, as discussed in Section 4.3. This is in contrast to many previous offline RL algorithms that augment the value function with a penalty of explicit KL divergence or maximum mean discrepancy . Empirically, we found that our regularization technique outperforms the explicit KL penalty (see Section 5.3).

By recursively performing offline procedure, BREMEN can be used for deployment-efficient learning as shown in Algorithm 1, starting from a randomly initialized policy, collecting experience data, and performing offline policy updates.

3 Implicit KL Control from a Mathematical Perspective

This bound guarantees the improvement under the true returns as long as the improvement under the model returns increases by more than the slack in the bound due to ϵm,ϵπ\epsilon_{m},\epsilon_{\pi} .

We may relate this bound to the specific learning employed by BREMEN, which includes dynamics model learning, behavior cloning policy initialization, and conservative KL-based trust-region policy updates. To do so, we consider an idealized version of BREMEN, where the expectations over states in equations 1, 3, 4 are replaced with supremums and the dynamics model is set to have unit variance.

Suppose we apply the idealized BREMEN on a dataset D\mathcal{D}, and define ϵβ,ϵϕ\epsilon_{\beta},\epsilon_{\phi} in terms of the behavior cloning and dynamics model losses as,

where H\mathcal{H} denotes the Shannon entropy. If one then applies TT KL-based trust-region steps of step size δ\delta (equation 4) using stochastic dynamics models with mean f^ϕ\hat{f}_{\phi} and standard deviation 1, then

Experiments

We evaluate BREMEN in both deployment-efficient settings, where the algorithm must learn a policy from scratch via a limited number of deployments, and offline RL, where the algorithm is given only a single static dataset. We use four standard continuous control benchmarks for offline RL , namely, Ant, HalfCheetah, Hopper, and Walker2d on the MuJoCo physics simulator . See Appendix B and C for further details and results.

We compare BREMEN to ME-TRPO, SAC, BCQ, and BRAC applied to limited deployment settings. To adapt offline methods (BCQ, BRAC) to this setting, we simply apply them in a recursive fashion;Recursive BCQ and BRAC also do behavioral cloning-based policy initialization after each deployment. at each deployment iteration, we collect a batch of data with the most recent policy and then run the offline update with this dataset. As for SAC, we simply change the replay buffer to update only at specific deployment intervals. For the sake of comparison, we align the number of deployments and the amount of data collection at each deployment (either 100,000 or 200,000) for all methods.

Figure 2 shows the results with 200,000 (top) and 100,000 (bottom) batched transitions per deployment. Regardless of the environments and the batch size per update, BREMEN achieves remarkable performance while existing online and offline RL methods struggle to make any progress in the limited deployment settings. As a point of comparison, we also include results for online SAC and ME-TRPO without limits on the number of deployments but using the same number of transitions.

2 Evaluating Offline Learning

We also evaluate BREMEN on standard offline RL benchmarks following Wu et al. . We first train online SAC to a certain cumulative reward threshold, 4,000 in HalfCheetah, 1,000 in Ant, Hopper, and Walker2d, and collect offline datasets. We evaluate agents with the offline dataset of one million (1M) transitions, which is standard for BCQ and BRAC . We then evaluate them on much smaller datasets of 50k and 100k transitions, 5∼\sim10 % of prior works.

Table 1 shows that BREMEN can achieve performance competitive with state-of-the-art model-free offline RL algorithms when using the standard dataset size of 1M. Moreover, BREMEN can also appropriately learn with 10-20 times smaller datasets, where BCQ and BRAC are unable to exceed even BC baseline. As a result, our recursive BREMEN algorithm is not only deployment-efficient but also sample-efficient, and significantly outperforms the baselines.

3 Evaluating Effectiveness of Implicit KL Control

In this section, we present an experiment to better understand the effect of BREMEN’s implicit regularization. Figure 3 shows the KL divergence of learned policies from the last deployed policy. We compare BREMEN to variants of BREMEN that use an explicit KL penalty on value instead of BC initialization (conservative KL trust-region updates are still used). We find that the explicit KL without behavior initialization variants learn policies that move farther away from the last deployed policy than behavior initialized policies. This suggests that the implicit behavior regularization employed by BREMEN is more effective as a conservative policy learning protocol.

Related Work

Although we are not aware of any previous works which explicitly proposed the concept of deployment efficiency, its necessity in many real-world applications has been generally known. One may consider previously proposed semi-batch RL algorithms or theoretical analysis of switching cost under the tabular PAC-MDP settings as approaching this issue. More recently, a related but distinct problem known as offline RL has gained popularity . These offline RL works consider an extreme version of 1 deployment, and typically collect the static batch with a partially trained policy rather than a random policy. While offline RL has shown promising results for a variety of real-world applications, such as robotics , dialogue systems , or medical treatments , these algorithms struggle when learning a policy from scratch or when the dataset is small. Nevertheless, common themes of many offline RL algorithms – regularizing the learned policy to the behavior policy and utilizing ensembles to handle uncertainty – served as inspirations for the proposed BREMEN algorithm. A major difference of BREMEN from prior works is that the target policy is not explicitly forced to stick close to the estimated behavior policy through the policy update. Rather, BREMEN employs a more implicit regularization by initializing the learned policy with a behavior cloned policy and then applying conservative trust-region updates. Another major difference is the application of model-based approaches to fully offline settings, which has not been extensively studied in prior works , except the two concurrent works from Kidambi et al. and Yu et al. that study pessimistic or uncertainty penalized MDPs with guarantees – closely related to Liu et al. . By contrast, our work shows that a simple technique can already enable model-based offline algorithms to significantly outperform the prior model-free methods, and is, to the best of our knowledge, the first to define and extensively evaluate deployment efficiency with recursive experiments.

There are many types of model-based RL algorithms . A simple algorithmic choice is Dyna-style , which uses a parameterized dynamics model to estimate the true MDP transition function, stochastically mapping states and actions to next states. The dynamics model can then serve as a simulator of the environment during policy updates. Dyna-style algorithms often suffer from the distributional shift, also known as model bias, which leads RL agents to exploit regions where the data is insufficient, and significant performance degradation. A variety of remedies have been proposed to relieve the problem of model bias, such as the use of multiple dynamics models as an ensemble , meta-learning , energy-based model regularizer , game-theoretic framework , and explicit reward penalty for unknown state . Notably, we have employed a subset of these remedies – model ensembles and trust-region updates – for BREMEN. Compared to existing works, our work is notable for using BC initialization in conjunction with trust-region updates to alleviate the distribution shift of the learned policy from the dataset used to train the dynamics model.

Conclusion

In this work, we introduced deployment efficiency, a novel measure for RL performance that counts the number of changes in the data-collection policy during learning. To enhance deployment efficiency, we proposed Behavior-Regularized Model-ENsemble (BREMEN), a novel model-based offline algorithm with implicit KL regularization via appropriate policy initialization and trust-region updates. BREMEN shows impressive results in limited deployment settings, obtaining successful policies from scratch in only 5-10 deployments, as it can improve policies offline even when the batch size is 10-20 times smaller than prior works. Not only can this help alleviate costs and risks in real-world applications, but it can also reduce the amount of communication required during distributed learning and could form the basis for communication-efficient large-scale RL in contrast to prior works . Most critically, we show that under deployment efficiency constraints, most prior algorithms – model-free or model-based, online or offline – fail to achieve successful learning. We hope our work can gear the research community to value deployment efficiency as an important criterion for RL algorithms, and to eventually achieve similar sample efficiency and asymptotic performance as the state-of-the-art algorithms like SAC while having the deployment efficiency well-suited for safe and practical real-world reinforcement learning.

Broader Impact

Deployment efficiency is a key-concept for real-world applications for RL because excessive policy deployments may be harmful or costly in robotics, health care, dialog agents, or education. However, in most prior deep RL literatures and benchmarks, this metric is seldom mentioned and sometimes its disregard is exploited for the best sample-efficiency while effectively allowing 100k-1M of deployments. Our proposed algorithm BREMEN achieves high deployment efficiency of 5-10 deployments for learning the standard OpenAI Gym MuJoCo benchmarks that no other algorithms can match. While the final performances are sometimes worse than deployment-unconstrained SAC, we hope our definition and benchmark for deployment efficiency can motivate further research by the community. Other impact questions are not applicable for this paper.

On the other hand, BREMEN still requires a few online deployments, which may still involve some risks. Fully safe and efficient RL that can learn from scratch remains an open problem.

Acknowledgments

We thank Yusuke Iwasawa, Emma Brunskill, Lihong Li, Sergey Levine, and George Tucker for insightful comments and discussion.

References

Appendix

A Proof of Proposition 1

We first consider ϵπ\epsilon_{\pi}. The behavior cloning objective in its supremum form is,

We apply Pinsker’s inequality to the true and estimated behavior policy to yield

By the same Pinsker’s inequality, we have,

Therefore, by triangle inequality, we have

We perform similarly for ϵm\epsilon_{m}. The model dynamics loss is

We apply Pinsker’s inequality to the true dynamics and learned model to yield

B Details of Experimental Settings

For our baseline methods, we use the open-source implementations of SAC, BC, BCQ, and BRAC published in Wu et al. . SAC and BRAC have (300, 300) Q-Network and (200, 200) policy network. BC has (200, 200) policy network, and BCQ has (300, 300) Q-Network, (300, 300) policy network, and (750, 750) conditional VAE. As for online ME-TRPO, we utilize the codebase of model-based RL benchmark . BREMEN and online ME-TRPO use the policy consisting of two hidden layers with 200 units. The dynamics model also consists of two hidden layers with 1,024 units. We use Adam as the optimizer with the learning rate of 0.001 for the dynamics model, and 0.0005 for behavior cloning in BREMEN. Especially in BREMEN and online ME-TRPO, we adopt a linear feature value function to stabilize the training. BREMEN in deployment-efficient settings takes about two or three hours per deployment on an NVIDIA TITAN V.

To leverage neural networks as Dyna-style dynamics models, we modify reward and termination function so that they are not dependent on the internal physics engine for calculation, following model-based benchmark codebase ; see Table 2. Note that the score of baselines (e.g., BCQ, BRAC) is slightly different from Wu et al. due to this modification of the reward function. We re-run each algorithm in our environments and got appropriate convergence.

The maximum length of one episode is 1,000 steps without any termination in Ant and HalfCheetah; however, termination function is enabled in Hopper and Walker2d. The batch size of transitions for policy update is 50,000 in BREMEN and ME-TRPO, following Kurutach et al. . The batch size of BC and BRAC is 256, and BCQ is 100, also following Wu et al. .

B.2 Hyper Parameters

In this section, we describe the hyper-parameters in both deployment-efficient RL (Section B.2.1) and offline RL (Section B.2.2) settings. We run all of our experiments with five random seed, and the results are averaged.

Table 3 shows the hyper-parameters of BREMEN. The rollout length is searched from {250, 500, 1000}, and max step size δ\delta is searched from {0.001, 0.01, 0.05, 0.1, 1.0}. As for the discount factor γ\gamma and GAE λ\lambda, we follow Wang et al. .

To achieve high deployment efficiency, the number of iterations for policy optimization between deployments is one of the important hyper-parameters for fast convergence. In the existing methods (BCQ, BRAC, SAC), we search over three values: {10,000, 50,000, 100,000}, and choose 10,000 in BCQ and BRAC, and 100,000 in SAC (Figure 5). For BREMEN, we also search over three values: {2,000, 4,000, 6,000}. Figure 6 shows the results of iteration search, and we choose 2,000 in Ant, HalfCheetah, and Walker2d, and 6,000 in Hopper.

To achieve effective exploration, the stochastic Gaussian policy is a good choice. We found that adding stationary Gaussian noise to the policy in the imaginary trajectories and data collection led to the notable improvement. Stationary Gaussian policy is written as,

Another choice is a learned Gaussian policy, which parameterizes not only μθ\mu_{\theta} but also σθ\sigma_{\theta}. Learned gaussian policy is also written as,

We utilize the zero-mean Gaussian N(0,σ2)\mathcal{N}(0,\sigma^{2}), and tune up σ\sigma in Figure 7 with HalfCheetah, comparing stationary and learned strategies. From this experiment, we found that the stationary noise, the scale of 0.1, consistently performs well, and therefore we used it for all our experiments.

As for online ME-TRPO, we collect 3,000 steps through online interaction with the environment per 25 iterations and split these transitions into a 2-to-1 ratio of training and validation dataset for learning dynamics models. In batch size 100,000 settings, we collect 2,000 steps and split with a 1-to-1 ratio. Totally, we iterate 12,500 times policy optimization, which is equivalent to 500 deployments of the policy. Note that we carefully tune up the hyper-parameters of online ME-TRPO, and then its performance was improved from Wang et al. .

Table 4 and Table 5 shows the tunable hyper-parameters of BCQ and BRAC, respectively. We refer Wu et al. to choose these values. In this work, BRAC applies a primal form of KL value penalty, and BRAC (max Q) means sampling multiple actions and taking the maximum according to the learned Q function.

B.2.2 Offline RL

In the offline experiments, we apply the same hyper-parameters as in the deployment-efficient settings described above, except for the iteration per batch. Algorithm 2 is pseudocode for BREMEN in offline RL settings where policies are updated only with one fixed batch dataset. The number of iteration TT is set to 6,250 in BREMEN, and 500,000 in BC, BCQ, and BRAC.

C Additional Experimental Results

Following Wu et al. and Kidambi et al. , we additionally compare BREMEN in offline settings to the other baselines (BC, BCQ, BRAC) with five datasets of different exploration noise. Each dataset has also one million transitions.

eps1: 40 % of the dataset is collected by data-collection policy (partially trained SAC policy) πb\pi_{b}, 40 % of the dataset is collected by epsilon greedy policy with ϵ=0.1\epsilon=0.1 to take a random action, and 20 % of dataset is collected by an uniformly random policy.

eps3: Same as eps1, 40 % of the dataset is collected by πb\pi_{b}, 40 % is collected by epsilon greedy policy with ϵ=0.3\epsilon=0.3, and 20 % is collected by an uniformly random policy.

gaussian1: 40 % of the dataset is collected by data-collection policy πb\pi_{b}, 40 % is collected by the policy with adding zero-mean Gaussian noise N(0,0.12)\mathcal{N}(0,0.1^{2}) to each action sampled from πb\pi_{b}, and 20 % is collected by an uniformly random policy.

gaussian3: 40 % of the dataset is collected by data-collection policy πb\pi_{b}, 40 % is collected by the policy with zero-mean Gaussian noise N(0,0.32)\mathcal{N}(0,0.3^{2}), and 20 % is collected by an uniformly random policy.

random: All of the dataset is collected by an uniformly random policy.

Table 6 shows that BREMEN can also achieve performance competitive with state-of-the-art model-free offline RL algorithm even with noisy datasets. The training curves of each experiment are shown in Section C.4.

C.2 Comparison among Different Number of Ensembles

To deal with the distribution shift during policy optimization, also known as model bias, we introduce the dynamics model ensembles. We validate the performance of BREMEN with a different number of dynamics models KK. Figure 8 and Figure 9 show the performance of BREMEN with the different number of ensembles in deployment-efficient and offline settings. Ensembles with more dynamics models resulted in better performance due to the mitigation of distributional shift except for K=10K=10, and then we choose K=5K=5.

C.3 Implicit KL Control in Offline Settings

Similar to Section 5.3, we present offline RL experiments to better understand the effect of implicit KL regularization. In contrast to the implicit KL regularization with Eq. 4, the optimization of BREMEN with explicit KL value penalty becomes

where Aπθk(s,a)A^{\pi_{\theta_{k}}}(s,a) is the advantage of πθk\pi_{\theta_{k}} computed using imaginary rollouts with the learned dynamics model and δ\delta is the maximum step size. Note that BREMEN with explicit KL penalty does not utilize behavior cloning initialization.

C.4 Training Curves for Offline RL with Different Noises

In this section, we present training curves of our all experiments in offline settings. Figure 11 shows the results in Section 5.2. Figure 12, 13, 14, 15, and 16 also show the results in Section C.1.

C.5 Deployment-Efficient RL Experiment with Different Reward Function

In addition to the main results in Section 5.1 (Figure 2), we also evaluate BREMEN in deployment-efficient setting with different reward function. We modified HalfCheetah environment into the one similar to cheetah-run task in Deep Mind Control Suite.https://github.com/deepmind/dm_control/blob/master/dm_control/suite/cheetah.py The reward function is defined as

and the termination is turned off. Figure 17 shows the performance of BREMEN and existing methods. BREMEN also shows better deployment efficiency than other existing offline methods and online ME-TRPO, except for SAC, which is the same trend as that of main results.