Universal Differential Equations as a Common Modeling Language for Neuroscience

Ahmed ElGazzar, Marcel van GervenarXiv 2024 · DOI

Introduction: The Modeling Dichotomy

Neuroscience currently faces a significant "modeling dichotomy." On one hand, mechanistic models (such as Hodgkin-Huxley or Wilson-Cowan) are grounded in physical theory and highly interpretable. However, they are often too rigid to account for the high variance and noise found in modern, large-scale neural datasets. On the other hand, Deep Neural Networks (DNNs) and Recurrent Neural Networks (RNNs) excel at fitting complex data but act as "black boxes," lacking physical constraints and often leading to scientifically implausible results or poor generalization.

The spectrum of Universal Differential Equations bridging white-box and black-box models.

This paper proposes Universal Differential Equations (UDEs) as a unifying framework. By embedding neural networks within stochastic differential equations, researchers can create a "common language" that allows for the injection of prior biological knowledge into flexible, data-driven architectures.

The UDE Framework

The core of the proposal is the formulation of neural dynamics as a Stochastic Differential Equation (SDE):

$$dx(t) = \mu_\alpha(x(t), u(t))dt + \sigma_\beta(x(t), u(t))dW(t)$$

In this formulation, $\mu_\alpha$ represents the drift (deterministic dynamics) and $\sigma_\beta$ represents the diffusion (stochastic noise). This framework allows for a continuum of modeling approaches, ranging from pure "white-box" mechanistic models to fully "black-box" neural differential equations.

The UDE architecture: combining traditional mechanistic models with neural networks within a stochastic differential equation framework.

As shown in the architecture above, UDEs can be categorized into four main types:

  1. Known Structure and Parameters: Traditional mechanistic modeling derived from first principles.
  2. Known Unknowns: The structure is known, but specific parameter values are estimated from data using neural networks.
  3. Differential Equations with Residuals: A traditional model is augmented with a function approximator to capture dynamics not captured by the base theory.
  4. Neural Differential Equations: Fully data-driven modeling where both structure and parameters are unknown and estimated from data.

Technical Implementation and Recipe

The authors propose a modular four-part architecture for applying UDEs to neuroscience:

  • Stimulus Encoder: Maps inputs to continuous signals.
  • Recognition Model: Infers initial brain states from data.
  • UDE Process Model: The core dynamics, trained by backpropagating gradients through numerical SDE solvers.
  • Observation Model: Maps latent states to specific data modalities, such as fMRI, EEG, or spike trains.

By using differentiable solvers, the parameters ($\alpha, \beta$) can be optimized using standard machine learning toolkits. Furthermore, the use of Variational Inference allows the framework to handle the latent nature of brain states and inherent stochasticity.

Key Insights for Neuroscience

  • Stochasticity is a Feature: Unlike standard Neural ODEs, this framework emphasizes Stochastic DEs. In neuroscience, noise is not merely error; it is a fundamental part of how the brain computes and organizes.
  • Handling Irregular Sampling: Because UDEs are continuous-time models, they naturally handle datasets where observations are missing or sampled at different frequencies (e.g., combining slow fMRI with fast EEG).
  • Residual Learning: This allows for "augmented mechanistic modeling." If a theoretical model (like the Kuramoto model) doesn't perfectly fit the data, a small neural network can be added to "fix" the discrepancies without discarding the underlying theory.
  • Automated Discovery: The framework supports "symbolic distillation," where a trained black-box UDE can be converted back into a human-readable algebraic equation using sparsity-promoting tools.

Limitations and Future Work

Despite its potential, the UDE framework faces challenges. Training requires backpropagating through numerical solvers, which is computationally expensive and slow for "stiff" systems. Additionally, there is a risk of identifiability issues; high-capacity neural networks might produce the same output with different parameter settings, making it difficult to verify the biological meaning of learned latent states without careful regularization. Future research may also need to move beyond standard Brownian motion to more complex noise models, such as fractional Brownian motion, to better reflect neural realities.

Summary updated

BibTeX
@misc{elgazzar2024universal,
  author = {Ahmed ElGazzar and Marcel van Gerven},
  title = {{Universal Differential Equations as a Common Modeling Language for Neuroscience}},
  year = {2024},
  eprint = {2403.14510},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.14510},
}
Figure