Weak collocation regression method: Fast reveal hidden stochastic dynamics from high-dimensional aggregate data

Liwei Lu, Zhijun Zeng, Yan Jiang, Yi Zhu, Pipi Hu

Abstract

Revealing hidden dynamics from the stochastic data is a challenging problem as randomness takes part in the evolution of the data. The problem becomes exceedingly complex when the trajectories of the stochastic data are absent in many scenarios. Here we present an approach to effectively modeling the dynamics of the stochastic data without trajectories based on the weak form of the Fokker-Planck (FP) equation, which governs the evolution of the density function in the Brownian process. Taking the collocations of Gaussian functions as the test functions in the weak form of the FP equation, we transfer the derivatives to the Gaussian functions and thus approximate the weak form by the expectational sum of the data. With a dictionary representation of the unknown terms, a linear system is built and then solved by the regression, revealing the unknown dynamics of the data. Hence, we name the method with the Weak Collocation Regression (WCR) method for its three key components: weak form, collocation of Gaussian kernels, and regression. The numerical experiments show that our method is flexible and fast, which reveals the dynamics within seconds in multi-dimensional problems and can be easily extended to high-dimensional data such as 20 dimensions. WCR can also correctly identify the hidden dynamics of the complex tasks with variable-dependent diffusion and coupled drift, and the performance is robust, achieving high accuracy in the case with noise added.

Introduction

In fields ranging from single-cell biology to financial modeling, researchers often encounter "aggregate data"—snapshots of a population at different points in time. While we can observe the distribution of a population, we often cannot track specific individual trajectories. The goal is to uncover the underlying Stochastic Differential Equation (SDE) that describes this motion: $$dX_t = \mu(X_t, t)dt + \sigma(X_t, t)dW_t$$ where $\mu$ represents the deterministic "drift" and $\sigma$ represents the "diffusion" or randomness. Traditional methods like Physics-Informed Neural Networks (PINNs) or Generative Adversarial Networks (GANs) face significant computational hurdles, particularly the "curse of dimensionality" and the difficulty of estimating smooth probability density functions from discrete samples.

Methodology: Weak Collocation Regression (WCR)

The authors introduce Weak Collocation Regression (WCR), a framework designed for speed and scalability. WCR is built on three pillars:

  1. The Weak Fokker-Planck Equation: Instead of solving the Fokker-Planck (FP) equation directly, which describes density evolution, the authors utilize its weak form by integrating it against test functions.
  2. The Derivative Swap: By applying integration by parts, spatial derivatives are shifted from the unknown, noisy data distribution onto known test functions (Gaussian kernels). This allows for exact analytical calculation of derivatives.
  3. Monte Carlo Integration: The integral in the weak form is approximated by summing the values of the test functions at the observed data points. This approach bypasses the need to reconstruct a smooth density function, which is often the bottleneck in high-dimensional analysis.

By fixing the basis functions and test kernels, the problem is transformed into a linear system ($A\zeta = y$), which can be solved efficiently using sparse regression techniques like STRidge (Sequential Thresholded Ridge).

Scaling to High Dimensions

A major strength of WCR is its ability to handle high-dimensional systems. The coefficients for the drift and diffusion terms are organized into structured representations to manage the complexity of multi-variable interactions and ensure computational tractability.

Structural representation of the coefficient matrix $\zeta^\mu$ for drift and the coefficient tensor $\zeta^D$ for diffusion in high-dimensional stochastic systems.

Experimental Results

The method was evaluated on various synthetic datasets, including 1D systems with variable-dependent diffusion and high-dimensional systems up to 20D.

  • Computational Efficiency: WCR is remarkably fast. 1D problems are typically solved in approximately 0.02 seconds. A 10D system with coupled diffusion was solved in 30 minutes, and a 20D system in 47 minutes on a standard laptop.
  • Accuracy and Robustness: In 1D tests, the Maximum Relative Error (MRE) was frequently below 1%. The method demonstrated significant robustness to noise; even with 40% added white noise, it could still identify the underlying dynamics, albeit with a higher error margin (~11.7%).
  • Parsimony: The sparse regression successfully isolated the correct physical terms from a large dictionary of candidates, effectively eliminating "junk" terms and following the principle of Occam’s Razor.

Conclusion and Future Work

WCR offers a powerful alternative to deep learning for stochastic system identification, particularly when data is aggregate and high-dimensional. Its linear formulation provides extreme speed and avoids the density estimation bottleneck. Future research may explore using neural networks as an ansatz for drift and diffusion terms when the basis is unknown, or implementing active learning to optimize the placement of Gaussian kernels.

Summary updated

BibTeX
@article{lu2022weak,
  author = {Liwei Lu and Zhijun Zeng and Yan Jiang and Yi Zhu and Pipi Hu},
  title = {{Weak collocation regression method: Fast reveal hidden stochastic dynamics from high-dimensional aggregate data}},
  journal = {Journal of Computational Physics},
  year = {2022},
}
Figure