Max-Margin Deep Generative Models for (Semi-)Supervised Learning

Chongxuan Li, Jun Zhu, Bo Zhang

TL;DR

This paper introduces "max-margin deep generative models" (mmDGMs) that combine the representation learning power of deep generative models (DGMs) with the strong discriminative capabilities of max-margin learning. This hybrid approach significantly improves classification accuracy in both supervised and semi-supervised settings, while still allowing for data generation and imputation.

What Problem Does This Paper Address?

Deep generative models (DGMs) excel at learning complex data distributions and generating new samples, but they often fall short when it comes to making accurate predictions. Traditional DGMs focus on unsupervised learning, and while their learned representations can be used for downstream tasks, they aren't inherently optimized for discriminative performance. On the other hand, max-margin classifiers (like SVMs) are excellent at prediction but lack the ability to model complex data distributions or generate new data. This paper bridges this gap by proposing a framework that integrates max-margin principles directly into DGMs, aiming to achieve both strong generative and discriminative capabilities. This is particularly relevant for semi-supervised learning, where labeled data is scarce, and leveraging unlabeled data effectively is crucial.

Methods

The core innovation is the Max-Margin Deep Generative Model (mmDGM). For supervised learning, mmDGMs extend standard DGMs by adding a max-margin classifier that operates on the latent representations learned by the DGM. The learning objective jointly optimizes the DGM's generative likelihood and a max-margin classification loss, regularized by a hinge loss. This encourages the latent representations to be not only good for reconstruction but also for classification.

For semi-supervised learning, they introduce Class-Conditional Max-Margin Deep Generative Models (mmDCGMs). These models separate the generative and recognition pathways more explicitly. Crucially, to handle the computational burden of inferring labels for unlabeled data, they propose using the prediction of a max-margin classifier as a point estimate for the missing label, rather than performing full posterior inference. This is combined with additional max-margin and label-balance regularization terms specifically for unlabeled data to further boost classifier performance.

A key technical contribution is an efficient doubly stochastic subgradient algorithm designed to handle the piecewise linear objectives and intractable expectations inherent in these models. This algorithm generalizes existing methods like Pegasos for SVMs to the deep generative setting.

Datasets

The models were evaluated on several standard benchmark datasets:

  • MNIST: A dataset of handwritten digits.
  • SVHN (Street View House Numbers): A dataset of house numbers from real-world images.
  • small NORB: A dataset of 3D toy images across various classes.

Key Insights and Ideas

  • Max-margin learning is a powerful regularizer for DGMs: Integrating max-margin principles directly into the DGM learning objective significantly improves classification performance without sacrificing generative capabilities.
  • Latent representations benefit from discriminative training: By forcing latent representations to be separable by a max-margin classifier, the model learns more informative and discriminative features.
  • Approximating label inference in semi-supervised learning is effective: Using a classifier's direct prediction as a "pseudo-label" for unlabeled data, instead of full posterior inference, provides a computationally efficient yet effective way to leverage unlabeled data.
  • Dedicated regularization for unlabeled data is crucial: The proposed "hat loss" and label-balance regularization terms for unlabeled data are shown to be vital for achieving state-of-the-art performance in semi-supervised settings.

Key Results

  • Supervised Learning: mmDGMs, particularly when using CNNs (Conv-MMVA), achieved classification error rates competitive with the best fully discriminative networks on MNIST and SVHN. For example, Conv-MMVA achieved an error rate of 0.45% on MNIST, comparable to state-of-the-art DSNs and Maxout Networks.
  • Semi-Supervised Learning: mmDCGMs (specifically Conv-MMCVA) achieved state-of-the-art results on MNIST, SVHN, and NORB datasets. For instance, on MNIST with only 100 labels, Conv-MMCVA achieved an error rate of 1.24%, significantly outperforming other semi-supervised methods. With 1000 labels, it reached 0.31%, comparable to supervised learning results.
  • Generative Performance: The models retained strong generative capabilities, producing visually plausible samples and effectively imputing missing data, often outperforming baseline DGMs in imputation tasks.
  • Missing Data Imputation: Conv-MMVA demonstrated superior performance in imputing missing pixels compared to Conv-VA, especially in challenging scenarios with larger missing regions.

Limitations and Future Work

  • Computational Cost: While the doubly stochastic subgradient algorithm improves efficiency, training these models can still be computationally intensive, especially for very large datasets or complex architectures.
  • Hyperparameter Tuning: The performance is sensitive to hyperparameter choices (e.g., regularization weights α, αu, αβ, and C), requiring careful tuning.
  • Approximation in Semi-Supervised Learning: The use of a point estimate for label inference in mmDCGMs is an approximation. While effective, it might limit performance in extremely complex scenarios where full posterior inference is truly necessary.
  • Future Work: The authors suggest that their framework is applicable to any DGM and can be extended with more advanced network architectures (e.g., ResNets) for further performance gains. The potential for applying class-conditional DGMs to large-scale datasets with many categories is highlighted as a promising direction.

Summary updated

BibTeX
@article{li2018max,
  author = {Chongxuan Li and Jun Zhu and Bo Zhang},
  title = {{Max-Margin Deep Generative Models for (Semi-)Supervised Learning}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2018},
  doi = {10.1109/tpami.2017.2766142},
}
Figure