Curious Meta-Controller: Adaptive Alternation between Model-Based and Model-Free Control in Deep Reinforcement Learning

Muhammad Burhan Hafez, Cornelius Weber, Matthias Kerzel, Stefan Wermter

Introduction

Deep Reinforcement Learning (RL) has demonstrated remarkable success in complex domains, yet it remains significantly constrained by sample inefficiency. In robotics, where physical interactions are costly and time-consuming, this "data hunger" is a critical bottleneck. Traditional approaches generally fall into two categories: Model-Free (MF) methods, which are robust but require millions of trials, and Model-Based (MB) methods, which use a predictive "world model" to plan actions with fewer trials but often fail if the internal model is inaccurate.

This paper introduces the Curious Meta-Controller (CMC), a hybrid framework designed to bridge this gap. CMC adaptively decides in real-time whether to trust its internal model for planning or rely on a learned model-free policy, optimizing the balance between deliberate planning and reactive habits.

The Curious Meta-Controller Framework

The CMC architecture integrates a model-based planner and a model-free learner through a shared latent representation. This synergy allows the agent to exploit the strengths of both paradigms while mitigating their individual weaknesses.

The CMC framework architecture showing the interaction between the Model-free Learner, Model-based Planner, and the Curious Meta-Controller.

Shared Latent Representation

To handle high-dimensional visual inputs (raw RGB pixels), the agent utilizes a convolutional autoencoder to compress images into a 32-dimensional latent space. This representation is trained jointly with the RL agent's value function, ensuring that the extracted features are task-relevant and robust to noise.

Model-Based Planning and Model-Free Learning

The Model-Based Planner employs Model Predictive Control (MPC). It initiates a search using an action sequence provided by the model-free actor and uses a learned dynamics model to "imagine" future states. This plan is iteratively refined through gradient descent to maximize expected rewards.

The Model-based Planning process, where an initial action sequence is refined using a dynamics model and gradient descent on a planning loss.

Simultaneously, the Model-Free Learner (implemented using DDPG or CACLA) maintains a direct mapping from states to actions. This learner provides a "warm start" for the planner and acts as a fallback when the world model is unreliable.

Adaptive Switching via Learning Progress

The core innovation of CMC is the Meta-Controller, which manages the switch between MB and MF control based on Learning Progress (LP). LP is defined as the temporal change in the dynamics model's prediction error.

  • Positive LP: If the model is actively improving, the Meta-Controller prioritizes the MB planner.
  • Negative/Stagnant LP: If the model is unreliable or has reached a plateau, the agent reverts to the MF learner.

This mechanism also drives curiosity-driven exploration; the agent receives an intrinsic reward based on LP, pushing it toward novel parts of the environment where the world model has the highest potential for improvement.

Experimental Evaluation

The framework was evaluated in the V-REP robot simulator on two challenging vision-based tasks:

  1. Random Target Reaching: A 3-DoF robotic arm must reach a dynamic target.
  2. Robotic Grasping: The NICO (Neuro-Inspired COmpanion) humanoid robot must grasp an object on a table without toppling it.

Both tasks were tested under dense and sparse reward conditions, requiring the agent to learn complex manipulation directly from raw RGB images.

Key Results

  • Enhanced Sample Efficiency: In sparse-reward reaching tasks, CMC-enabled agents showed consistent progress, while standard model-free DDPG failed to learn entirely. CACLA+CMC reached peak performance in under 4,000 episodes, significantly outperforming its model-free counterpart.
  • Robustness in Complex Tasks: In the robotic grasping task with sparse rewards, CACLA+CMC achieved an 81% success rate, whereas the standard model-free baseline remained near 0% success.
  • Effective Latent Planning: The system demonstrated that planning in a learned latent space is viable for complex image-to-image prediction tasks, a domain where traditional model-based methods often struggle.

Conclusion

The Curious Meta-Controller offers a robust solution to the sample efficiency problem in deep RL. By using learning progress as a meta-control signal, the agent intelligently alternates between planning and habit-based execution. This approach not only accelerates learning in sparse-reward environments but also ensures that the agent's "curiosity" is directed toward learnable features of the world, avoiding the pitfalls of unpredictable environmental noise.

Summary updated

BibTeX
@inproceedings{hafez2019curious,
  author = {Muhammad Burhan Hafez and Cornelius Weber and Matthias Kerzel and Stefan Wermter},
  title = {{Curious Meta-Controller: Adaptive Alternation between Model-Based and Model-Free Control in Deep Reinforcement Learning}},
  booktitle = {IJCNN},
  year = {2019},
  doi = {10.1109/ijcnn.2019.8852254},
}
Figure