A view on learning robust goal-conditioned value functions: Interplay between RL and MPC

Nathan P. Lawrence, Philip D. Loewen, Michael G. Forbes, R. Bhushan Gopaluni, Ali MesbahAnnu. Rev. Control 2025

Abstract

Modern autonomous systems require a delicate balance between long-term strategic planning and short-term safety constraints. While Reinforcement Learning (RL) excels at discovering complex behaviors through exploration, it often struggles with safety guarantees and the "reward engineering" problem. Conversely, Model Predictive Control (MPC) provides rigorous constraint handling but relies on accurate models and difficult-to-calculate terminal costs. This paper introduces a unified "Local-Global" framework that leverages RL to learn robust, goal-conditioned value functions offline, which are then integrated into a scenario-based MPC planner online. This hybrid approach ensures agents are both goal-oriented and safety-conscious under physical uncertainty.

Introduction

In the landscape of automated decision-making, two paradigms dominate: Reinforcement Learning (RL) and Model Predictive Control (MPC). RL is fundamentally a sample-based explorer; it learns from trial and error, making it capable of mastering high-dimensional tasks without a perfect model. However, RL agents are notorious for violating safety constraints during learning and requiring meticulously tuned reward functions to achieve specific goals.

MPC, by contrast, is a systems-based planner. It uses a mathematical model to forecast future states and optimize actions accordingly. While MPC is excellent at respecting physical limits, its performance is heavily dependent on model accuracy and the definition of a "terminal cost"—a heuristic that estimates the long-term value of the state where the finite planning horizon ends. Calculating this cost for complex, nonlinear systems remains a significant challenge.

This research bridges the gap by addressing the "Unknown Cost" and "Unknown Dynamics" problems simultaneously. The authors propose a controller that eliminates the need for manual reward tuning, reaches arbitrary goal states, and maintains safety even when the underlying physics are not perfectly known.

The Local-Global Architecture

The proposed framework utilizes a modular architecture that separates global strategic learning from local tactical planning.

1. Global Learning (RL)

The process begins offline, where an RL agent is trained in a "branching" simulation environment. Rather than training against a single static model, the simulation samples from a wide distribution of possible scenarios. Using Hindsight Experience Replay (HER), the agent learns a goal-conditioned value function. This function acts as a comprehensive map, providing the long-term value of any given state relative to any target goal. Because it is trained across multiple scenarios, the resulting value function is inherently robust to model uncertainty.

2. Local Planning (MPC)

During deployment, the agent does not follow a fixed RL policy. Instead, it employs an MPC optimizer that plans several steps into the future using a scenario tree. This allows the agent to evaluate multiple potential trajectories and select the one that minimizes risk across the worst-case scenarios, ensuring that safety constraints are never violated.

The synergy between the two methods is achieved by using the RL-learned value function as the terminal cost for the MPC planner. This provides the short-term planner with a "north star," guiding it toward the long-term goal. Furthermore, the authors replace traditional quadratic costs with a Gaussian-shaped reward. This choice is critical: while quadratic costs penalize the agent more heavily as it moves further from a goal, the Gaussian reward only "lights up" when the agent is on a trajectory likely to succeed. This naturally prioritizes safety constraints when the agent is far from the goal and shifts focus to precision as the agent approaches the target.

Experimental Evaluation

The framework was tested across three distinct benchmarks to evaluate its robustness, scalability, and industrial applicability:

  • Double Inverted Pendulum: This nonlinear control task requires swinging up two linked poles. The hybrid agent demonstrated superior efficiency, reducing "jittery" action variations by approximately 45% compared to standard quadratic controllers.
  • Random Linear Systems: To test scalability, the authors applied the method to systems with up to 32 dimensions. As the dimensionality increased, the goal-conditioned value function significantly outperformed the standard Linear Quadratic Regulator (LQR), proving more resilient to the "curse of dimensionality."
  • Continuous Stirred Tank Reactor (CSTR): In this chemical engineering benchmark, the agent had to control concentrations and temperatures despite uncertain reaction rates. While pure RL agents reached goals quickly but ignored safety limits, and pure MPC agents stayed safe but often failed to reach the goal, the RL+MPC hybrid successfully reached all targets while maintaining perfect constraint satisfaction.

Key Insights

One of the most significant findings is the modularity of the approach. Unlike other hybrid methods, this framework does not require differentiating through the MPC solver—a computationally expensive task. The value function can be trained independently and "plugged in" as a terminal cost.

Additionally, the automatic prioritization afforded by the Gaussian reward simplifies the deployment of autonomous systems. Because the reward signal diminishes at great distances from the goal, the MPC's objective function is naturally dominated by safety penalties in unfamiliar or distant states. The agent only begins to prioritize the specific goal once it has safely navigated to a nearby "neighborhood."

Limitations and Future Directions

While robust, the framework assumes that the real-world environment falls within the distribution of scenarios used during offline training. Significant distribution shifts could still lead to performance degradation. Furthermore, evaluating a deep neural network (the value function) within an MPC optimization loop introduces computational overhead. While Taylor approximations can mitigate this, ultra-high-speed applications may require further optimization.

Future work aims to transition from static offline learning to online adaptation, allowing the RL value function to update continuously as the MPC agent interacts with the real world, further closing the gap between simulation and reality.

Summary updated

BibTeX
@inproceedings{lawrence2025view,
  author = {Nathan P. Lawrence and Philip D. Loewen and Michael G. Forbes and R. Bhushan Gopaluni and Ali Mesbah},
  title = {{A view on learning robust goal-conditioned value functions: Interplay between RL and MPC}},
  booktitle = {Annu. Rev. Control},
  year = {2025},
}
Figure