Abstract
Most commonly used $f$-divergences of measures, e.g., the Kullback-Leibler divergence, are subject to limitations regarding the support of the involved measures. A remedy consists of regularizing the $f$-divergence by a squared maximum mean discrepancy (MMD) associated with a characteristic kernel $K$. In this paper, we use the so-called kernel mean embedding to show that the corresponding regularization can be rewritten as the Moreau envelope of some function in the reproducing kernel Hilbert space associated with $K$. Then, we exploit well-known results on Moreau envelopes in Hilbert spaces to prove properties of the MMD-regularized $f$-divergences and, in particular, their gradients. Subsequently, we use our findings to analyze Wasserstein gradient flows of MMD-regularized $f$-divergences. Finally, we consider Wasserstein gradient flows starting from empirical measures. We provide proof-of-the-concept numerical examples for $f$-divergences with both infinite and finite recession constant.
Introduction
In generative modeling and variational inference, the primary goal is to minimize the discrepancy between a model distribution $\mu$ and a target distribution $\nu$. Traditionally, $f$-divergences—such as the Kullback-Leibler (KL) divergence—have been the standard tools for this task. However, $f$-divergences possess a significant structural weakness: they are often ill-defined or yield vanishing gradients when the supports of $\mu$ and $\nu$ are disjoint. This "support problem" makes it difficult to optimize models when the initial distribution is far from the target.
While the Wasserstein distance ($W_2$) from optimal transport theory handles disjoint supports gracefully, it is computationally demanding. A common heuristic to circumvent these issues involves adding a "smoothing" term, specifically the Maximum Mean Discrepancy (MMD). This paper provides a rigorous mathematical foundation for this hybrid approach, demonstrating that MMD-regularized $f$-divergences are not just a heuristic but a well-behaved class of functionals with deep connections to convex analysis and Hilbert space theory.
The Moreau Envelope Connection
The core theoretical contribution of this work is the identification of MMD-regularization as a Moreau envelope within a Reproducing Kernel Hilbert Space (RKHS). In convex analysis, the Moreau envelope is a method for smoothing a function while preserving its minimizers.
By utilizing kernel mean embeddings, the authors show that adding a squared MMD term to an $f$-divergence is mathematically equivalent to computing the Moreau envelope of that divergence in the RKHS associated with a characteristic kernel $K$. This bridge allows the authors to leverage decades of established Hilbert space theory to prove essential properties, such as Fréchet differentiability and $\lambda$-convexity, which are critical for ensuring stable optimization.
Theoretical Framework and Gradient Flows
The paper extends the functional analysis of these regularized divergences through several key mechanisms:
- Kernel Mean Embeddings: By embedding probability measures into an RKHS, the complex task of moving measures in a high-dimensional space is transformed into the more tractable problem of moving points in a Hilbert space.
- Representer Theorem Extension: The authors extend the classical Representer Theorem to $f$-divergences with "finite recession constants" (functions that grow linearly at infinity). This ensures that for a finite set of particles, the optimal solution can be expressed as a finite sum of kernel functions, ensuring computational feasibility.
- Wasserstein Gradient Flows: The authors analyze the evolution of measures under the steepest descent direction of these regularized functionals. They employ an Euler forward discretization, which allows for the practical simulation of particle systems moving toward a target distribution.
Numerical Experiments and Insights
The authors validated their framework using synthetic 2D datasets that serve as benchmarks for flow-based models, including Three Rings, Neal’s Cross, and Bananas (a multimodal target with distant, curved supports).
Key Findings
- Tsallis vs. KL Divergence: While the KL divergence (where $\alpha=1$) is the standard choice, the experiments revealed that the Tsallis-$\alpha$ divergence (specifically with $\alpha \in [3, 4]$) often leads to significantly faster convergence and superior handling of outliers. In the "Three Rings" and "Neal's Cross" tests, the regularized Tsallis-3 divergence reached lower MMD and Wasserstein distances in fewer iterations than the KL counterpart.
- Mode-Seeking Behavior: The flows exhibited a distinct "mode-seeking" characteristic. Particles initially clustered near the centers of the target supports before spreading out to accurately represent the full distribution.
- Regularization Tightness: The study compared "tight" regularization (which strictly constrains intermediate measures to the space of probability measures) against "non-tight" versions. The tight version proved superior in preventing "stray" particles during the flow process.
Conclusion and Future Directions
This research successfully formalizes the use of MMD-regularized $f$-divergences, proving the existence and uniqueness of their Wasserstein gradient flows. However, several avenues for future work remain:
- Kernel Constraints: The current theory relies on smooth, bounded characteristic kernels (e.g., Gaussian). Extending this to non-differentiable kernels (Laplace) or unbounded kernels (Coulomb) remains an open challenge.
- Convergence Rates: While numerical results show rapid convergence, a formal proof of sublinear or linear convergence rates for these specific flows is still required.
- High-Dimensional Scaling: Future research must determine if the stability and efficiency observed in 2D benchmarks translate to high-dimensional applications, such as image generation or complex manifold learning.
Summary updated