Abstract
Sampling from complex, high-dimensional, and multi-modal distributions is a fundamental challenge in computational statistics. We present the Liouville Flow Importance Sampler (LFIS), a novel deterministic flow-based method that transports samples from a simple prior to a target distribution. By training neural networks to satisfy a derived partial differential equation (PDE) and utilizing the resulting training residuals as importance weights, LFIS provides unbiased estimates of marginal likelihoods and expectations. Our results demonstrate state-of-the-art performance across synthetic benchmarks and high-dimensional real-world datasets, offering a robust alternative to traditional MCMC and stochastic diffusion-based samplers.
Introduction
In fields ranging from astronomy to biophysics, researchers often encounter "hard" probability distributions characterized by multiple isolated modes or extreme dimensionality. Standard tools like Markov Chain Monte Carlo (MCMC) frequently struggle with these landscapes, often becoming trapped in local optima and failing to explore the full state space. While newer "Normalizing Flow" methods attempt to learn mappings from simple distributions to complex targets, they often face training instabilities or require complex hybrid MCMC tuning.
LFIS addresses these challenges by providing a "pure flow" method that is theoretically grounded and easier to implement. It ensures unbiased statistical estimates even when the underlying neural network approximations are imperfect, bridging the gap between deep learning's flexibility and the rigor required for statistical inference.
Methodology
LFIS conceptualizes the sampling process through the lens of fluid dynamics, defining a path of "annealed" distributions that evolve from a simple initial state to the complex target.
The Governing Equation and Neural Velocity Fields
The method utilizes the Generalized Liouville Equation (GLE) to derive a specific PDE that the velocity field (the "flow") must satisfy. Instead of manual design, a series of neural networks are trained to approximate this velocity field at discrete time steps. To improve efficiency, the model employs recursive training where networks at subsequent time steps are "warm-started" with weights from previous steps.
The "Error-as-Weight" Mechanism
A key innovation of LFIS is its treatment of the flow as an importance sampler. Since neural networks cannot solve the PDE perfectly, the resulting discrepancy usually introduces bias. LFIS mitigates this by tracking the PDE residual along each sample's trajectory. This accumulated error is used to calculate a weight for each sample, ensuring that final estimates for the mean or the normalization constant $Z$ remain unbiased and consistent.
Experimental Evaluation
The authors evaluated LFIS against competitive baselines, including Sequential Monte Carlo (SMC), Path Integral Sampler (PIS), Denoising Diffusion Sampler (DDS), and Annealed Flow Transport (AFT).
Key Results
- Synthetic Challenges: On a 2D mode-separated Gaussian mixture, LFIS achieved a log-marginal likelihood ($\log \hat{Z}$) of -0.0002, nearly reaching the theoretical optimum of 0. In the 10D "Funnel" distribution, LFIS successfully navigated the narrow "neck" that typically traps other samplers.
- High-Dimensional Robustness: In the 1,600-dimensional Log-Gaussian Cox Process (LGCP) task, LFIS was the only neural-network-based sampler to produce estimates consistent with expensive "gold standard" SMC runs.
- Sample Quality: LFIS consistently demonstrated higher Effective Sample Size (ESS), indicating more diverse and representative samples compared to stochastic diffusion-based models.
Discussion and Insights
LFIS distinguishes itself through its deterministic nature. Unlike diffusion models that rely on stochastic noise, LFIS produces smoother trajectories that are easier for neural networks to learn. The repurposing of the PDE residual as an importance weight serves as a self-correction mechanism, allowing the model to maintain statistical rigor despite approximation errors.
However, the method has limitations. It requires the target density function to be differentiable, necessitating approximations for "hard" boundaries. Additionally, calculating the velocity field's divergence requires second-order derivatives, which can be memory-intensive for large-scale models.
Conclusion
The Liouville Flow Importance Sampler represents a significant step forward in flow-based sampling. By combining deterministic transport with a clever importance weighting scheme, it provides a robust, scalable, and unbiased framework for exploring complex probability landscapes. Future work will focus on higher-order integration schemes and handling non-differentiable singularities in density functions.
Summary updated