physics.chem-phNov 19, 2026

Pharos: Learning to Control Rare Events at Scale

Authors: Jiajun He, Jacky Chen, Weiliang Luo, Heather Kulik, David R. Koes, Carles Domingo-Enrich, Yuanqi Du

Organizations: Microsoft Research New England, Cambridge, MA 02142, USA · Department of Engineering, University of Cambridge, Cambridge, CB2 1PZ, UK · CMU-Pitt Joint Program in Computational Biology, Pittsburgh, PA 15213, USA · Department of Computational and Systems Biology, University of Pittsburgh, Pittsburgh, PA 15213, USA · 

Abstract

Rare events drive transformations across physics, chemistry and biology, yet predicting their mechanisms and rates remains a fundamental challenge. Here we introduce Pharos, a framework that learns to make rare transitions accessible while predicting how frequently they occur under physical dynamics. Through stochastic optimal control, Pharos jointly learns the probability of completing a transition and how to steer simulations toward it, allowing sampling and learning to improve one another. Across biomolecular benchmarks, Pharos learns accurate transition probabilities with order-of-magnitude gains in convergence speed over previous algorithms. It transfers across ion assembly systems in explicit solvent while maintaining accurate reaction rate predictions, scales to host-guest binding systems that span millisecond timescales, and enables chemical reaction studies with a computationally demanding machine learning interatomic potential. By combining efficient sampling, quantitative kinetics, and transferability, Pharos opens a route toward foundation models of rare event mechanisms and rates across molecular systems.

Figures & tables

Explore similar work

Apr 14, 2026

Rare Event Analysis via Stochastic Optimal Control

Rare events, from biomolecular conformational changes and phase transitions to chemical reactions, are central to many physical systems, yet extremely difficult to study computationally because unbiased simulations seldom produce them. Transition Path Theory provides a rigorous statistical framework for analyzing such events: it characterizes the ensemble of reactive trajectories between two metastable states (reactant and product), and its central object, the committor function (the probability that the system next reaches the product rather than the reactant), encodes essential kinetic and thermodynamic information. We introduce a framework for committor estimation that builds on stochastic optimal control, with a principled formulation that grounds committor learning on capped hitting-time trajectories. In this framework the committor defines a feedback control, proportional to the gradient of its logarithm, that steers trajectories toward the reactive region, enabling sampling of reactive paths. As practical algorithms, we develop two training losses: a heuristic on-policy direct backpropagation loss and a principled off-policy Value Matching loss, for which we establish first-order optimality guarantees. Being off-policy, Value Matching can leverage simulated trajectories from alternative sampling processes and reuse them from a replay buffer, which enables efficient learning. In particular, we derive a reactive current-preserving sampling process that can accelerate exploration. On reversible and non-reversible dynamics, the framework yields more accurate committor estimates, reaction rates, and transition path samples than existing methods.
Dec 11, 2025

Tracking large chemical reaction networks and rare events by neural networks

Chemical reaction networks are widely used to model stochastic dynamics in biophysical processes. Their exact probabilistic description via the chemical master equation becomes intractable for high-dimensional systems due to the exponential growth of the state space. This difficulty is further exacerbated when metastable transitions and rare events dominate the dynamics. Here, we present an advanced neural-network approach that effectively tackles large reaction networks and rare-event dynamics within a unified framework. Building on autoregressive representations of the full joint probability distribution, we achieve efficient training through second-order optimization methods, including natural gradient descent and the time-dependent variational principle. We leverage enhanced-sampling strategies that enable accurate resolution of low-probability regions governing rare transitions. We demonstrate the method on a multistable genetic toggle switch and a mitogen-activated protein kinase (MAPK) cascade consisting of 16 species and 35 reactions with dense coupling. We further quantify rare events in spatially extended Schlögl models in both one- and two-dimensional lattices, reaching system sizes with extremely large state spaces up to 3×10153\times10^{15}. These results highlight the potential of neural modeling as a flexible and scalable framework for studying high-dimensional chemical reaction networks and rare events.
Oct 31, 2026

Foresight: Learning Twisted SMC for Rare Events from Reversed Relaxations

We consider the probability that a reversible Markov chain started in a set AA is in a rare set BB after a fixed horizon, a quantity often needed for many start laws, down to single states. Twisted sequential Monte Carlo (SMC) estimates such probabilities without bias, with small variance when its proposal and twist approximate the dynamics conditioned on reaching BB, but these components are usually learned from forward simulations, which contain almost no successful paths when the event is rare. We introduce Foresight-SMC, which learns both components from the target side: under reversibility, relaxations started in BB that return to AA are, read backwards, exact samples of the conditioned paths, and their number is governed by the return probability rather than by the rare probability. Extending this reversal to the recorded propose--accept decisions of a Metropolis-adjusted sampler, we fit a controlled Langevin proposal with exact likelihood ratios by maximum likelihood, together with a classifier twist; the resulting estimator is unbiased for any start law. A variance analysis shows that resampling reduces the variance when the importance weights degenerate, as they do over long horizons. On an Allen--Cahn field, the learned proposal alone suffices, and one trained model is more accurate than splitting at equal cost. On alanine tripeptide, resampling with the learned twist is necessary, and Foresight-SMC needs less computation per query than adaptive multilevel splitting on localized start sets.