Semi-Supervised Learning with GANs: Revisiting Manifold Regularization

Bruno Lecouat, Chuan Sheng Foo, Houssam Zenati, Vijay Ramaseshan Chandrasekhar

Introduction

Semi-supervised learning (SSL) seeks to leverage vast amounts of unlabeled data alongside a small set of labeled examples to improve model generalization. A prominent approach in SSL is manifold regularization, which assumes that high-dimensional data, such as natural images, resides on a lower-dimensional manifold. The core principle is smoothness: if two points are close on this manifold, they should share the same label.

Traditionally, this is enforced using the Laplacian norm, which penalizes abrupt changes in classifier predictions along the manifold. However, calculating this norm for complex image data is computationally intensive, often requiring expensive graph-based methods or tangent direction estimations that fail to scale to large datasets.

Methodology: GANs as Geometric Tools

This paper introduces a novel method to approximate the manifold regularization term by utilizing the generative capabilities of Generative Adversarial Networks (GANs).

The GAN as a Manifold Map

A GAN's generator ($g$) learns a mapping from a low-dimensional latent space ($z$) to the high-dimensional image space. The authors argue that the range of this generator effectively defines the data manifold. By regularizing the classifier ($f$) relative to the generator's output, one can enforce smoothness directly on the learned manifold.

Samples of images generated by the GAN, which define the underlying data manifold.

Efficient Approximation

To avoid complex integrals over the entire image space, the authors employ Monte Carlo sampling. They draw random vectors from the latent space, generate corresponding images, and evaluate the classifier's response. To make the computation efficient, they use stochastic finite differences to approximate the Jacobian. Specifically, they penalize the difference in classifier output between a generated image $g(z)$ and a slightly perturbed version $g(z + \epsilon\delta)$. This forces the classifier to be invariant to small movements along the manifold defined by the generator.

This "Manifold Reg" term is integrated into the loss function of an "Improved GAN" framework (specifically feature-matching GANs), creating a unified training objective that is significantly simpler to implement than methods requiring auxiliary models like PixelCNN.

Experimental Setup

The approach was evaluated on two standard benchmarks for semi-supervised learning:

  • SVHN (Street View House Numbers): 73,257 training images, with only 1,000 labeled examples used.
  • CIFAR-10: 50,000 images across 10 categories, with only 4,000 labeled examples used.

Notably, these experiments were conducted without data augmentation to isolate the performance gains attributable to the manifold regularization algorithm itself.

Key Results

The addition of Manifold Regularization yielded significant improvements over baseline GAN methods and achieved competitive results with other state-of-the-art SSL techniques.

Comparison of error rates (%) on SVHN and CIFAR-10 datasets against various semi-supervised learning methods.

As shown in Table 1, the proposed method achieved an error rate of 14.45% on CIFAR-10, setting a new state-of-the-art for GAN-based semi-supervised methods at the time of publication. On SVHN, the error rate reached 4.51%, performing comparably to top-tier methods like BadGAN (4.25%) and VAT (4.28%).

A key advantage of this method is its efficiency. Because it uses finite differences to approximate the Jacobian, the added computational overhead is minimal compared to the standard GAN training loop.

Discussion and Limitations

While effective, the authors note several theoretical and practical considerations:

  • Dynamic Manifolds: Early in training, the generator's output does not accurately represent the data manifold. Regularizing against a "moving target" is theoretically inconsistent, yet empirically successful in practice.
  • Mode Collapse: The quality of regularization depends on the GAN's coverage of the data space. If the generator suffers from mode collapse, the classifier will only be regularized on a subset of the manifold.
  • Hyperparameter Sensitivity: The researchers found that basic tuning of batch sizes and training epochs significantly impacted performance, highlighting how sensitive GAN training is to setup.

Future work may involve training the GAN to convergence first to provide a static, high-quality manifold for subsequent classifier regularization.

Summary updated

BibTeX
@inproceedings{lecouat2018semi,
  author = {Bruno Lecouat and Chuan Sheng Foo and Houssam Zenati and Vijay Ramaseshan Chandrasekhar},
  title = {{Semi-Supervised Learning with GANs: Revisiting Manifold Regularization}},
  booktitle = {Workshops @ ICLR},
  year = {2018},
  url = {https://openreview.net/forum?id=ZFR3bxsHNzx},
}
Figure