Abstract
Understanding the interactions within complex biological and physical systems requires identifying how subsystems exert control over one another. While Jacobian linearization is the standard tool for such analysis, estimating Jacobians from noisy, high-dimensional time-series data remains a significant challenge. We present JacobianODE, a deep learning framework that directly parameterizes the Jacobian of a nonlinear dynamical system. By incorporating path integration and loop-closure constraints, JacobianODE achieves superior accuracy in derivative estimation and inference speed compared to traditional NeuralODEs, enabling precise characterization of control dynamics in systems ranging from chaotic oscillators to recurrent neural networks.
Introduction
In complex systems—such as gene regulatory networks, climate patterns, or the human brain—function emerges from the intricate interplay of constituent parts. To understand these systems, researchers often ask control-theoretic questions: How does one subsystem "drive" another? To what extent does a perturbation in one area propagate through the network?
Historically, the gold standard for answering these questions is Jacobian linearization. By approximating a nonlinear system as a linear one at a specific point in state space, researchers can apply the robust toolkit of linear control theory. However, calculating a Jacobian typically requires knowing the underlying governing equations. In most biological contexts, these equations are unknown, and we are left with only noisy observational data. While one might attempt to train a standard neural network to model the system's dynamics and then compute its derivative, this approach often fails. A fundamental challenge in machine learning is that a good function approximation does not guarantee a good derivative approximation; standard models frequently overfit the dynamics, leading to inaccurate and noisy control estimates.
Methodology: The JacobianODE Framework
JacobianODE addresses the shortcomings of indirect estimation by flipping the script: it parameterizes a neural network to represent the Jacobian ($\mathbf{J}$) directly, rather than the system's velocity function ($\mathbf{f}$).
Direct Jacobian Parameterization
Instead of learning $\dot{x} = f(x)$, the model learns the matrix-valued function $J(x)$. To ensure this learned Jacobian is consistent with the observed trajectories, the framework employs three key technical innovations:
- Path Integration: Using the Fundamental Theorem of Calculus, the model represents state changes as line integrals of the Jacobian along the trajectory. This allows the system to reconstruct dynamics without ever explicitly defining a global velocity function.
- Loop-Closure Loss: For a dynamical system to be physically consistent, its Jacobian must represent a conservative field in certain contexts. The authors enforce a "loop-closure" constraint: integrating the Jacobian along a closed loop in state space must sum to zero. This self-supervised regularization prevents the model from learning physically impossible or divergent dynamics.
- Generalized Teacher Forcing: To maintain stability when training on chaotic or noisy data, the framework uses a "pulling" mechanism. This keeps predicted trajectories close to the ground truth during the early stages of training, preventing the model from drifting into unobserved regions of the state space.
Experimental Validation
The authors evaluated JacobianODE against standard NeuralODEs and weighted linear regression across several benchmarks:
- Low-Dimensional Oscillators: The 2D Van der Pol oscillator and the 3D chaotic Lorenz system.
- High-Dimensional Chaos: The Lorenz96 system (up to 64 dimensions), used to simulate atmospheric dynamics.
- Biological Simulations: A 128-unit recurrent neural network (RNN) trained on a "working memory selection" task, designed to mimic the interactions between visual and cognitive brain regions.
Key Results and Insights
Superior Accuracy and Stability
Across all tested systems, JacobianODE achieved significantly lower Frobenius norm errors in Jacobian estimation. Notably, it was the only method capable of accurately recovering the full Lyapunov spectrum—a critical measure of how perturbations grow or shrink over time—in high-dimensional chaotic systems. This suggests that the model captures the true underlying geometry of the dynamics rather than just interpolating between data points.
Inference Speed
Because the Jacobian is a direct output of the network, JacobianODE is approximately 100x faster at inference time than standard NeuralODEs. Traditional models require a computationally expensive backpropagation step (calculating the gradient of the output with respect to the input) at every time point to derive the Jacobian, whereas JacobianODE provides it in a single forward pass.
Control vs. Communication
A central insight of the paper is the distinction between communication and control. The authors demonstrate that a strong signal sent from Area A to Area B does not necessarily imply control. Effective control depends on whether that signal aligns with the unstable directions of Area B’s internal dynamics. JacobianODE is the first data-driven method to accurately capture this alignment. In the RNN experiments, the model revealed a "sensory-to-cognitive" shift: as the network learned its task, the sensory area gained significantly more control over the cognitive area, providing a new metric for measuring learning in neural circuits.
Behavioral Manipulation
To prove the utility of the learned control map, the authors used the Jacobians to build an Iterative Linear Quadratic Regulator (iLQR). This controller successfully forced the trained RNN to produce specific "incorrect" behaviors by applying minimal, targeted perturbations, confirming that the learned Jacobian accurately reflected the system's causal structure.
Discussion and Future Work
JacobianODE represents a significant step forward in the data-driven analysis of complex systems. By prioritizing the derivative, it provides a more robust foundation for control-theoretic analysis than traditional function-approximation methods.
However, limitations remain. The current implementation assumes full observability of the system's state variables. In many real-world biological applications, we only observe a fraction of the system. Future iterations could combine JacobianODE with latent embedding methods, such as autoencoders, to infer dynamics from partial observations. Additionally, while the current approach focuses on local control along specific trajectories, extending this to a global "control landscape" could offer deeper insights into the stability and robustness of biological networks.
Summary updated