Neural Backward Filtering Forward Guiding
Gefan Yang ⋅ Frank van der Meulen ⋅ Stefan Sommer
Abstract
Inference in non-linear continuous stochastic processes on trees is challenging, particularly when observations are sparse and the topology is complex. Exact smoothing via Doob's $h$-transform is intractable for general nonlinear dynamics. We propose Neural Backward Filtering Forward Guiding (NBFFG), a unified framework for both discrete transitions and continuous diffusions. Our method constructs a variational posterior by leveraging a proxy linear-Gaussian process. This proxy process yields a closed-form backward filter that serves as a ``guide'', steering the generative path toward high-likelihood regions. We then learn a neural residual to capture the non-linear discrepancies. This formulation allows for an unbiased path-wise subsampling scheme, reducing the training complexity from tree-size dependent to path-length dependent. Empirical results show that NBFFG outperforms baselines on synthetic benchmarks. We also evaluate how neural correction handles proxy misspecification, and study nonlinear multimodal smoothing. On a high-dimensional butterfly phylogeny, we reconstruct ancestral shapes conditioned on observed species.
Successful Page Load