Abstract
We present a new generative autoencoder model with dual contradistinctive losses to improve generative autoencoder that performs simultaneous inference (reconstruction) and synthesis (sampling). Our model, named dual contradistinctive generative autoencoder (DC-VAE), integrates an instance-level discriminative loss (maintaining the instance-level fidelity for the reconstruction / synthesis) with a set-level adversarial loss (encouraging the set-level fidelity for the reconstruction/synthesis), both being contradistinctive. Extensive experimental results by DC-VAE across different resolutions including 32x32, 64x64, 128x128, and 512x512 are reported. The two contradistinctive losses in VAE work harmoniously in DC-VAE leading to a significant qualitative and quantitative performance enhancement over the baseline VAEs without architectural changes. State-of-the-art or competitive results among generative autoencoders for image reconstruction, image synthesis, image interpolation, and representation learning are observed.
Introduction
Generative models typically struggle to balance two competing goals: high-fidelity reconstruction (inference) and realistic image synthesis (sampling). Variational Autoencoders (VAEs) excel at inference but often produce blurry outputs due to the limitations of pixel-wise reconstruction losses like L2. Conversely, Generative Adversarial Networks (GANs) generate sharp, realistic images but are notoriously difficult to invert for reconstruction tasks. The Dual Contradistinctive Generative Autoencoder (DC-VAE) addresses this gap by harmonizing these objectives through a novel dual-loss framework.
Methodology: Dual Contradistinctive Losses
The core innovation of DC-VAE lies in its loss functions, which improve performance without requiring changes to the underlying network architecture.
- Instance-Level Fidelity (Implicit ELBO): Instead of strict pixel-matching, DC-VAE employs a contrastive loss (InfoNCE). By treating an input's reconstruction as a "positive" pair and other images in the batch as "negatives," the model learns to maintain the unique identity of an instance without the blurring effects of traditional L2 losses.
- Set-Level Fidelity (Adversarial Loss): A standard adversarial loss is maintained to ensure that the distribution of generated images matches the real data distribution, providing the "sharpness" characteristic of GANs.
Furthermore, the authors utilize Multi-scale Contrastive Learning, applying these losses to intermediate feature maps and local patches to capture both global structure and fine-grained texture.
Datasets and Evaluation
DC-VAE was evaluated across a diverse range of datasets and resolutions, demonstrating its versatility as a general-purpose model:
- CIFAR-10 & STL-10 (32x32): Benchmarking against standard generative models.
- CelebA & CelebA-HQ (128x128 to 512x512): High-resolution face synthesis and reconstruction.
- LSUN Bedroom (128x128): Complex scene generation.
Key Results
DC-VAE demonstrates significant improvements in both qualitative and quantitative metrics. On CIFAR-10, it achieved a Fréchet Inception Distance (FID) of 17.9, a major leap over standard VAE/GAN (39.8). In high-resolution tasks, the model successfully reconstructs 512x512 CelebA-HQ images with superior clarity compared to existing methods like StyleALAE.
Beyond image quality, the model learns highly effective representations. When applied to MNIST digit classification using latent codes, DC-VAE achieved a lower error rate (1.30%) than competitors like $\beta$-VAE, indicating that the dual losses encourage the learning of more meaningful features.
Conclusion
DC-VAE provides a robust framework for enhancing generative autoencoders. By replacing standard reconstruction losses with a dual contradistinctive approach, it achieves state-of-the-art results in sharpness and fidelity across various resolutions and tasks, from image synthesis to representation learning.
Summary updated