Contrastive Variational Autoencoder Enhances Salient Features

Abubakar Abid, James Zou
2/12/2019
cs.LGstat.ML
contrastive-ssl

Official code: abidlabs/contrastive_vae (72 stars, Jupyter Notebook, MIT, last commit 2019-02-12).

Abstract

Variational autoencoders are powerful algorithms for identifying dominant latent structure in a single dataset. In many applications, however, we are interested in modeling latent structure and variation that are enriched in a target dataset compared to some background---e.g. enriched in patients compared to the general population.

Show full abstract

Contrastive learning is a principled framework to capture such enriched variation between the target and background, but state-of-the-art contrastive methods are limited to linear models. In this paper, we introduce the contrastive variational autoencoder (cVAE), which combines the benefits of contrastive learning with the power of deep generative models. The cVAE is designed to identify and enhance salient latent features. The cVAE is trained on two related but unpaired datasets, one of which has minimal contribution from the salient latent features. The cVAE explicitly models latent features that are shared between the datasets, as well as those that are enriched in one dataset relative to the other, which allows the algorithm to isolate and enhance the salient latent features. The algorithm is straightforward to implement, has a similar run-time to the standard VAE, and is robust to noise and dataset purity. We conduct experiments across diverse types of data, including gene expression and facial images, showing that the cVAE effectively uncovers latent structure that is salient in a particular analysis.

View on arXivView PDF

Code Implementations(1)

MIT

Contrastive Variational Autoencoders

7210Jupyter Notebook, PythonFeb 11, 20197 years agoMIT

Similar Papers

Cite this paper

@article{abid2019contrastive,
  title  = {Contrastive Variational Autoencoder Enhances Salient Features},
  author = {Abubakar Abid and James Zou},
  year   = {2019},
  eprint = {1902.04601},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1902.04601}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1902.04601.svg)](https://codeofpaper.com/paper/1902.04601)

Discussion