TL;DR
Double InfoGAN is the first GAN-based framework for Contrastive Analysis (CA), designed to disentangle common features shared between two datasets from salient features unique to one. By leveraging the synthesis power of GANs and the information-theoretic constraints of InfoGAN, it produces higher-quality images and achieves more accurate latent factor separation than existing VAE-based methods.
What Problem Does This Paper Address?
In many fields, particularly medical imaging, researchers need to perform Contrastive Analysis (CA). The goal is to discover what is common between a "background" dataset (e.g., healthy brain scans) and a "target" dataset (e.g., scans of patients with tumors), and—more importantly—what is distinctive or "salient" about the target group.
Until now, the state-of-the-art for this task has been based on Variational Autoencoders (CA-VAEs). However, VAEs suffer from two major drawbacks:
- Blurry Images: The generated samples often lack fine detail, making them less useful for clinical interpretation.
- Information Leakage: Existing methods often fail to strictly separate common and salient factors, leading to "leakage" where salient features (like a tumor) are mistakenly encoded as common anatomical variations.
Methods
The authors introduce Double InfoGAN, which adapts the InfoGAN architecture for the contrastive setting. The model uses two sets of latent variables:
- Common Factors ($z$): Latent codes that capture variations present in both datasets (e.g., general brain anatomy).
- Salient Factors ($s$): Latent codes that capture variations unique to the target dataset (e.g., the presence and shape of a tumor).
Key technical innovations include:
- Dual-Module Discriminator: One module ($D$) distinguishes real from fake images, while a second ($C$) classifies images into the background or target domain.
- Info Loss: Inspired by InfoGAN, this loss maximizes the mutual information between the latent codes and the generated images, ensuring that $s$ and $z$ actually control meaningful visual features.
- Image Reconstruction Loss: Unlike standard GANs, this model includes a reconstruction term using an auxiliary encoder ($Q$) to ensure that specific real images can be accurately mapped back to their latent representations.
Datasets
The model was evaluated on four visual datasets:
- CelebA with Accessories: Background (faces without hats/glasses) vs. Target (faces with hats or glasses).
- Cifar-10-MNIST: Background (CIFAR-10 objects) vs. Target (CIFAR-10 with MNIST digits overlaid).
- dSprites-MNIST: A new toy dataset where dSprites shapes are added on top of MNIST digits.
- Brats: A real-world medical dataset containing T1-weighted MR brain images of healthy subjects and patients with brain tumors.
Key Insights and Ideas
- GANs > VAEs for CA: By switching to a GAN framework, the authors achieve significantly sharper image generation, which is crucial for identifying subtle salient features like small tumors or specific facial accessories.
- Latent Swapping: Because the model successfully separates $z$ and $s$, researchers can perform "salient feature swaps." For example, you can take a patient's brain scan, keep the common anatomical factors ($z$), and set the salient factors ($s$) to zero to generate a "healthy counterpart" of that specific patient.
- Stability: The authors found that their GAN-based approach was more stable during training compared to some VAE-based competitors (like MM-cVAE), which occasionally suffered from KL-divergence explosions.
Key Results
- Better Separation: On the CelebA dataset, a classifier trained on the salient factors ($s$) achieved 95% accuracy in identifying attributes (glasses vs. hat), compared to only 82% for VAE-based methods. This proves that Double InfoGAN does a better job of packing distinctive information into the salient latent space.
- Higher Fidelity: The model achieved higher Inception Scores (IS) than VAE methods, confirming superior image quality.
- Medical Utility: In the Brats dataset, the model successfully generated realistic brain tumors while preserving the underlying anatomy of the patient.
Limitations and Future Work
- Identifiability: Like most deep generative models, Double InfoGAN is not strictly "identifiable" in a mathematical sense without further constraints. There is no absolute guarantee that the model will always find the true generative factors without some inductive bias.
- Dataset Bias: The model is sensitive to biases in the training data. For instance, if thin glasses in the dataset are mostly worn by older men, the model might mistakenly associate "aging" features with the "glasses" salient factor.
- Future Directions: The authors suggest exploring Diffusion Models for Contrastive Analysis and adding new information-theoretic losses to further improve the mathematical identifiability of the latent factors.
Summary updated