Imagine teaching a computer to predict the evolution of a cell or the spread of a virus. These systems are "stochastic": their future depends on random events, like rolling a die. Scientists use Gillespie-type algorithms to simulate this, picking the next event based on precise probabilities. But if we want to use these simulations to train an AI with deep learning, a problem arises: the rigid, categorical choice of the event (the "die roll") blocks gradient flow, stopping the network from learning.
A new arXiv study proposes an elegant solution called **Propensity Straight-Through (PST)**. Instead of "softening" randomness with tricks like Gumbel-Softmax (which adds noise and needs tuning), PST differentiates the exact conditional mean of the next step directly. It calculates the exact sensitivity by looking at normalized propensitiesβthe reaction probabilitiesβwithout altering the simulation.
The key lies in the affine state update of continuous-time Markov chains: PST exploits this linearity to get exact per-step gradients, proving that multi-step accumulated error vanishes when downstream dependencies are linear. Results are striking: on benchmarks like genetic oscillators or ion channels, PST matches relaxed methods' accuracy but converges up to 3x faster. The ultimate test? They trained a 200,000+ parameter network to classify MNIST digits using exact "hard" sampling, hitting 98.22% accuracy. PST paves the way for scalable deep learning through exact stochastic trajectoriesβno temperature, no Gumbel samples. A breakthrough for modeling biology, chemistry, and more with AI.
