Accelerating the diffusion-based ensemble sampling by non-reversible dynamics

Futoshi Futami, Issei Sato, Masashi Sugiyama

In Bayesian machine learning, approximating complex probability distributions is a foundational task, often handled by sampling from a posterior distribution to quantify uncertainty. While Stochastic Gradient Langevin Dynamics (SGLD) has long been the workhorse for this, it typically updates only one "particle" (sample) at a time.

Ensemble methods, such as Stein Variational Gradient Descent (SVGD), attempt to improve upon this by updating many particles simultaneously. These particles interact, theoretically covering the distribution more efficiently. However, these methods are notoriously difficult to analyze in non-asymptotic settings (i.e., evaluating performance after a finite number of steps). Before this research, it remained theoretically unclear whether these interactions provided a provable advantage over simply running several independent SGLD chains in parallel.

This paper provides a theoretical and practical breakthrough by proposing a new ensemble sampling method that uses non-reversible dynamics to update multiple particles simultaneously. Crucially, the authors provide the first non-asymptotic proof that such interactions accelerate convergence compared to independent sampling chains while maintaining the correct target distribution.

Introducing Non-Reversible Dynamics

The authors introduce a novel ensemble method based on non-reversible Markov chains, built on a few key mathematical innovations:

  1. The Interaction Term: A specific "drift" term ($\gamma$) is added to the standard SGLD equation.
  2. Skew-Symmetry: To ensure the particles still converge to the correct target distribution, this drift is constructed using a skew-symmetric matrix ($J$). Because the divergence of this term is zero, it alters the path the particles take—making it non-reversible and "swirly"—but does not change the final stationary distribution.
  3. Theoretical Analysis via LSI: The authors use the Logarithmic Sobolev Inequality (LSI) to measure convergence. They prove that the LSI constant, which dictates how fast a distribution "mixes," is smaller (and therefore better) when these interactions are present.
  4. The Discretization Trade-off: The analysis reveals a fundamental trade-off. While interaction speeds up the rate at which particles approach the target distribution, it increases the "discretization error"—the error introduced by taking discrete steps in a computer simulation rather than continuous movements.

Why Non-Reversibility Works

  • Breaking Reversibility is Good: Standard SGLD is "reversible," meaning the particle's path looks the same played forward or backward. By adding a skew-symmetric term, this symmetry is broken. In Markov chain theory, non-reversible paths are known to mix and converge much faster.
  • Interaction as a Catalyst: The interaction between particles makes them "aware" of each other's behavior, mathematically manifesting as an improved spectral gap in the generator of the dynamics.
  • N-Particle Efficiency: Unlike previous theoretical bounds that degraded as more particles ($N$) were added, the authors' new bound for the bias of the ensemble average is independent of $N$, making the method truly particle-efficient.

Empirical Performance

The authors evaluated their method across several standard Bayesian benchmarks, including synthetic tasks (Ornstein-Uhlenbeck process), Bayesian Logistic Regression (Covertype), topic modeling (ICML dataset), and Bayesian Neural Networks (Kin8nm and MNIST).

Faster Convergence

In the Ornstein-Uhlenbeck (OU) process experiments, the proposed "Skew-N" and "Skew-B" methods reached lower energy distances and Maximum Mean Discrepancy (MMD) much faster than standard SGLD.

Energy distance and MMD over steps for SGLD and Skew-N, demonstrating faster convergence for the non-reversible methods.

Superior Topic Modeling

On the ICML dataset for Latent Dirichlet Allocation (LDA), the proposed method achieved a test perplexity of 1024.33. This significantly outperformed standard SGLD (1034.86) and even beat the popular SVGD method (1029.97).

Bayesian Neural Network Stability

In neural network tasks, the non-reversible ensemble methods showed competitive or superior Test Accuracy and Log-Likelihood compared to other state-of-the-art ensemble samplers like SPOS and SVGD.

Test Accuracy and Test Log-Likelihood comparing Skew-N and Skew-B against SGLD, SVGD, and SPOS on neural network tasks.

Limitations and Future Directions

While the theoretical and empirical results are strong, the authors note a few limitations:

  • Choosing the Matrix $J$: The paper proves that a skew-symmetric matrix helps, but it doesn't provide a definitive "optimal" way to construct $J$ for a specific problem, currently relying on heuristics like Gaussian or Bernoulli random matrices.
  • Discretization Sensitivity: Because the interaction increases discretization error, the step size ($h$) and interaction strength ($\alpha$) must be tuned carefully. If $\alpha$ is too large, the simulation can become unstable or inaccurate.
  • Crude Bounds: The current discretization error bound is acknowledged as somewhat "crude." Future work could tighten these bounds using more advanced mathematical techniques.

Summary updated

BibTeX
@inproceedings{futami2020accelerating,
  author = {Futoshi Futami and Issei Sato and Masashi Sugiyama},
  title = {{Accelerating the diffusion-based ensemble sampling by non-reversible dynamics}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
}
Figure