Introduction
This paper introduces a principled method for regularizing the "critic" in Maximum Mean Discrepancy (MMD) based Generative Adversarial Networks (GANs) by enforcing exact, analytical gradient constraints. By introducing the Scaled MMD (SMMD), the authors provide a loss function that is provably continuous and computationally efficient. This approach leads to significantly more stable training dynamics and achieves state-of-the-art image generation on challenging datasets like CelebA and ImageNet.
The Challenge of GAN Optimization
Generative Adversarial Networks are notoriously difficult to train due to their often "unfriendly" optimization landscapes. In a standard GAN, if the model's generated distribution and the real data distribution do not overlap, the gradient signal vanishes. This leaves the generator with no meaningful direction for improvement.
To mitigate this, researchers frequently employ Integral Probability Metrics (IPMs), such as the Wasserstein distance. These metrics require the "critic" (the network distinguishing real from fake data) to be "well-behaved"—specifically, it must be Lipschitz continuous, meaning its slope must be bounded. However, strictly enforcing this constraint is difficult. Common workarounds like weight clipping or gradient penalties are either overly restrictive or only approximate the constraint.
Maximum Mean Discrepancy (MMD) is another type of IPM that uses kernels to compare distributions. While MMD boasts strong theoretical properties, "Optimized MMD" (where the kernel is learned) can suffer from the same vanishing gradient issues as standard GANs. This paper seeks to make MMD GANs stable and effective by properly controlling the critic's gradients.
Proposed Methods: Regularizing the MMD Critic
The authors propose three novel approaches to regularize the MMD critic:
- Lipschitz MMD: This method directly constrains the critic to be Lipschitz continuous. While theoretically sound, it is computationally intractable to enforce strictly for deep neural networks.
- Gradient-Constrained MMD (GCMMD): This approach constrains the $L^2$ norm of the critic's gradient. It is provably continuous in the "weak topology," meaning it provides a useful learning signal even when the real and generated distributions are far apart. However, calculating GCMMD requires solving a massive linear system, making it prohibitively slow for high-dimensional image data.
- Scaled MMD (SMMD): This is the paper's primary contribution. SMMD serves as a computationally cheap lower bound of GCMMD. Instead of solving a complex linear system, it simply scales the MMD loss by a factor derived from the expected gradient norm of the kernel. It provides the same stability benefits as GCMMD but runs in time linear to the dimension of the data.
Additionally, the authors employ Spectral Parametrization. Unlike standard Spectral Normalization, which rigidly fixes the spectral norm to 1, their approach allows the network to learn a scaling factor ($\gamma$). This prevents "rank collapse," a failure mode where the critic ignores all but one direction of difference between the distributions.
Key Insights
- Continuity is the Cure: The authors mathematically prove that by controlling the gradient of the MMD critic, the loss function becomes continuous. This ensures the generator always receives a meaningful gradient, preventing the "stuck" behavior common in early GAN training.
- Asymmetric Regularization: Unlike previous methods that regularize the gradient on a mixture of real and fake data, the authors found that regularizing only on the target (real) distribution is sufficient. This avoids instability caused by the critic trying to adapt to a rapidly changing generator.
- Analytical vs. Additive: Most GAN regularizers (like WGAN-GP) add a penalty term to the loss. This paper derives an analytical constraint that results in a scaled loss function, which is more theoretically grounded and often more stable in practice.
- Preventing Feature Neglect: By combining SMMD with spectral parametrization, the authors ensure the critic maintains a high-rank representation. This forces the generator to match the data distribution across many different features simultaneously.
Experimental Results
The proposed SN-SMMDGAN (SMMD combined with Spectral Parametrization) was evaluated on standard benchmarks including CIFAR-10, CelebA ($160 \times 160$), and ImageNet ($64 \times 64$), showing significant improvements over existing baselines:
- CelebA ($160 \times 160$): The model achieved a Fréchet Inception Distance (FID) of 12.4, vastly outperforming SN-GAN (22.6) and WGAN-GP (29.2).
- ImageNet ($64 \times 64$): On this significantly more challenging unconditional generation task, it reached an FID of 36.6, compared to 47.5 for SN-GAN.
- Efficiency: The SMMD regularizer adds negligible computational overhead compared to standard MMD, yet it converges faster and more reliably across different random initializations.
Limitations and Future Work
While SMMD represents a significant step forward, the authors note a few limitations. First, despite spectral parametrization, the critic can still occasionally suffer from rank collapse on highly complex datasets, suggesting further architectural refinements may be needed. Second, the choice of the base kernel (e.g., Gaussian vs. Rational Quadratic) still influences performance, indicating kernel sensitivity remains a factor. Finally, the authors suggest that future research should explore the unique "geometry" of these new distances, as they occupy an interesting theoretical space between the Wasserstein distance and standard MMD.
Summary updated