Skip to main content
QUICK REVIEW

[Paper Review] Semi-Supervised Learning with Normalizing Flows

Pavel Izmailov, Polina Kirichenko|arXiv (Cornell University)|Dec 30, 2019
Generative Adversarial Networks and Image SynthesisComputer Science34 references7 citations
TL;DR

This paper proposes FlowGMM, a novel semi-supervised learning method using normalizing flows with a latent Gaussian mixture model to jointly model labeled and unlabeled data via an exact likelihood. It enables end-to-end training, interpretable decision boundaries, real-time feature visualization, and strong performance on text, tabular, and image data, particularly excelling in generative modeling and interpretability beyond discriminative baselines.

ABSTRACT

Normalizing flows transform a latent distribution through an invertible neural network for a flexible and pleasingly simple approach to generative modelling, while preserving an exact likelihood. We propose FlowGMM, an end-to-end approach to generative semi supervised learning with normalizing flows, using a latent Gaussian mixture model. FlowGMM is distinct in its simplicity, unified treatment of labelled and unlabelled data with an exact likelihood, interpretability, and broad applicability beyond image data. We show promising results on a wide range of applications, including AG-News and Yahoo Answers text data, tabular data, and semi-supervised image classification. We also show that FlowGMM can discover interpretable structure, provide real-time optimization-free feature visualizations, and specify well calibrated predictive distributions.

Motivation & Objective

  • To develop a unified, end-to-end generative semi-supervised learning framework that treats labeled and unlabeled data under a single probabilistic model with exact likelihood.
  • To improve interpretability and model transparency by leveraging the invertible structure of normalizing flows and a Gaussian mixture in the latent space.
  • To enable real-time, optimization-free feature visualization through invertible intermediate activations, facilitating model interpretability.
  • To demonstrate broad applicability beyond image data, including text and tabular datasets, where consistency-based methods often underperform.
  • To validate that the decision boundary lies in low-density regions, aligning with the clustering principle in semi-supervised learning.

Proposed method

  • FlowGMM uses an invertible neural network (normalizing flow) to map data from the input space to a latent space where the distribution is modeled as a Gaussian mixture with one component per class.
  • The model is trained end-to-end by maximizing the exact joint likelihood of both labeled and unlabeled data under the flow-transformed latent distribution.
  • Classification is performed by computing the latent representation of an input via the flow and assigning the class corresponding to the nearest Gaussian mixture component mean.
  • Feature visualization is achieved by perturbing intermediate activations in the flow and inverting them back to data space without iterative optimization, enabling real-time exploration.
  • The method leverages the invertibility of the flow to directly manipulate and visualize the effect of specific neurons or channels in the latent space.
  • The decision boundary is implicitly defined by the perpendicular bisector of the line segment joining the means of two class-conditional components in the latent space, naturally favoring low-density regions.

Experimental results

Research questions

  • RQ1Can a normalizing flow-based model achieve end-to-end semi-supervised learning with an exact likelihood over both labeled and unlabeled data?
  • RQ2Does FlowGMM’s latent Gaussian mixture structure lead to decision boundaries that lie in low-density regions of the data space, as predicted by the clustering principle?
  • RQ3Can the invertible structure of normalizing flows enable real-time, optimization-free feature visualization that reveals model behavior?
  • RQ4How does FlowGMM compare to consistency-based and graph-based methods on tabular and text data, where such methods often struggle?
  • RQ5To what extent can FlowGMM discover interpretable, disentangled representations in the latent space across diverse data modalities?

Key findings

  • FlowGMM achieves a significant reduction in the number of unlabeled data points near the decision boundary—only 143 points were within distance 5 of the boundary in FlowGMM-cons, compared to 1089 in the supervised baseline, confirming the clustering principle.
  • The model produces well-calibrated predictive distributions and enables real-time feature visualization by directly inverting perturbations in intermediate flow layers without optimization.
  • FlowGMM outperforms consistency-based and graph-based baselines on semi-supervised text classification using BERT embeddings and on tabular data, where such methods typically fail.
  • The method successfully generates realistic samples from the model in data space, demonstrating its generative capability across image, text, and tabular domains.
  • The latent space structure reveals interpretable clustering, with labeled data mapped to corresponding Gaussian mixture components, and the decision boundary lying in low-density regions.
  • Feature visualization shows that specific channels activate on structured patterns such as zeroed pixels from random translations and color channels, offering insight into learned representations.

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.