arXiv:2611.00903cs.LGOct 2026

Manuscript Offprint

arXiv:2611.00903

Foresight: Learning Twisted SMC for Rare Events from Reversed Relaxations

Ziyi Fan, Yuxuan Qiu, Haibo Wang, Wentao Cui, Chen Fang

Abstract

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.

1. Introduction

Many questions about molecular and stochastic systems ask how likely a rare transition is within a given time. For a reversible Markov chain started from a law ν\nu on a set AA, we seek the probability p(ν,T)p(\nu, T) that it is in a target set BB after TT steps. Splitting methods (Allen et al., 2005; Cérou & Guyader, 2007) and importance sampling (Dupuis & Wang, 2004) estimate such probabilities far below the reach of direct simulation. Each run, however, answers a single start law and horizon, which we call a query, and splitting further requires a reaction coordinate, a scalar measure of progress toward BB. Applications often need many queries, down to single start configurations.

Twisted sequential Monte Carlo (SMC) (Del Moral, 2004; Chopin & Papaspiliopoulos, 2020) offers an alternative that estimates such probabilities without bias and needs no reaction coordinate. It propagates particles under a proposal dynamics, corrects them with likelihood ratios, and resamples them according to a twist, a function that predicts how likely each particle is to reach BB. From a point start, the estimator has zero variance when the proposal is the Doob hh-transform, that is, the dynamics conditioned to end in BB, and the twist is the success probability hh itself (Doob, 1957; Heng et al., 2020). In practice both components are learned from forward simulations (Guarniero et al., 2017; Heng et al., 2020; Lawson et al., 2022), which contain almost no successful paths when the event is rare.

We introduce Foresight-SMC (Figure 1), which learns the proposal and the twist from the target side. Our key observation is that reversibility supplies the missing successful paths. Consider relaxations, that is, reference paths started at equilibrium in BB. Those that are in AA after TT steps are, read backwards, exact samples of the conditioned path law started from μA=π(⋅∣A)\mu_A = \pi(\cdot \mid A), the equilibrium law π\pi restricted to AA. Their fraction rBr_B satisfies π(A)p(μA,T)=π(B)rB\pi(A)p(\mu_A, T) = \pi(B)r_B. The rarity is therefore carried by the equilibrium ratio π(B)/π(A)\pi(B)/\pi(A), whereas rBr_B is not small once TT exceeds the typical residence time in BB. The identity alone yields only the average over μA\mu_A and requires π(B)/π(A)\pi(B)/\pi(A). Foresight-SMC instead uses the returning relaxations as training data, and the learned model answers queries from any start law, including single configurations, without retraining.

*Equal contribution ¹Key Laboratory of Organ Regeneration and Reconstruction, Chinese Academy of Sciences, Beijing, China ²Institute of Industrial Science, The University of Tokyo, Tokyo, Japan ³Westlake University, Hangzhou, China ⁴Beijing Life Science Academy, Beijing, China. Correspondence to: Chen Fang fangchen23@ioz.ac.cn.

Preprint. October 31, 2026.

Our contributions are as follows.

  • We show that reversed relaxations are training data for twisted SMC. We extend the classical time-reversal identity to the recorded propose–accept decisions of a Metropolis-adjusted sampler, and show that the effective sample size of the relaxations is at least their number times rBr_B (Section 3.1).

• We learn h in the two forms that twisted SMC needs: a controlled Langevin proposal whose recorded steps give exact likelihood ratios, fitted by maximum likelihood on reversed transitions, and a classifier twist whose logit is log⁡h\log h up to a constant. The estimator is unbiased for any start law, including point starts, whatever the networks learn (Sections 3.2–3.4).

• We relate the variance to the errors of the proposal and the twist. The proposal error accumulates over the horizon, and resampling with the twist resets the weights at the price of the twist error (Section 3.5).

We evaluate Foresight-SMC on the two sides of this analysis (Section 4). On an Allen–Cahn field, the learned proposal alone suffices, and one trained model answers point queries more accurately than splitting at equal cost. On alanine tripeptide, the weights of the proposal alone degenerate over long paths, and resampling with the learned twist needs less work per query than splitting on localized start sets.

References (63)