TL;DR
By combining Koopman operator theory with the Safe Set Algorithm (SSA), this paper introduces a unified Model Predictive Control (MPC) framework that globally linearizes complex, high-dimensional robot dynamics. This allows tracking and hard safety constraints to be solved simultaneously in real-time as a single, highly efficient Quadratic Program (QP). Backed by an adversarial fine-tuning scheme, the framework guarantees persistent safety and feasibility on both manipulators and quadrupedal robots without needing a separate safety filter.
What Problem Does This Paper Address?
Controlling high-dimensional robots—like a 7-Degree-of-Freedom (DoF) robotic arm or a walking quadruped—while guaranteeing they don't hit obstacles is a massive computational headache. The underlying physics are highly nonlinear. Traditional Nonlinear Model Predictive Control (NMPC) can handle this in theory, but it scales poorly and is often too slow for real-time, safety-critical control loops.
To get around this, roboticists frequently use two-stage architectures: a nominal controller handles tracking, and a separate "safety filter" (like a Control Barrier Function) steps in to override commands if the robot gets too close to an obstacle. However, these independent layers often conflict near the safety boundaries, causing the optimization math to break down (infeasibility) or resulting in overly conservative behavior, like freezing up entirely (deadlock). Furthermore, when data-driven models are used to approximate complex dynamics, small prediction errors can compound, quietly destroying hard safety guarantees.
Methods
The authors tackle these challenges by unifying dynamics linearization and safety enforcement into a single optimization problem using three core techniques:
- Koopman Linearization via Neural Networks: Instead of locally linearizing robot dynamics around a single operating point, the authors leverage Koopman operator theory. They train a neural network to "lift" the robot's nonlinear state into a higher-dimensional latent space where the global dynamics evolve linearly ($z_{k+1} = Az_k + Bu_k$).
- Unified Koopman-SSA MPC: Because the lifted dynamics are linear, the first-order safety constraints derived from the Safe Set Algorithm (SSA) also become linear with respect to the control input. This allows the authors to combine trajectory tracking and obstacle avoidance into a single, convex Quadratic Program (QP) that can be solved rapidly using standard solvers like OSQP.
- Adversarial Fine-Tuning for the Safety Index: To prevent the controller from encountering unsolvable constraints due to learned model errors or actuation limits, the authors introduce a Learner-Critic training architecture. The Critic actively searches for "worst-case" boundary states where the control inputs might saturate or fail. The Learner then uses these counterexamples to mathematically reshape the safety boundary parameters, ensuring the robot always has a feasible action available to stay safe.
Datasets
The paper does not use standard, static public datasets. Instead, data was generated dynamically through physics simulations and real-world interactions:
- Simulation Data: Collected from a 7-DoF Kinova Gen3 manipulator simulated in PyBullet and a Unitree Go2 quadruped simulated in Isaac Sim.
- Hardware Data: Real-world joint angles and end-effector positions collected directly from a physical Kinova Gen3 manipulator to bridge the sim-to-real gap.
Key Insights and Ideas
- Ditch the Two-Stage Filter: Merging safety and tracking into a single QP ensures the robot simultaneously reasons about where it wants to go and how to stay safe, eliminating the competing objectives that cause boundary deadlocks.
- Reshape the Set, Not the Controller: When a learned model risks violating safety constraints, the solution isn't necessarily a more complex controller. Instead, adversarially adjusting the mathematical description of the safe set (the safety index) ensures the existing controller remains persistently feasible.
- Lightweight Sim-to-Real: To deploy the system on physical hardware, you don't need to retrain the entire deep neural embedding. The authors found that keeping the embedding network fixed and fine-tuning only the linear transition matrices ($A$ and $B$) with real-world data was enough to correct for unmodeled friction, delays, and dynamics.
Key Results
The proposed Koopman Method Predictive Control (KMPC) was validated against analytical baselines (LTI/LTV models) and standard Neural Network Dynamics Models (NNDM).
- Lower Prediction Error: The Koopman-based network maintained the lowest long-horizon prediction error growth across a 30-step rollout compared to all other baselines.
- Drastic Infeasibility Reduction: In a challenging multi-obstacle simulation, adversarial fine-tuning dropped the number of infeasible QP steps from 632 down to 113 out of 4,000 total control steps.
- Computational Speedup: KMPC executed over 4.2x faster than shooting-based NMPC, easily satisfying real-time control requirements where NMPC became computationally impractical.
- Hardware Success: The framework successfully transferred to a real-world Kinova Gen3 arm, enabling it to smoothly track trajectories while dynamically evading obstacles.
Limitations and Future Work
While powerful, the current framework relies on a first-order safety index based purely on positional information. This can be insufficient for highly dynamic, fast-evolving environments where velocity and acceleration boundaries matter. The authors note that future work will focus on scaling the system to incorporate higher-order safety indices (handling velocity and curvature) and moving toward torque- or acceleration-level control. Additionally, for floating-base systems like the quadruped, the current implementation simplifies the optimization by reusing a single linearization along the MPC horizon; developing a fully time-varying horizon linearization remains an open challenge.
Summary updated