Skip to main content
QUICK REVIEW

[Paper Review] Metric Learning-based Generative Adversarial Network

Zi-Yi Dou|arXiv (Cornell University)|Nov 8, 2017
Generative Adversarial Networks and Image SynthesisComputer Science29 references6 citations
TL;DR

This paper proposes Metric Learning-based Generative Adversarial Networks (MLGAN), a novel GAN framework where the discriminator dynamically learns a distance metric to measure similarity between real and generated samples, and the generator minimizes this learned metric. MLGAN achieves superior image quality and improved training stability compared to state-of-the-art GANs, with Inception scores up to 6.279 on CIFAR-10 and 3.296 on SVHN using the same architecture.

ABSTRACT

Generative Adversarial Networks (GANs), as a framework for estimating generative models via an adversarial process, have attracted huge attention and have proven to be powerful in a variety of tasks. However, training GANs is well known for being delicate and unstable, partially caused by its sig- moid cross entropy loss function for the discriminator. To overcome such a problem, many researchers directed their attention on various ways to measure how close the model distribution and real distribution are and have applied dif- ferent metrics as their objective functions. In this paper, we propose a novel framework to train GANs based on distance metric learning and we call it Metric Learning-based Gener- ative Adversarial Network (MLGAN). The discriminator of MLGANs can dynamically learn an appropriate metric, rather than a static one, to measure the distance between generated samples and real samples. Afterwards, MLGANs update the generator under the newly learned metric. We evaluate our ap- proach on several representative datasets and the experimen- tal results demonstrate that MLGANs can achieve superior performance compared with several existing state-of-the-art approaches. We also empirically show that MLGANs could increase the stability of training GANs.

Motivation & Objective

  • To address the instability and training difficulties inherent in standard GANs, particularly due to vanishing gradients and poor discriminator optimization.
  • To improve the objective function for generator training by replacing static loss functions with a dynamically learned distance metric.
  • To enhance GAN training stability by enabling the discriminator to learn a task-specific metric rather than relying on fixed loss functions.
  • To demonstrate that metric learning can serve as a more robust and effective objective for adversarial training in generative modeling.
  • To provide a new perspective on GAN training by redefining the discriminator’s role from classification to metric learning.

Proposed method

  • The discriminator in MLGAN is trained to learn a distance metric between real and generated samples, rather than performing binary classification.
  • The metric is learned via distance metric learning techniques, allowing the discriminator to adaptively measure similarity in latent space.
  • The generator is updated to minimize the distance between real and generated samples under the metric learned by the discriminator.
  • The framework uses the same model architecture as WGAN with gradient penalty, with modifications to the loss function to incorporate metric learning.
  • Two regularization techniques—weight clipping and center penalty—are applied to constrain the discriminator’s metric learning process.
  • The method is evaluated using Inception Score on SVHN and CIFAR-10, with ablation studies on different training regimes.

Experimental results

Research questions

  • RQ1Can a dynamically learned distance metric improve the stability and performance of GAN training?
  • RQ2Does replacing the standard GAN loss with a learned metric lead to better sample quality and reduced mode collapse?
  • RQ3How does MLGAN compare to state-of-the-art GANs like WGAN and LSGAN in terms of Inception Score and training dynamics?
  • RQ4Can the discriminator’s role in GANs be redefined from classification to metric learning without sacrificing performance?
  • RQ5What are the effects of different regularization strategies (e.g., weight clipping vs. center penalty) on the metric learning process and final generation quality?

Key findings

  • MLGAN achieved an Inception Score of 3.296 ± 0.17 on SVHN, outperforming WGAN with gradient penalty (3.129 ± 0.20) and other baselines.
  • On CIFAR-10, MLGAN with center penalty achieved an Inception Score of 6.279 ± 0.33, surpassing WGAN with gradient penalty (6.069 ± 0.33).
  • Even the vanilla MLGAN variant avoided mode collapse during training, unlike DCGAN, which failed entirely on both SVHN and CIFAR-10.
  • The use of center penalty regularization led to the highest Inception Score across all models on both datasets, indicating improved metric generalization.
  • MLGAN demonstrated increased training stability, as the generator received more consistent and meaningful gradients due to the learned metric.
  • The results show that training the discriminator to optimality is feasible and beneficial in MLGAN, resolving a key instability issue in standard GANs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.