Standard Markov Chain Monte Carlo (MCMC) algorithms, such as Hamiltonian Monte Carlo (HMC) and the Metropolis-adjusted Langevin algorithm (MALA), typically rely on a "warmup" phase to tune global parameters. During this phase, the sampler finds a single step size ($\epsilon$) and perhaps a mass matrix or trajectory length that works "well enough" on average.
However, many real-world posterior distributions are multiscale. They contain "funnels" with high curvature, wide-open plains of low density, and narrow ridges. A global step size is a compromise that often fails: if it is large enough to explore the plains, it will crash in the funnels; if it is small enough to navigate the funnels, it will take an eternity to cross the plains.
The emerging research direction in local adaptation moves away from this "one-size-fits-all" approach. Instead, these methods dynamically adjust the sampler’s behavior at every iteration based on the local geometry of the target distribution.
The Geometry of Pathological Curvature
The core problem in high-dimensional sampling is that the "terrain" of the probability density is rarely uniform. As Simon Barthelmé, Nicolas Chopin, and others noted in their discussions on Riemann manifold methods, efficiency is driven by local calibration. In regions of high curvature, the gradient changes rapidly, requiring tiny steps to maintain numerical stability. In flat regions, those same tiny steps lead to "random walk" behavior and poor exploration.
To solve this, researchers like Fredrik Lindsten, Johan Dahlin, and Thomas B. Schön proposed Second-order Particle MCMC, which extracts Hessian information directly from the filter. By incorporating this local curvature into the proposal, the algorithm becomes scale-invariant, automatically shortening steps in "stiff" dimensions and lengthening them where the posterior is broad.
Tuning Step Sizes on the Fly
While using the full Hessian is powerful, it is often computationally expensive. A more lightweight approach is to adapt the step size ($\epsilon$) stochastically.
In autoMALA and AutoStep, Miguel Biron-Lattes, Nikola Surjanovic, Trevor Campbell, and Alexandre Bouchard‐Côté developed a framework for locally adaptive MCMC. Their algorithms iteratively double or halve the step size at each iteration until the proposal falls within a desired acceptance window.
The mathematical challenge here is maintaining reversibility. If you change the step size based on where you are, you might break the "detailed balance" required for the sampler to converge to the correct distribution. These researchers solved this using a symmetric selection criterion and state augmentation, ensuring that the sampler can aggressively adapt to the local terrain without introducing bias.
Adapting Dynamics and Trajectories
Step size is only half of the equation in Hamiltonian Monte Carlo; the other half is the trajectory length (how long the "puck" slides before we stop and reset its momentum).
Michael Betancourt and Simon Byrne demonstrated in On the geometric ergodicity of Hamiltonian Monte Carlo that adapting the integration time to local geometry is essential for geometric ergodicity—the property that allows a sampler to converge quickly regardless of whether the distribution has light or heavy tails.
Building on this, Chirag Modi introduced ATLAS, which adapts both step size and trajectory length. ATLAS uses the L-BFGS algorithm to estimate the largest eigenvalue of the local Hessian. By setting the step size to be inversely proportional to the square root of this local curvature, the sampler remains stable in high-instability regions that would cause standard HMC to diverge.
Similarly, Matthew Douglas Hoffman and colleagues developed ChEES-HMC, a gradient-based adaptive scheme designed for the massive parallelism of GPUs. They argue that a single global trajectory length is insufficient for distributions with heterogeneous scales, and provide a simpler alternative to the recursive logic of the No-U-Turn Sampler (NUTS).
Why Local Adaptation Works
The intuition behind these methods is a shift from global optimization to local responsiveness.
- Stability: By detecting high curvature (via the Hessian or acceptance rates), the sampler shrinks its step size to avoid "numerical explosions" or immediate rejections.
- Efficiency: By detecting flat regions, the sampler expands its step size to cover more distance, reducing the autocorrelation between successive samples.
- Robustness: As Giorgos Vasdekis notes in Some aspects of robustness in modern MCMC, local adaptation allows the sampler to respond to "pathological" sub-regions only when it enters them, rather than applying a global penalty (like gradient capping) that slows down the sampler everywhere.
By treating the sampler's parameters as dynamic variables rather than fixed constants, these methods allow Bayesian inference to scale to the complex, non-isotropic distributions common in deep learning and physical system modeling.