ABC-LMPC: Safe Sample-Based Learning MPC for Stochastic Nonlinear Dynamical Systems with Adjustable Boundary Conditions

Brijen Thananjeyan, Ashwin Balakrishna, Ugo Rosolia, Joseph E. Gonzalez, Aaron D. Ames, Ken Goldberg

TL;DR

ABC-LMPC extends Learning Model Predictive Control (LMPC) to handle stochastic, nonlinear systems while allowing for "Adjustable Boundary Conditions." It provides a framework where robots can safely expand their operating range and adapt to new goals while maintaining theoretical guarantees on safety and iterative performance improvement.

What Problem Does This Paper Address?

Model Predictive Control (MPC) is a staple in robotics, but traditional versions often require a perfect model and fixed parameters. Learning MPC (LMPC) was introduced to allow controllers to improve over time by using data from previous successful runs (stochastic "safe sets" and "value functions").

However, prior LMPC research had two major "stiffness" problems:

  1. Linearity Constraints: Most theoretical guarantees for stochastic systems only applied to linear dynamics, which doesn't capture the complexity of real-world robots (like multi-link arms).
  2. Fixed Boundaries: Standard LMPC assumes the robot always starts at the same spot and goes to the same goal. If you move the robot or change the target, the "safe set" of data it has collected becomes useless.

This paper introduces ABC-LMPC to bridge this gap, allowing robots to handle nonlinear physics and "adjustable" start/goal configurations without losing their safety guarantees.

Methods

The authors propose a three-pronged approach to make LMPC more flexible:

  • Goal-Conditioned Safe Sets: Instead of a single safe set, they define sets that can be modified to transfer knowledge to new goal regions. If a past trajectory passes through a new goal area, that data is recycled to jump-start learning for the new task.
  • Start State Expansion: To move the starting point further away from the goal, the algorithm uses an exploration policy. This policy identifies states just outside the current "safe zone" that can still robustly reach the goal, effectively "growing" the controller's domain of expertise.
  • Sample-Based Approximation: Since solving nonlinear stochastic MPC exactly is mathematically intractable, the authors use a practical implementation:
  • Cross Entropy Method (CEM): A derivative-free optimization technique to find control sequences.
  • Neural Network Ensembles: Five probabilistic neural networks are used to estimate the "value function" (the expected cost to reach the goal from a given state).
  • Kernel Density Estimation: Used to determine if a state is "safe" based on how close it is to previously successful trajectories.

Datasets

The algorithm was evaluated on three simulated stochastic continuous control environments:

  1. Point Mass Navigation: A 4D state-space task where a point mass must navigate around a large central obstacle to reach a goal.
  2. 2D 7-Link Arm Reacher: A complex kinematic chain with 7 joints that must move its end-effector to a target while avoiding a circular obstacle.
  3. Inverted Pendulum: A classic control task modified with process noise, where the goal is to swing the pendulum from a downward position to an upright balance.

Key Insights and Ideas

  • Safety Doesn't Require Linearity: The paper proves that you can maintain "Recursive Feasibility" (the guarantee that if you are safe now, you can stay safe) even in nonlinear systems, provided the cost function meets certain conditions.
  • Directed Exploration: Rather than wandering randomly, the "Start State Expansion" is directed. The robot specifically tries to find paths from a desired new starting point back into its known safe territory.
  • Knowledge Recycling: By treating safe sets as "goal-conditioned," the robot can perform "hindsight" learning. It looks at old failures or trajectories and realizes, "Wait, this path didn't reach Goal A, but it's a perfect safe path for Goal B."

Key Results

  • Iterative Improvement: In both the Navigation and Reacher tasks, ABC-LMPC significantly outperformed the initial suboptimal demonstrations within just one or two iterations.
  • Competitive Performance: The algorithm achieved costs comparable to SAVED, a state-of-the-art reinforcement learning algorithm, but with the added benefit of explicit safety constraints.
  • Successful Expansion: In the Navigation task, the robot successfully expanded its starting domain from a position at -25 to a much more difficult position at -70, maintaining feasibility throughout the process.
  • Pendulum Swing-Up: The controller successfully learned to swing up the pendulum by iteratively expanding its safe set from the bottom (stable) to the top (unstable), eventually achieving a perfect 0.00 trajectory cost.

Limitations and Future Work

  • Known Dynamics: The current framework assumes the stochastic dynamics model ($f$) is known. In many real-world scenarios, this model must be learned from scratch, which introduces new safety risks.
  • Computational Load: Using CEM and neural network ensembles for every MPC step is computationally expensive, which might limit high-frequency real-time applications on low-power hardware.
  • Reverse Path Requirement: The domain expansion strategy currently requires an appropriate distance function and the existence of a "reverse path" from the goal toward the start, which may not exist in all environments (e.g., one-way systems).
  • Future Direction: The authors suggest integrating this with model-based Reinforcement Learning to handle cases where the robot doesn't know its own physics initially.

Summary updated

BibTeX
@inproceedings{thananjeyan2021abc,
  author = {Brijen Thananjeyan and Ashwin Balakrishna and Ugo Rosolia and Joseph E. Gonzalez and Aaron D. Ames and Ken Goldberg},
  title = {{ABC-LMPC: Safe Sample-Based Learning MPC for Stochastic Nonlinear Dynamical Systems with Adjustable Boundary Conditions}},
  booktitle = {WAFR},
  year = {2021},
  url = {https://openreview.net/forum?id=6qCp1UOH7k},
}
Figure