[Paper Review] Gaussian Process Prior Variational Autoencoders
This paper proposes the Gaussian Process Prior Variational Autoencoder (GPPVAE), a generative model that replaces the standard VAE's i.i.d. latent prior with a Gaussian Process prior to model correlations between data samples—particularly in sequential or structured data. By exploiting low-rank covariance structures and a novel stochastic backpropagation strategy, GPPVAE enables efficient, memory-efficient training and achieves state-of-the-art performance in image generation and interpolation tasks on rotated MNIST and face pose datasets, outperforming CVAEs and standard VAEs.
Variational autoencoders (VAE) are a powerful and widely-used class of models to learn complex data distributions in an unsupervised fashion. One important limitation of VAEs is the prior assumption that latent sample representations are independent and identically distributed. However, for many important datasets, such as time-series of images, this assumption is too strong: accounting for covariances between samples, such as those in time, can yield to a more appropriate model specification and improve performance in downstream tasks. In this work, we introduce a new model, the Gaussian Process (GP) Prior Variational Autoencoder (GPPVAE), to specifically address this issue. The GPPVAE aims to combine the power of VAEs with the ability to model correlations afforded by GP priors. To achieve efficient inference in this new class of models, we leverage structure in the covariance matrix, and introduce a new stochastic backpropagation strategy that allows for computing stochastic gradients in a distributed and low-memory fashion. We show that our method outperforms conditional VAEs (CVAEs) and an adaptation of standard VAEs in two image data applications.
Motivation & Objective
- To address the limitation of standard VAEs, which assume i.i.d. latent representations across samples, a constraint that is unrealistic for time-series or structured data like images from multiple subjects or poses.
- To develop a scalable and memory-efficient inference method for VAEs with GP priors, which typically suffer from cubic computational complexity due to full covariance matrices.
- To enable effective modeling of multi-level correlations (e.g., time, object identity, pose) in high-dimensional data by learning structured kernel functions over latent representations.
- To demonstrate that incorporating GP priors into VAEs leads to improved performance in out-of-distribution generation and interpolation tasks compared to standard VAEs and CVAEs.
Proposed method
- Introduces the GPPVAE model, which replaces the i.i.d. prior in VAEs with a GP prior over latent codes, enabling correlation modeling across samples through a kernel function.
- Employs low-rank factorization of the GP covariance matrix to reduce computational complexity from O(N³) to O(NK²), where K ≪ N is the rank of the approximation.
- Develops a novel stochastic backpropagation strategy that enables unbiased, mini-batch-based gradient estimation despite the non-i.i.d. structure induced by the GP prior.
- Uses a composite kernel function combining view-specific (e.g., rotation, pose) and object-specific (e.g., identity) features to model multi-level correlations in the latent space.
- Applies variational inference with amortized inference networks to jointly optimize the encoder, decoder, and GP hyperparameters via stochastic gradient descent.
- Employs a joint training scheme (GPPVAE-joint) that optimizes both the VAE and GP components end-to-end, as well as a disentangled variant (GPPVAE-dis) for comparison.
Experimental results
Research questions
- RQ1Can modeling inter-sample correlations in the latent space via a GP prior improve generative modeling performance on sequential or structured image data?
- RQ2How can efficient and scalable inference be achieved in a VAE with a GP prior, given the high computational cost of full GP inference?
- RQ3Does the GPPVAE model learn meaningful disentangled representations of factors such as object identity and view (e.g., pose or rotation) in structured data?
- RQ4How does the GPPVAE compare to strong baselines like CVAE and linear VAEs in terms of reconstruction and generalization performance?
Key findings
- On the rotated MNIST dataset, GPPVAE-joint achieved a test set MSE of 0.0280 ± 0.0008, significantly outperforming GPPVAE-dis (0.0306 ± 0.0009, p < 0.02) and other baselines.
- On the face pose dataset, GPPVAE-joint achieved an MSE of 0.0281 ± 0.0008, outperforming CVAE and LIVAE, with no significant difference from GPPVAE-dis (0.0298 ± 0.0008).
- GPPVAE-joint successfully disentangled object (identity) and view (pose) covariances, learning distinct kernel functions for each factor in the face dataset.
- The model learned different variational parameters than standard VAEs, indicating that the GP prior guides the VAE to adapt its latent space for improved generalization.
- Out-of-sample predictions for unseen rotations and poses showed that GPPVAE-joint generated more realistic and accurate images than baselines.
- The proposed stochastic backpropagation strategy enabled memory-efficient, distributed training, making the model applicable to large-scale image datasets.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.