A DAPTIVE O NLINE P LANNING FOR C ONTINUAL L IFELONG L EARNING
Anonymous authors
Paper under double-blind review
A BSTRACT
We study learning control in an online lifelong learning scenario, where mistakes can compound catastrophically into the future and the underlying dynamics of the environment may change.
Traditional model-free policy learning methods have achieved successes in difﬁcult tasks due to their broad ﬂexibility, and capably condense broad experiences into compact networks, but struggle in this setting, as they can activate failure modes early in their lifetimes which are difﬁcult to recover from and face performance degradation as dynamics change.
On the other hand, model-based planning methods learn and adapt quickly, but require prohibitive levels of computational resources.
Under constrained computation limits, the agent must allocate its resources wisely, which requires the agent to understand both its own performance and the current state of the environment: knowing that its mastery over control in the current dynamics is poor, the agent should dedicate more time to planning.
We present a new algorithm, Adaptive Online Planning (AOP), that achieves strong performance in this setting by combining model-based planning with model-free learning.
By measuring the performance of the planner and the uncertainty of the model-free components, AOP is able to call upon more extensive planning only when necessary, leading to reduced computation times.
We show that AOP gracefully deals with novel situations, adapting behaviors and policies effectively in the face of unpredictable changes in the world – challenges that a continual learning agent naturally faces over an extended lifetime – even when traditional reinforcement learning methods fail.
I NTRODUCTION
We consider agents in a human-like setting, where agents must simultaneously act and learn in the world continuously with limited computational resources.
All decisions are made online; there are no discrete episodes.
Furthermore, the world is vast – too large to feasibly explore exhaustively – and changes over the course of the agent’s lifetime, like how a robot’s actuators might deteriorate with continued use.
There are no resets to wipe away past errors.
Mistakes are costly, as they compound downstream.
To perform well at reasonable computational costs, the agent must utilize its past experience alongside new information about the world to make careful, yet performant, decisions.
Non-stationary worlds require algorithms that are fundamentally robust to changes in dynamics.
Factors that would lead to a change in the environment may either be too difﬁcult or principally undesirable to model: for example, humans might interact with the robot in unpredictable ways, or furniture in a robot’s environment could be rearranged.
Therefore, we assume that the world can change unpredictably in ways that cannot be learned, and focus on developing algorithms that instead handle these changes gracefully, without using extensive computation.
Model-based trajectory optimization via planning is useful for quickly learning control, but is computationally demanding and can lead to bias due to the ﬁnite planning horizon.
Model-free reinforcement learning is sample inefﬁcient, but capable of cheaply accessing past experience without sacriﬁces to asymptotic performance.
Consequently, we would like to distill expensive experience from an intelligent planner into neural networks to reduce computation for future decision making.
Deciding when to use the planner vs a learned policy presents a difﬁcult challenge, as it is hard to evaluate the improvement the planner would give without actually using the planner.
We tackle this as a problem of uncertainty.
When uncertain about a course of action, humans use an elongated model-based search to evaluate long-term trajectories, but fall back on habitual behaviors learned with model-free paradigms when they are certain of what to do (Dayan & Berridge, 2014;
Daw et al., 2005; Banks & Hope, 2014; Kahneman, 2003).
By measuring this uncertainty, we can make informed decisions about when to use model-based planning vs a model-free policy.
Our approach combines model-based planning with model-free policy learning, along with an adaptive computation mechanism, to tackle this setting.
Like a robot that is well-calibrated when ﬁrst coming out of a factory, we give the agent access to a ground truth dynamics model that lacks information about future changes to the dynamics, like different settings in which the robot may be deployed.
This allows us to make progress on ﬁnite computation continual learning without worrying about model learning.
The dynamics model is updated immediately at world changes.
However, as we show empirically, knowing the dynamics alone falls far short of success at this task.
We present a new algorithm, Adaptive Online Planning (AOP), that links Model Predictive Path
Integral control (MPPI) (Williams et al., 2015), a model-based planner, with Twin Delayed DDPG (TD3) (Fujimoto et al., 2018b), a model-free policy learning method.
We combine the modelbased planning method of iteratively updating a planned trajectory with the model-free method of updating the network weights to develop a uniﬁed update rule formulation that is amenable to reducing computation when combined with a switching mechanism.
We inform this mechanism with the uncertainty given by an ensemble of value functions.
Access to the ground truth model is not sufﬁcient by itself, as we show that PPO (Schulman et al., 2017) and TD3 perform poorly, even with the ground truth model.
We demonstrate empirically that AOP is capable of integrating the two methodologies to reduce computation while achieving and maintaining strong performance in nonstationary worlds, outperforming other model-based planning methods and avoiding the empirical performance degradation of policy learning methods in changing world scenarios.
Our contributions include the proposal of a new algorithm combining model-based planning and model-free learning, the introduction of evaluation environments that target the challenges of lifelong reinforcement learning in which traditional methods struggle, and experiments showing the usefulness of utilizing both model-based and model-free methods in this setting.
Code to run all algorithms and experiments is available at www.github.com/ (link redacted for anonymity).
B ACKGROUND
We consider the world as an inﬁnite-horizon Markov Decision Process (MDP), deﬁned by the tuple
M = {S , A , R , T , γ } , where S is the state space, A is the action space, R : S ×
A → R is the reward function, T : S ×
A × S → R are the transition probabilities, and γ ∈ [0 , 1) is the discount factor.
The world can change over time: the transitions and rewards ( T , R ) may change to some new ( T (cid:48) , R (cid:48) ) .
Unlike traditional reinforcement learning, the agent’s state is not reset at these world changes.
The agent can generate rollouts using the current ( T , R ) starting from its current state, but not for future
( T (cid:48) , R (cid:48) ) .
The agent’s goal is to execute a future sequence of actions, summarized as a policy π ( a t | s t ) , that maximizes the expected future return R ( t ) =
E τ ∼ π
[ (cid:80) ∞
k =0 γ k r ( s t , a t )] .
2. C ONTINUAL O NLINE L EARNING
In our work, we consider online learning in the same style as Lowrey et al.
(2018), where both acting and learning must occur on a per-timestep basis, and there are no episodes that reset the state.
At each timestep, the agent must execute its training procedure, and is then forced to immediately output an action.
We also desire agents that are equipped, like humans, to handle different tasks in various environments.
Continual learning is difﬁcult, as agents must use their experience to learn to perform well in new tasks (forward transfer) while preserving the ability to perform well in old tasks (backward transfer).
In addition to the these difﬁculties, there is also the challenge of avoiding failure sink states that prevent future learning progress.
We augment this task with a world where the dynamics continually change, creating a difﬁcult setting for agent learning.
2. M ODEL -B ASED P LANNING
Online model-based planning evaluates future sequences of actions using a model, develops a projected future trajectory over some time horizon, and then executes the ﬁrst action of that trajectory, before repeating.
We speciﬁcally focus on Model Predictive Control (MPC), which iteratively applies Gaussian noise to the prior predicted trajectory, evaluates them using the dynamics model, and combines them with an update rule.
When the update rule is a softmax weighting, this procedure is called Model Predictive Path Integral (MPPI) control (Williams et al., 2015).
Due to the nature of this iterative and extended update, this procedure is computationally expensive.
2. M ODEL -F REE P OLICY O PTIMIZATION
Model-free algorithms encode the agent’s past experiences in a function dependent only on the current state, often in the form of a value function critic and/or policy actor.
As a result, such algorithms can have difﬁculty learning long-term dependencies and struggle early on in training; temporally extended exploration is difﬁcult.
In exchange, they attain high asymptotic performance, having shown successes in a variety of tasks for the traditional ofﬂine setting (Mnih et al., 2013; Schulman et al., 2017).
As a consequence of their compact nature, once learned, these algorithms tend to generate cyclic and regular behaviors, whereas model-based planners have no such guarantees.
We run online versions of TD3 (Fujimoto et al., 2018b) and PPO (Schulman et al., 2017) as baselines to AOP.
While there is no natural way to give a policy access to the ground truth model, we allow the policies to train on future trajectories generated via the ground truth model, in similar fashion to algorithms that learn a model for this purpose (Kurutach et al., 2018; Buckman et al., 2018), in order to help facilitate fair comparisons to model-based planners.
2. U PDATE R ULE P ERSPECTIVE ON P LANNING VS P OLICY O PTIMIZATION
From a high-level perspective, the model-based planning and model-free policy optimization procedures are very similar (see Appendix B for a side-by-side comparison).
Where the planner generates noisy rollouts to synthesize a new trajectory, the model-free algorithm applies noise to the policy to generate data for learning.
After an update step, either an action from the planned trajectory or one call of the policy is executed.
These procedures are only distinct in their respective update rules.
The primary contribution of AOP is unifying both update rules to compensate for their individual weaknesses.
AOP distills the learned experience from the planner into the off-policy learning method of TD3 and a value function, so that planning and acting can be done cheaper in the future.
A DAPTIVE O NLINE P LANNING
[Figure]
AOP combines model-based planning with model-free learning using an adaptive switching mechanism, summarized above in Fig.
1, and written with more detail in Appendix B in Alg.
3. M ODEL -B ASED P LANNING WITH T ERMINAL V ALUE A PPROXIMATION
For the model-based component, AOP uses MPPI, as described in Section 2.2, with a terminal value function ˆ V , where trajectories are evaluated in the form of Eq. 1.
This process is repeated for several iterations to improve the plan, and then the ﬁrst action is executed in the environment.
[Equation]
ˆ V is generated by an ensemble of n value functions (see Eq. 2), as proposed in POLO (Lowrey et al., 2018) for MPC.
The value ensemble improves the exploration ability of the optimization procedure (Osband et al., 2016; 2018).
The log-sum-exp function serves as a softmax, enabling exploration while preserving a stable target for learning.
The log n term normalizes the estimate to lie between the mean and the max of the ensemble, determined by the temperature hyperparameter κ , which ensures that the approximation is still semantically meaningful for estimating the value of the state.
[Equation]
3. E ARLY P LANNING T ERMINATION
Past model-based planning procedures (Chua et al., 2018; Wang & Ba, 2019) run a ﬁxed number of iterations of MPC per timestep before executing an action in the environment.
However, this is often wasteful.
Within a particular timestep, later planning iterations often improve the planned trajectory less than earlier iterations, and may not even improve the trajectory at all.
We propose to decide on the number of planning iterations on a per-timestep basis.
After generating a new trajectory τ k + from the k -th iteration of planning, we measure the improvement ∆( τ k +1 | τ k ) against the trajectory τ k of the previous iteration (Eq. 3).
When this improvement decreases below a threshold ∆ thres , we terminate planning for the current timestep with probability 1 − (cid:15) plan .
Using a stochastic termination rule allows for robustness against local minima where more extensive planning may be required, but not evident from early planning iterations, in order to escape.
[Equation]
3. A DAPTIVE P LANNING H ORIZON
Since planning over a long time horizon is expensive, it would also be desirable to plan over a shorter time horizon when the planner is conﬁdent in achieving long-term success with only shortterm planning.
We represent the planner’s uncertainty with the value ensemble from Section 3.1, as the mean and standard deviation of the ensemble represent the epistemic uncertainty of the value of the state (Osband et al., 2018).
When deciding to use a reduced time horizon, we require that the standard deviation σ of the value ensemble on the current state be lower than some threshold σ thres .
A problem with only considering the standard deviation is that the metric only considers uncertainty with respect to the past – it does not immediately measure uncertainty in a changing dynamics setting, which is only observed when considering experiences in the future.
Therefore, we ﬁne-tune the horizon length using the Bellman error (Eq. 4).
The time horizon is given by the largest H ≤
H full such that (cid:15) ( H | τ k ) > (cid:15) thres .
When σ > σ thres , the full time horizon is always used, regardless of the Bellman error.
This is to say that, if the value function can accurately approximate the latter part of the horizon, we can use the value function instead.
While choices for these hyperparameters are somewhat arbitrary, we show in Appendix C.1.1 that AOP is not particularly sensitive to them.
[Equation]
3. O FF -P OLICY M ODEL -F REE P RIOR
We use TD3 as a prior to the planning procedure, with the policy learning off of the data generated by the planner during planning, which allows the agent to recall past experience quickly.
Similarly to past work (Rajeswaran et al., 2017a; Zhu et al., 2018), we found that imitation learning can cap the asymptotic performance of the learned policy.
As a baseline, we also run behavior cloning (BC) as a prior, and refer to the resulting algorithms as AOP-TD3 and AOP-BC, respectively.
We note that MPC and policy optimization are both special cases of AOP.
MPC is equivalent to AOP with a constant setting for the time horizon that always uses full planning iterations (i.e. a threshold of 0).
Policy optimization is equivalent to AOP with one planning iteration, since the ﬁrst plan is a noisy version of the policy, acting as the data collection procedure in standard policy learning.
E MPIRICAL E VALUATIONS
We investigate several questions empirically:
What are the challenges in the continual lifelong learning setting?
When developing further algorithms in this setting, what should we focus on? 2.
How does AOP perform when acting from well-known states, novel states, and in changing worlds?
How do traditional on-policy and off-policy methods fare in these situations?
Are the variance and the Bellman error of the value ensemble suitable metrics for determining the planning computational budget?
4. L IFELONG L EARNING E NVIRONMENTS
We propose three environments to evaluate our proposed algorithm in the continual lifelong learning setting: Hopper, Ant, and Maze, and release them for others to use.
While these environments are not overly complex control environments, they crisply highlight the difﬁculties of continual lifelong learning in MDPs.
Pictures of these environments are included in Appendix D.
Hopper: First, we consider the OpenAI Gym environment Hopper (Brockman et al., 2016).
The agent is rewarded based on how closely it matches an unobserved target velocity.
Everytimesteps, this target velocity changes.
The environment is tough, as it can be difﬁcult to get up if the agent falls down in a strange position, and momentum from past actions affect the state greatly, which makes it easy for the agent to fall over.
We consider three versions of the Hopper environment: (1) a standard Hopper with an unchanging target velocity, (2) a novel states Hopper with the target velocity in the observation (thus new target velocities correspond to the agent seeing a new state), and (3) a changing worlds Hopper, where the target velocity is not in the observation.
Ant : We also consider the Ant from Gym.
The agent seeks to maximize its forward velocity, but a joint at random is disabled every 2500 timesteps.
Once ﬂipped over, getting back up is extremely difﬁcult, which makes this environment harshly unforgiving.
We consider two versions: (1) a standard
Ant with no disabled joints, and (2) a changing worlds
Ant with one changing disabled joint.
Maze: Like in POLO, we test in a 2D point mass maze, where agent seeks to reach a goal.
The observation is ( x point , y point , x goal , y goal ) .
Every 500 timesteps, the walls of the maze change, and the goal swaps locations.
The difﬁculty lies in adapting quickly to new mazes while avoiding the negative transfer of old experience.
We consider two versions: (1) a novel states Maze, where the walls of the maze remain constant, but new goals are introduced after 20 goal changes in the original positions, and (2) a changing worlds Maze, which is as described above.
We also test both versions in a dense reward and a sparse reward setting, where the reward is either the negative L2 distance or a boolean value, respectively.
In the sparse reward Maze, exploration can be particularly challenging.
4. B ASELINES AND A BLATIONS
We run AOP-BC, POLO, MPC, TD3, and PPO as baselines against AOP-TD3; they can be seen as ablations/special cases of our proposed algorithm (see Section 3.4).
We consider two versions of
MPC, with 8 and 3 planning iterations, henceforth referred to as MPC-8 and MPC-3, respectively.
[Table] [Table]
[Figure]
4. C HALLENGES IN C ONTINUAL L IFELONG L EARNING S ETTING
Planner usage is shown in Table 1 and rewards are in Table 2.
AOP uses only 1 − 17% of the number of timesteps as MPC-8, but achieves generally comparable or stronger performance in most environments.
More detailed graphs can be found in Appendix A.
Reset-Free Setting: Even with model access, these environments are challenging for the algorithms to learn.
In the standard ofﬂine reinforcement learning setting, long-term action dependencies are learned from past experience over time, and this experience can be utilized when the agent resets to the initial state.
However, in the online setting, these dependencies must be learned on the ﬂy, and if the agent falls, it must return to the prior state in order to use that information.
In the Ant environment, such falling is catastrophic, as it takes a complex action sequence to return to standing.
As a result, POLO-style exploration is often detrimental, and can be crippling – slow learning is even more damaging. Even with this disadvantage, AOP-BC performs almost at the level of POLO, with around 14% of the planning. This is also present, to a lesser extent, for Hopper.
Vast Worlds: The performance gain of MPC-8 over MPC-3 shows that achieving strong performance is difﬁcult with constrained computation.
In the sparse mazes, MPC is signiﬁcantly outperformed by AOP-TD3, and the model-free algorithms struggle to make any progress at all, showing their lackluster exploration.
Even POLO – the exploration mechanism of AOP – faces weaker performance, indicating that AOP-TD3 has not only correctly identiﬁed when planning is important, but is able to effectively leverage additional computation to increase its performance whilst still using less overall computation. The additional performance in the novel states Maze (S) over MPC-8 also shows AOP’s ability to consolidate experience to improve performance in mazes it has seen before. Furthermore, in the changing worlds Maze (S), the performance of AOP improves over time (Fig. A.2), indicating that AOP has learned value and policy functions for effective forward transfer.
Policy Degradation: TD3’s performance signiﬁcantly degrades in the changing worlds settings, as does PPO’s (see Fig. 2). PPO, an on-policy method, struggles in general.
In the novel states Hopper, the variant where the policy is capable of directly seeing the target velocity, TD3 performs very well, even learning to outperform MPC.
However, without the help of the observation, in the changing worlds, TD3’s performance quickly suffers after world changes.
The model-based planning methods do not suffer this degradation, and AOP is able to maintain its performance and computational savings, even through many world changes, despite its reliance on model-free components.
4. B EHAVIOR OF P OLICIES IN C ONTINUAL L IFELONG L EARNING S ETTING
In Fig.
3 (left), we plot the episodic reward of the policy running from the agent’s current state for each timestep (for the current target velocity).
Note that since the AOP policy is learned from offpolicy data (the planner), it suffers from divergence issues and should be weaker than TD3 on its own (Fujimoto et al., 2018a).
Matching the result in Fig.
2 (a), the TD3 policy degrades in performance over time, but the AOP policy does not.
This suggests that the policy degradation effect might stem from exploration, rather than from an issue with the optimization algorithm.
We also show in Fig.
3 (right) tuning the policy learned by AOP after seeing every target velocity once (blue) vs. by TD3 (red) vs. training a new policy (gray), learning from running the standard episodic TD3 algorithm on the ﬁrst target velocity.
The AOP policy learns much faster, showing that
AOP is capable of quick backward transfer and adapting quickly to a different situation.
4. B EHAVIOR OF AOP IN W
[Figure]
Fig. 4 shows AOP behavior in Maze (D).
When encountering novel states, Bellman error is high, but as time progresses, when confronted with the same states again, Bellman error becomes low.
The number of planning timesteps matches this: AOP correctly identiﬁes a need to plan early on, but greatly saves computation later, when it is immediately able to know the correct action with almost no planning.
The same effect occurs when measuring the time since the world changed for the changing worlds.
At the beginning of a new world, the amount of planning is high, before quickly declining to nearly zero, almost running with the speed of a policy: ≈ 100 × faster than MPC-8.
We plot the standard deviation and Bellman error over time of AOP for the changing worlds Hopper in Fig.
After each world change, the Bellman error spikes, and then decreases as time goes on.
These trends are reﬂected in the time horizon (bottom center), which decreases as the agent trains in each world, and indicate that the standard deviation and Bellman error are suitable metrics for determining planning levels.
The same effect also occurs for the number of planning iterations.
In Fig.
6, we show qualitatively how TD3, MPC, and AOP handle world changes in the changing worlds Hopper setting.
An unobserved change in the target velocity from 2.5 to 1 is encountered during the agent’s lifetime.
The purely model-free TD3 produced cyclic and regular behavior, but adapted slowly to the target speed, still moving at 2.5.
MPC quickly adapted to the new target speed, but moved in an irregular fashion.
AOP was both able to rapidly adapt and do so in a regular manner. [Figure]
R ELATED W ORK AND F UTURE D IRECTIONS
Continual online learning: Much of past lifelong learning work (Goodfellow et al., 2013; Parisi et al., 2018) has focused on catastrophic forgetting, which AOP is resilient to, but was not a primary focus of our work.
Kearns & Singh (2002) considers MDPs with various reward functions, using them to make conscious decisions about exploration or exploitation, similar to our framework.
Finn et al.
(2019) uses meta-learning to perform continual online learning, but the tasks are considered in episodes.
Nagabandi et al.
(2018) learn multiple models to represent different tasks, which contrasts with our single uniﬁed policy/set of value functions.
Augmented planners: Algorithms that combine planning with learning have previously been studied in both discrete and continuous domains (Chua et al., 2018; Anthony et al., 2017).
Recent work (Guez et al., 2018) generalizes the MCTS algorithm and proposes to learn the algorithm instead; further asking the algorithm to set computation levels could be effective in our setting as well.
Levine & Koltun (2013); Mordatch et al.
(2015) propose to use priors that make trajectory planner stay close to policy outputs, which is problematic in changing worlds when the policy is not accurate.
Learned dynamics:
Many previous works (Azizzadenesheli et al., 2018; Nagabandi et al., 2017) have learned dynamics models and then performed MPC optimization on them.
Kurutach et al.
; Clavera et al.
(2018) utilized model ensembles to reduce performance degradation due to model overﬁtting, and (Janner et al., 2019) investigates model uncertainty for policy learning.
Integrating AOP with a learned uncertainty-aware dynamics model would be interesting future work.
C ONCLUSION
We proposed AOP, which incorporates model-based planning with model-free learning, and introduced environments for evaluating algorithms in the continual lifelong learning setting.
We empirically analyzed the performance of and signals from the model-free components, and showed experimentally that AOP was able to successfully reduce computation while achieving high performance in difﬁcult tasks, often competitive with a much more powerful MPC procedure. A D ETAILED E XPERIMENTAL G RAPHS
Additional graphs are provided for the fraction of planning timesteps vs MPC-8 and reward curves for all environments in Figures A.1 and A.2, respectively
[Figure] [Figure] B P SEUDOCODE FOR A LGORITHMS B.
M ODEL -B ASED P LANNING VS P OLICY O PTIMIZATION P SEUDOCODE
1 Initialize action trajectory τ plan 2 while alive do
Generate n rollouts based on τ plan
Use rollouts to update τ plan
Execute ﬁrst action of τ plan 6 end
1 Initialize policy π φ 2 while alive do
Generate n rollouts based on π φ
Use rollouts to update π φ
Execute an action from π φ 6 end
B.
A DAPTIVE O NLINE P LANNING P SEUDOCODE
1 Initialize value ensemble { V i } ni =1 , policy π , replay buffers D V , D π 2 while alive do
Set τ plan to arg max τ π ,τ plan R ( τ ) , generating τ π from the policy π θ
Select time horizon H t for planning, described in Section 3.
for k ← 1 to max iters do
Run MPC planning to generate τ plan , described in Section 3.1; add trajectories to D π
If ∆( τ k +1 | τ k ) < ∆ thres , stop planning with probability 1 − (cid:15) plan end
If it’s time to update: update value ensemble { V i } ni =1 and policy π θ with D V , D π , resp.
Step once in the environment with ﬁrst action of τ plan ; add ( s t , a t , s (cid:48) t , r t ) to D V 11 end
C H YPERPARAMETER D ETAILS
All of our implementations and hyperparameters are available at www.github.com/ (link redacted for anonymity).
C. A DAPTIVE O NLINE P LANNING H YPERPARAMETERS
For AOP, we set σ thres = 8 , (cid:15) thres = 25 and (cid:15) plan = 0 .
We did not tune these hyperparameters much, and similarly do not believe that the algorithm is overly sensitive to the thresholds in dense reward environments (see Appendix C.1.1).
However, in the sparse Mazes, we set σ thres = (cid:15) thres = 0 , in order to avoid early termination of exploration (we do not change the hyperparameters determining the number of planning iterations).
Tuning over these hyperparameters (for both dense and sparse rewards) could lead to better performance, if desired.
For the ﬁrst planning iteration we set ∆ thres = 0 .
01 , and for the later planning iterations, ∆ thres = 0 .
We found that having a lower threshold for the ﬁrst iteration helps the agent to avoid getting stuck in poor trajectories (i.e. avoid only using the policy), alongside the stochastic decision rule. C.1. S ENSITIVITY TO T HRESHOLDS
We run a rough grid search with wider values for σ thres and (cid:15) thres , and calculate average reward in the Hopper changing worlds environment.
The average reward for each setting is shown in Table C. and learning curves are shown in Fig.
C.1.
AOP is somewhat more sensitive to the setting of (cid:15) thres early on in training, as a higher value corresponds to less planning, but this effect quickly dissipates.
As a result, while the choice of σ thres and (cid:15) thres is fairly arbitrary, we do not believe that AOP is particularly sensitive to them, and use the same values for all of the dense reward environments. [Table] C. M ODEL P REDICTIVE C ONTROL H YPERPARAMETERS Our MPPI temperature λ is set to 0.01.
The other planning hyperparameters (kept constant across environments) are shown below.
See Section 3.4 for interpretation of policy optimization as a special case of AOP.
Surprisingly, we found TD3 to perform worse with more than 1 trajectory per iteration. Parameter AOP-TD3/AOP-BC POLO
TD
PPO MPC [Table] [Table]
Trajectories
[Table] [Table] C. N ETWORK A RCHITECTURES For our value ensembles, we use an ensemble size of 6 and κ = 10 − 2 .
The value functions are updated in batches of size 32 for 32 gradient steps every 4 timesteps.
All networks use tanh activations and a learning rate of 10 − 3 , trained using Adam. Network sizes are shown below. Environment [Equation]
BC POLO TD
PPO Hopper V : (64 , 64) , Q : (400 , 300) , π : (400 , 300) (64 , 64) (400 , 300) (64 , 64)
Ant V : (64 , 64) , Q : (400 , 300) , π : (400 , 300) (64 , 64) (400 , 300) (64 , 64) Maze (64 , 64) (64 , 64) (64 , 64) (64 , 64)
Our TD3 uses the same hyperparameters as the original authors (Fujimoto et al., 2018b), where for every timestep, we run a rollout of length 256 and run 256 gradient steps. In the TD3 used for the experiment in Section 4.4, we run rollouts of length 1000 and run 1000 gradient steps after each rollout, equivalent to the standard TD3 setting with no termination. Our PPO uses (cid:15) = 0 .
2 , λ = 0 .
95 , batch sizes of 4096 , and 80 gradient steps per iteration. For behavior cloning, we run 400 gradient steps on batches of size 64 every 4 timesteps. For the policy in AOP-TD3, we run 128 gradient steps on batches of size 100 every 4 timesteps.
D E NVIRONMENT D ETAILS
In the online setting, the agent receives no signal from termination states, i.e. it becomes more difﬁcult to know not to fall down in the cases of Hopper and Ant.
To amend this, and achieve the same interpretable behavior as the standard reinforcement learning setting, we set the reward functions as the following for our environments, similar to Rajeswaran et al.
(2017b):
[Figure] [Equation] Ant
[Equation]
Maze (Dense) [Equation] 1 { contact with wall } Maze (Sparse) 1 { inside goal } − 1 { contact with wall }