Approximate Inference with Wasserstein Gradient Flows

Charlie Frogner, Tomaso A. Poggio

Abstract: We present a novel approximate inference method for diffusion processes, based on the Wasserstein gradient flow formulation of the diffusion. In this formulation, the time-dependent density of the process is seen as a curve in the space of probability measures, moving to minimize a free energy functional. By leveraging a smoothed dual formulation and restricting our function space to a Reproducing Kernel Hilbert Space (RKHS), we transform the complex Fokker-Planck partial differential equation into a tractable, discretization-free stochastic optimization problem that scales to high dimensions.

Introduction

In probabilistic modeling, diffusion processes are fundamental tools for describing systems subject to both deterministic forces and random noise. From the firing patterns of neurons to the stochastic fluctuations of financial markets, these processes are mathematically governed by the Fokker-Planck equation. This equation describes how a probability distribution evolves over time. However, solving it remains a significant challenge in computational science. Traditional "grid-based" methods, which discretize the state space, suffer from the "curse of dimensionality"—as the number of dimensions grows beyond three, the number of required grid points explodes exponentially.

To address this, researchers Charlie Frogner and Tomaso Poggio from MIT propose a method that sidesteps discretization entirely. By reframing diffusion as an optimization problem in a space of continuous functions, they provide a scalable alternative for high-dimensional nonlinear filtering.

The Wasserstein Gradient Flow Perspective

The core of this approach lies in the Jordan-Kinderlehrer-Otto (JKO) scheme, a mathematical insight that characterizes diffusion as a gradient flow. In this view, a probability distribution moves to minimize a "free energy" functional as efficiently as possible. The metric for this efficiency is the Wasserstein distance, which represents the optimal transport cost of moving probability mass.

To turn this theoretical framework into a practical algorithm, the authors introduce several key innovations:

  1. Regularized Wasserstein Distance: By adding a smoothing term (such as an $L^2$ or entropy regularizer) to the Wasserstein distance, the underlying optimization problem becomes strictly convex and computationally well-behaved.
  2. Smoothed Dual Formulation: Instead of solving for the probability density directly—a difficult task in high dimensions—the authors derive a dual problem. This allows them to optimize over continuous functions rather than measures.
  3. RKHS Approximation: The functions in the dual problem are restricted to a Reproducing Kernel Hilbert Space (RKHS). This allows the representation of complex, continuous functions using a finite set of parameters and kernels (e.g., Gaussian kernels), making the math computable.
  4. Stochastic Programming: The resulting algorithm uses Monte Carlo sampling to solve the dual problem, effectively converting a partial differential equation (PDE) into a standard stochastic optimization task familiar to the machine learning community.

Experimental Evaluation

The method was evaluated on synthetic but challenging benchmarks designed to test scaling and the ability to handle non-Gaussianity.

Capturing Multimodality

One of the primary strengths of the Wasserstein approach is its ability to handle multimodal posteriors—distributions with multiple peaks. Traditional filters, such as the Extended Kalman Filter (EKF) or Unscented Kalman Filter (UKF), typically assume a Gaussian (single-peaked) distribution. In a nonlinear filtering task involving a "double-well" potential, the Wasserstein method successfully captured the splitting and merging of probability mass over time.

Evolution of the probability density $p(x)$ over time in a nonlinear system. The Wasserstein gradient flow (dashed green) closely tracks the exact solution (solid blue), capturing the multimodal nature of the distribution.

Comparative Performance

When compared against standard baselines, the Wasserstein method demonstrated superior accuracy. In the double-well experiment, it significantly outperformed the EKF, UKF, and even Gaussian Sum Filters. While baselines often collapsed to a single peak or provided poor approximations of the true density, the Wasserstein approach maintained a high-fidelity representation of the posterior.

Comparison of $\log_{10}$ KL divergence across different filtering methods. The Wasserstein method (Wass.) achieves significantly lower error than standard EKF, UKF, and Gaussian Sum filters, and is competitive with high-sample Particle Filters (PF).

Conclusion and Future Directions

This work demonstrates that the JKO scheme can be transformed from a theoretical tool into a practical, high-dimensional inference algorithm. By avoiding state-space discretization, the method scales gracefully to higher dimensions, performing comparably to particle filters with thousands of particles in 7D tests without the associated noise or bias.

However, some limitations remain. The accuracy of the method depends on the choice of time step size ($\tau$), regularization strength ($\gamma$), and the expressiveness of the RKHS. Future work may involve using the choice of Hilbert space to incorporate prior physical constraints into the model, potentially improving efficiency and accuracy in complex real-world systems.

Summary updated

BibTeX
@inproceedings{frogner2020approximate,
  author = {Charlie Frogner and Tomaso A. Poggio},
  title = {{Approximate Inference with Wasserstein Gradient Flows}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2020},
  url = {https://openreview.net/forum?id=oURJA5tk2WJ},
}
Figure