Towards Data-driven LQR with Koopmanizing Flows⋆

Petar Bevanda, Max Beier, Shahab Heshmati-Alamdari, Stefan Sosnowski, Sandra Hirche

TL;DR

This paper introduces a novel data-driven framework, KFC-LQR, that learns linear time-invariant (LTI) models for nonlinear systems. By leveraging Koopmanizing Flows, it enables the transformation of complex nonlinear optimal control problems into standard Linear Quadratic Regulator (LQR) problems, leading to more efficient and effective control strategies.

What Problem Does This Paper Address?

Controlling nonlinear dynamical systems is a significant challenge in many fields. Traditional methods often require precise analytical models, which are difficult to obtain for complex systems. While Koopman operator theory offers a way to represent nonlinear dynamics linearly in an infinite-dimensional space, applying this to practical control design, especially with inputs, has been limited. Existing data-driven approaches often provide only locally accurate models or struggle to achieve long-term accurate predictions needed for optimal control. This paper addresses the gap of learning a finite-dimensional, data-driven LTI model that accurately captures both the autonomous and controlled dynamics of nonlinear systems, thereby enabling the use of well-established LQR control techniques.

Methods

The core of this work is the development of Koopmanizing Flows with Control LQR (KFC-LQR). This framework builds upon the concept of "Koopmanizing Flows," which uses diffeomorphisms (smooth, invertible mappings) to transform nonlinear system states into a latent space where the dynamics become linear.

Key methodological contributions include:

  • Learning Controlled LTI Dynamics: The framework extends Koopmanizing Flows to systems with linear control inputs. It learns a finite-dimensional representation of the Koopman operator that is linear in controls.
  • Concurrent Learning: Crucially, KFC-LQR learns the lifting coordinates (the Koopman-invariant representation) and the controlled LTI dynamics simultaneously from data. This contrasts with methods that require separate learning steps.
  • Diffeomorphism-based Lifting: The method uses invertible neural networks (specifically, coupling layers) to learn the diffeomorphism. This ensures that the learned lifting is a valid, smooth transformation.
  • Soft Constraint Relaxation: To facilitate training with standard deep learning optimizers, the strict diffeomorphism constraint is relaxed into a soft cost term in the optimization objective.
  • LQR Reformulation: Once the controlled LTI model is learned, the original nonlinear optimal control problem with a quadratic cost is directly reformulated into an LQR problem. This allows for closed-form solutions for the optimal control policy.

Datasets

The paper uses simulated data generated from two example nonlinear systems. No new benchmarks are introduced; instead, the focus is on demonstrating the framework's performance on these representative systems.

Key Insights and Ideas

  • Bridging Nonlinearity and LQR: The most significant insight is the successful demonstration that complex nonlinear control problems can be effectively transformed into standard LQR problems using data-driven learning. This unlocks the power of classical control theory for a broader class of systems.
  • Importance of Joint Learning: Learning the lifting coordinates and the controlled dynamics concurrently is shown to be more effective than separate approaches, allowing the model to capture system behavior more holistically.
  • Diffeomorphisms as Powerful Tools: The use of invertible neural networks (Koopmanizing Flows) proves to be a robust way to learn the necessary coordinate transformations for linearizing nonlinear dynamics.
  • Data-Driven Control Design: The framework is entirely data-driven, meaning it does not require prior analytical knowledge of the system's dynamics, making it applicable to systems where analytical modeling is infeasible.

Key Results

The paper demonstrates the effectiveness of KFC-LQR through simulation examples:

  • Example 1 (Underwater Vehicle Dynamics): The proposed method achieved a 97.06% reduction in accumulated L2 tracking error compared to an LQR controller applied to a linearized model, showcasing significant improvement in tracking performance.
  • Example 2 (Complex Nonlinear Damping): KFC-LQR reduced the accumulated L2 tracking error by 80.34% compared to a state-of-the-art data-driven method (gEDMDc-LQR) with the same model order. This highlights the superiority of learning LTI features and dynamics jointly.
  • The framework successfully learns controlled LTI prediction models, enabling efficient optimal control for nonlinear systems.

Limitations and Future Work

  • Linear Control Entry Assumption: The current framework assumes linear control entry into the nonlinear dynamics. The authors acknowledge that if the actuation were nonlinear, the LTI controlled system would only be locally accurate.
  • State-Dependent Actuation: Extending the model capacity to handle systems with state-dependent actuation is identified as a future research direction.
  • Controllability and Observability: Rigorous analysis of controllability and observability from data for the learned models is suggested for future work.
  • System-Specific Features: The paper notes that the learned features are system-specific and non-existent a priori, suggesting that predefining them (as in some other methods) can be limiting. Future work might explore ways to leverage or interpret these learned features.

Summary updated

BibTeX
@inproceedings{bevanda2022towards,
  author = {Petar Bevanda and Max Beier and Shahab Heshmati-Alamdari and Stefan Sosnowski and Sandra Hirche},
  title = {{Towards Data-driven LQR with Koopmanizing Flows⋆}},
  booktitle = {IFAC-PapersOnLine},
  year = {2022},
  doi = {10.1016/j.ifacol.2022.07.601},
}
Figure