Introduction
Bayesian inference is a cornerstone of probabilistic machine learning, centered on the task of estimating a posterior distribution $p(z|x)$. However, for complex models, the posterior is typically intractable. Researchers have historically relied on two distinct families of approximations: Variational Inference (VI) and particle-based methods.
Black-Box Variational Inference (BBVI) is a prominent VI approach that optimizes the parameters of a predefined distribution family (e.g., Gaussians) to minimize the Kullback-Leibler (KL) divergence to the target. Conversely, Stein Variational Gradient Descent (SVGD) is a particle-based method that evolves a set of discrete "particles" toward the target distribution using a kernel-based gradient. While these methods have been treated as separate paradigms—one optimizing parameters and the other moving particles—this paper establishes a profound mathematical bridge between them.
Methodology: Bridging the Gap
The authors utilize the reparameterization trick, a standard technique in deep learning, to analyze the dynamics of samples within the BBVI framework. By examining how individual samples move as the underlying parameters of the variational model are updated, they derive a set of sample trajectories.
The critical insight lies in the application of the Neural Tangent Kernel (NTK). The NTK characterizes how the outputs of a neural network (or any parameterized function) change in response to parameter updates. The authors prove that the movement of samples in BBVI is identical to the movement of particles in SVGD, provided that the SVGD kernel is defined as the NTK of the function used to generate the BBVI samples.
Theoretical Framework: Kernel Gradient Flows
This equivalence allows for a broader unification under the concept of "kernel gradient flows." The paper argues that the choice of kernel is not merely a hyperparameter but defines the Riemannian geometry of the space of probability distributions.
In standard SVGD, the kernel is typically fixed (e.g., a Radial Basis Function kernel). In BBVI, however, the "implicit kernel" (the NTK) is determined by the model's architecture and evolves as the model learns. This suggests that BBVI can be viewed as a form of SVGD that adaptively adjusts its geometry to better fit the target distribution. Furthermore, the authors extend this framework to Generative Adversarial Networks (GANs), demonstrating that GAN training also follows a kernel gradient flow, albeit minimizing different divergence metrics like the Jensen-Shannon divergence.
Empirical Verification
To validate these theoretical findings, the authors conducted experiments on synthetic distributions. By deriving the explicit kernel for a standard Gaussian variational family—$k(x, y) = (1 + (x - \mu)^T \Sigma^{-1} (y - \mu))I$—they were able to compare BBVI directly with an SVGD implementation using this specific NTK-derived kernel.
As shown in the figure above, when applied to a complex bimodal 2D distribution, BBVI and the "NTK-kernelized" SVGD produce nearly identical posterior approximations throughout the optimization process. This visual evidence confirms that the two methods, despite their different algorithmic starting points, are fundamentally performing the same operation in the space of distributions.
Conclusion and Future Directions
The discovery that BBVI is essentially SVGD "in disguise" has significant implications for Bayesian computation. It provides a unified theoretical lens through which to view diverse inference algorithms and suggests that the success of specific neural architectures in VI may be due to the favorable properties of their induced kernels.
While the equivalence is most precise in the continuous-time limit, future work may explore the impact of discrete-time steps and non-injective mappings in complex neural networks. This research opens the door for designing more effective kernels for SVGD by drawing inspiration from successful variational architectures, potentially leading to more robust and scalable Bayesian inference techniques.
Summary updated