[Paper Review] Improving MMD-GAN Training with Repulsive Loss Function
This paper introduces a repulsive loss for the MMD-GAN discriminator to actively learn differences among real data, and a bounded kernel to stabilize training, improving unsupervised image generation across benchmarks without extra computation.
Generative adversarial nets (GANs) are widely used to learn the data sampling process and their performance may heavily depend on the loss functions, given a limited computational budget. This study revisits MMD-GAN that uses the maximum mean discrepancy (MMD) as the loss function for GAN and makes two contributions. First, we argue that the existing MMD loss function may discourage the learning of fine details in data as it attempts to contract the discriminator outputs of real data. To address this issue, we propose a repulsive loss function to actively learn the difference among the real data by simply rearranging the terms in MMD. Second, inspired by the hinge loss, we propose a bounded Gaussian kernel to stabilize the training of MMD-GAN with the repulsive loss function. The proposed methods are applied to the unsupervised image generation tasks on CIFAR-10, STL-10, CelebA, and LSUN bedroom datasets. Results show that the repulsive loss function significantly improves over the MMD loss at no additional computational cost and outperforms other representative loss functions. The proposed methods achieve an FID score of 16.21 on the CIFAR-10 dataset using a single DCGAN network and spectral normalization.
Motivation & Objective
- Motivate improving GAN training when using MMD as the loss by addressing how the discriminator treats real data.
- Propose a repulsive loss for the discriminator to actively differentiate real data samples.
- Stabilize MMD-GAN training with a bounded kernel and spectral normalization.
- Demonstrate empirical improvements on CIFAR-10, STL-10, CelebA, and LSUN-bedroom using a single kernel.
- Provide analysis of stability and qualitative representations learned by the discriminator.
Proposed method
- Reinterpret MMD-GAN training as attraction (within-group contraction) and repulsion (between-group separation) of discriminator outputs.
- Propose a repulsive loss LD,λ = λ EPX[kD(x, x')] − (λ − 1) EPX,PG[kD(x, y)] − EPG[kD(y, y')] that covers attractive (λ<0) and repulsive (λ≥0) regimes.
- Use a single kernel in MMD-GAN and introduce a bounded Gaussian (RBF-B) kernel to prevent saturation of the discriminator.
- Apply spectral normalization via a generalized power iteration to stabilize the discriminator’s Lipschitz constraints.
- Experiment with Gaussian (MMD-rbf), rational quadratic (MMD-rq), and the new repulsive loss (MMD-rep) across four datasets.
- Evaluate with Inception Score (IS), Fréchet Inception Distance (FID), and MS-SSIM, comparing against non-saturating and hinge losses.
Experimental results
Research questions
- RQ1Does a repulsive loss for the MMD-GAN discriminator improve generated image quality compared to existing MMD-based losses?
- RQ2Can training stability in MMD-GAN be improved using a bounded kernel and spectral normalization without increasing computational cost?
- RQ3What are the effects of using a single kernel versus a multi-kernel combination in MMD-GAN performance?
- RQ4How does the repulsive loss influence the learned representation of real data in the discriminator?
Key findings
- Repulsive loss (MMD-rep) significantly improves over attractive MMD loss (MMD-rbf/rq) on benchmark datasets.
- Using a single kernel with repulsive loss outperforms a multi-kernel setup, suggesting kernel saturation is an issue.
- RBF-B kernel stabilizes MMD-GAN training with repulsive loss, enabling better performance in several configurations.
- Repulsive loss yields better intra-class separation in discriminator space (as seen in t-SNE visualizations) and provides meaningful gradients for the generator.
- Despite potential instability, with appropriate regularization (RBF-B) and spectral normalization, MMD-GAN with repulsive loss achieves strong quantitative results.
- Compared against non-saturating and hinge losses, MMD-rep and MMD-rep-b show superior performance on CIFAR-10, STL-10, CelebA, and LSUN-bedroom under the reported metrics.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.