Infinite-Horizon Value Function Approximation for Model Predictive Control

Armand Jordana, Sébastien Kleff, Arthur Haffemayer, Joaquim Ortiz de Haro, Justin Carpentier, Nicolas Mansard, Ludovic Righetti · DOI

Abstract

This paper presents a hybrid control framework that integrates the global foresight of Reinforcement Learning (RL) with the safety and constraint-handling capabilities of Model Predictive Control (MPC). By approximating an infinite-horizon value function using a neural network and employing it as a terminal cost within a real-time MPC solver, the proposed method enables robots to navigate complex environments and avoid local minima. We demonstrate the effectiveness of this approach on a 7-DoF KUKA iiwa manipulator, showing that the system can maintain safety and stability while achieving superior performance compared to traditional finite-horizon MPC.

Introduction

Model Predictive Control (MPC) is widely utilized in robotics due to its ability to handle complex system dynamics and hard physical constraints in real-time. However, standard MPC implementations typically rely on a finite prediction horizon. This inherent short-sightedness can lead to "local minima" traps—states where the controller's immediate optimal path leads to a dead end or an obstacle that could have been avoided with a longer-term perspective.

Traditionally, roboticists mitigate this by hand-tuning terminal cost functions to guide the robot toward a goal. While Reinforcement Learning (RL) offers a theoretical solution by learning an "infinite-horizon" value function (representing the cumulative long-term reward), standard RL often struggles with the hard nonlinear constraints and safety guarantees required for high-stakes robotic tasks. This research proposes a synthesis: using RL to learn the global "map" of the value function and MPC to execute the local "driving" logic.

Methodology

The core of the proposed framework is the combination of Value Iteration (VI) with Trajectory Optimization (TO).

Value Function Approximation

The authors represent the infinite-horizon value function $V(x)$ using a Multi-Layer Perceptron (MLP). This function estimates the total remaining cost to reach a target state from any given state $x$. To train this network, the framework employs Fitted Value Iteration. The training data is generated by solving numerous small Optimal Control Problems (OCPs) using a local Sequential Quadratic Programming (SQP) solver. These local solutions provide the target values necessary for the neural network to learn the global cost landscape.

The Gauss-Newton Approximation for Stability

A significant challenge in using neural networks within gradient-based MPC solvers is ensuring numerical stability. To address this, the authors represent the value function as the squared L2 norm of a residual. This formulation allows the MPC solver to utilize a Gauss-Newton approximation, providing stable gradients and Hessians. This avoids the computational burden and potential instability of calculating second-order derivatives through the entire neural network. Furthermore, the authors found that using tanh activation functions and weight decay was essential for maintaining the smoothness required by the solver, as standard ReLU activations caused divergence.

Integration with MPC

During deployment, the learned value function $V(x)$ is integrated as the terminal cost at the end of the MPC’s finite horizon. This effectively provides the short-term controller with a "vision" of the infinite-horizon cost, allowing it to make decisions that are globally optimal rather than just locally feasible.

Experimental Evaluation

The framework was evaluated through both simulation and hardware experiments using self-generated data:

  • Toy Problems: The method was tested on a pendulum (500 samples/iteration) and a 2D point mass navigation task (2,500 samples/iteration).
  • Manipulator Task: 10,000 trajectories were sampled within the joint and velocity bounds of a 7-DoF KUKA iiwa robot.

Results and Hardware Performance

In a 2D navigation task involving a U-shaped obstacle, traditional MPC without a learned terminal cost consistently became trapped in the obstacle's local minimum. In contrast, the proposed method successfully navigated around the obstacle to reach the goal.

On a real KUKA iiwa manipulator operating at 100Hz, the system performed a pick-and-place task with static obstacles. The MPC with the learned value function achieved a total cost of 213, whereas the baseline MPC (which got stuck) ended with a significantly higher cost of 1311.

Discussion

Online Correction and Robustness

A key insight from the study is the "online correction" capability of the MPC. The authors observed that the MPC’s real-time optimization can compensate for minor inaccuracies in the neural network's value function. As the MPC horizon increases, the controller becomes increasingly robust to errors in the learned value function, as the physics-based lookahead "smooths out" the neural network's predictions.

Safety via Control-Invariance

To ensure safety, the framework operates within a "control-invariant set" $\Omega$. This ensures that even if the neural network encounters an "out-of-distribution" state, the MPC can still find a safe, feasible solution. This provides a layer of safety that is often missing in pure RL approaches.

Limitations and Future Work

While effective, the method currently assumes that the control-invariant set is known analytically, which may not be the case for highly complex systems. Additionally, the current value functions are conditioned on static environments. Future research will focus on extending this framework to dynamic environments and "contact-rich" tasks, such as legged locomotion, where dynamics are discontinuous and modeling is significantly more challenging.

Conclusion

By combining the global foresight of value function approximation with the local constraint-handling of MPC, this research provides a robust path toward more capable and autonomous robotic systems. The hybrid approach mitigates the short-sightedness of traditional MPC while maintaining the safety guarantees essential for real-world deployment.

Summary updated

BibTeX
@article{jordana2025infinite,
  author = {Armand Jordana and Sébastien Kleff and Arthur Haffemayer and Joaquim Ortiz de Haro and Justin Carpentier and Nicolas Mansard and Ludovic Righetti},
  title = {{Infinite-Horizon Value Function Approximation for Model Predictive Control}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2025},
  doi = {10.1109/lra.2025.3577875},
}
Figure