This paper, presented at NeurIPS 2023, introduces a new framework for particle-based variational inference that moves beyond the limitations of standard kernels and quadratic regularizers. By leveraging generalized Wasserstein gradient flows and neural network estimators, the authors provide a more flexible and faster way to sample from complex posterior distributions.
TL;DR
The authors propose Generalized Wasserstein Gradient Descent (GWG), a particle-based inference method that uses flexible convex regularizers instead of standard kernels. They also introduce an adaptive version (Ada-GWG) that automatically tunes the geometry of the particle updates to significantly accelerate convergence on complex, multi-modal, or heavy-tailed distributions.
The Challenge of Complex Posteriors
In Bayesian machine learning, sampling from a complex "posterior" distribution is notoriously difficult. Two main families of methods exist: Markov Chain Monte Carlo (MCMC), which is accurate but slow, and Variational Inference (VI), which is fast but can be biased by the choice of the approximating family.
Particle-based Variational Inference (ParVI), such as the popular Stein Variational Gradient Descent (SVGD), tries to get the best of both worlds by evolving a set of particles to match the target distribution. However, SVGD relies on manually designed "kernels" that can be restrictive and computationally expensive ($O(n^2)$ with the number of particles). Recent neural-network-based alternatives have emerged, but most are stuck using standard "quadratic" regularizers (essentially the $L_2$ norm), which might not provide the most efficient path for particles to take toward the target.
Generalized Wasserstein Gradient Descent
The core innovation of this paper is the Generalized Wasserstein Gradient (GWG) flow. Instead of restricting the cost of moving particles to a standard squared distance ($W_2$ metric), the authors allow for a much broader class of costs induced by Young functions (strictly convex functions like the $L_p$ norm).
Key components of the framework include:
- Functional Gradient with General Regularizers: The method views particle updates as a functional gradient descent where the step is regularized by a convex function $g$.
- Neural Vector Field Estimation: Since the exact gradient flow depends on the unknown density of the particles, the authors use a neural network to estimate the optimal update direction. They utilize a training objective based on Stein’s identity, which only requires the gradient of the target log-density (the "score").
- Ada-GWG (The Adaptive Version): The authors prove that the rate at which the KL divergence (the distance to the target) decreases depends on the choice of the metric. Ada-GWG dynamically adjusts the exponent $p$ in the $L_p$ norm regularizer to greedily maximize the descent rate at each step.
Key Insights and Results
The authors evaluated their framework on a mix of synthetic and real-world benchmarks, including a 10-cluster Gaussian Mixture, a heavy-tailed Monomial Gamma distribution, a 100-dimensional Conditioned Diffusion model, and several UCI datasets for Bayesian Neural Networks (BNNs).
- Geometry Matters: The shortest path to a distribution isn't always a straight line in Euclidean space. By changing the regularizer (the $p$ in the $L_p$ norm), the algorithm can navigate flat regions of the probability landscape more effectively.
- Faster Convergence: In Gaussian Mixture experiments, the proposed method reached highly accurate samples in significantly fewer iterations than standard $L_2$ gradient flows.
- Handling Heavy Tails: On the Monomial Gamma distribution, the adaptive method consistently outperformed fixed-metric versions, demonstrating superior robustness.
- State-of-the-Art BNNs: On the UCI datasets, Ada-GWG achieved comparable or better Test RMSE and Negative Log-Likelihood (NLL) than SGLD, SVGD, and other recent ParVI methods. For instance, on the 'Concrete' dataset, Ada-GWG achieved an RMSE of 3.871 compared to SVGD's 4.436.
Limitations and Future Work
While highly effective, the method has limitations. Training a neural network in the inner loop of every particle update is computationally intensive compared to simple kernel calculations. Additionally, while $p$ is adaptive, other hyperparameters like the neural network architecture and learning rates still require tuning. Future work may explore extending the theoretical convergence analysis to finite-particle guarantees and investigating even more exotic convex regularizers beyond $L_p$ norms.
Summary updated