Skip to main content
QUICK REVIEW

[Paper Review] Augmenting Variational Autoencoders with Sparse Labels: A Unified Framework for Unsupervised, Semi-(un)supervised, and Supervised Learning

Felix Berkhahn, Richard Keys|arXiv (Cornell University)|Aug 8, 2019
Generative Adversarial Networks and Image SynthesisComputer Science6 references6 citations
TL;DR

This paper proposes a unified semi-supervised variational autoencoder (VAE) that seamlessly integrates unsupervised, semi-supervised, and supervised learning by adding a classification head to the encoder and combining it with the latent code for reconstruction. The model improves both representation learning and classification accuracy by leveraging unlabeled data and sparse labels simultaneously, outperforming standard supervised and unsupervised baselines across MNIST, Fashion-MNIST, and UCI-HAR datasets.

ABSTRACT

We present a new flavor of Variational Autoencoder (VAE) that interpolates seamlessly between unsupervised, semi-supervised and fully supervised learning domains. We show that unlabeled datapoints not only boost unsupervised tasks, but also the classification performance. Vice versa, every label not only improves classification, but also unsupervised tasks. The proposed architecture is simple: A classification layer is connected to the topmost encoder layer, and then combined with the resampled latent layer for the decoder. The usual evidence lower bound (ELBO) loss is supplemented with a supervised loss target on this classification layer that is only applied for labeled datapoints. This simplicity allows for extending any existing VAE model to our proposed semi-supervised framework with minimal effort. In the context of classification, we found that this approach even outperforms a direct supervised setup.

Motivation & Objective

  • To develop a unified deep learning framework that bridges unsupervised, semi-supervised, and supervised learning using variational autoencoders.
  • To investigate how sparse labels and abundant unlabeled data jointly improve representation quality and predictive performance.
  • To demonstrate that the VAE reconstruction loss acts as a regularizer that boosts classification accuracy beyond standard supervised training.
  • To evaluate the model’s performance in anomaly detection and representation disentanglement under varying label availability.
  • To show that even a small number of labels significantly improves unsupervised representation learning and reconstruction fidelity.

Proposed method

  • A classification head is added to the topmost encoder layer, producing class probabilities that are concatenated with the sampled latent code for decoder input.
  • The loss function combines the standard VAE evidence lower bound (ELBO) with a supervised cross-entropy loss applied only to labeled data.
  • The classification loss is normalized by the number of labeled samples per batch to stabilize training and prevent label imbalance.
  • The model is trained end-to-end with a single objective, enabling seamless adaptation across the full spectrum of label availability (0% to 100%).
  • The architecture allows minimal modification to any existing VAE, enabling plug-and-play extension to semi-supervised learning.
  • The model is evaluated on MNIST, Fashion-MNIST, and UCI-HAR using standard benchmarks for classification, anomaly detection, and betaVAE disentanglement.

Experimental results

Research questions

  • RQ1Can a unified VAE framework effectively interpolate between unsupervised, semi-supervised, and fully supervised learning with minimal architectural changes?
  • RQ2Does the inclusion of sparse labels improve both classification accuracy and unsupervised reconstruction performance simultaneously?
  • RQ3To what extent does the VAE reconstruction loss regularize the classifier, leading to better representations than standard supervised training?
  • RQ4How does label scarcity affect representation quality, as measured by betaVAE disentanglement scores?
  • RQ5Can the model improve anomaly detection performance even with a small number of labeled samples?

Key findings

  • The proposed semi-supervised VAE outperforms standard supervised training on MNIST, Fashion-MNIST, and UCI-HAR, even when all data is labeled, due to the regularizing effect of the VAE reconstruction loss.
  • With only 100 labeled samples on MNIST, the model achieves a betaVAE disentanglement score of 76±1.6, improving to 92±0.6 with 1,000 labels, demonstrating enhanced representation learning.
  • On Fashion-MNIST, the model achieves 95.1% semi-supervised classification accuracy with 3,000 labeled samples, showing strong generalization under label scarcity.
  • Anomaly detection performance improves significantly with even a few labeled samples: on UCI-HAR, the model benefits from label availability, reducing false positives and improving detection robustness.
  • The model maintains unsupervised performance equivalent to a standard VAE when no labels are available, while showing consistent gains with increasing label availability.
  • The unified framework enables seamless adaptation across the 0–100% label availability spectrum, with mutual benefits between classification and reconstruction tasks.

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.