Eigenvalue initialisation and regularisation for Koopman autoencoders

Jack W. Miller, Charles O'Neill, Navid C. Constantinou, Omri Azencot

TL;DR

Koopman autoencoders blend deep learning with dynamical systems theory, but standard neural network regularization ignores their unique mathematical structure. This paper introduces "eigeninit" and "eigenloss," two physics-informed schemes that directly initialize and penalize the eigenvalues of the Koopman operator. These simple modifications accelerate training convergence by up to a factor of 5 and cut long-term prediction errors by up to a factor of 3.

What Problem Does This Paper Address?

Modeling complex, nonlinear dynamical systems—like fluid flows or global weather patterns—is notoriously difficult. Koopman theory offers an elegant workaround: it proves that a nonlinear system can be mapped into a different latent space where the dynamics become perfectly linear. Koopman Autoencoders (KAEs) implement this using an encoder to find a finite-dimensional latent space, a linear "Koopman operator" layer ($U$) to step the system forward in time, and a decoder to map the state back to the original space.

Figure 1: Diagram of Koopman autoencoder architecture.

However, KAEs are typically trained using standard deep learning tricks like Xavier initialization and weight decay ($L_2$ regularization). The authors point out a major flaw: these standard techniques are completely blind to the spectral properties of the Koopman operator. Standard initializations squash eigenvalues close to zero, which actively harms the network's ability to model stable, long-term physical dynamics where eigenvalues should ideally sit on or near the unit circle in the complex plane.

Methods

The authors propose two novel, spectrally-aware regularization techniques tailored specifically for Koopman architectures:

  1. Eigeninit (Eigenvalue Initialization): Instead of initializing the Koopman matrix $U$ element-wise, the authors perform an eigendecomposition on a random starting matrix. They preserve the phases (frequencies) but replace the eigenvalue magnitudes (moduli) by sampling from a "spike and slab" distribution. This distribution combines a uniform distribution between 0 and 1 (the slab, capturing dissipative dynamics) and a delta function at exactly 1 (the spike, capturing conserved, stable dynamics). They then reconstruct the initial matrix $U$ from these modified eigenvalues.
  2. Eigenloss (Eigenvalue Regularization): During training, they add a soft penalty term to the loss function that penalizes the squared distance of the Koopman operator's eigenvalues from the unit circle: $$\epsilon_\lambda = \sum_j \left| |\lambda_j| - 1 \right|^2$$ This acts as an inductive bias favoring stable, non-exploding physical dynamics.

Datasets

The methods were evaluated across a diverse mix of synthetic and real-world datasets:

  • Driven Pendulum: A synthetic, frictionless chaotic system representing conservative dynamics.
  • Flow Past a Cylinder: A classic synthetic fluid dynamics benchmark modeling dissipative vortex shedding.
  • Ocean Surface Temperatures: A real-world dataset from NOAA measuring daily temperatures in the Gulf of Mexico.
  • Cyclone Wind Fields: A challenging new real-world benchmark introduced by the authors, extracted from the ERA5 climate reanalysis dataset, tracking wind fields around cyclones.

Key Insights and Ideas

  • Standard Initialization is a Mismatch for Physics: Standard methods like Xavier or Gaussian initialization yield average eigenvalue magnitudes of roughly 0.1 and 0.4, respectively. For stable physical systems, we want magnitudes close to 1.0. Standard training forces the network to fight its own initialization from day one.
Figure 2: Eigenvalue distribution of various initialisation schemes for a 4 × 4 operator with six layers.
  • Eigenvalues Encode System Memory: In a linear system, advancing $l$ steps means multiplying by $U^l$. If eigenvalues have a magnitude $< 1$, the signal vanishes over time; if $> 1$, it explodes. Controlling this spectrum directly controls the network's long-term memory and stability.
  • DMD as a Hyperparameter Guide: The "spike and slab" distribution requires a hyperparameter $\theta$ to balance stable vs. dissipative eigenvalues. The authors demonstrate that running a computationally cheap Dynamic Mode Decomposition (DMD) on the data beforehand provides an excellent, data-driven estimate for $\theta$.

Key Results

  • Drastically Faster Convergence: Across the board, eigeninit dramatically sped up training. For example, on the fluid dataset, the model reached convergence in just 9 epochs compared to 42 epochs for the standard KAE—a nearly 5x speedup.
  • Lower Long-Term Error: Combining eigeninit and eigenloss reduced cumulative test prediction errors significantly. On the real-world Ocean dataset, the cumulative test error dropped from 3.12 (standard KAE) to 1.02. On the new Cyclone dataset, it dropped from 554.5 to 458.5.
  • Augmenting Existing Baselines: The schemes successfully augmented other advanced architectures (like the Consistent KAE), improving their performance on real-world data.
Table 1: Minimum validation loss and final cumulative test prediction error for benchmark data sets. See bold for minimum.

Limitations and Future Work

  • Hyperparameter Sensitivity: Performance on some datasets (such as the fluids dataset) showed sensitivity to the operator size and the $\theta$ parameter, meaning some manual tuning or DMD preprocessing is required.
  • Autonomous Systems Only: The current formulation focuses strictly on autonomous dynamical systems. Extending these eigenvalue regularizations to input-driven or controlled systems (where an external force changes over time) remains an open and promising area for future research.

Summary updated

BibTeX
@inproceedings{miller2022eigenvalue,
  author = {Jack W. Miller and Charles O'Neill and Navid C. Constantinou and Omri Azencot},
  title = {{Eigenvalue initialisation and regularisation for Koopman autoencoders}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=6TugHflAGRU},
}
Figure