Affine Invariant Ensemble Preconditioning for Sampling

This direction is no longer present in the current build. Its last version stays readable and citable here.

Version 1 of 113 papers21 conceptsfrozen 2026-10-04

In Bayesian inference, we often need to sample from a "posterior" distribution—a mathematical landscape that represents our updated beliefs after seeing data. However, these landscapes are rarely well-behaved. They are often "anisotropic," meaning they are stretched out like long, thin noodles or curved like bananas.

Standard sampling algorithms, such as Hamiltonian Monte Carlo (HMC) or Langevin dynamics, often struggle in these environments. If the step size is tuned for the narrow width of the noodle, the algorithm takes ages to traverse its length. If tuned for the length, it overshoots the width and fails to converge. A growing body of research suggests a powerful solution: using an ensemble of particles to automatically learn and adapt to the geometry of the distribution through affine-invariant preconditioning.

The Geometry of the Ensemble

The core intuition behind this research direction is that a single sampler is blind to the global scale of the problem, but a group of samplers—an ensemble—can "feel" the shape of the distribution.

Sebastian Reich and Simon Weissmann propose treating Bayesian inference as a physical system of interacting particles governed by the Fokker-Planck equation. In their framework, the particles don't just move toward high-probability regions; they use their collective empirical covariance to precondition their movement.

If the ensemble is spread out along one axis and squeezed along another, the covariance matrix captures this stretching. By multiplying the movement steps by this matrix, the system effectively "whitens" the space, turning a difficult, stretched distribution into a simple, spherical one. This ensures that the sampling performance is independent of linear transformations—a property known as affine invariance.

Why Affine Invariance Matters

An algorithm is affine invariant if it performs exactly the same way regardless of how you scale or rotate the coordinate system. This is a massive advantage in high-dimensional spaces where manual tuning is impossible.

Yifan Chen and Andrew M. Stuart demonstrate that this isn't just a neat trick; it is a fundamental geometric requirement for efficient sampling. In Sampling via Gradient Flows in the Space of Probability Measures, they show that standard metrics used to describe probability movement (like Wasserstein or Stein metrics) can be made affine-invariant by incorporating the ensemble's covariance. This prevents the "convergence slowdown" typically caused by poorly scaled target distributions.

Even traditional methods like Gibbs sampling benefit from a version of this. Steven Luu and Alexandre Bouchard‐Côté point out that coordinate-wise sampling is inherently invariant to axis-aligned stretching, providing a form of optimal diagonal preconditioning for free.

Derivative-Free and Second-Order Extensions

One of the most practical benefits of ensemble-based preconditioning is that it can mimic sophisticated second-order optimization (like Newton’s method) without actually calculating derivatives.

In The Ensemble Kalman Filter for Dynamic Inverse Problems, Simon Weissmann and colleagues show how the sample covariance allows derivative-free optimization to maintain consistent performance across different parameter scales. This is particularly useful for "black-box" models where the underlying physics is known but the gradients are not.

For even faster convergence, Andrew M. Stuart and Ziming Liu introduced Ensemble Kalman Hybrid Monte Carlo (EKHMC). This method combines:

  1. Momentum: Using second-order (underdamped) Langevin dynamics to accelerate movement.
  2. Ensemble Preconditioning: Using the particle spread to scale those movements.

This combination allows the sampler to navigate highly correlated distributions with the speed of a second-order method but the robustness of an ensemble approach.

Scaling to High Dimensions and Rare Events

As the number of dimensions increases, ensemble methods face a "curse": the particles might collapse or fail to explore the space. Recent work by Yi-Fan Chen addresses this by using complementary sub-ensembles. Instead of using the whole group to precondition every particle, one subset of particles defines the geometry for another. This "anti-symmetric" strategy maintains affine invariance while significantly improving dimensional scaling.

These techniques are even finding success in extreme scenarios, such as rare event estimation. Jason Beh and colleagues show that by using interacting Langevin dynamics preconditioned by empirical covariance, they can efficiently sample the tiny, "anisotropic" regions of failure in complex systems—events that standard samplers would almost never find.

Summary of the Intuition

The shift from single-particle sampling to affine-invariant ensemble systems represents a move from "blind" exploration to "context-aware" navigation. By treating the ensemble's covariance as a dynamic map of the distribution's geometry, these methods:

  • Self-tune: They eliminate the need for manual step-size or mass-matrix adjustments.
  • Stay Robust: They perform consistently regardless of how the parameters are scaled or rotated.
  • Bridge Gaps: They provide the benefits of second-order optimization and infinite-dimensional analysis (Jakiw Pidstrigach) to derivative-free and particle-based settings.

Papers in this version

History & citationVersion 1 · 2026-10-04

No longer present in the current build · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_affine_invariant_ensemble_preconditionin_c40c51ae,
  title = {Affine Invariant Ensemble Preconditioning for Sampling},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/affine-invariant-ensemble-preconditioning-for-sampling/rdr_c40c51aed81c4f318dad45eef6d364cc},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-12-05},
}

This exact version (version 1, frozen text):

@misc{lacuna_affine_invariant_ensemble_preconditionin_c40c51ae_v1,
  title = {Affine Invariant Ensemble Preconditioning for Sampling},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/affine-invariant-ensemble-preconditioning-for-sampling/rdr_c40c51aed81c4f318dad45eef6d364cc/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-12-05},
}