Explorations in Homeomorphic Variational Auto-Encoding

Luca Falorsi, Pim de Haan, Tim R. Davidson, Nicola De Cao, Maurice Weiler, Patrick Forré, Taco S. CohenarXiv 2018

Standard Variational Auto-Encoders (VAEs) often struggle when data naturally resides on complex manifolds, such as spheres or rotation groups. This difficulty arises because standard VAEs attempt to map these non-Euclidean structures into a flat Gaussian latent space. This paper introduces a framework for building VAEs where the latent space is a Lie Group (specifically $SO(3)$ for 3D rotations), ensuring the model preserves the true topological structure of the data without "tearing" it.

The Topological Mismatch Problem

Most deep learning models rely on the Manifold Hypothesis, which posits that high-dimensional data lies on a lower-dimensional manifold. However, standard VAEs typically assume this manifold is topologically equivalent to a Euclidean "blob" by using a Gaussian prior.

When data lives on a manifold with a non-trivial topology—such as a circle, a torus, or the space of 3D rotations ($SO(3)$)—a standard encoder cannot map it to a flat Gaussian space without creating discontinuities. This is analogous to trying to flatten an orange peel onto a table; the surface must be torn. In a VAE, these "tears" manifest as regions of low density in the latent space, leading to poor reconstructions and "jumps" during interpolation. The authors propose matching the latent space's topology to the data's intrinsic topology to solve this.

Homeomorphic VAE Framework

The authors propose a Homeomorphic VAE framework designed to maintain topological consistency. Key technical innovations include:

Reparameterization on Lie Groups

To enable training via backpropagation, the "reparameterization trick" must be extended to compact connected Lie groups. The authors sample from a distribution on the Lie Algebra (the tangent space at the identity), use the exponential map to project it onto the group, and then rotate it by a learned "mean" group element.

The reparameterization trick extended from Euclidean space (top) to a manifold (bottom) via the exponential map.

Homeomorphic Encoders and Group Action Decoders

The encoder is designed to be a homeomorphism (a continuous, invertible mapping). The authors found that mapping to two orthonormal vectors ($S^2 \times S^2$) is a mathematically sound way to represent $SO(3)$ without introducing topological glitches common in Quaternions or Euler angles.

For the decoder, instead of a standard black-box network, they propose a Group Action Decoder based on Representation Theory. It learns "Fourier modes" of an object and uses Wigner-D matrices to rotate these modes in the latent space before generating pixels. This architecture forces the latent space to explicitly represent the object's pose.

The Group Action Decoder architecture using Fourier transforms and Wigner-D matrices to represent rotations.

Evaluation and Results

The approach was evaluated on two synthetic datasets: a Toy $SO(3)$ Dataset embedded in 64D space and the Sphere-Cube dataset, which consists of 1 million images of a colored cube at various orientations.

Key Results

  • Superior Reconstruction: On the Sphere-Cube task, the $SO(3)$-based model achieved a Negative Log-Likelihood (NLL) of 46.90, vastly outperforming a standard 3D Gaussian VAE (140.7).
  • Smooth Interpolation: The $SO(3)$ latent space allows for perfectly smooth rotations. Standard VAEs showed "jumps" or "flickering" due to the "seams" created when fitting the rotation manifold into a flat box.
  • Disentanglement: The Group Action Decoder successfully separated "content" from "pose," resulting in a highly interpretable latent space.

Insights and Limitations

A primary insight is that Topology serves as a powerful Inductive Bias. Utilizing a latent space that matches the data's known structure prevents the model from wasting capacity "unfolding" a manifold. The authors also highlight the $S^2 \times S^2$ Advantage, noting it was the only continuous parameterization across the entire manifold among those tested.

However, the framework currently requires prior knowledge of the data's topology. Future work includes scaling to more complex groups like $SE(3)$ (rotations and translations) and addressing the computational complexity of using Wigner-D matrices in the decoder.

Summary updated

BibTeX
@misc{falorsi2018explorations,
  author = {Luca Falorsi and Pim de Haan and Tim R. Davidson and Nicola De Cao and Maurice Weiler and Patrick Forré and Taco S. Cohen},
  title = {{Explorations in Homeomorphic Variational Auto-Encoding}},
  year = {2018},
  eprint = {1807.04689},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1807.04689},
}
Figure