Interacting Langevin Diffusions: Gradient Structure and Ensemble Kalman Sampler

Alfredo Garbuno-Inigo, Franca Hoffmann, Wuchen Li, Andrew M. StuartSIAM J. Appl. Dyn. Syst 2020 · DOI

Introduction

In scientific and engineering disciplines, the challenge of the inverse problem is ubiquitous: given observed data $y$ and a complex forward model $\mathcal{G}(u)$, how can we accurately estimate the underlying parameters $u$? The Bayesian framework provides a principled solution by characterizing the posterior distribution, which quantifies the uncertainty of these parameters. However, traditional sampling methods, such as Langevin Markov Chain Monte Carlo (MCMC), typically require the gradient of the forward model. In many practical applications—ranging from climate modeling to reservoir simulation—the forward model is a "black box" or a legacy code where computing derivatives is either impossible or computationally prohibitive.

This paper introduces the Ensemble Kalman Sampler (EKS), a derivative-free algorithm designed for Bayesian posterior sampling. By evolving an ensemble of interacting particles, the EKS mimics Langevin diffusion without requiring gradients or adjoints, providing a scalable and mathematically rigorous alternative to traditional MCMC.

The Ensemble Kalman Sampler (EKS)

The EKS is built upon the concept of interacting Langevin diffusions. Unlike standard sampling methods that move a single point through the parameter space, the EKS utilizes an ensemble of $J$ particles. These particles interact through their empirical covariance matrix $C(U)$, which serves as a self-tuning preconditioner. This preconditioning captures the local geometry of the parameter space, accelerating convergence in broad directions and slowing it in narrow ones.

To maintain derivative-free operation, the EKS approximates the product of the model's Jacobian and the ensemble covariance using "ensemble differences." This allows the system to approximate the gradient of the log-likelihood using only evaluations of the forward model $\mathcal{G}(u)$. Furthermore, the authors demonstrate that to prevent the "ensemble collapse" common in optimization-focused methods like Ensemble Kalman Inversion (EKI), noise must be added directly to the particles in the parameter space. This ensures the ensemble remains sufficiently spread to represent the full posterior distribution over an infinite time horizon.

Theoretical Framework: Kalman–Wasserstein Gradient Flow

A core contribution of this work is the rigorous mathematical foundation for the EKS. The authors analyze the "mean-field limit," where the number of particles $J$ approaches infinity. This limit leads to a nonlinear Fokker-Planck equation.

The authors prove that this evolution is a gradient flow in the space of probability measures, driven by a newly defined Kalman–Wasserstein metric. This structure shows that the EKS is not merely a heuristic approximation but a principled diffusion process that naturally converges toward the Bayesian posterior. For linear forward models, the authors provide a proof of exponential convergence for both the mean and covariance of the ensemble.

Experimental Validation

The EKS was evaluated against synthetic but representative inverse problems to test its accuracy and scalability:

  1. 1D Elliptic Boundary Value Problem: In this low-dimensional test, the EKS was compared against "gold standard" MCMC. While standard EKI methods collapsed to a single point (the MAP estimate), the EKS successfully matched the full distribution produced by Random Walk Metropolis-Hastings.
  2. Darcy Flow: This high-dimensional problem involves estimating a permeability field in a porous medium. The EKS successfully captured the posterior variance of the field, with results improving as the ensemble size $J$ increased, eventually matching MCMC results with high fidelity. This demonstrates the algorithm's capability to handle complex, non-Gaussian posteriors in high-dimensional spaces.

Limitations and Future Directions

While the EKS represents a significant advancement, the authors identify several areas for further research:

  • Linear Curvature: The derivative-free approximation essentially assumes a linear curvature of the forward model. In highly nonlinear regimes, this can lead to a slight discrepancy between the EKS steady state and the true posterior.
  • Ensemble Size Effects: Practical applications often use small ensembles. In these cases, a "regularizing effect" can occur, potentially reducing posterior variation. The authors suggest that future iterations could include $1/J$ correction terms to improve finite-particle accuracy.
  • Metric Theory: The Kalman–Wasserstein metric is a novel mathematical object. Future work will explore its deeper properties, including its duality and geodesics, to further refine the theory of ensemble-based sampling.

Conclusion

The Ensemble Kalman Sampler bridges the gap between derivative-free ensemble methods and rigorous Bayesian sampling. By leveraging the gradient flow structure of the Kalman–Wasserstein metric, the EKS provides a robust, scalable, and derivative-free tool for uncertainty quantification in complex scientific models.

Summary updated

BibTeX
@article{garbunoinigo2020interacting,
  author = {Alfredo Garbuno-Inigo and Franca Hoffmann and Wuchen Li and Andrew M. Stuart},
  title = {{Interacting Langevin Diffusions: Gradient Structure and Ensemble Kalman Sampler}},
  journal = {SIAM J. Appl. Dyn. Syst.},
  year = {2020},
  doi = {10.1137/19m1251655},
}
Figure