Neural Backward Filtering Forward Guiding
Gefan Yang, Frank van der Meulen, Stefan Sommer
TL;DR
This work tackles smoothing of nonlinear, high-dimensional processes on tree-structured graphs with sparse leaf observations. It introduces Neural Backward Filtering Forward Guiding (NBFFG), a two-phase variational framework that first builds a tractable guided proposal via a linear-Gaussian auxiliary process and then learns a neural residual (via normalizing flows or neural SDEs) to capture nonlinear discrepancies, enabling unbiased path-wise subsampling. The method unifies discrete and continuous dynamics, supports root inference, and achieves scalable inference through path-based amortization across the topology. Empirical results across linear, nonlinear, and high-dimensional phylogenetic tasks demonstrate accurate posterior recovery, improved multimodality handling, and practical applicability to complex evolutionary shape reconstruction.
Abstract
Inference in non-linear continuous stochastic processes on trees is challenging, particularly when observations are sparse (leaf-only) and the topology is complex. Exact smoothing via Doob's $h$-transform is intractable for general non-linear dynamics, while particle-based methods degrade in high dimensions. 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 an auxiliary linear-Gaussian process. This auxiliary 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--parameterized as a normalizing flow or a controlled SDE--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, and we demonstrate the method on a high-dimensional inference task in phylogenetic analysis with reconstruction of ancestral butterfly wing shapes.
