[Paper Review] Autoencoding beyond pixels using a learned similarity metric
This paper proposes a hybrid VAE/GAN model that replaces element-wise reconstruction loss with a feature-wise similarity metric learned from a GAN discriminator, significantly improving image generation quality and disentangled representation learning. The method achieves state-of-the-art visual fidelity in unsupervised image generation by leveraging high-level feature representations for reconstruction, enabling meaningful arithmetic in the latent space for attribute manipulation.
We present an autoencoder that leverages learned representations to better measure similarities in data space. By combining a variational autoencoder with a generative adversarial network we can use learned feature representations in the GAN discriminator as basis for the VAE reconstruction objective. Thereby, we replace element-wise errors with feature-wise errors to better capture the data distribution while offering invariance towards e.g. translation. We apply our method to images of faces and show that it outperforms VAEs with element-wise similarity measures in terms of visual fidelity. Moreover, we show that the method learns an embedding in which high-level abstract visual features (e.g. wearing glasses) can be modified using simple arithmetic.
Motivation & Objective
- To address the limitations of element-wise reconstruction metrics in VAEs, which fail to capture perceptual invariances like translation.
- To improve generative modeling by learning a similarity metric that reflects high-level visual structure rather than pixel-level differences.
- To enable disentangled representation learning in the latent space without supervision, allowing for meaningful arithmetic operations on visual attributes.
- To combine the strengths of VAEs (structured latent encoding) and GANs (high-quality generation) into a unified unsupervised framework.
Proposed method
- Combine a variational autoencoder (VAE) with a generative adversarial network (GAN) by sharing the decoder/generator network parameters.
- Replace the standard pixel-wise reconstruction loss in VAE with a feature-wise reconstruction loss based on the GAN discriminator's hidden layer representations.
- Use the GAN discriminator's intermediate features as a learned similarity metric, modeling the likelihood of real vs. reconstructed images at the feature level.
- Train the VAE and GAN jointly using a hybrid objective that optimizes both reconstruction (via feature-level likelihood) and adversarial discrimination.
- Apply a Gaussian observation model to the discriminator's features, where the mean is the feature representation of the reconstructed sample.
- Use the resulting loss to train the encoder and shared decoder/generator end-to-end in an unsupervised manner.
Experimental results
Research questions
- RQ1Can a learned similarity metric based on deep features improve VAE reconstruction quality beyond pixel-wise errors?
- RQ2Does combining VAE and GAN training lead to better generative image quality and disentangled representations?
- RQ3Can the latent space of the proposed model support meaningful arithmetic operations that reflect changes in high-level visual attributes?
- RQ4Is the GAN discriminator's feature space a suitable proxy for a perceptually meaningful similarity metric in image reconstruction?
- RQ5Can this method achieve competitive performance with GANs in image generation while retaining the VAE's ability to encode and decode data?
Key findings
- The VAE/GAN model produces image samples with significantly higher visual fidelity than standard VAEs using pixel-wise reconstruction loss.
- The model learns a disentangled latent representation where arithmetic operations on latent codes correspond to meaningful changes in visual attributes such as wearing glasses or facial expression.
- The method achieves state-of-the-art visual quality in unsupervised image generation, comparable to GANs, while maintaining a structured latent space.
- The GAN discriminator's feature representations serve as an effective, learned similarity metric that captures perceptual invariances like translation.
- The model enables conditional generation of images based on attribute vectors from the LFW dataset, with improved attribute recognition accuracy compared to standard VAEs.
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.