Introduction
Contrastive Analysis (CA) is a critical task in data science and medical imaging, aimed at identifying "salient" features that distinguish a target dataset from a background control. For instance, in neuroimaging, researchers seek to isolate pathological features like tumors from the common anatomical structures shared across all patients. Historically, Contrastive Variational Autoencoders (CA-VAEs) have been the standard. However, VAEs often produce blurry images and suffer from "feature leakage," where background variations are incorrectly attributed to salient factors.
Double InfoGAN addresses these limitations by combining the high-fidelity generation of Generative Adversarial Networks (GANs) with the information-theoretic disentanglement of InfoGAN. This framework achieves superior image quality and more precise separation of common and salient latent factors.
Architecture and Methodology
The core innovation of Double InfoGAN lies in its split latent space, consisting of common factors ($z \in \mathbb{R}^L$) and salient factors ($s \in \mathbb{R}^M$).
Key components of the architecture include:
- Domain-Specific Latent Constraints: For background images ($X$), the salient factor $s$ is fixed to zero. For target images ($Y$), $s$ is learned. This constraint forces the model to encode all shared variability into $z$.
- Multi-Module Discriminator: The discriminator performs two tasks: standard real/fake detection ($D$) and domain classification ($C$) to identify if an image belongs to the background or target set.
- Information and Reconstruction Losses: An auxiliary encoder $Q$ maximizes the mutual information between latent codes and generated images. Additionally, an $L1$ reconstruction loss is employed to stabilize training and ensure accurate mapping of real images to the latent space.
Experimental Evaluation
The model was benchmarked against state-of-the-art CA-VAEs using four datasets:
- CelebA: Background faces vs. faces with salient attributes (hats/glasses).
- Cifar-10-MNIST: CIFAR-10 objects (background) vs. CIFAR-10 with overlaid MNIST digits (target).
- dSprites-MNIST: MNIST digits (background) vs. digits with dSprites shapes (target).
- BraTS: MRI scans of healthy brains (control) vs. brains with tumors (target).
Results and Discussion
Double InfoGAN consistently outperformed baseline models in both quantitative metrics and qualitative interpretability. On the CelebA dataset, salient factors ($s$) achieved a 95% classification accuracy for attributes, significantly higher than the ~82% achieved by CA-VAEs. Furthermore, the model produced images with lower Fréchet Inception Distance (FID), indicating higher visual fidelity.
A key advantage is the ability to perform "salient feature swapping." By combining the common factors ($z$) of a background image with the salient factors ($s$) of a target image, the model can synthesize realistic counterfactuals—such as adding a specific tumor to a healthy brain scan. This capability is vital for clinical interpretability, where sharpness and detail are paramount.
Conclusion and Future Work
Double InfoGAN represents a significant advancement in Contrastive Analysis, offering a stable GAN-based alternative to VAEs. While highly effective, the model's performance remains subject to dataset biases and lacks theoretical guarantees of physical factor identifiability. Future research may explore integrating more advanced architectures like StyleGAN or Diffusion models to further enhance resolution and generative diversity.
Summary updated