Gradient-based optimization of exact stochastic kinetic models
Francesco Mottes, Qian-Ze Zhu, Michael P. Brenner
TL;DR
Stochastic kinetic models involve non-differentiable discrete events, complicating gradient-based inference and design. The authors propose a reparameterized pathwise gradient using straight-through Gumbel-Softmax to differentiate through reaction choices while keeping SSA forward trajectories exact, together with a variance-reduction strategy using baseline simulations. They validate the method on stochastic gene expression (telegraph promoter) for moment- and distribution-based parameter inference and on a three-state ring for Pareto optimization of current versus entropy production under a kinetic budget, obtaining accurate parameter recovery and tight Pareto fronts. The framework enables efficient gradient-based optimization for objectives computed from exact stochastic trajectories and offers a scalable route toward systematic inference and inverse design in domains governed by continuous-time Markov dynamics, with key result $J^*(\mathcal{A},K_{tot}) = \frac{K_{tot}}{9}\tanh\left(\frac{\mathcal{A}}{6}\right)$ in the thermodynamic setting.
Abstract
Stochastic kinetic models describe systems across biology, chemistry, and physics where discrete events and small populations render deterministic approximations inadequate. Parameter inference and inverse design in these systems require optimizing over trajectories generated by the Stochastic Simulation Algorithm, but the discrete reaction events involved are inherently non-differentiable. We present an approach based on straight-through Gumbel-Softmax estimation that maintains exact stochastic simulations in the forward pass while approximating gradients through a continuous relaxation applied only in the backward pass. We demonstrate robust performance on parameter inference in stochastic gene expression, accurately recovering kinetic rates of telegraph promoter models from both moment statistics and full steady-state distributions across diverse and challenging parameter regimes. We further demonstrate the method's applicability to inverse design problems in stochastic thermodynamics, characterizing Pareto-optimal trade-offs between non-equilibrium currents and entropy production. The ability to efficiently differentiate through exact stochastic simulations provides a foundation for systematic inference and rational design across the many domains governed by continuous-time Markov dynamics.
