Abstract
Model-free Reinforcement Learning (RL) works well when experience can be collected cheaply and model-based RL is effective when system dynamics can be modeled accurately. However, both assumptions can be violated in real world problems such as robotics, where querying the system can be expensive and real-world dynamics can be difficult to model. In contrast to RL, Model Predictive Control (MPC) algorithms use a simulator to optimize a simple policy class online, constructing a closed-loop controller that can effectively contend with real-world dynamics. MPC performance is usually limited by factors such as model bias and the limited horizon of optimization. In this work, we present a novel theoretical connection between information theoretic MPC and entropy regularized RL and develop a Q-learning algorithm that can leverage biased models. We validate the proposed algorithm on sim-to-sim control tasks to demonstrate the improvements over optimal control and reinforcement learning from scratch. Our approach paves the way for deploying reinforcement learning algorithms on real systems in a systematic manner.
Introduction
In robotics, researchers face a significant challenge in balancing sample efficiency with robustness. Model-free Reinforcement Learning (RL) can learn complex behaviors but typically requires prohibitive amounts of data, which is often impractical or unsafe for real hardware. Conversely, Model Predictive Control (MPC) leverages simulators for efficient planning but is highly sensitive to model bias—discrepancies between the simulator and reality—and is often constrained by short planning horizons.
This paper introduces Model Predictive Q-Learning (MPQ) to address the "sim-to-real" gap. By bridging the gap between control theory and reinforcement learning, MPQ uses a learned Q-function to extend the effective horizon of a controller, making it more robust to model inaccuracies and significantly more sample-efficient than traditional model-free methods.
Methodology
The core innovation of MPQ is a theoretical link between Information-Theoretic MPC (specifically Model Predictive Path Integral control, or MPPI) and Entropy-Regularized RL (such as Soft Q-Learning).
Infinite Horizon MPPI and the Q-Function
The authors derive an infinite-horizon version of the MPPI update rule that incorporates a terminal value function. Instead of planning over a long, computationally expensive horizon where model errors compound, MPQ plans for a short horizon (e.g., $H=10$ steps). It then utilizes a learned Q-function as a "heuristic" to estimate the "cost-to-go" for all subsequent steps.
Free Energy Targets
To update the Q-function, the algorithm employs a "free energy" Bellman equation. This approach allows the Q-function to be updated using the local optimizations performed by the MPC, resulting in a learning process that is more stable and data-efficient than standard RL updates. This creates a synergy where the MPC provides high-quality actions for the RL agent, while the RL agent provides a global value map back to the MPC.
Experimental Results
The researchers evaluated MPQ on four simulated continuous control tasks in MuJoCo: PendulumSwingup, BallInCupSparse, FetchPushBlock, and FrankaDrawerOpen. These tasks were designed as "sim-to-sim" experiments where the agent was provided with a biased simulator (incorrect physical parameters) and had to adapt to the "true" environment.
Performance and Efficiency
As shown in the learning curves, MPQ (pink line) consistently achieves superior performance across all tasks. In the high-dimensional Franka drawer task, MPQ with a horizon of $H=10$ achieved a success rate five times higher than vanilla MPPI with the same horizon, even outperforming MPPI with a much longer $H=64$ horizon. Furthermore, MPQ reached high performance within just 2 to 5 minutes of interaction time, whereas model-free Soft Q-Learning failed to converge.
Robustness to Model Bias
A key finding is that short-horizon MPC with a learned value function often outperforms long-horizon MPC in biased models because it avoids the "compounding errors" of long-term planning in an inaccurate simulator. MPQ also proved more effective than Domain Randomization (DR). In the Ball-in-Cup task, MPQ achieved an 85% success rate by learning from real data, compared to only 41% for the DR baseline.
Discussion and Conclusion
MPQ demonstrates that combining local MPC optimization with global RL value estimation provides a powerful framework for robotic control. While the current work assumes deterministic dynamics and requires a reasonable initial model, it paves the way for more adaptive systems. Future research may explore automatically adjusting the MPC horizon based on the uncertainty of the learned Q-function, further optimizing the balance between planning and learning.
Summary updated