Abstract
Modeling stochastic dynamics from discrete observations is a key interdisciplinary challenge. Existing methods often fail to estimate the continuous evolution of probability densities from trajectories or face the curse of dimensionality. To address these limitations, we presents a novel paradigm: modeling dynamics directly in the weight space of a neural network by projecting the evolving probability distribution. We first theoretically establish the connection between dynamic optimal transport in measure space and an equivalent energy functional in weight space. Subsequently, we design WeightFlow, which constructs the neural network weights into a graph and learns its evolution via a graph controlled differential equation. Experiments on interdisciplinary datasets demonstrate that WeightFlow improves performance by an average of 43.02% over state-of-the-art methods, providing an effective and scalable solution for modeling high-dimensional stochastic dynamics.
Introduction
Modeling the evolution of complex stochastic systems—ranging from gene regulatory networks to climate patterns—is fundamental to modern scientific inquiry. A primary challenge lies in reconstructing continuous probability density evolutions from discrete "snapshots" of data. Traditional trajectory-based methods often struggle with computational costs and rare-event capture, while density-based methods frequently succumb to the "curse of dimensionality" as the number of variables increases.
WeightFlow introduces a paradigm shift by modeling dynamics directly within the weight space of a neural network. Instead of tracking individual particles or high-dimensional density functions, the framework projects the evolving probability distribution onto the weights of an autoregressive neural network, effectively bypassing dimensionality constraints.
Methodology
The WeightFlow pipeline transforms the problem of density estimation into one of weight evolution through several key components.
The Weight Path and Backbone
At the core of WeightFlow is the Weight Path. The distribution at any time $t$ is represented by the weights $\theta_t$ of an autoregressive backbone (e.g., RNN or Transformer). This ensures that the model's complexity scales with the network architecture rather than the state space dimensionality.
Graph Controlled Differential Equations (G-CDE)
Neural network weights are organized into a weight graph, reflecting the layer-wise structure of the model. To capture temporal evolution, WeightFlow employs a Graph Controlled Differential Equation (G-CDE). This approach utilizes a latent path $Z$ to guide the weight evolution, allowing the model to adaptively adjust its rate of change based on global trends in the dynamics.
Theoretical Foundation
The authors establish a theoretical bridge between Dynamic Optimal Transport—the optimal way to move probability mass—and an equivalent energy functional in the neural network's weight space. This provides a rigorous mathematical basis for learning dynamics through weight evolution.
Experimental Evaluation
WeightFlow was evaluated on diverse datasets, including simulated biochemical networks, ecological evolution models, and real-world single-cell RNA sequencing data (e.g., human embryoid body and pancreatic $\beta$-cell differentiation).
Key Results
- Superior Accuracy: WeightFlow outperformed five major baselines (including NeuralSDE and DeepRUOT), demonstrating a 32.04% improvement in Wasserstein distance and a 53.99% improvement in Jensen-Shannon Divergence on average.
- High-Dimensional Scalability: The model maintains linear scaling with system complexity, effectively mitigating the curse of dimensionality.
- Capturing Distributional Nuance: WeightFlow excels at capturing higher-order moments such as skewness and kurtosis, enabling the accurate reconstruction of complex, multi-modal distributions.
In single-cell differentiation tasks, WeightFlow was uniquely capable of capturing the intricate "branching" behavior of cell types, a feat that baselines often failed to replicate.
Conclusion and Future Work
WeightFlow represents a significant advancement in modeling stochastic dynamics. By shifting the focus from physical state space to the structured geometry of neural network weights, it provides a scalable and accurate framework for understanding complex systems. While the current model requires a two-stage training process and is sensitive to backbone architecture, it offers a robust path forward. Future research will focus on developing end-to-end training paradigms and extending the framework to non-Markovian systems with memory.
Summary updated