Finding separatrices of dynamical flows with Deep Koopman Eigenfunctions

Kabir V. Dabholkar, Omri Barak

Abstract

Identifying the boundaries between basins of attraction in high-dimensional dynamical systems is a fundamental challenge in fields ranging from neuroscience to ecology. This paper introduces a deep learning framework that approximates Koopman Eigenfunctions (KEFs) with positive eigenvalues to map these boundaries, known as separatrices. By transforming the complex geometry of state space into a simple scalar field where the boundary is the zero-level set, the method enables precise calculation of optimal perturbations to transition between stable states.

Introduction

Many complex systems, such as neural circuits or ecosystems, exhibit multistability—the ability to settle into different long-term behaviors or "attractors." While characterizing the behavior near these stable states is well-understood, identifying the separatrix—the high-dimensional manifold dividing these basins of attraction—remains computationally prohibitive in high-dimensional spaces. Knowing the location of this boundary is critical for predicting how external perturbations, like optogenetic pulses or environmental shifts, will affect the system's long-term state.

Methodology: Deep Koopman Eigenfunctions

The authors bridge the gap between Koopman Theory and Deep Learning to solve this problem. Unlike traditional Koopman analysis which focuses on stability (negative eigenvalues), this work targets positive real eigenvalues ($\lambda > 0$). These eigenfunctions $\psi$ grow exponentially along trajectories moving away from the boundary and are exactly zero on the separatrix itself.

Conceptual mapping of a high-dimensional dynamical system to a 1D Koopman Eigenfunction $\psi(x)$, where the separatrix maps to zero.

To approximate these functions, the researchers employ a Deep Neural Network (typically a ResNet) trained using a loss function derived from the Koopman Partial Differential Equation (PDE). To prevent the network from converging to trivial solutions, they introduced two key innovations: Shuffle Normalization, which prevents the learned function from collapsing to a constant, and Balance Regularization, which ensures the function takes opposite signs on different sides of the boundary, forcing a zero-crossing at the separatrix.

Key Insights and Results

The primary advantage of this approach is the reduction of a complex geometric problem into a scalar map. Once the KEF $\psi(x)$ is learned, finding the "minimal norm perturbation"—the smallest nudge required to flip the system's state—becomes a straightforward gradient-based optimization problem.

Comparison of the dynamical flow (A), the norm of the vector field $q(x)$ (B), and the learned Koopman Eigenfunction $\psi(x)$ (C).

The framework was validated on several benchmarks, including an 11-dimensional model of the mouse gut microbiome and a 668-dimensional RNN model of mouse decision-making. In the latter, the method mapped the boundary in just five minutes, achieving $R^2$ values up to 0.99 against brute-force simulations. Furthermore, KEF-guided perturbations were shown to be significantly more energy-efficient than naive target-seeking strategies.

Discussion and Limitations

While powerful, the current method requires explicit knowledge of the system's underlying dynamics ($f(x)$). Future work aims to extend this to "black-box" systems where only trajectory data is available. Additionally, the current deterministic framework does not yet account for the stochastic noise inherent in biological systems. Despite these limitations, the ability to efficiently map high-dimensional separatrices represents a significant step forward in the control and analysis of complex dynamical systems.

Summary updated

BibTeX
@inproceedings{dabholkar2025finding,
  author = {Kabir V. Dabholkar and Omri Barak},
  title = {{Finding separatrices of dynamical flows with Deep Koopman Eigenfunctions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=4KRERpdVDC},
}
Figure