Saved in:
Bibliographic Details
Main Authors: Jeffares, Alan, Liu, Liyuan
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2505.10344
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916738075983872
author Jeffares, Alan
Liu, Liyuan
author_facet Jeffares, Alan
Liu, Liyuan
contents Variational Autoencoders (VAEs) are well-established as a principled approach to probabilistic unsupervised learning with neural networks. Typically, an encoder network defines the parameters of a Gaussian distributed latent space from which we can sample and pass realizations to a decoder network. This model is trained to reconstruct its inputs and is optimized through the evidence lower bound. In recent years, discrete latent spaces have grown in popularity, suggesting that they may be a natural choice for many data modalities (e.g. text). In this tutorial, we provide a rigorous, yet practical, introduction to discrete variational autoencoders -- specifically, VAEs in which the latent space is made up of latent variables that follow a categorical distribution. We assume only a basic mathematical background with which we carefully derive each step from first principles. From there, we develop a concrete training recipe and provide an example implementation, hosted at https://github.com/alanjeffares/discreteVAE.
format Preprint
id arxiv_https___arxiv_org_abs_2505_10344
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle An Introduction to Discrete Variational Autoencoders
Jeffares, Alan
Liu, Liyuan
Machine Learning
Variational Autoencoders (VAEs) are well-established as a principled approach to probabilistic unsupervised learning with neural networks. Typically, an encoder network defines the parameters of a Gaussian distributed latent space from which we can sample and pass realizations to a decoder network. This model is trained to reconstruct its inputs and is optimized through the evidence lower bound. In recent years, discrete latent spaces have grown in popularity, suggesting that they may be a natural choice for many data modalities (e.g. text). In this tutorial, we provide a rigorous, yet practical, introduction to discrete variational autoencoders -- specifically, VAEs in which the latent space is made up of latent variables that follow a categorical distribution. We assume only a basic mathematical background with which we carefully derive each step from first principles. From there, we develop a concrete training recipe and provide an example implementation, hosted at https://github.com/alanjeffares/discreteVAE.
title An Introduction to Discrete Variational Autoencoders
topic Machine Learning
url https://arxiv.org/abs/2505.10344