Deep KKL: Data-driven Output Prediction for Non-Linear Systems

Steeven Janny, Vincent Andrieu, Madiha Nadri, Christian Wolf · DOI

TL;DR

Deep KKL bridges control theory and deep learning to forecast the future observations of unknown nonlinear systems. By embedding complex dynamics into a linear, contracting latent space, it provides a data-driven predictor that offers theoretical error guarantees and outperforms standard recurrent neural networks on chaotic benchmarks.

What Problem Does This Paper Address?

Predicting the future behavior of nonlinear systems—like weather patterns, fluid flows, or biological populations—is a fundamental challenge. Traditionally, this requires either an exhaustive physical model (which is often unavailable) or "black-box" machine learning models like Recurrent Neural Networks (RNNs).

While RNNs are powerful, they often lack interpretability and formal stability guarantees. Conversely, control theory offers "observers" (mathematical tools to estimate internal states from outputs), but these typically require knowing the system's underlying equations. The authors address this gap by creating a hybrid approach: a data-driven predictor that uses deep learning to "learn" the structure of a theoretically grounded control-theoretic observer.

Methods

The authors introduce Deep KKL, a framework based on the Kazantzis-Kravaris/Luenberger (KKL) observer. The core idea is to transform the nonlinear system into a latent space where the dynamics are simple, linear, and "contracting."

The process works in three stages, as illustrated in the computation graph:

  1. Closed-Loop Synchronization: The model takes a small window of initial observations ($h$ timesteps). Because the latent space is designed to be a "uniform exponential contraction," the model's internal state quickly "forgets" its random initialization and synchronizes with the real system.
  2. Open-Loop Prediction: Once synchronized, the model switches to an autonomous mode, evolved by a linear system ($z' = Az + by$), to forecast the latent state into the future.
  3. Output Mapping: A deep neural network (specifically a Multilayer Perceptron) acts as the function $\psi$, mapping the latent state back into the original observation space.
The Deep KKL workflow: synchronizing in closed-loop before predicting in open-loop.

Unlike other popular methods like Koopman operator theory, which requires infinite-dimensional transformations to achieve full linearity, KKL guarantees that a finite-dimensional transformation exists under very weak assumptions.

Datasets

The model was evaluated on four classic nonlinear and chaotic systems:

  • Van Der Pol Oscillator: A non-conservative oscillator with non-linear damping.
  • Lorenz Attractor: A famous chaotic system used in atmospheric modeling.
  • Lotka-Volterra Equations: A model for predator-prey population dynamics.
  • Mean-Field Model: A complex system representing fluid flow past a cylinder.

Key Insights and Ideas

  • Contraction is Key: By forcing the latent dynamics to be contracting, the authors ensure the model is robust. It doesn't need to know the exact starting state of the system; it just needs to "watch" the system for a few steps to sync up.
  • Bridging the Gap: The paper demonstrates that deep learning can be used to find the "inverse mapping" ($\psi$) required by KKL theory, which is traditionally difficult to compute analytically for unknown systems.
  • Theoretical Safety: Because the framework is rooted in control theory, the authors were able to derive a mathematical upper bound for the prediction error—a "safety net" that pure deep learning models rarely provide.
  • Simplicity Wins: Despite having a simpler structure than high-capacity GRUs or RNNs, Deep KKL performed better on these moderate-complexity systems, suggesting that the right inductive bias (linear contracting dynamics) is more important than raw model depth.

Key Results

Deep KKL consistently outperformed or matched standard RNNs and Gated Recurrent Units (GRUs) across all benchmarks.

  • Accuracy: In the Mean-Field fluid flow test, Deep KKL achieved a Mean Squared Error (MSE) of 0.0012, significantly lower than the GRU's 0.2044.
  • Temporal Generalization: The models were trained to predict 25 steps ahead but tested on 95 steps. Deep KKL showed remarkable stability over this extended horizon, whereas baselines often drifted.
  • Noise Robustness: The model remained effective even when trained on data corrupted by Gaussian noise, showing stable performance up to reasonable noise levels.
Comparison of predictions against ground truth. Deep KKL (red) tracks chaotic trajectories much more accurately than RNNs or GRUs.

Limitations and Future Work

The primary limitation identified is Out-of-Distribution (OOD) generalization. While Deep KKL is excellent at predicting trajectories within the range of data it has seen, its performance drops when the system's initial conditions are significantly different from the training set.

Heatmap showing that prediction error increases as initial conditions move outside the training domain (black square).

Future work aims to explore "sample complexity"—determining exactly how much data is needed to guarantee a certain level of accuracy—and finding ways to improve performance when the model encounters entirely new operating regions.

Summary updated

BibTeX
@misc{janny2021deep,
  author = {Steeven Janny and Vincent Andrieu and Madiha Nadri and Christian Wolf},
  title = {{Deep KKL: Data-driven Output Prediction for Non-Linear Systems}},
  year = {2021},
  eprint = {2103.12443},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.12443},
}
Figure