Skip to main content
QUICK REVIEW

[Paper Review] Neural Backward Filtering Forward Guiding

Gefan Yang, Frank van der Meulen|arXiv (Cornell University)|Jan 30, 2026
Morphological variations and asymmetryMathematics0 citations
TL;DR

NBFFG develops a variational framework that combines an analytically tractable backward guide with a neural residual to infer smoothing posteriors on trees for discrete and continuous dynamics, enabling path-wise subsampling and amortized learning. It demonstrates improved performance on linear, multimodal, and high-dimensional phylogenetic tasks.

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.

Motivation & Objective

  • Motivate smoothing in non-linear, tree-structured stochastic processes with leaf-only observations and complex topology.
  • Develop a unified framework that blends analytical backward guidance with neural corrections for both discrete and continuous dynamics.
  • Reduce training complexity via path-wise subsampling and amortized intra-tree learning to scale to large trees.
  • Demonstrate robustness and accuracy on linear benchmarks, multimodal non-linear systems, and high-dimensional phylogenetic tasks.

Proposed method

  • Construct a guided proposal by replacing the intractable h-function with a tractable auxiliary linear-Gaussian process to obtain a closed-form backward filter.
  • Define a variational posterior as a neural residual—parameterized as a normalizing flow for discrete edges or a neural SDE for continuous paths—to capture nonlinear discrepancies.
  • Compute a loss via KL divergence between the variational posteriors and the true posteriors, plus a term for leaf observation likelihoods (ELBO formulation).
  • Use two corollaries to express the loss for discrete and continuous dynamics, enabling tractable computation with the guided proposal and the neural transform.
  • Apply a path-wise subsampling scheme to obtain unbiased estimates of the full-tree loss, reducing computation from tree size to path length.
Figure 1 : Validation on Linear Gaussian Benchmarks. We compare the converged training loss against the analytical RTS smoother baseline. (a) Topological Scalability: Relative error decreases as tree complexity ( $N_{\mathrm{depth}},N_{\mathrm{branch}}$ ) grows, showing that our path-wise amortizati
Figure 1 : Validation on Linear Gaussian Benchmarks. We compare the converged training loss against the analytical RTS smoother baseline. (a) Topological Scalability: Relative error decreases as tree complexity ( $N_{\mathrm{depth}},N_{\mathrm{branch}}$ ) grows, showing that our path-wise amortizati

Experimental results

Research questions

  • RQ1Can a hybrid guided-proposal framework approximate the Doob h-transform posterior for smoothing on trees with discrete and continuous dynamics?
  • RQ2To what extent can a neural residual (normalizing flow or neural SDE) compensate for drift and non-linearities beyond a linear Gaussian guide?
  • RQ3Does path-wise subsampling yield unbiased, scalable training while maintaining posterior accuracy across tree depths and dimensions?
  • RQ4Is amortized intra-tree learning with shared networks sufficient to generalize across deep, heterogeneous tree topologies?
  • RQ5How does NBFFG perform on linear benchmarks, multimodal non-linear systems, and high-dimensional phylogenetic reconstruction tasks?

Key findings

  • The NBFFG framework produces a variational posterior by combining a tractable guided proposal with a neural residual, enabling efficient learning for both discrete and continuous tree edges.
  • A path-wise, unbiased estimator allows training on a single root-to-leaf path per iteration, reducing computational cost from tree size to path length.
  • The approach achieves close alignment with analytical ground truth in linear models and recovers multimodal posteriors where baseline guides fail due to mode collapse.
  • Experimental results show robustness to high dimensionality, with the method effectively handling diffusion bridges and non-linear dynamics in synthetic and phylogenetic settings.
  • Amortized learning with a shared network conditioned on parent state, edge duration, and context enables scalable inference across large and irregular trees.
Figure 2 : Empirical distributions of 500 independent samples of the guided proposal (gray) and the learned variational posterior (orange) against the analytical ground truth (RTS, green contours) at different tree depths.
Figure 2 : Empirical distributions of 500 independent samples of the guided proposal (gray) and the learned variational posterior (orange) against the analytical ground truth (RTS, green contours) at different tree depths.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.