NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

(De)-regularized Maximum Mean Discrepancy Gradient Flow

Zonghao Chen, Aratrika Mustafi, Pierre Glaser, Anna Korba, Arthur Gretton, Bharath K. SriperumbudurarXiv 2024 · DOI

Abstract

Generative modeling via Wasserstein gradient flows often faces a trade-off between the computational tractability of Maximum Mean Discrepancy (MMD) and the strong convergence properties of $f$-divergences. This paper introduces (De)-regularized MMD (DrMMD), a novel divergence that interpolates between MMD and $\chi^2$-divergence. By utilizing a de-regularized kernel, DrMMD enables a sample-based gradient flow that achieves global convergence under mild conditions. We discuss the theoretical foundations, the adaptive descent scheme, and empirical results demonstrating superior performance in complex synthetic and neural network tasks.

Introduction

In the field of generative modeling, the objective is frequently framed as transporting a source distribution toward a target distribution. This is typically achieved using Wasserstein gradient flows, which define a path of steepest descent for a chosen dissimilarity functional. Historically, researchers have had to choose between two distinct frameworks: $f$-divergences (such as KL or $\chi^2$) and kernel-based methods like Maximum Mean Discrepancy (MMD).

While $f$-divergences possess excellent theoretical properties—specifically geodesic convexity, which guarantees convergence to a global minimum—they are difficult to implement when only samples from the target distribution are available. Conversely, MMD is highly tractable and easily estimated from samples, but its flows often lack geodesic convexity, leading particles to become trapped in local minima. This paper, published in the Journal of Machine Learning Research (2025), bridges this gap by introducing (De)-regularized MMD (DrMMD).

Methodology

The DrMMD Functional

The core innovation of this work is the construction of a functional that interpolates between MMD and $\chi^2$-divergence. The authors demonstrate that both can be unified through integral operators. By introducing a regularization parameter $\lambda$, they define DrMMD such that:

  • As $\lambda \to \infty$, the functional behaves like standard MMD.
  • As $\lambda \to 0$, the functional recovers the $\chi^2$-divergence.

This "de-regularization" allows the gradient flow to adapt its resolution. While standard MMD uses a fixed kernel that may over-smooth the objective, DrMMD effectively uses a kernel that adapts to the target distribution, providing a clearer "view" of the target's geometry.

Adaptive Descent and Implementation

To balance the trade-off between smoothness (ease of discretization) and convexity (global convergence), the authors propose an adaptive schedule for $\lambda$. Early in the flow, a large $\lambda$ provides a smooth landscape for initial transport. As the particles approach the target, $\lambda$ is decreased, shifting the system into the $\chi^2$ regime to ensure precise convergence to the global minimum.

Crucially, the authors derive a closed-form expression for the particle update rule. Although the underlying theory involves complex operator inversions, the resulting algorithm (Algorithm 1) relies on Gram matrix inversions, making it compatible with modern linear algebra libraries.

Experimental Evaluation

Synthetic Support Matching

The authors tested DrMMD on the "Three-Ring" dataset, a 2D synthetic challenge where three non-overlapping rings must be matched. This is a notorious failure case for standard gradient flows because the lack of overlapping support often causes particles to stall. DrMMD successfully matched the target support perfectly. In contrast, standard MMD particles tended to diffuse into the empty spaces between the rings, and other baselines like KALE (Kernelized Accelerated Likelihood Estimation) exhibited numerical instability.

High-Dimensional Neural Networks

In a student/teacher network task, a student neural network was trained to imitate a teacher network, framed as a gradient flow in parameter space. DrMMD achieved significantly lower MMD scores than standard MMD. Notably, DrMMD reached these results without the common "hack" of noise injection, which is typically required for MMD flows to escape local optima.

Key Insights and Theoretical Results

  1. Global Convergence: The authors provide theoretical proof that DrMMD flow converges exponentially fast (linear convergence) to the global minimum, provided the target distribution satisfies a Poincaré inequality.
  2. Sample-Based $\chi^2$ Approximation: This work represents one of the first practical implementations of a $\chi^2$-gradient flow that operates solely on samples, bypassing the need for explicit density or score functions.
  3. The Smoothness-Convexity Trade-off: The research highlights that while larger regularization makes the flow easier to discretize, smaller regularization is essential for global convergence. The adaptive $\lambda$ schedule is the mechanism that resolves this conflict.

Limitations and Future Directions

Despite its theoretical and empirical advantages, DrMMD introduces a higher computational cost. The requirement to invert an $M \times M$ matrix (where $M$ is the number of target samples) results in $O(M^3)$ complexity, compared to the $O(M^2)$ complexity of standard MMD. While pre-computing the inverse is possible for a fixed $\lambda$, the adaptive version remains computationally intensive for large-scale datasets.

Future research may explore extending this approach to other $f$-divergences beyond $\chi^2$ or developing more efficient approximations for the matrix inversion to improve scalability. Additionally, investigating the simultaneous adaptation of kernel bandwidth and the regularization parameter remains an open area of study.

Summary updated

BibTeX
@misc{chen2024de,
  author = {Zonghao Chen and Aratrika Mustafi and Pierre Glaser and Anna Korba and Arthur Gretton and Bharath K. Sriperumbudur},
  title = {{(De)-regularized Maximum Mean Discrepancy Gradient Flow}},
  year = {2024},
  eprint = {2409.14980},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.14980},
}
Figure