Skip to main content
QUICK REVIEW

[Paper Review] Hyperspherical Variational Auto-Encoders

Tim R. Davidson, Luca Falorsi|arXiv (Cornell University)|Apr 3, 2018
Generative Adversarial Networks and Image SynthesisComputer Science21 references104 citations
TL;DR

This paper replaces the Gaussian prior/posterior in VAEs with a von Mises-Fisher distribution to create hyperspherical latent spaces, enabling better modeling of data with spherical structure and improving tasks like MNIST reconstruction/semi-supervised learning and link prediction on graphs.

ABSTRACT

The Variational Auto-Encoder (VAE) is one of the most used unsupervised machine learning models. But although the default choice of a Gaussian distribution for both the prior and posterior represents a mathematically convenient distribution often leading to competitive results, we show that this parameterization fails to model data with a latent hyperspherical structure. To address this issue we propose using a von Mises-Fisher (vMF) distribution instead, leading to a hyperspherical latent space. Through a series of experiments we show how such a hyperspherical VAE, or $\mathcal{S}$-VAE, is more suitable for capturing data with a hyperspherical latent structure, while outperforming a normal, $\mathcal{N}$-VAE, in low dimensions on other data types. Code at http://github.com/nicola-decao/s-vae-tf and https://github.com/nicola-decao/s-vae-pytorch

Motivation & Objective

  • Motivate and address limitations of Gaussian priors for data with hyperspherical latent structure.
  • Introduce a hyperspherical VAE (S-VAE) using the von Mises-Fisher distribution.
  • Develop a differentiable reparameterization and sampling scheme for vMF to enable training.
  • Compare S-VAE against N-VAE on MNIST and graph-based link prediction tasks.
  • Demonstrate improved clustering, semi-supervised performance, and graph embeddings in low-dimensional latent spaces.

Proposed method

  • Adopt the von Mises-Fisher (vMF) distribution as the latent prior/posterior on the hypersphere.
  • Derive the KL divergence between vMF and a uniform on the sphere, noting dependence on concentration κ and not the mean μ.
  • Provide an acceptance-rejection sampling procedure for vMF and an explicit gradient for κ using scaled Bessel functions.
  • Extend the reparameterization trick to rejection-sampled distributions via a two-step transformation (Algorithm 1 and subsequent lemmas).
  • Apply S-VAE to recover hyperspherical latent structure, perform unsupervised and semi-supervised MNIST experiments, and evaluate on VGAE-based link prediction for citation networks.

Experimental results

Research questions

  • RQ1Can a hyperspherical latent space improve modeling of data with inherent spherical structure compared to a Gaussian latent space?
  • RQ2How can the reparameterization trick be extended to von Mises-Fisher posteriors for efficient training?
  • RQ3Does replacing Gaussian with vMF improve reconstruction, clustering, and downstream tasks in low-dimensional latent spaces?
  • RQ4What is the impact of latent topology on semi-supervised learning and graph-based link prediction?
  • RQ5How does S-VAE perform relative to N-VAE across ML tasks like MNIST and citation network link prediction?

Key findings

  • S-VAE better recovers hyperspherical latent structure than N-VAE in synthetic and MNIST settings, especially in low dimensions.
  • In reconstruction on MNIST, S-VAE achieves lower negative reconstruction error and higher ELBO (LL in low dims) than N-VAE.
  • Semi-supervised MNIST shows S-VAE and S+N variants achieving higher accuracy than their N counterparts across several latent dimensionalities.
  • On link prediction for Cora, Citeseer, and PubMed, S-VGAE improves AUC and AP over N-VGAE.
  • The uniform prior on the hypersphere avoids origin attraction and supports more uniform latent space usage, aiding clustering and generation.

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.