Factorized Gaussian Process Variational Autoencoders

Metod Jazbec, Michael Pearce, Vincent Fortuin

TL;DR

Factorized Gaussian Process Variational Autoencoders (FGP-VAE) bring scalability to models that use Gaussian Processes (GPs) to capture structured correlations in data. By factorizing the latent kernel across independent features, the authors reduce inference complexity from cubic to linear relative to the number of data subsets, while enabling the model to generalize to entirely new, unseen categories.

What Problem Does This Paper Address?

Standard Variational Autoencoders (VAEs) typically assume that every data point is independent. However, real-world data is often highly correlated—think of video frames, sensor readings over time, or multiple views of the same object.

To capture these relationships, researchers previously introduced GP-VAEs, which use Gaussian Processes as priors in the latent space. While powerful, GP-VAEs suffer from two major headaches:

  1. Computational Cost: Exact GP inference scales cubically ($O(N^3)$) with the number of data points $N$, making them painfully slow for large datasets.
  2. Rigidity: Existing models often use a fixed "style" matrix that doesn't easily allow the model to handle new, unseen categories (like a new person's face or a new digit instance) without retraining.

Methods

The authors propose FGP-VAE, which introduces two key innovations to the standard GP-VAE framework:

  • Kernel Factorization: Instead of one massive GP covering the whole dataset, they partition the data into subsets (e.g., by digit ID). They use a kernel that incorporates a Kronecker delta ($\delta_{d_i, d_j}$), which effectively says: "Images of different digits are independent, but images of the same digit are correlated based on their rotation angle." This allows the math to break down into many small, independent GP problems.
  • Latent Splitting (Local vs. Global): They split the latent representation $z$ into two parts:
  • Local variables: Unique to each specific image (e.g., the specific rotation angle).
  • Global variables: Shared across all images in a subset (e.g., the unique handwriting style of a specific digit).

By using a simple binary kernel for the global variables, the model learns to disentangle the "style" of an object from its "pose" or "position."

Datasets

The primary evaluation was performed on a Rotated MNIST dataset.

  • Setup: 400 different instances of the digit '3', each rotated at 16 different angles (6,400 total images).
  • Extrapolation Task: The authors also tested the model's ability to generate rotations for completely new digit instances not seen during training.

Key Insights and Ideas

  • Independence is a Scalability Feature: By explicitly modeling the independence between different object instances, the computational bottleneck shifts from $O(N^3)$ to $O(PQ^3)$, where $P$ is the number of objects and $Q$ is the number of observations per object. Since $Q$ is usually small, this is a massive win.
  • Disentanglement by Design: The split between local and global latents naturally encourages the model to separate invariant features (style) from variant features (rotation).
  • Amortized Style: Unlike previous works that learned a fixed lookup table for styles, FGP-VAE can infer the style of a new object from just a few examples, allowing for true extrapolation in the digit space.

Key Results

The FGP-VAE achieves a "best of both worlds" result: it is faster than previous GP-VAEs and more accurate than standard VAEs.

Table 1: Comparison of MSE and computational complexity.
  • Speedup: FGP-VAE is over 13x faster per epoch than the non-factorized GP-VAE (1.41s vs 19.10s) and approaches the speed of a basic CVAE.
  • Accuracy: It achieved a lower Mean Squared Error (0.0284) compared to both the CVAE (0.0796) and the non-factorized GP-VAE (0.0370).
  • Scaling: As shown in the scaling properties figure, the runtime grows linearly with the number of digit instances, while the reconstruction error remains consistently low.
Figure 1(b): Scaling properties showing linear growth in runtime and stable MSE.

Qualitatively, the model produces much sharper and more faithful rotations compared to baselines, which often produce blurry or distorted results.

Figure 1(a): Qualitative comparison of conditional generations.

Limitations and Future Work

  • Requirement of Auxiliary Features: The model currently relies on knowing which features are independent (e.g., knowing the digit ID) to perform the factorization.
  • Large Subsets: If the number of observations per subset ($Q$) becomes very large (e.g., a very long video), the $O(Q^3)$ cost could still become a bottleneck. The authors suggest that combining their factorization with Sparse GP methods is a promising next step to handle these cases.

Summary updated

BibTeX
@misc{jazbec2020factorized,
  author = {Metod Jazbec and Michael Pearce and Vincent Fortuin},
  title = {{Factorized Gaussian Process Variational Autoencoders}},
  year = {2020},
  eprint = {2011.07255},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.07255},
}
Figure