Inverting Variational Autoencoders for Improved Generative Accuracy

Ian Gemp, Ishan Durugkar, M. Parente, M. D. Dyar, Sridhar Mahadevan · DOI

Abstract: Recent advances in semi-supervised learning with deep generative models have shown promise in generalizing from small labeled datasets ($\mathbf{x},\mathbf{y}$) to large unlabeled ones ($\mathbf{x}$). In the case where the codomain has known structure, a large unfeatured dataset ($\mathbf{y}$) is potentially available. We develop a parameter-efficient, deep semi-supervised generative model for the purpose of exploiting this untapped data source. Empirical results show improved performance in disentangling latent variable semantics as well as improved discriminative prediction on Martian spectroscopic and handwritten digit domains.

Introduction

Standard semi-supervised learning (SSL) typically leverages unlabeled features ($x$) to improve model performance by learning the underlying structure of the data distribution. This paper introduces a novel approach to also exploit "unfeatured labels" ($y_u$)—instances where the structure of the label space is known but corresponding feature data is missing. By "inverting" a Variational Autoencoder (VAE) and training it to map both from features to labels and labels to features simultaneously, the authors achieve significantly better generative accuracy and disentanglement in complex domains like Martian spectroscopy.

The Challenge of Unfeatured Labels

In many scientific scenarios, we have a small set of labeled data $(x, y)$ and a large set of unlabeled features $(x)$. However, the authors identify an "untapped" resource: the known support of the label space. For example, in mineralogy, we know the theoretical composition of a mineral mixture (the label) even if we lack a laboratory spectrum (the feature) for every possible ratio. Standard generative models often fail to "disentangle" these labels from noise, leading to poor generative accuracy—meaning the model cannot accurately "imagine" what a specific label would look like in the feature space.

Methodology: Inverting the VAE

The core innovation is the "inversion" of the standard M2 semi-supervised VAE. While the standard model assumes a generative process where a label ($y$) and a "nuisance" variable ($z$, representing noise or style) combine to produce a feature ($x$), this approach treats the reverse direction as a semi-supervised task as well.

  1. Joint Training: The forward ($x \to y$) and reverse ($y, z \to x$) mappings are learned jointly.
  2. Parameter Tying: The model uses the same neural network parameters for both directions to regularize the mapping, forcing a consistent, one-to-one relationship between physical features and semantic labels.
  3. Multi-Objective Optimization: The training objective combines the standard Variational Lower Bound (ELBO) for both models, ensuring the decoder is accurate across the entire label space, not just at labeled training points.
The proposed model improves the mapping between the feature space (spectra) and the structured label space (compositions).

Experimental Evaluation

The researchers evaluated their approach on three distinct domains:

  • CRISM (Martian Spectroscopic Analysis): Lab-simulated data mimicking the Mars Reconnaissance Orbiter, consisting of 5,354 spectra of mineral mixtures where labels are points on a simplex.
  • LIBS (Laser-Induced Breakdown Spectroscopy): High-dimensional data from the Curiosity rover’s ChemCam instrument, involving complex plasma physics.
  • MNIST: A semi-supervised variant of the classic digit dataset where only digits 0–4 were labeled, forcing the model to use unfeatured labels to discover digits 5–9.
The Curiosity rover's ChemCam instrument provides complex LIBS data used to test the model's ability to disentangle physical signals from noise.

Key Results and Insights

  • Disentanglement through Inversion: By inverting the VAE, the model successfully isolated "nuisance" variables (like instrument viewing angles) from the actual signal (mineralogy).
  • Spectroscopy Accuracy: On the CRISM dataset, the proposed model reduced endmember extraction error by approximately 13% compared to the standard M2 model.
  • MNIST Generalization: In the 0–4 labeled experiment, the inverted model successfully assigned unique, distinct dimensions to the unseen digits (5–9), effectively "discovering" them through the unfeatured label signal. This reduced the average KL-divergence from ground truth by 30% compared to the baseline.

Conclusion

This method demonstrates that prior knowledge of label structure—such as the requirement that mineral ratios sum to 100%—can be a powerful tool for guiding deep generative models. While it requires a strong prior belief about the label distribution, the potential applications are broad. Future work may apply this to Natural Language Processing, where the "grammar" of a language could serve as a known structure for unfeatured labels in tasks like image captioning.

Summary updated

BibTeX
@misc{gemp2016inverting,
  author = {Ian Gemp and Ishan Durugkar and M. Parente and M. D. Dyar and Sridhar Mahadevan},
  title = {{Inverting Variational Autoencoders for Improved Generative Accuracy}},
  year = {2016},
  eprint = {1608.05983},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1608.05983},
}
Figure