This repository contains a minimal PyTorch implementation of a Variational Autoencoder with Categorical Latent variables.
We consider data distributed as a time series
Intuitively, at time
We leverage Variational Inference to estimate the parameters
Specifically, this is achieved by maximizing the variational lower bound (ELBO) on the log-likelihood of the observed data.
The resulting optimization problem takes the form
where
The main challenges in using discrete latents in VAEs is the inherent non-differentiability of the resulting PMF of the variational distribution
We solve this issue by approximating the one-hot encoded vectors
- Tutorial: Categorical Variational Autoencoders using Gumbel-Softmax by Eric Jang
- Categorical Reparameterization with Gumbel-Softmax by Eric Jang, Shixiang Gu, Ben Poole
- Deep Unsupervised Clustering with Gaussian Mixture Variational Autoencoders by Nat Dilokthanakul, Pedro A.M. Mediano, Marta Garnelo, Matthew C.H. Lee, Hugh Salimbeni, Kai Arulkumaran, Murray Shanahan