Context-aware controller inference for stabilizing dynamical systems from scarce data

Steffen W. R. Werner, Benjamin Peherstorfer

TL;DR

Researchers have developed a "context-aware" approach to stabilize high-dimensional dynamical systems using orders of magnitude less data than traditional methods. By focusing exclusively on the small subspace of unstable dynamics rather than trying to model the entire system, this method can stabilize complex physics simulations—like power grids and fluid flows—with as few as two data samples.

What Problem Does This Paper Address?

In fields like aerospace, robotics, and power grid management, we often need to design feedback controllers to keep a system stable (e.g., keeping a drone level or a reactor from overheating). Traditionally, if you don't have a perfect mathematical model of the system, you use System Identification: you collect massive amounts of data to learn how the whole system behaves, then design a controller for that learned model.

The "curse of dimensionality" makes this nearly impossible for complex systems. If a system has 20,000 variables, you might need 20,000+ data samples to identify it. Worse, collecting data from an unstable system is a race against time—the system often crashes or "blows up" before you can gather enough information to learn how to save it. Reinforcement Learning (RL) faces similar hurdles, often requiring millions of trials that are computationally expensive or physically dangerous.

Methods

The authors introduce Context-aware Controller Inference. Their core insight is that to stabilize a system, a controller doesn't need to understand the entire system—it only needs to act on the unstable parts.

Key steps in their approach:

  1. Identify the "Context": Most high-dimensional systems are mostly stable; only a tiny fraction of their dynamics (the "unstable subspace") causes them to fail. The authors use adjoint information (gradients) to efficiently find the basis of this low-dimensional unstable space.
  2. Project the Data: They take the scarce data available and project it onto this small unstable subspace.
  3. Infer a Low-Dimensional Controller: Instead of solving a massive control problem, they solve a tiny one in the reduced subspace using Linear Matrix Inequalities (LMIs).
  4. Lift to Full Scale: The resulting low-dimensional controller is "lifted" back to the original high-dimensional space to provide real-time stabilization.

This differs from standard "model reduction" because it doesn't try to approximate the whole system; it specifically targets the "context" of instability.

Datasets

The paper evaluates the method on four high-dimensional engineering benchmarks:

  • Disturbed Heat Flow: A linear system with $N=4,489$ states.
  • Brazilian Interconnected Power System: A large-scale linear model of a real-world power grid with $N=7,135$ states.
  • Tubular Reactor: A nonlinear chemical reaction model with $N=3,998$ states.
  • Laminar Flow with an Obstacle: A highly complex nonlinear fluid dynamics problem (Navier-Stokes) with $N=22,060$ states.

Key Insights and Ideas

  • Stability is Sparse: In many complex systems, the "troublemakers" (unstable eigenvalues) are few. While the state space might have 20,000 dimensions, the unstable subspace might only have 1 or 2.
  • Adjoints are a "Cheat Code": Many modern engineering software packages (like FEniCS) provide "adjoint solvers" that give you gradients for free. The authors show these gradients are the perfect tool for finding the unstable subspace without needing to see the system fail repeatedly.
  • Data Informativity: The paper proves that if the unstable space has dimension $r$, you only need roughly $r$ samples to find a stabilizing controller, regardless of how large the total system dimension $N$ is.

Key Results

  • Massive Data Reduction: In the heat flow experiment, the proposed method required only 2 state samples to find a controller. Traditional system identification would have required over 4,000.
  • Beating Reinforcement Learning: On the power system benchmark, a state-of-the-art RL algorithm (DDPG) failed to find a controller even after 1,000 episodes because the system became unstable too quickly to learn anything. The context-aware approach stabilized it immediately using just 2 samples (plus gradient info).
  • Nonlinear Success: Even though the theory is rooted in linearization, the method successfully stabilized the nonlinear tubular reactor and fluid flow models, proving robust to real-world complexities.

Limitations and Future Work

  • Requirement of Steady State: The method currently requires knowing the "steady state" (the equilibrium point you want to stay at) beforehand.
  • Reliance on Gradients: The "active" version of the algorithm requires access to an adjoint solver or gradient samples, which might not be available for "true" black-box systems where you only have output data.
  • Linear Subspaces vs. Manifolds: The authors currently use linear subspaces to represent the unstable dynamics. They suggest that for extremely nonlinear systems, moving toward nonlinear manifolds would be a promising next step to improve performance further.

Summary updated

BibTeX
@inproceedings{werner2023context,
  author = {Steffen W. R. Werner and Benjamin Peherstorfer},
  title = {{Context-aware controller inference for stabilizing dynamical systems from scarce data}},
  booktitle = {Proceedings of the Royal Society A Mathematical Physical and Engineering Sciences},
  year = {2023},
  doi = {10.1098/rspa.2022.0506},
}
Figure