NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Model Predictive Control with Self-supervised Representation Learning

Jonas Matthies, Muhammad Burhan Hafez, Mostafa Kotb, Stefan WermterarXiv 2023 · DOI

Abstract

Temporal Difference Learning for Model Predictive Control (TD-MPC) has emerged as a powerful framework for continuous control, yet its reliance on purely task-oriented latent representations can lead to instability in reward-sparse or noisy environments. We propose an extension to TD-MPC that incorporates self-supervised representation learning (SRL) via an auxiliary reconstruction loss. By requiring the agent to reconstruct original observations from its internal latent state, we encourage the learning of more robust, environment-aware features. Evaluated on the DeepMind Control suite, our approach demonstrates improved sample efficiency and training stability across both state-based and image-based tasks.

Introduction

In Reinforcement Learning (RL), agents typically utilize either model-free methods, which learn action-value functions directly, or model-based methods, which learn a "world model" for planning. Hybrid frameworks like TD-MPC attempt to bridge this gap by using a latent state for short-term planning while leveraging a Q-function for long-term value estimation.

However, a common limitation of these frameworks is their "task-oriented" nature: the latent representations are optimized solely to predict immediate rewards and values. This can make the learning signal brittle, particularly when rewards are sparse or observations contain significant noise. Without a reward signal, the agent lacks sufficient information to understand the underlying structure of the environment. This paper explores whether adding a self-supervised reconstruction signal can mitigate these issues.

Methodology

The proposed framework, TD-MPC with SRL, extends the Task-Oriented Latent Dynamics (TOLD) model. The standard TOLD model consists of five components: a representation function, a dynamics function, a reward function, a value function, and a policy function.

The core innovation is the introduction of a sixth component: a Reconstruction Function ($h_\theta^{-1}$). This function maps the abstract latent state back into the original observation space, whether that be a raw state vector or high-dimensional pixels.

The architecture of the proposed TD-MPC with SRL framework, illustrating the integration of the reconstruction function $h_\theta^{-1}$ alongside the standard TOLD components.

By adding a reconstruction loss term to the total objective function, the encoder is forced to retain information necessary to describe the environment's appearance and state, regardless of its immediate relevance to the reward. For state-based tasks, the architecture utilizes Multi-Layer Perceptrons (MLPs), while image-based tasks employ deconvolutional layers to upsample latent vectors into 84x84 pixel images. Because all components share the same encoder, gradients from the reconstruction task improve the robustness of the dynamics model and provide a consistent learning signal even when rewards are zero.

Experimental Evaluation

The model was evaluated using the DeepMind Control (DMControl) suite, a standard benchmark for continuous control. Testing spanned both state-based environments (Finger Turn Hard, Cheetah Run, Acrobot Swingup) and image-based (pixel) environments (Finger Turn Hard, Cheetah Run, Reacher Easy). The performance of the reconstruction-augmented agent was compared against the original TD-MPC baseline using data from official repositories.

Results and Discussion

The inclusion of self-supervised reconstruction led to several key improvements across the benchmark suite:

  • Enhanced Sample Efficiency: In state-based tasks like Finger Turn Hard and Cheetah Run, the agent exhibited faster initial learning and achieved higher asymptotic performance. This suggests that the reconstruction signal helps the agent grasp environment physics before mastering the reward structure.
  • Improved Stability: In high-dimensional image tasks, the reconstruction loss acted as a significant stabilizer. For instance, in the Reacher Easy (pixels) task, the proposed method reached a score of 768 ± 178 after 500k steps, notably outperforming the original TD-MPC’s 668 ± 217. The lower standard deviation indicates more reliable training runs.
  • The "Goldilocks Zone": A trade-off was observed regarding latent information density. In very simple environments like Acrobot, the added complexity of reconstruction slightly hindered performance, likely because the agent was over-modeling trivial environment features instead of focusing on the task.

Conclusion and Future Work

Integrating self-supervised reconstruction into the TD-MPC framework significantly enhances learning stability and sample efficiency in complex continuous control tasks. While the method introduces a hyperparameter for the reconstruction loss coefficient ($c_4$) that requires tuning, the benefits in high-dimensional and reward-sparse settings are substantial.

Future work will explore the potential of using reconstruction for pre-training world models. An agent could "play" in an environment with no rewards at all, learn how the world works via reconstruction, and then be fine-tuned to solve specific tasks. Additionally, the authors aim to scale this approach to more complex morphologies, such as the DMControl Humanoid or Dog tasks.

Summary updated

BibTeX
@misc{matthies2023model,
  author = {Jonas Matthies and Muhammad Burhan Hafez and Mostafa Kotb and Stefan Wermter},
  title = {{Model Predictive Control with Self-supervised Representation Learning}},
  year = {2023},
  eprint = {2304.07219},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.07219},
}
Figure