Coarse Grained Exponential Variational Autoencoders

Ke Sun, Xiangliang ZhangarXiv 2017

Standard Variational Autoencoders (VAEs) often restrict latent variables to simple Gaussian distributions, limiting their ability to capture complex, multi-modal data. This paper introduces Coarse Grained Exponential VAEs (CG-BPEF-VAE), which use a semi-continuous latent representation to approximate highly flexible Bounded Polynomial Exponential Family (BPEF) distributions. By discretizing the latent space and leveraging the Gumbel-Softmax trick, the model achieves better density estimation and richer latent representations than standard VAEs.

The Challenge of Complex Latents

In a standard VAE, the inference model typically assumes latent variables follow a diagonal Gaussian distribution. While computationally convenient, this is a massive oversimplification for complex data where the true posterior is often multi-modal, skewed, or bounded.

If the assumed distribution is too simple, the variational bound becomes loose, bottlenecking the model's learning capacity. However, integrating highly complex distributions into the VAE framework is difficult because:

  1. The Kullback-Leibler (KL) divergence between the posterior and prior must remain mathematically tractable.
  2. The distribution must support the "reparameterization trick" for end-to-end differentiability.

Methods: Coarse Graining for BPEF

The authors propose the CG-BPEF-VAE to integrate Bounded Polynomial Exponential Family (BPEF) distributions—universal probability density function generators capable of modeling multiple modes and higher-order moments.

Comparison of VAE architectures: (a) Gaussian VAE, (b) Category VAE, and (c) the proposed CG-BPEF-VAE.

To handle the lack of a closed-form KL divergence in BPEF, the authors introduce a Coarse Graining (CG) technique:

  • Discretization: The continuous latent space is bounded to a hypercube $[-1, 1]^d$ and discretized into a grid of $R$ points.
  • Concrete Relaxation: Instead of hard categorical sampling, the Concrete distribution (Gumbel-Softmax trick) provides a continuous relaxation, allowing gradients to flow.
  • Reconstruction: A "soft" one-hot vector is multiplied by grid coordinates to reconstruct a continuous latent variable $z$.
  • KL Approximation: The intractable continuous KL divergence is approximated using the tractable discrete KL divergence of the categorical distributions.

This "sandwich" architecture allows the network to output continuous parameters, sample via a discrete grid, and map back to a continuous latent space for the decoder.

Key Insights

  • Bridging Discrete and Continuous: The paper demonstrates how discrete reparameterization can model continuous variables by coarse-graining the space.
  • Information Monotonicity: The authors justify the KL approximation using "information monotonicity," proving that the discrete KL acts as a reliable lower bound to the true continuous KL.
  • Information Geometry: VAE training is framed as minimizing geometric "distance" on a statistical manifold, revealing a fundamental trade-off between fitting data and generalizing.
KL divergence behavior across different temperatures, illustrating the relationship between the categorical approximation and the continuous latent variable.

Experimental Results

The model was evaluated on unsupervised density estimation using MNIST and SVHN datasets. Performance was measured by per-sample average free energy (lower is better).

Dataset Gaussian VAE Category VAE CG-BPEF-VAE
MNIST 100.0 94.2 90.4
SVHN 624.4 620.4 619.0

The CG-BPEF-VAE consistently outperformed baselines, with performance improving as the polynomial order ($M$) increased, confirming the value of capturing higher-order moments.

Limitations and Future Work

The primary limitation is computational overhead, as coarse-graining expands latent dimensionality during sampling. Additionally, the KL approximation relies on low-temperature annealing for accuracy. Future research will explore mixture models and semi-supervised applications.

Summary updated

BibTeX
@misc{sun2017coarse,
  author = {Ke Sun and Xiangliang Zhang},
  title = {{Coarse Grained Exponential Variational Autoencoders}},
  year = {2017},
  eprint = {1702.07904},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1702.07904},
}
Figure