ResKoopNet: Learning Koopman Representations for Complex Dynamics with Spectral Residuals

Yuanchao Xu, Kaidi Shao, Nikos K. Logothetis, Zhongwei Shen

Introduction

Analyzing high-dimensional nonlinear systems—from turbulent fluid flows to the intricate firing patterns of the brain—remains a fundamental challenge in modern science. The Koopman operator framework provides a powerful theoretical bridge, transforming nonlinear dynamics into a linear representation within an infinite-dimensional function space. However, practical implementation via numerical methods like Extended Dynamic Mode Decomposition (EDMD) often suffers from two critical flaws: spectral pollution (the appearance of spurious eigenvalues) and spectral inclusion (the failure to capture continuous spectral components due to static, inadequate dictionaries).

ResKoopNet is a novel neural network framework designed to overcome these hurdles by explicitly minimizing "spectral residuals." By shifting the optimization target from state prediction to spectral accuracy, it allows researchers to discover complete operator spectra, including continuous components, with significantly higher precision and fewer observables than traditional methods.

Methods: Residual-Based Learning

To address the limitations of static dictionaries, ResKoopNet (Residual-based Koopman-learning Network) utilizes a deep neural network to learn a trainable dictionary of functions ($\Psi$). Unlike traditional approaches that minimize state prediction error, ResKoopNet minimizes the spectral residual—a metric that quantifies how closely an estimated eigenpair satisfies the Koopman operator equation.

The ResKoopNet optimization workflow, illustrating the iterative process of dictionary learning and spectral residual minimization.

The training process alternates between updating the Koopman matrix representation and optimizing the neural network parameters. By incorporating pseudospectrum analysis, the model can effectively characterize continuous spectra, which are essential for understanding chaotic and complex behaviors. This direct spectral optimization forces the network to find a subspace where the Koopman operator is most accurately represented.

Experimental Evaluation

The researchers evaluated ResKoopNet on three distinct types of systems:

  1. The Nonlinear Pendulum: A classic Hamiltonian system used to test the ability to recover a full spectrum (the unit circle) in a measure-preserving system.
  2. Fluid Turbulence: A high-dimensional dataset modeling air pressure around an airfoil, used to test the recovery of dominant spatial patterns.
  3. Neural Dynamics (Mice Visual Cortex): Real-world calcium imaging data tracking the activity of over 7,000 neurons in response to different video stimuli.

Key Results and Insights

The primary advantage of ResKoopNet is its ability to solve the spectral inclusion problem. Because the dictionary is learned and optimized to reduce residuals, the model can "explore" the function space to find spectral components that static dictionaries would miss.

Spectral Recovery in the Nonlinear Pendulum

In the case of the nonlinear pendulum, ResKoopNet successfully recovered the entire unit circle spectrum with high precision. As shown in the figure below, increasing the number of observables ($N_K$) allows the model to progressively fill in the continuous spectrum, eventually forming a clear representation of the unit circle.

Recovery of the Koopman spectrum (unit circle) for a nonlinear pendulum as the number of observables (N_K) increases.

Compared to traditional methods, ResKoopNet is significantly more efficient. It required only 300 observables to achieve a result that required nearly 1,000 basis functions for Residual DMD (ResDMD). While standard EDMD produced a "polluted" cloud of points, ResKoopNet maintained spectral integrity.

Turbulence and Neural Latent States

For fluid turbulence, ResKoopNet accurately reconstructed the dominant spatial pressure field where other advanced methods, such as Hankel-DMD, failed to capture the fundamental structure. In the biological context, the learned Koopman eigenfunctions acted as powerful features for clustering brain states. Using the Davies-Bouldin Index (DBI) to measure clustering quality, ResKoopNet significantly outperformed Hankel-DMD and Kernel-ResDMD, producing clearly defined clusters corresponding to specific visual stimuli.

Discussion and Future Work

ResKoopNet demonstrates that prioritizing spectral accuracy over prediction error leads to more physically meaningful representations of complex systems. While the iterative optimization process is computationally more intensive than "one-shot" classical methods, the gains in precision and representational efficiency are substantial.

Current limitations include a focus on deterministic systems and sensitivity to hyperparameter tuning. Future research will focus on extending the framework to stochastic systems and incorporating "physics-informed" constraints, such as conservation laws, directly into the network architecture to further improve spectral learning.

Summary updated

BibTeX
@inproceedings{xu2025reskoopnet,
  author = {Yuanchao Xu and Kaidi Shao and Nikos K. Logothetis and Zhongwei Shen},
  title = {{ResKoopNet: Learning Koopman Representations for Complex Dynamics with Spectral Residuals}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=Svk7jjhlSu},
}
Figure