Skip to main content
QUICK REVIEW

[Paper Review] Consistency Regularization for Variational Auto-Encoders

Samarth Sinha, Adji Bousso Dieng|arXiv (Cornell University)|May 31, 2021
Generative Adversarial Networks and Image SynthesisComputer Science1 references11 citations
TL;DR

This paper proposes consistency regularization for variational auto-encoders (VAEs) to enforce similar latent representations for an input image and its semantics-preserving transformations. By minimizing the KL divergence between the encoder's posterior distributions for an image and its augmented version, the method improves representation quality and generalization across multiple VAE variants and datasets, achieving state-of-the-art performance on MNIST, CIFAR-10, CelebA, and 3D point clouds using CR-VAE and CR-NVAE.

ABSTRACT

Variational auto-encoders (VAEs) are a powerful approach to unsupervised learning. They enable scalable approximate posterior inference in latent-variable models using variational inference (VI). A VAE posits a variational family parameterized by a deep neural network called an encoder that takes data as input. This encoder is shared across all the observations, which amortizes the cost of inference. However the encoder of a VAE has the undesirable property that it maps a given observation and a semantics-preserving transformation of it to different latent representations. This "inconsistency" of the encoder lowers the quality of the learned representations, especially for downstream tasks, and also negatively affects generalization. In this paper, we propose a regularization method to enforce consistency in VAEs. The idea is to minimize the Kullback-Leibler (KL) divergence between the variational distribution when conditioning on the observation and the variational distribution when conditioning on a random semantic-preserving transformation of this observation. This regularization is applicable to any VAE. In our experiments we apply it to four different VAE variants on several benchmark datasets and found it always improves the quality of the learned representations but also leads to better generalization. In particular, when applied to the Nouveau Variational Auto-Encoder (NVAE), our regularization method yields state-of-the-art performance on MNIST and CIFAR-10. We also applied our method to 3D data and found it learns representations of superior quality as measured by accuracy on a downstream classification task.

Motivation & Objective

  • To address the inconsistency problem in VAE encoders, where semantically equivalent images (e.g., rotated or translated) are mapped to different regions in the latent space.
  • To improve the quality of learned representations and generalization in VAEs without modifying the underlying architecture.
  • To develop a regularization method applicable to any VAE variant that enhances performance on downstream tasks and generative modeling.
  • To demonstrate state-of-the-art results on benchmark datasets, including image and 3D point cloud data, using consistency-regularized VAEs.

Proposed method

  • Introduce a consistency regularization term that minimizes the KL divergence between the variational posterior distributions induced by the encoder for an input image and a semantics-preserving transformation of it.
  • Apply the regularization during training by jointly optimizing the standard VAE objective (ELBO) and the consistency loss.
  • Use data augmentation (e.g., rotation, translation, scaling, jittering) to generate semantically equivalent image and point cloud transformations.
  • Extend the method to multiple VAE variants, including VAE, IWAE, β-VAE, and NVAE, by integrating the consistency loss into their training objective.
  • Apply the method to 3D point cloud data using FoldingNet as the backbone, converting it into a VAE and adding consistency regularization to the latent space.
  • Train the model end-to-end using stochastic gradient descent, with the consistency loss computed via Monte Carlo sampling of latent variables.

Experimental results

Research questions

  • RQ1Can enforcing consistency in the encoder’s latent representations improve representation quality in VAEs?
  • RQ2Does consistency regularization enhance generalization performance across diverse VAE architectures and datasets?
  • RQ3Can this method outperform contrastive learning baselines such as triplet loss in representation learning?
  • RQ4Does consistency regularization improve performance on 3D point cloud reconstruction and classification tasks?
  • RQ5Can the method achieve state-of-the-art results on standard image benchmarks like MNIST, CIFAR-10, and CelebA?

Key findings

  • Consistency regularization consistently improves representation quality and generalization across four VAE variants: VAE, IWAE, β-VAE, and NVAE on MNIST, CIFAR-10, and CelebA.
  • CR-NVAE achieves state-of-the-art log-likelihood performance on MNIST and CIFAR-10, outperforming the baseline NVAE.
  • On the ShapeNet 3D point cloud dataset, CR-FoldingNet achieves 84.6% accuracy on a linear SVM classification task, compared to 82.5% for the baseline FoldingNet.
  • The reconstruction error for CR-FoldingNet is 0.0327 (Chamfer distance), a reduction from 0.0355 for the baseline, indicating improved generative quality.
  • Interpolation in the latent space using CR-FoldingNet produces smooth, interpretable transitions between object classes, demonstrating a disentangled and meaningful latent space.
  • The method outperforms the triplet loss, a strong contrastive learning baseline, in downstream classification accuracy on 3D data.

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.