Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Semi-Supervised Learning with Deep Generative Models

Deep generative models make semi-supervised learning competitive on small labelled sets

  • Problem Semi-supervised classifiers struggle to use unlabelled data well. Earlier generative models were inflexible, inefficient or hard to scale.
  • Method The authors train deep latent-variable models by maximising a variational bound. An inference network maps each data point to its approximate posterior, and they test three forms: M1, M2 and the stack M1+M2.
  • Results On MNIST with 100 labels, M1+M2 reaches 3.33 (±0.14) against 8.10 (±0.95) for AtlasRBF.

Why generative models for semi-supervised classification

Semi-supervised classification covers the case where only some observations carry class labels, while unlabelled points are plentiful. The open question is how the unlabelled points can sharpen the decision boundary, so that the classifier beats one trained on the labelled points alone. Self-training is simple but heuristic, because it can reinforce its own poor predictions, and transductive SVMs have difficulty extending to large unlabelled sets.

Graph-based methods depend on the graph structure and need eigen-analysis of the graph Laplacian, which limits how far they scale.

Earlier generative attempts based on Gaussian mixtures or hidden Markov models needed many components or states before they performed well. Non-parametric density models based on trees or Gaussian processes ran into problems of scalability and accurate inference. The gap the authors identify is a general and scalable probabilistic approach, which they aim to fill with rich parametric density estimators trained by variational inference.

Two generative models and their stack

M1 places a standard Gaussian prior on a latent variable z, and its likelihood is a non-linear function of z whose parameters come from deep neural networks. Approximate posterior samples of z serve as features for a separate classifier such as a transductive SVM or multinomial regression. Because z has far fewer dimensions than x, classification happens in a lower-dimensional space, and the authors argue that the features are easier to separate because their Gaussian posteriors are built from non-linear transformations of the data.

M2 adds a latent class variable y with a categorical prior, alongside the continuous z, and both generate x through a neural-network likelihood. Labels of unlabelled points are treated as latent and integrated over during inference, so classification itself becomes inference of the label posterior. Keeping z separate from y is what allows the class identity to be distinguished from the writing style of a digit.

The stacked model M1+M2 first learns a new representation z1 from x using M1, and then trains M2 on z1 rather than on the raw data. The result has two layers of stochastic variables, with the likelihood and the z1 conditional both parameterised by deep neural networks.

Variational training of the models

The exact posterior is intractable because the dependencies between the random variables are non-linear and non-conjugate. The approach fixes a parametric approximate posterior and maximises a lower bound on the marginal likelihood, which pushes the approximation towards the true posterior.

An inference network maps each data point to the parameters of its approximate posterior, so the variational parameters are shared across data points rather than optimised per point. Inference becomes fast at training and test time, whereas the variational EM algorithm repeats the E-step optimisation for every test point. For M1 the bound on one data point is the expected log-likelihood under the approximate posterior minus a KL term to the prior, and in M2 the inference network is factorised over z and y.

When both the prior and the approximate posterior are Gaussian, the KL term is computed analytically. The expectation of the log-likelihood is rewritten with a location-scale transformation, so that a sample is the mean plus the scale times standard-normal noise, which makes the gradients with respect to the parameters computable. The gradients are then estimated by Monte Carlo sampling of that noise, and the generative and inference parameters are updated jointly with a gradient method.

The authors call this stochastic gradient variational Bayes. The reported experimental results were obtained with AdaGrad.

Objective for labelled and unlabelled points

When a label is observed, the bound for that point is the conditional bound that includes y. When the label is missing, it is marginalised with the label posterior, and an entropy term of that posterior is added to the bound. Summing the labelled and unlabelled bounds over the data set gives the total objective.

In the total objective the label posterior only receives gradient through the unlabelled term, which the authors see as undesirable if that posterior is used as the classifier. A classification loss on labelled data is therefore added with a weight α, which sets the balance between generative and purely discriminative learning. The authors set α to 0.1·N in all experiments.

The authors note that the same objective can also be derived directly from the variational principle, by inferring the parameters of the categorical distribution under a symmetric Dirichlet prior.

Training procedure and cost

For M1 the procedure trains the generative model on minibatches first, and then trains a classifier on labelled latent features. For M2 the labels of unlabelled points are sampled from the label posterior, latent samples are drawn conditionally, and the extended objective updates all parameters.

The authors give the cost of one joint M1 update as the minibatch size times the number of samples times the cost of an MLP evaluation. The M2 cost is the number of labels times the M1 cost, and the stacked model adds the cost of M2 computed in the lower-dimensional latent space of M1.

The optimisation details describe a variant of RMSProp with momentum and initialisation bias correction, a constant learning rate of 0.0003, first moment decay of 0.1 and second moment decay of 0.001. Parameters were sampled from N(0, 0.0012I) with biases set to zero, and minibatches for MNIST were drawn by treating the normalised pixel intensities as Bernoulli probabilities.

MNIST benchmark with few labels

Labelled sets are drawn from the 50,000 training points at sizes of 100, 600, 1000 and 3000, with each class balanced. M1 uses a 50-dimensional z and two hidden layers of 600 units with softplus activations, and a transductive SVM is trained on the z values inferred by its encoder. M2 also uses a 50-dimensional z, and its MLPs have one hidden layer of 500 units.

In every row of the table, M1+M2 has the lowest value among the listed methods. At 100 labels it reaches 3.33 (±0.14), against 8.10 (±0.95) for AtlasRBF, and at 1000 labels it reaches 2.40 (±0.02), against 3.68 (±0.12) for AtlasRBF. The AtlasRBF column has no entries at 600 and 3000 labels.

The authors read the M1 result as evidence that the latent space gives more robust features than simple embeddings, and they report that M2 gets similar results without a separate TSVM. At 1000 labels, M2 scores 3.60 (±0.56) and M1+TSVM scores 4.24 (±0.07), so these two are close in that column.

Fully supervised MNIST

Trained with all available labels on permutation-invariant MNIST classification, M1+M2 reaches a test-set performance of 0.96%. The authors describe this as among the best published results for that task, and it is a supervised result rather than a semi-supervised one.

SVHN and NORB with 1000 labels

KNN and TSVM use RBF kernels on the M1 features in the M1 rows, and SVHN and NORB are pre-processed with PCA.

On SVHN the M1+M2 column reaches 36.02 (±0.10), below KNN at 77.93, TSVM at 66.55, M1+KNN at 65.63 and M1+TSVM at 54.33.

On NORB the M1 variants give lower values than their raw-feature counterparts: M1+TSVM is 18.79 against 26.00 for TSVM, and M1+KNN is 65.39 against 78.71 for KNN. The NORB table has no M1+M2 entry.

Analogical generation

With a two-dimensional z on MNIST, fixing the class and varying z from -5 to 5 changes the writing style, with upright styles on one side and slanted styles on the other. The authors report that nearby regions share a writing style regardless of the class.

For analogies, a test image is encoded by the inference network, its inferred z is held fixed, and the class label is varied to generate images.

The authors compare this use with stochastic feed-forward networks trained by Monte Carlo EM with importance sampling, which they call inefficient, whereas their joint inference is easier to scale.

Limitations

The authors state that the models scale linearly with the number of classes, because the generative likelihood must be re-evaluated for each class during training. Truncating the posterior mass or using error-correcting output codes are named as possible reductions, but the text reports no experiment with either.

Experiments cover MNIST, SVHN and NORB, and convolutional architectures are named as a direction for future work, not tested here. The SVHN and NORB comparison has only KNN and TSVM baselines, and M1+M2 is missing for NORB.

The optimisation details describe an RMSProp variant, while the training section says the experimental results were obtained with AdaGrad. The text reports no sensitivity study for the weight α, which is fixed at 0.1·N in all experiments.

Paper info

Authors
Diederik P. Kingma, Danilo J. Rezende, Shakir Mohamed, Max Welling
Venue
arXiv · Preprint
First published
2014-6-20
Added
2026-11-12
Updated
2014-10-31
Version
v2
arXiv
1406.5298
Category
cs.LG · stat.ML
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Diederik P. Kingma, Danilo J. Rezende, Shakir Mohamed, Max Welling (2014). Semi-Supervised Learning with Deep Generative Models. arXiv:1406.5298v2. https://arxiv.org/abs/1406.5298v2

BibTeX
@misc{kingma2014semi,
  title = {{Semi-Supervised Learning with Deep Generative Models}},
  author = {Diederik P. Kingma and Danilo J. Rezende and Shakir Mohamed and Max Welling},
  year = {2014},
  eprint = {1406.5298},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1406.5298v2}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up