Neural-network solutions to stochastic reaction networks

Ying Tang, Jiayu Weng, Pan Zhang
9/29/2022
q-bio.MNcs.LGnlin.AO
rl

Official code: Machine-learning-and-complex-systems/NNCME (40 stars, Jupyter Notebook, last commit 2026-11-19).

Abstract

The stochastic reaction network in which chemical species evolve through a set of reactions is widely used to model stochastic processes in physics, chemistry and biology. To characterize the evolving joint probability distribution in the state space of species counts requires solving a system of ordinary differential equations, the chemical master equation, where the size of the counting state space increases exponentially with the type of species, making it challenging to investigate the stochastic reaction network.

Show full abstract

Here, we propose a machine-learning approach using the variational autoregressive network to solve the chemical master equation. Training the autoregressive network employs the policy gradient algorithm in the reinforcement learning framework, which does not require any data simulated in prior by another method. Different from simulating single trajectories, the approach tracks the time evolution of the joint probability distribution, and supports direct sampling of configurations and computing their normalized joint probabilities. We apply the approach to representative examples in physics and biology, and demonstrate that it accurately generates the probability distribution over time. The variational autoregressive network exhibits a plasticity in representing the multimodal distribution, cooperates with the conservation law, enables time-dependent reaction rates, and is efficient for high-dimensional reaction networks with allowing a flexible upper count limit. The results suggest a general approach to investigate stochastic reaction networks based on modern machine learning.

View on arXivView PDF

Code Implementations(1)

405Jupyter Notebook, PythonJul 21, 20221 weeks ago

Similar Papers

Cite this paper

@article{tang2022neuralnetwork,
  title  = {Neural-network solutions to stochastic reaction networks},
  author = {Ying Tang and Jiayu Weng and Pan Zhang},
  year   = {2022},
  eprint = {2210.01169},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.01169}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.01169.svg)](https://codeofpaper.com/paper/2210.01169)

Discussion