Semi-Supervised Learning via New Deep Network Inversion

Randall Balestriero, Vincent Roger, Hervé Glotin, Richard G. BaraniukarXiv 2017

Abstract

This paper introduces a novel approach to semi-supervised learning (SSL) by "inverting" standard deep neural networks. By treating a classifier as a collection of local linear templates based on Linear Spline Theory, the authors derive a reconstruction loss that requires no architectural modifications like decoders or GANs. This method achieves state-of-the-art results on MNIST with as few as five labeled examples per class, demonstrating that standard classifiers inherently possess generative capabilities.

Introduction

Deep learning models typically require massive labeled datasets to achieve high performance. Semi-supervised learning (SSL) seeks to mitigate this by leveraging large pools of unlabeled data. However, existing SSL methods often rely on complex additions: Generative Adversarial Networks (GANs) are notoriously unstable, while Ladder Networks and Autoencoders require specialized, symmetric decoder architectures. This research addresses the need for a computationally efficient, stable SSL method that works with any standard network architecture.

Methods: The Implicit Decoder

The core innovation lies in viewing deep networks with piecewise linear activations (like ReLU) through the lens of Linear Spline Theory. For any input $x$, the network effectively selects a linear template $A[x]$ and a bias $b[x]$ to produce an output. This template $A[x]$ is the Jacobian of the network—the derivative of the output with respect to the input.

Because modern frameworks utilize automatic differentiation, calculating this template is computationally inexpensive. The authors propose an Inversion Formula that uses the transpose of the classification template ($A[x]^T$) to map the network's output back into the input space. This allows the model to function as a generator without an explicit decoder network.

Training Objective

The model is trained using a composite loss function:

  1. Cross-Entropy Loss: Standard supervision for labeled samples.
  2. Reconstruction Loss: Minimizes the difference between the original input and its inverted version for unlabeled samples.
  3. Entropy Loss: Encourages the model to make confident predictions on unlabeled data.

Experimental Results

The authors evaluated the method on the MNIST digit dataset and the Bird10 audio dataset.

MNIST Performance

In the extreme low-data regime of only 50 labeled samples (5 per class), the method achieved 99.14% accuracy. This significantly outperformed contemporary benchmarks like Improved GAN (97.79%) and Ladder Networks, which required double the labels to reach comparable performance.

Reconstruction results across different architectures (ResNet and UResNet variants) showing the model's ability to recover input digits from classification templates.

Architecture Agnosticism

A key advantage of this approach is its flexibility. As shown in the figure above, the inversion method successfully reconstructs inputs across various architectures, including ResNets and UResNets, without altering the underlying neurons. On the Bird10 audio task, the reconstruction loss consistently improved generalization over purely supervised baselines, proving the method's utility beyond image processing.

Discussion and Future Work

The research demonstrates that an optimal classifier naturally functions as a good reconstructor; the information required to generate data is already embedded in the classifier's weights. While highly effective, the current implementation avoids Batch Normalization as it complicates the linear spline interpretation. Future work aims to integrate Batch Normalization and explore layer-wise reconstruction loss to further enhance the model's flexibility and performance.

Summary updated

BibTeX
@misc{balestriero2017semi,
  author = {Randall Balestriero and Vincent Roger and Hervé Glotin and Richard G. Baraniuk},
  title = {{Semi-Supervised Learning via New Deep Network Inversion}},
  year = {2017},
  eprint = {1711.04313},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1711.04313},
}
Figure