arXiv(opens in a new tab)Computer ScienceOct 2021

Manuscript Offprint

arXiv:2110.03363

Evaluating model-based planning and planner amortization for continuous control

Arunkumar Byravan, Leonard Hasenclever, P. Trochim, M. Berk Mirza, Alessandro Davide Ialongo, Yuval Tassa, Jost Tobias Springenberg, A. Abdolmaleki, N. Heess, J. Merel, Martin A. Riedmiller

Abstract

There is a widespread intuition that model-based control methods should be able to surpass the data efficiency of model-free approaches. In this paper we attempt to evaluate this intuition on various challenging locomotion tasks. We take a hybrid approach, combining model predictive control (MPC) with a learned model and model-free policy learning; the learned policy serves as a proposal for MPC. We find that well-tuned model-free agents are strong baselines even for high DoF control problems but MPC with learned proposals and models (trained on the fly or transferred from related tasks) can significantly improve performance and data efficiency in hard multi-task/multi-goal settings. Finally, we show that it is possible to distil a model-based planner into a policy that amortizes the planning computation without any loss of performance. Videos of agents performing different tasks can be seen on our website.

1 Introduction

In recent years, model-free RL algorithms have improved and scaled to the point where it is feasible to learn adaptive behavior for high-dimensional systems in diverse circumstances (Schulman et al., 2017; Heess et al., 2017). Despite these improvements, there is a widespread intuition that model-based methods can further improve data efficiency. This has led to recent advances for continuous control problems that demonstrate improved learning efficiency by leveraging model learning during policy training (Lowrey et al., 2019; Nagabandi et al., 2020; Hubert et al., 2021). However, there is also work which urges moderation in interpreting these results, by showing that well-tuned model-free baselines can compare favorably against some model-based approaches (Springenberg et al., 2020; van Hasselt et al., 2019).

In this paper, we focus on model-based RL with learned models and proposals. We use model-predictive control (MPC) to improve the quality of behavior generated from a policy that serves as a proposal for the planning procedure. When acting, the MPC-based search procedure improves the quality of the data collected which serves as a sort of “active exploration”. This data can then be used to improve the proposal, in effect consolidating the gains. This hybrid approach interpolates between model-free RL, on one side, and trajectory optimization with a model on the other.

Fundamentally, the spectrum on which this hybrid approach is situated reflects a trade-off in terms of reusability / generality versus compute cost at deployment time. Policies obtained by model-free RL often generalize poorly outside of the situations they have been trained for, but are efficient to execute (i.e., they are fully amortized). Models offer potentially greater generalization, insofar as the model is accurate over a broad domain of states, but it can be computationally costly to derive actions from models. Ultimately, the pure planning approach involving deriving actions from models is usually prohibitive and some form of additional knowledge is required to render the search space tractable for real-time settings. Coming from the model-free RL perspective, the natural approach is to learn a policy that serves as a relatively assumption-free proposal for the planning process.

While in most model-based RL publications the ambition is to speed up policy learning for a single task, we believe this is not necessarily the most promising setting, as it is difficult to dissociate the learning of a dynamics model (which is potentially task independent) from that of a value function (which is task specific). A different intuition is that model-based RL might not accelerate learning on a particular problem, but rather enable efficient behavior learning on new tasks with the same embodiment. In such transfer settings, we might hope that a dynamics model will offer complementary generalization to the policy, and we can transfer the policy, model, or both.

In this work, we validate these intuitions about the relative value of the different components of this system. For high-dimensional locomotion problems, we find that even with a good learned model successful model predictive control requires good proposal distributions to succeed. This effect is particularly pronounced in domains with multiple goals (or equivalently multiple different tasks). Building on this insight we show that it is sometimes possible to leverage learned models with a limited search budget to boost exploration and learn policies more efficiently. Policies that are trained by off-policy updates from data acquired through planning do not reliably perform well when used without planning in our experiments. To overcome this problem, and enable planner amortization into a policy that does not require planning at test time, we propose training the policy according to a combination of a behavioral cloning objective (on MPC data) and an off-policy update with MPO (Abdolmaleki et al., 2018). When transferring models and proposals to other tasks we find only marginal improvements in data efficiency relative to a well-tuned model-free baseline. Overall, our results suggest that while MPC with learned models can lead to more data efficiency, and planners can be amortized effectively into compact policies, it is not a silver bullet and model-free methods are strong baselines.

References (55)