Introduction
In the realm of control theory, nonlinear systems present a formidable challenge. They are notoriously difficult to model and even harder to control in real-time. Koopman Operator Theory offers a clever workaround: it "lifts" nonlinear states into a higher-dimensional space where the dynamics behave linearly. Once the system is linear, efficient tools like Model Predictive Control (MPC) can be applied.
However, traditional Koopman models assume the operator—the matrix describing the system's movement—is constant. In the real world, systems change due to wear and tear, temperature shifts, or fluctuating environments. These time-varying systems break static Koopman models. While deep learning models like Multi-Layer Perceptrons (MLPs) can capture these changes, they turn the control task into a non-convex optimization problem that is often too slow for real-time use.
To address this, researchers have developed MamKO (Mamba-based Koopman Operator), a novel framework that combines the linearizing power of Koopman theory with the sequence-modeling prowess of the Mamba architecture. By dynamically generating Koopman operators from historical data, MamKO enables high-accuracy modeling and efficient control of complex, time-varying nonlinear systems.
The MamKO Framework
The authors introduce MamKO by leveraging the Mamba architecture—a state-space model (SSM) originally designed for large language models—to generate Koopman operators on the fly.
Key technical innovations include:
- Dynamic Matrix Generation: Instead of learning a fixed matrix, MamKO uses a 1D convolutional layer to extract temporal features from a window of historical data. These features are fed into neural networks that output a sequence of Koopman matrices ($A, B, C$) tailored to the system's current state.
- Negative CELU Activation: Standard Mamba models use a negative exponential function to ensure the system is stable (i.e., has negative eigenvalues). However, many physical systems, like an inverted pendulum, are inherently unstable. MamKO replaces this with a negative Continuously Differentiable Exponential Linear Unit (CELU). This crucial tweak allows the model to represent unstable systems while maintaining smooth gradient updates during training.
- Convex MPC Integration: Because MamKO produces a linear (though time-varying) state-space model, the resulting MPC problem remains convex. This allows controllers to find optimal solutions using fast, reliable solvers rather than slow, hit-or-miss nonlinear optimizers.
Experimental Setup and Key Insights
The framework was evaluated on several rigorous benchmarks, including standard and time-varying versions of the CartPole (Inverted Pendulum), Gene Regulatory Networks (GRN), a Reactor-Separator Chemical Process (RSCP), and a large-scale Wastewater Treatment System featuring 145 states.
The experiments revealed several key insights:
- Context is King: By looking at a window of historical data, MamKO effectively "re-linearizes" the system at every time step. This allows it to track moving targets in the system's dynamics that a static model would miss.
- Bridging the Gap: MamKO provides a "best of both worlds" solution. It matches the modeling accuracy of deep neural networks but retains the mathematical structure required for lightning-fast control.
Performance and Results
MamKO demonstrated significant improvements over baseline methods across multiple metrics:
- Superior Accuracy: In time-varying scenarios, MamKO significantly outperformed the Deep Koopman Operator (DKO). For the time-varying CartPole, MamKO's prediction error was orders of magnitude lower than DKO.
- Massive Speedups: Compared to MLP-based MPC (which uses nonlinear optimization), MamKO reduced computation time by 90% to 99% across all benchmarks. For the RSCP system, MamKO solved in approximately 0.026 seconds compared to the MLP's 3.31 seconds.
- Better Control: In the Gene Regulatory Network task, MamKO-based MPC reduced the control cost (tracking error) by 92.1% compared to DKO-based methods.
- Handling Rapid Change: When system parameters changed rapidly (e.g., high-frequency oscillations), MamKO maintained its performance while baseline models failed to adapt.
Limitations and Future Directions
While MamKO shows great promise, the authors note a few areas for future growth. Formal mathematical proofs regarding the convergence and stability of the MamKO-based control loop are still needed to back up the strong empirical results. Additionally, while the model handled 145 states well, testing the limits of the architecture on even larger industrial-scale systems remains a priority. Finally, future research will explore integrating MamKO into "Economic MPC" frameworks, which optimize for profit or energy efficiency rather than just tracking a setpoint.
Summary updated